Commit Graph

79 Commits

Author SHA1 Message Date
Benjamin Vedder 57c5d04214 Added l_duty_start and set correct motor in mcinterface_timer 2020-04-21 19:58:12 +02:00
Benjamin Vedder 51f0fcea09 gpdrive fix, observer gain calc updates, added COMM_SET_BATTERY_CUT, added CAN_PACKET_SHUTDOWN, detect all fix 2020-03-20 17:35:25 +01:00
Benjamin Vedder a06f09e7f2 Observer gain scaling update, print correct motor on faults, updated timer terminal command 2020-03-17 09:38:09 +01:00
Benjamin Vedder b6949d60dc FW4.00: HFI and many updates, see changelog 2020-01-28 19:46:19 +01:00
Benjamin Vedder ffbc6eb89b First attempt at HFI 2020-01-20 09:39:33 +01:00
Benjamin Vedder b002e5d78e FW 3.66: Many changes, see changelog 2020-01-12 21:25:21 +01:00
Benjamin Vedder 210ec40d74 PTC motor thermistor support, APP_PPM sleep fix 2019-12-22 21:22:07 +01:00
Marcos Chaparro d80227b9b4 Rename sin/cos m_conf structure fields
Use m_foc prefix so in VESC Tool they are edited in
FOC->Encoder.
Generate confgenerator.c and .h using VESC Tool.

Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-08 21:05:46 -03:00
Marcos Chaparro 153deef9af Add configurable low pass filtering to SinCos encoder analog signals
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-01 08:35:22 -03:00
Marcos Chaparro b155d5219a Basic SinCos encoder support
Reads sine and cosine on ADC_IND_EXT and ADC_IND_EXT2, usually
used for ACCEL and REGEN inputs. Provides offset and gain
compensation and is implemented using floating point math.

Note it includes the full mc_interface.h into encoder.c only
to access the ADC readings, and no filtering is performed on
the signals.

Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-01 08:35:22 -03:00
Benjamin Vedder 01e72eb555 Autogenerated config parsing with signatures, fixed previous PRs 2019-03-01 21:36:58 +01:00
Benjamin Vedder 123bb00ab4 Major 2019 update 2019-02-18 19:30:19 +01:00
Benjamin Vedder a20c35b338 FW 3.39: AUX pin support, some refactoring 2018-07-06 21:20:54 +02:00
Benjamin Vedder 22dc2ce33c FW 3.37: FOC KI temp comp, configurable foc current filter 2018-03-24 22:32:58 +01:00
Benjamin Vedder 6277cf74ca FW 3.31: Acc temp dec option, PID for APP_ADC 2017-10-27 21:29:12 +02:00
Benjamin Vedder 79bfbe6234 FW3.28: dual throttle curves, ntc beta factor config, board file added 2017-09-06 21:13:28 +02:00
Benjamin Vedder f141157358 First official commit after the VESC Project release 2017-09-04 21:12:43 +02:00
Benjamin Vedder bb2bfa3b9c FW 3.9: Final float serialization update, new option to invert motor direction, UUID readout 2016-11-06 18:14:06 +01:00
Benjamin Vedder 5dbc94c525 FW 3.7 2016-11-04 15:18:34 +01:00
Benjamin Vedder ed61c4d332 FW 2.18: Better FOC sensorless startup, app adc safety fix 2016-05-19 19:24:01 +02:00
Benjamin Vedder cb2a205cb8 FW 2.17: as5047 support, change sensor port mode in conf, better encoder detection, FOC ah and wh counter fixes 2016-04-27 15:32:32 +02:00
Benjamin Vedder 08a27cfbbd FW 1.16: Hall sensor position control, brake at 0RPM setpoint in FOC, FOC parameter detection fix 2016-02-24 21:19:44 +01:00
Benjamin Vedder 02f140e335 FW 2.11: Refactoring, dead time comp fix for smoother braking when the speed is zero 2016-01-30 15:57:51 +01:00
Benjamin Vedder e6ea308a48 FW 2.10: FOC hybrid hall sensor support with interpolation 2016-01-27 23:57:23 +01:00
Benjamin Vedder 90986c31de FW 2.9: NRF updates (nunchuk has to be updated too), nunchuk command, small can fix, custom app data command 2016-01-24 13:44:51 +01:00
Benjamin Vedder 42c1b79a08 FW 2.7: Better encoder support, small UART and CAN fixes, NRF commands preparation 2015-12-28 01:50:23 +01:00
Benjamin Vedder d995cf6749 FW 2.6: Slow abs current fix, current limit fix, FOC control CPU resource measurement, current filters, D current injection fix 2015-12-24 00:43:31 +01:00
Benjamin Vedder 2377a45bcb FW 2.5: red LED fix on hw 4.5, updated default PID parameters 2015-12-19 21:24:46 +01:00
Benjamin Vedder ff090fd4e0 FW 2.3: MAJOR UPDATE: FOC!! 2015-12-08 21:01:23 +01:00
Benjamin Vedder 06129bb66c FW 1.13: Hw 4.8 support, new CC implementation for nunchuk, refactoring, custom app and hw config support 2015-09-17 23:24:55 +02:00
Benjamin Vedder 24380c3fc0 New hall sensor implementation with hybrid mode and connection/order auto detection 2015-06-19 23:38:46 +02:00
Benjamin Vedder 87932662b7 Long packet support, configurable min and max duty, longer CAN buffer, default parameter changes, appconf ack fix, refactoring 2015-05-20 16:13:48 +02:00
Benjamin Vedder 607e99d211 Configuration over CAN, first implementation of position control, more configuration options 2015-04-27 00:02:32 +02:00
Benjamin Vedder ace760a4fd Phase advance bug fix and default configuration change 2015-02-24 21:38:53 +01:00
Benjamin Vedder d9c5ed7ac3 Added hw 46 and implemented an I2C reset function 2014-11-23 20:29:36 +01:00
Benjamin Vedder bc0ab63e21 app_sten fix 2014-10-05 16:23:02 +02:00
Benjamin Vedder fd83286cd6 Parameter detection command and RC-car fix 2014-09-15 22:44:39 +02:00
Benjamin Vedder 1f1a8af1d7 Full runtime configuration support with flash storage 2014-09-15 02:39:58 +02:00
Benjamin Vedder 30573073fb Motor parameter updates 2014-09-13 23:05:50 +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 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 f3ab4e5926 Some fixes 2014-08-16 21:55:47 +02:00
Benjamin Vedder d205d2689a Added HDD motor configuration 2014-08-16 16:12:14 +02:00
Benjamin Vedder 51f65fb7c6 New motor configurations 2014-08-15 23:14:21 +02:00
Benjamin Vedder 2c7017c3a3 Voltage terminal command and ebike motor configuration 2014-08-14 00:23:32 +02:00
Benjamin Vedder edaf1ca02e Updated the equations and parameters for the flux integrator 2014-08-11 22:38:50 +02:00
Benjamin Vedder 4609f015c6 More startup improvements 2014-08-08 18:40:27 +02:00
Benjamin Vedder 7b7db67506 Some flux integrator fixes and current gain adjustment 2014-08-07 19:52:07 +02:00