Commit Graph

161 Commits

Author SHA1 Message Date
Benjamin Vedder 828cdd92f8 Chuk and PPM config structs, phase advance fixes and implementation for delay comm mode, CAN fixes and status message implementation, multi-esc mode for PPM and Chuk, traction control for PPM and chuk, CAN id config, multi-esc and traction control config, ADC sampling change, hall-sensor read bug fix for HW45+ 2015-02-19 21:20:07 +01:00
Benjamin Vedder b7e5692cc1 Over temp fault code 2015-01-23 00:40:09 +01:00
Benjamin Vedder 3b2703b192 Component values overridable and voltage divider change compensation 2015-01-22 11:48:38 +01:00
Benjamin Vedder d9dcbda9d0 Current samplig change, delay commutation mode fix and detection fix 2015-01-14 19:06:05 +01:00
Benjamin Vedder e5b3a0755e Full brake state change fix 2015-01-09 16:32:22 +01:00
Benjamin Vedder 8dc8ffe2c7 Nunchuk ramping, ws2811 configurable pin (Requieres latest BLDC_Tool) 2014-12-20 12:52:38 +01:00
Benjamin Vedder 434cd04b86 Added max ERPM in CC mode parameter (NOTE: Requires latest BLDC_Tool) 2014-12-13 11:46:26 +01:00
Benjamin Vedder bc4409ba14 Full brake current estimation (NOTE: Extra parameter added, so update BLDC_Tool) 2014-12-13 01:31:54 +01:00
Benjamin Vedder 9ff0f99593 WS2811/WS2812 LED driver to use LEDs for turn and brake lights, etc 2014-12-09 00:11:29 +01:00
Benjamin Vedder a4072fc108 Temperature limit bug fix, removed compilation warnings (requires modifying stm32f4xx.h in chibios) 2014-12-06 23:36:36 +01:00
Benjamin Vedder 42cab4c18d Added voltage to fault log 2014-11-27 20:56:17 +01:00
Benjamin Vedder 33c81db930 Deadband fix, configurable temperature limit 2014-11-25 21:05:46 +01:00
Benjamin Vedder 7c7a315a81 Commutation fixes, timer update change, current measurement fix, fault logging in RAM, current limit fix 2014-10-24 23:04:10 +02:00
Benjamin Vedder 978363ce51 Increased the temperature limit a bit 2014-10-19 22:46:18 +02:00
Benjamin Vedder f7cda79d1b HW45-implementation, temp-protection, nunchuk-fix, i2c-fixes 2014-10-19 19:31:06 +02:00
Benjamin Vedder 81a6d84113 Nunchuk implementation (Nyko Kama tested), mah and wh counting 2014-10-19 01:00:53 +02:00
Benjamin Vedder ce3d1f9596 Currant sampling update, added fault code to mc values command 2014-10-16 17:52:29 +02:00
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