Commit Graph

129 Commits

Author SHA1 Message Date
Benjamin Vedder fcb7e12158 Made servo output a config option 2021-03-31 16:28:46 +02:00
Benjamin Vedder 2133d21fbc Avoid numerical instability when utils_map is used over a range that approaches 0 2021-03-27 11:18:47 +01:00
Benjamin Vedder 3b4e601f61 Offset calibration update 2021-03-22 12:13:19 +01:00
Benjamin Vedder d1a0b87408 Keep old offsets when reading default config 2021-03-13 11:41:01 +01:00
Benjamin Vedder ccfe0de2b5
Merge pull request #260 from powerdesigns/read_only_configs
Allow read-only motor config and app config
2021-02-28 21:32:06 +01:00
Benjamin Vedder 69c6939b15 Added power switch can commands 2021-02-28 20:29:51 +01:00
Marcos Chaparro 471efc2f73 Allow read-only motor config and app config
Defining HW_MCCONF_READ_ONLY and HW_APPCONF_READ_ONLY turns the configs
in read-only mode.

In some applications its better to block the user from playing with
critical settings. With these switches the controller can be flashed
with a hardcoded config that user can only change with a full firmware
update.

Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2021-02-22 20:26:39 -03:00
Benjamin Vedder ecb43e70bb Cleanup 2021-01-13 21:51:55 +01:00
Jeffrey M. Friesen e862f29298 Re-wrote uart driver a bit 2021-01-05 09:39:45 -08:00
Benjamin Vedder 55096f93cc Added UAVCAN raw throttle modes 2020-12-04 17:54:22 +01:00
Benjamin Vedder 242a1924e1 Fixed dual motor CAN regression 2020-12-02 20:56:00 +01:00
Benjamin Vedder e5c5b3e655 Fixed CAN reply mapping problem 2020-11-29 23:26:49 +01:00
Benjamin Vedder 6876ee3243 Fixed second motor ID on setup values too 2020-11-11 11:23:11 +01:00
Benjamin Vedder b5bc9e06b0 Indentation fix 2020-11-11 11:16:34 +01:00
Benjamin Vedder b1117ab3e3
Merge pull request #232 from wunderk1nd-e/comm-get-values-unity-ctrl-id-fix
[COMM_GET_VALUES] Unity should return second motor controller ID if that is the selected thread
2020-11-11 11:13:32 +01:00
Elias Court 338030557d
the unity should return the second motor controller ID if that is the selected thread 2020-11-11 09:57:13 +00:00
Benjamin Vedder 6509065ca2 Added BMS module 2020-10-22 08:32:51 +02:00
Benjamin Vedder cabd83a8a6 Fixed merge conflict 2020-10-09 21:19:16 +02:00
Benjamin Vedder c77f92470b IO board support, initial bms support, more openloop parameters, removed D current injection, added new HWs 2020-10-09 21:08:48 +02:00
Till Rosenband 5d26063152 Store odometer in emulated EEPROM (update at shutdown).
* New "dist" terminal command shows odometer and trip distances.
* Odometer value is sent to UI via COMM_GET_VALUES_SETUP.
* UI can set the odometer via COMM_SET_ODOMETER.
* Unfortunately, the bootloader clears the odometer to 0 when FW is reprogrammed.
2020-10-04 00:33:06 -04:00
Benjamin Vedder 6196805d8c Added CHUK_CTRL_TYPE_CURRENT_BIDIRECTIONAL, some fixes on last PR 2020-05-03 22:35:37 +02:00
Peemouse f6d7ed1fd2 Add COMM_GET_MCCONF_TEMP command 2020-05-01 15:22:09 +02:00
Benjamin Vedder d9fc2fc34c Moved IMU calibration to blocking thread 2020-04-19 10:20:48 +02:00
Mitch Lustig 2c151e9e1a Initial stab complete! 2020-04-18 17:20:31 -07:00
Mitch Lustig 7869b34cf1 Good start on IMU Wizard 2020-04-18 11:51:50 -07:00
Benjamin Vedder d3c8d0a533 Add 1 to UUID for motor2 on dual motor HWs. 2020-04-17 20:07:03 +02:00
Benjamin Vedder 6f7c40b4e1 Improved flux linkage measurement 2020-04-16 09:12:08 +02: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 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
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 450ed15837 Some Fixes in prevoius PR 2020-04-02 16:26:59 +02: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
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
Benjamin Vedder 5e93fa9f81 Fixed warning on previous commit 2020-03-26 13:45:39 +01:00
Benjamin Vedder cf0031ee17 Fixed merge conflicts 2020-03-26 13:37:15 +01:00
Benjamin Vedder 3129420e43 Updated COMM_SET_MCCONF_TEMP to allow setting input current limits 2020-03-26 13:30:53 +01:00
Benjamin Vedder 988dfd4e72 Added new_app_offset to COMM_WRITE_NEW_APP_DATA reply 2020-03-22 18:21:53 +01: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 7391330f4c Added test build flag 2020-03-17 11:46:52 +01:00
Benjamin Vedder 52e17059e5 Major restructuring for dual motor support, and added unity hw files 2020-03-16 18:32:39 +01:00
Mitch Lustig 6d29b6741f Use ADC for switches 2020-02-23 13:34:51 -08:00
Benjamin Vedder 97ef43cff8 Leave debug mode on NRF5x after SWD upload, more TS5700N8501 encoder features, more CAN baud rates 2020-02-01 00:37:25 +01:00
Benjamin Vedder b6949d60dc FW4.00: HFI and many updates, see changelog 2020-01-28 19:46:19 +01:00
Benjamin Vedder ceb8b7bf7d HW60_MK3 support, shutdown fix, added COMM_SET_CURRENT_REL, ramp fix, PPM timeout fix, IRQ prio fix 2019-12-19 16:55:38 +01:00
Benjamin Vedder 23e61925b6 FW upload compression support, TS5700N8501 support 2019-12-05 19:50:17 +01:00
Benjamin Vedder ce31092c1d Merge branch 'master' of https://github.com/vedderb/bldc 2019-09-21 12:50:41 +02:00