Commit Graph

1096 Commits

Author SHA1 Message Date
Benjamin Vedder 0d6a9824e4 Use fast speed tracker for BEMF decoupling 2021-05-07 09:47:45 +02:00
Benjamin Vedder e9516b2fac Update pointer while waiting in case it changes 2021-05-03 21:19:43 +02:00
Benjamin Vedder 519f68a22f Disable CAN status messages when rate is set to 0 2021-05-03 19:37:49 +02:00
Benjamin Vedder dfe17ac334 Dynamic QML-script write support 2021-05-01 13:28:46 +02:00
Benjamin Vedder 7a0e560e8b Lowpass filter input voltage and battery level 2021-04-27 17:48:15 +02:00
Benjamin Vedder fa3610c8b1 Fixed CAN ping for dual motor hardware 2021-04-27 10:17:41 +02:00
Benjamin Vedder f25144cc30 Removed iterative observer, added p_pid_gain_dec_angle 2021-04-26 23:14:05 +02:00
Benjamin Vedder 99b0cb79d2 Limit hall sensor angle rate of change based on ERPM 2021-04-26 17:57:49 +02:00
Benjamin Vedder 9014bc4f6a Lower phase filter default ERPM 2021-04-26 17:55:13 +02:00
Benjamin Vedder 5767b703b7 Custom UI support 2021-04-24 22:36:00 +02:00
Benjamin Vedder b36a6116e4
Merge pull request #294 from RadinnAB/blackmagic
Blackmagic - Routed nRF reset & halt  to cortexm functions
2021-04-24 12:30:24 +02:00
rodale75 b01930d586 commands: Added COMM_BM_HALT_REQ
Command added for being able to halt the CPU while connected via
blackmagic probe.
2021-04-23 15:58:24 +02:00
rodale75 1713eb4215 bm: Exposed cortexm-functions to be used for nRF-targets.
Exposed cortexm_reset & cortexm_halt_request in order to be populated as
operators for nRF-targets. Also added the already exposed cortexm_halt_resume
functon to nRF. By this it will be possible to handle such blackmagic probe
commands towards connected nRF-targets.
2021-04-23 15:50:31 +02:00
Benjamin Vedder 66fb7caa50
Merge pull request #293 from rpasichnyk/dev_fw_5_03
Prevent CAN ID collision with DieBieMS / FlexiBMS
2021-04-21 09:10:23 +02:00
rpasichnyk c1ad9b2b4f Tabs vs spaces and some formatting 2021-04-21 09:03:08 +02:00
rpasichnyk 0d2610c9bc Prevent CAN ID collision with DieBieMS / FlexiBMS 2021-04-21 08:55:52 +02:00
Benjamin Vedder 36d32ed96d
Merge pull request #291 from Mitchlol/balance_4.2
Balance 4.2
2021-04-20 15:53:12 +02:00
Benjamin Vedder 80ba514187
Merge pull request #292 from powerdesigns/hw_brake_override
app adc: allow hardwares to override the brake input
2021-04-20 15:52:42 +02:00
Marcos Chaparro d8d2088137 app adc: allow hardwares to override the brake input
With this hook the brake can be overriden from the hw_*.c file without
polluting the app configuration UI.

Some examples of commanded braking:
* Tilt/crash sensor
* Gear shift sensor
* Emergency stop
* Kill switch

Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2021-04-19 11:33:57 -03:00
Mitch Lustig 187621d530 Add confgenerator 2021-04-17 18:20:51 -07:00
Mitch Lustig c9ed013f13 Fix low speed Full switch faults, Fix Booster, Improve turn/torque tilts 2021-04-17 18:05:24 -07:00
Mitch Lustig c30a4fe0dc Merge remote-tracking branch 'vedderb/dev_fw_5_03' into balance_4.2 2021-04-17 17:07:43 -07:00
Benjamin Vedder 14b25e9aa4 Added foc_fw_q_current_factor 2021-04-15 10:04:28 +02:00
Benjamin Vedder ac360ae7f6 Give D-axis current priority when limiting current, added mcpwm_foc_set_current_off_delay 2021-04-14 22:29:50 +02:00
Benjamin Vedder 89d854f4c4 Added Finns app 2021-04-12 19:46:37 +02:00
Benjamin Vedder 998bc17ba7 Cleanup 2021-04-12 09:48:29 +02:00
Benjamin Vedder ca8e7b4f05
Merge pull request #271 from CTSchorsch/dev_05_03
- Add driver for SX1278 LoRa boards, eg. HopeRF RFM95W (driver by Woj…
2021-04-12 09:35:38 +02:00
Benjamin Vedder e784f9d848 Merge branch 'master' into dev_fw_5_03 2021-04-12 09:24:29 +02:00
Benjamin Vedder 31a313129d
Merge pull request #285 from supercrazysam/supercrazysam-readme-gcc-update
Added installation guide for recommended stable gcc version
2021-04-12 09:23:45 +02:00
Sam Shum 9f4e7150c9
Update README.md 2021-04-12 00:01:30 -04:00
CTSchorsch 3d8243fa1b connect lora to packet/command structure
test with COMM_GET_VALUE ok
2021-04-11 20:22:54 +02:00
Benjamin Vedder 3a9d3bfe10 Remove old define 2021-04-11 19:44:31 +02:00
Benjamin Vedder 3d57ed2f06 Cleanup 2021-04-11 19:38:55 +02:00
Benjamin Vedder 9a00234346
Merge pull request #282 from powerdesigns/ipm_bemf_decoupling
bemf_decoupling: improved math for IPM motors.
2021-04-11 19:36:35 +02:00
Benjamin Vedder 55dba9a79d Made odometer persist after firmware updates, added hw runtime counter 2021-04-11 19:36:11 +02:00
Benjamin Vedder d35e4940e3
Merge pull request #283 from powerdesigns/speed_pid_loop_antiwindup
speed_pid: improved integral term antiwindup.
2021-04-11 17:15:47 +02:00
Maximiliano Cordoba c7819a8722 speed_pid: improved integral term antiwindup.
-we feedback the output saturation to the integral term to improve the antiwindup mechanism.

Signed-off-by: Maximiliano Cordoba <mcordoba@powerdesigns.ca>
2021-04-11 11:59:22 -03:00
Maximiliano Cordoba fbd35f15ad bemf_decoupling: improved math for IPM motors.
-In IPM motors (ld_lq_diff > 0) Ld affects in the Q axis, and Lq affects in the D axis.

Signed-off-by: Maximiliano Cordoba <mcordoba@powerdesigns.ca>
2021-04-11 10:51:09 -03:00
CTSchorsch aa4e0567a7 git trouble 2021-04-11 12:18:54 +02:00
Benjamin Vedder 1469e2568d Field weakening updates 2021-04-11 11:31:25 +02:00
CTSchorsch 10fa9f9550 bugfixes 2021-04-11 11:05:41 +02:00
Benjamin Vedder dfc42defb1 Removed unneeded allocation and copy 2021-04-11 09:42:03 +02:00
Benjamin Vedder a1a1d727f9 Merge branch 'RadinnAB-batt_cutoff' into dev_fw_5_03 2021-04-11 09:38:42 +02:00
Benjamin Vedder 9dff7b42c4 Resolved conflict 2021-04-11 09:38:33 +02:00
Benjamin Vedder 350d7aef49
Merge pull request #281 from powerdesigns/current_antiwindup_simplified
mc_pwm_foc: simplified math in current PI antiwindup
2021-04-11 09:33:00 +02:00
Maximiliano Cordoba 31d14e1c4e mc_pwm_foc: simplified math in current PI antiwindup
Signed-off-by: Maximiliano Cordoba <mcordoba@powerdesigns.ca>
2021-04-10 20:02:15 -03:00
Benjamin Vedder b49606be4c Updated changelog and beta number 2021-04-10 16:41:20 +02:00
Benjamin Vedder 1da747e50f Use filtered currents for cross bemf decoupling 2021-04-10 16:31:02 +02:00
Benjamin Vedder b8fa20abde Updated changelog 2021-04-10 11:39:52 +02:00
Benjamin Vedder feb1be5fbd First attempt at field weakening and current controller windup protection improvement 2021-04-10 11:37:35 +02:00