Commit Graph

29 Commits

Author SHA1 Message Date
interfisch ba20c044b1 separate ctrl typ sel 2020-06-07 01:33:48 +02:00
interfisch 3a71408329 change bobbycar back to voltage mode 2020-06-01 16:20:51 +02:00
interfisch e2a158e872 change timeout to 15min for bobbycar controller to timeout first 2020-04-19 20:59:30 +02:00
interfisch b9bf849330 optimum resolution for current serialfeedback 2020-02-02 18:36:37 +01:00
interfisch fc5f5a26ca feedback struct first left, seconds value right 2020-02-02 14:42:56 +01:00
interfisch b1e6d9e995 flash firmware to both bobbycar escs 2019-12-29 01:08:46 +01:00
interfisch 094cb5ecb3 move bat_cells to defines 2019-12-29 00:36:44 +01:00
interfisch d62793f9a2 change hoverbrett to voltage mode 2019-12-28 14:19:44 +01:00
interfisch 209f89e727 add hoverbrett define for calibration and control defines 2019-12-28 14:03:02 +01:00
interfisch 7c76c9f839 Merge master into bobbycar for working foc 2019-12-13 22:04:59 +01:00
interfisch b7b0cf4e63 enabled field weakening 2019-12-13 21:54:04 +01:00
interfisch b948a1b5b6 merge changes from emanuelferu (foc calculation improvement) 2019-12-13 21:03:16 +01:00
EmanuelFeru 31d42b4a17 Major improvements
- reduced FOC computational complexity by up to 20%, from 85% (old) to 65% (new)
- updated Field Weakening by allowing more freedom set-up: field weakening blended in the input fully, partially blended, or fully outside the input range
- major improvemets on current and speed limitations. It allows seemless limitation protection -> very happy with the result
2019-12-12 23:44:33 +01:00
interfisch 9fb4b7a8d5 finish calibration for front hoverboard pcb 2019-12-11 00:18:17 +01:00
interfisch 794edd5169 calibrate rear (blue) pcb, temp and voltage 2019-12-10 23:44:35 +01:00
interfisch f302ff8041 change back to HAL_Delay 2019-12-06 22:08:17 +01:00
interfisch 2e28a807ea implement suggested bugfix for main loop delay (does not work) 2019-12-06 22:07:06 +01:00
interfisch 4c16b2ab8e disable field weakening 2019-12-03 22:53:37 +01:00
interfisch 5de1169cef change control type and field weakening 2019-12-03 22:21:47 +01:00
interfisch 7e670e06d2 changes for independant left and right speed serial control 2019-11-30 21:42:32 +01:00
EmanuelFeru 6c8b7f001d Added Sinusoidal Control Type
Sinusoidal Control Type is now available is this branch. To select it go in config.h and change CTRL_TYP_SEL to 1. By default FOC control type is selcted.
Note: SPEED and TORQUE modes are not available for Sinusoidal control type.
2019-11-30 11:30:12 +01:00
EmanuelFeru 5d195696a2 Implemented reliable Serial Rx/Tx
► Reliable Serial Communication implemented featuring:
- start frame
- checksum
- out-of-sync handling
- timeout and disconnected line detection
► Arduino example code added
► Fixed ConsoleLog Item #5
2019-11-29 17:31:53 +01:00
EmanuelFeru 62873aad57 PI controller update and fixes
Major:
• all PI controllers with Back-calculation replaced with PI controllers with Clamping to reduce the number of parameters and simplify calculations

Minor:
• fixed the ADC calibration for potetiometer input when ADCx_MIN > 0
• fixed bug: small shock at initialization when current limit I_MOT_MAX is set very small e.g. 1 A
2019-10-31 22:07:52 +01:00
EmanuelFeru 1376793710 Improvements and Issues implementation
Major:
- Issue #3: added raw ADC1, ADC2 values to the setScopeChannel
- Issue #4: added functionality for joystick control. Middle resting potis are now supported (by default it is enabled)
- Issue #6: implemented that board does not power-off after a software reset due to flashing
- added Rate constraints for Input target for smoother response

Minor:
- added 2 beep sound when motors get enabled
- minor bugfixes
2019-10-27 18:21:04 +01:00
EmanuelFeru 1cc8b3475f Visual updates 2019-10-22 21:45:47 +02:00
EmanuelFeru af14b3c4b1 Improved Field Weakening
The performance of the Field Weakening is improved by reducing noise at higher speeds.
2019-10-21 17:51:09 +02:00
EmanuelFeru 8771742558 Floating-point converted to fixed-point
The follwing were converted to fixed-point
- battery voltage
- board temperature
- filters for steer and speed
- mixer calculation

Starting from this moment, the firmware is floating point free, meaning it runs more efficiently.
2019-10-20 13:31:47 +02:00
EmanuelFeru f6fc825e5f DC Link converted to fixed-point 2019-10-12 19:51:31 +02:00
EmanuelFeru 5b0b6fecf2 Initial commit 2019-10-06 15:09:15 +02:00