Commit Graph

144 Commits

Author SHA1 Message Date
Benjamin Vedder a5a8727eb2 Energy counters and timer update change 2014-10-16 09:42:26 +02:00
Benjamin Vedder f2c6b1010d Many commutation fixes 2014-10-07 22:44:44 +02:00
Benjamin Vedder 10bbe73206 Global timeout implementation 2014-09-20 13:41:18 +02:00
Benjamin Vedder d6beda7b47 Complete servo-decoding rewrite, common command module, full access to everything over uart, more ppm options 2014-09-20 03:22:38 +02:00
Benjamin Vedder 2e723ece6f App configuration, eeprom emu fix, reboot command 2014-09-18 23:00:14 +02:00
Benjamin Vedder e4c7fca84d Tachometer improvement and rpm-dep bug fix 2014-09-16 10:44:56 +02:00
Benjamin Vedder fd83286cd6 Parameter detection command and RC-car fix 2014-09-15 22:44:39 +02:00
Benjamin Vedder 58889d6543 Hall sensor fixes and sample send delay removal after fixing a bldc_tool problem 2014-09-15 20:48:46 +02:00
Benjamin Vedder 1f1a8af1d7 Full runtime configuration support with flash storage 2014-09-15 02:39:58 +02:00
Benjamin Vedder 2cc53de346 Major USB communication protocol re-write and beginning runtime motor parameter configuration 2014-09-14 23:08:22 +02:00
Benjamin Vedder bb2c313893 Motor parameter fixes and simplification 2014-09-13 10:46:46 +02:00
Benjamin Vedder e3bbc7d088 Delay-based commutation option and a terminal cmd to measure motor parameters 2014-09-12 23:37:33 +02:00
Benjamin Vedder b6d957acf6 Timer struct init fix 2014-09-12 15:52:16 +02:00
Benjamin Vedder 452b8e9506 Timer synchronization from cyril; clearer and safer timer register updates 2014-09-12 13:03:34 +02:00
Benjamin Vedder 3b3c26c832 Timer struct read lock 2014-08-30 06:21:39 +02:00
Benjamin Vedder 41d2043b22 Added a system locking wrapper with a counter that potentially fixes possible glitches 2014-08-30 06:00:48 +02:00
Benjamin Vedder a0024affd4 Some longboard updates and a timer struct write move 2014-08-30 02:02:32 +02:00
Benjamin Vedder 02487c8f73 Minor startup improvements 2014-08-17 15:55:59 +02:00
Benjamin Vedder 096a7a3b01 Added another auto-commutation as this should be more correct 2014-08-17 13:32:34 +02:00
Benjamin Vedder f3ab4e5926 Some fixes 2014-08-16 21:55:47 +02:00
Benjamin Vedder 51f65fb7c6 New motor configurations 2014-08-15 23:14:21 +02:00
Benjamin Vedder edaf1ca02e Updated the equations and parameters for the flux integrator 2014-08-11 22:38:50 +02:00
Benjamin Vedder e24b555dea Some fixes 2014-08-10 22:48:31 +02:00
Benjamin Vedder 4609f015c6 More startup improvements 2014-08-08 18:40:27 +02:00
Benjamin Vedder 5ca633ada5 Put some startup fixes back 2014-08-08 18:27:47 +02:00
Benjamin Vedder ae62f76753 More timer synchronization updates 2014-08-07 20:18:29 +02:00
Benjamin Vedder 7b7db67506 Some flux integrator fixes and current gain adjustment 2014-08-07 19:52:07 +02:00
Benjamin Vedder d87247bfee Timer sync updates 2014-08-06 22:26:53 +02:00
Benjamin Vedder df2e58303e Current control and current limit updates 2014-08-06 18:44:15 +02:00
Benjamin Vedder 567dd12e36 Use the unfiltered current for the fast current limits 2014-08-06 00:52:56 +02:00
Benjamin Vedder b24da3b710 Send the time axis to the Qt program for plots as well 2014-08-05 22:24:13 +02:00
Benjamin Vedder 0402f69d1f Startup boost fix 2014-08-03 18:23:18 +02:00
Benjamin Vedder 08a25a3b48 Some small fixes 2014-08-02 14:07:56 +02:00
Benjamin Vedder 7051ccd557 RPM calculation and longboard app updates 2014-08-01 15:43:36 +02:00
Benjamin Vedder 8f79c061aa Better startup in general and smooth RPM limit for the longboard 2014-07-30 12:48:40 +02:00
Benjamin Vedder 004b360cc7 RPM limit fix 2014-07-28 10:51:44 +02:00
Benjamin Vedder 8627d1c8d1 Lots of updates and fixes after one week of testing on an electric longboard 2014-07-27 19:40:38 +02:00
Benjamin Vedder 0a02f2e017 Added an uart communication application and extended the packet handler 2014-07-19 11:41:16 +02:00
Benjamin Vedder de123c31a8 Added missing files 2014-06-30 09:50:05 +02:00
Benjamin Vedder 5817eda397 Removed the confusing offsets aroung the minimum duty cycle and put all comparisons properly instead 2014-06-29 14:43:24 +02:00
Benjamin Vedder 1b4feb77ca Some hall sensor fixes 2014-06-29 14:23:39 +02:00
R.E. Wolff d8c2e24265 fix for weird hall-sensor-configurations that don't have 000 and 111 as illegal 2014-06-28 20:23:33 +02:00
R.E. Wolff 2468cd0720 cleanup/speed improvement of hall sensor to state conversion. No functionality change. 2014-06-28 19:35:11 +02:00
R.E. Wolff 679739b9c6 moved dc calibration to separate function. 2014-06-28 17:53:03 +02:00
R.E. Wolff 7be5693524 reduced a few lines to be clearer 2014-06-28 17:41:41 +02:00
Benjamin Vedder a54a79a4d4 Removed some hard-coded parameters 2014-06-26 19:41:57 +02:00
Benjamin Vedder 22b900995c More RPM limit fixes 2014-06-13 14:35:34 +02:00
Benjamin Vedder da23d6274f RPM limit by negative torque option 2014-06-09 12:35:50 +02:00
Benjamin Vedder ff7621768e Sten updates 2014-06-07 21:11:02 +02:00
Benjamin Vedder 0500c6cda5 PID controller and rc car app updates 2014-05-26 19:29:51 +02:00
Benjamin Vedder 1f55fe377a Current control improvements 2014-05-10 10:21:47 +02:00
Benjamin Vedder c525ce4671 Some refactoring and a fix 2014-05-09 12:45:11 +02:00
Benjamin Vedder 0bfe9bce9a Watchdog, a bugfix and current control improvements 2014-05-08 23:44:27 +02:00
Benjamin Vedder 9b9cf5f875 Many important bug fixes 2014-05-05 20:39:25 +02:00
Sven dd864e0cc3 A RCCAR bug fix 2014-05-04 16:05:10 +02:00
Sven 3a199fa883 Fixed braking 2014-05-01 21:20:53 +02:00
Benjamin Vedder 5c6d7911f6 Inductace-detection updates 2014-04-21 16:17:39 +02:00
Benjamin Vedder 6b280af719 Added missing files 2014-04-14 07:10:01 +02:00
Benjamin Vedder 68a16cfc97 Ramping and sampling changes again 2014-04-13 23:15:53 +02:00
Benjamin Vedder 92833e2fae Typo fix 2014-04-12 22:02:22 +02:00
Benjamin Vedder 55dcf4bfbb Refactoring, braking features and some bug fixes 2014-04-12 21:59:33 +02:00
Benjamin Vedder 4817ad48c5 Refactoring and one parameter removal 2014-04-05 23:27:51 +02:00
Benjamin Vedder a89b2cdc2a More soft protection settings and some refactoring 2014-04-04 23:19:11 +02:00
Benjamin Vedder 2bf95ae27f Servo input updates and RPM limits 2014-04-02 20:23:27 +02:00
Benjamin Vedder b6f905b28b Fixes and timer update optimization 2014-04-02 15:44:15 +02:00
Benjamin Vedder cfbc6ae583 Some documentation and fixes 2014-04-02 11:54:21 +02:00
Benjamin Vedder 0ba8e01a9e Timer register update synchronization 2014-04-01 19:26:46 +02:00
Benjamin Vedder d3e4f38fb3 The first implementation of current control 2014-03-31 00:51:59 +02:00
Benjamin Vedder f9cecb1244 More ADC sampling changes and a ramping change 2014-03-30 20:04:35 +02:00
Benjamin Vedder a2cc6f18b5 ADC sampling changes 2014-03-30 14:12:27 +02:00
Benjamin Vedder 80b0b17c59 Bug fixes 2014-03-30 01:25:26 +01:00
Benjamin Vedder 17d26077fb Direction tracking and new terminal commands 2014-03-30 00:57:22 +01:00
Benjamin Vedder 76f14fe75c Made some calculations work better with adaptive switching frequency 2014-03-29 22:28:57 +01:00
Benjamin Vedder f2bfc1bcc3 Duty cycle tracking 2014-03-29 13:15:09 +01:00
Benjamin Vedder bebf0a6517 Small cleanup 2014-03-25 15:29:15 +01:00
Benjamin Vedder 82c9ed1564 Fault terminal command 2014-03-23 22:31:57 +01:00
Benjamin Vedder 422a4053de More tweaks 2014-03-21 20:15:44 +01:00
Benjamin Vedder a1e5a3ca7c Small update 2014-03-21 17:44:41 +01:00
Benjamin Vedder 8636847610 Current calculation fix 2014-03-21 16:13:50 +01:00
Benjamin Vedder 925f72d737 Removed unused sine table generation 2014-03-21 15:45:37 +01:00
Benjamin Vedder d99f3d4581 Some protection features 2014-03-21 15:40:05 +01:00
Benjamin Vedder 74eaa687c8 Another tweak for the sensorless upstart 2014-03-21 00:00:00 +01:00
Benjamin Vedder 9d14ce95ee Removed a lot of startup code that actually made things worse 2014-03-20 22:07:46 +01:00
Benjamin Vedder 42d17de4fd Simplified part of the algorithm 2014-03-17 15:54:40 +01:00
Benjamin Vedder b79374e59f RPM-based phase advance and adaptive ramping 2014-03-16 16:09:23 +01:00
Benjamin Vedder ff80b6bee5 Adaptive switching frequency and some bug fixes 2014-03-15 22:32:00 +01:00
Benjamin Vedder b635242ea6 Rotor position sensing updates 2014-03-13 15:28:56 +01:00
Benjamin Vedder c54438f146 ADC initialization fix 2014-02-16 22:42:55 +01:00
Benjamin Vedder ddc98ac4ef ADC sampling fix 2014-02-15 23:36:50 +01:00
Benjamin Vedder 4b01166821 Proper start in the reverse direction and detecting PID bug fix 2014-02-13 23:07:06 +01:00
Benjamin Vedder 9da8785080 Ramping bug fixes 2014-01-23 13:03:57 +01:00
Benjamin Vedder 572603516c Made the ramping bi-directional and set the default flux integrator limit lower to work with more motors by default 2014-01-18 22:10:10 +01:00
Benjamin Vedder 85bdada163 Current sampling fix 2014-01-12 23:07:35 +01:00
Benjamin Vedder eaebf6148a first commit 2014-01-09 15:20:26 +01:00