Commit Graph

703 Commits

Author SHA1 Message Date
Jeffrey M. Friesen acfc93e693 Patched some weird behavior with motor temp on stormcore and added #define for filter constant
Was seeing a lot of coupled noise on stormcore with phase currents so I turned up the LPF on the motor temp sensor. I think it might be a good idea to turn up that LPF generally since motor temp is generally slow to change anyways.

Also found a problem in the #define for motor temp 2 in my header file. Fixed it.
2020-04-14 14:05:47 -07:00
Jeffrey M. Friesen 6e83fd3408 Added gentle li-ion curve mapping
Should provide a slightly more accurate estimate of the remaining battery, I fit a fifth order polynomial to a discharge graph of a samsung 30q cell.

Technically the watt hours left should be integrated across this curve instead of using the average remaining voltage but maybe the combination of both provides a good midway estimate between the actual curve and a line since all cells are slightly different.
2020-04-14 09:12:57 -07:00
Benjamin Vedder ccb2fd3f7f Merge branch 'master' into dev_fw_5_00 2020-04-10 12:34:22 +02:00
Benjamin Vedder e2d7efeb17 Fixed COMM_SET_CAN_MODE command 2020-04-10 12:33:46 +02:00
Jeffrey M. Friesen b02a62acde Merge remote-tracking branch 'upstream/dev_fw_5_00' into dev_fw_5_00 2020-04-09 14:20:23 -07:00
Jeffrey M. Friesen f9accd76e9 change HW limits 2020-04-09 14:20:12 -07:00
Benjamin Vedder df0b6dce31 Disable abs max overcurrent fault on unity 2020-04-09 23:16:26 +02:00
Benjamin Vedder 8a83cfc48c Updated changelog 2020-04-09 22:50:37 +02:00
Benjamin Vedder 3ab8002fa4 Motor temperature filtering bug fix 2020-04-09 22:33:20 +02:00
Benjamin Vedder 0e6f8dd567 Change back motor thread after foc_sensors_detect_apply terminal command 2020-04-09 09:27:43 +02:00
Benjamin Vedder 72d0ae2e69
Merge pull request #152 from Jfriesen222/dev_fw_5_00
Dev fw 5 00
2020-04-09 09:21:17 +02:00
Jeffrey M. Friesen 58f07b4e87 removed redundant thread switch 2020-04-08 11:08:26 -07:00
Jeffrey M. Friesen d6cb5be5b9 Merge remote-tracking branch 'upstream/dev_fw_5_00' into dev_fw_5_00 2020-04-08 10:45:04 -07:00
Benjamin Vedder ca05b60802 Fixed inductance measurement scaling, decreased observer gain scaling 2020-04-08 11:05:58 +02:00
Benjamin Vedder 282b40cbd5 Select motor in fault thread 2020-04-08 09:16:31 +02:00
Jeffrey M. Friesen 2b13131a44 Correctly log motor fault data and iterate beta version number 2020-04-06 13:52:04 -07:00
Jeffrey M. Friesen c5ad718e17 Merge remote-tracking branch 'upstream/dev_fw_5_00' into dev_fw_5_00 2020-04-06 11:22:27 -07:00
Benjamin Vedder 8ebeece3f7 Merge branch 'master' into dev_fw_5_00 2020-04-06 13:09:41 +02:00
Benjamin Vedder bb254fb11c Fixed 75/300 R3 hwconf 2020-04-06 13:09:09 +02:00
Jeffrey M. Friesen 1b67dc2666 Refactored name of is_test_build, also added dual stuff to foc_detect_apply_all_can 2020-04-05 12:28:08 -07:00
Jeffrey M. Friesen 30f3d8e455 Merge remote-tracking branch 'upstream/dev_fw_5_00' into dev_fw_5_00 2020-04-05 12:04:15 -07:00
Jeffrey M. Friesen 0bb5b2d99c Cleaned up detect_apply_all terminal command for dual hardware 2020-04-05 12:04:04 -07:00
Benjamin Vedder 2f19819d27 Fixed conflicts with master merge 2020-04-04 22:35:29 +02:00
Benjamin Vedder 76fd7a3917 Added COMM_SET_CAN_MODE and added support for HW75_300_R3 2020-04-04 22:28:41 +02:00
Benjamin Vedder ef37c70911 Fixed new bug in previous commit... 2020-04-04 01:02:53 +02:00
Benjamin Vedder 09dc8ce384 Fixed resistance measurement current ramping bug 2020-04-04 00:58:42 +02:00
Benjamin Vedder a48ab38f24 Added comment about plot offsets 2020-04-03 23:31:12 +02:00
Benjamin Vedder f9bbb3c0e6 Updated hall_analyze deviation calculation 2020-04-03 23:26:14 +02:00
Benjamin Vedder 1016ab076b Added hall_analyze terminal command 2020-04-03 22:57:43 +02:00
Benjamin Vedder 88d74ae0b6 Added mutex to DRV SPI driver, moved fault stop to thread, smooth current ramping for sensor and flux linkage detection 2020-04-03 20:12:12 +02:00
Benjamin Vedder c0f75f14ac Current ramping during resistance measurement 2020-04-02 20:43:11 +02:00
Benjamin Vedder 450ed15837 Some Fixes in prevoius PR 2020-04-02 16:26:59 +02:00
Benjamin Vedder ab8b7b042b
Merge pull request #150 from Jfriesen222/dev_fw_5_00
Few small changes and fixed bug with duals
2020-04-02 16:04:37 +02:00
Benjamin Vedder 5ab7bc9ba6
Merge pull request #149 from Kezii/master
fix build on arch
2020-04-02 15:59:13 +02:00
Jeffrey M. Friesen 1d5ce285f6 Fixed build error 2020-04-01 18:24:25 -07:00
Jeffrey M. Friesen f7964e20c2 Few small changes and fixed bug with duals
Added ramping to current measurement to avoid steps during current calibration with an un-tuned current controller.

Added terminal command for mapping to internal nrf pins, useful when you want to erase_mass a locked nrf chip and dont want to cycle between a bunch of windows to scan connect etc.

Made fault led on duals blink if motor 2 is faulting.

Added break on inductance measurement if motor faults.

Added placeholder commands for changing name and pin of BLE module.
2020-04-01 17:58:37 -07:00
Kezi Olio 3dbff533d1 fix build on arch 2020-03-31 16:42:11 +02:00
Benjamin Vedder c408a86b21 Stop on faults for both DRVs on DUAL_PARALLEL hw 2020-03-29 17:24:07 +02:00
Benjamin Vedder 6b3bcca4c1
Merge pull request #143 from powerdesigns/BBSHD-tuning
More bbshd support
2020-03-29 17:12:21 +02:00
Benjamin Vedder dd16ce862d Added HW_DUAL_CONFIG_PARALLEL option 2020-03-29 17:07:31 +02:00
Benjamin Vedder 7ccf626b42 Some updates on PR 2020-03-29 17:00:43 +02:00
Benjamin Vedder 20ccc7a955
Merge pull request #147 from Jfriesen222/dev_fw_5_00
Dev fw 5 00
2020-03-29 16:34:36 +02:00
Jeffrey M. Friesen a1f00d5deb Merge branch 'dev_fw_5_00' of https://github.com/Jfriesen222/bldc into dev_fw_5_00 2020-03-28 11:22:24 -07:00
Jeffrey M. Friesen 47813b1ab6 One motor Double Current Drive on Dual 2020-03-28 11:21:45 -07:00
Marcos Chaparro c821710d49 BBSHD: Add DAC support
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-03-26 13:37:11 -03:00
Marcos Chaparro 278f767854 BBSHD: monitor 12V rail
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-03-26 11:04:37 -03:00
Marcos Chaparro cf017cbcc7 BBSHD: Temp, current sense and deadtime tuning
Set temperature sensors coefficients, more current sense sensitivity
and tighter deadtime.

Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-03-26 10:59:46 -03:00
Benjamin Vedder 76c7575bb9 Fixed merge conflict 2020-03-26 13:52:40 +01:00
Benjamin Vedder 731ac70e55 Fixed typo in previous commit 2020-03-26 13:51:20 +01:00
Benjamin Vedder 3a03286f00 Fixed merge conflict 2020-03-26 13:47:48 +01:00