Commit Graph

282 Commits

Author SHA1 Message Date
Benjamin Vedder 73c32d7962 Removed GPDRIVE 2024-04-01 00:09:32 +02:00
Benjamin Vedder 5fd5dfe086 Made HFI error truncation configurable 2024-02-23 08:13:56 +01:00
Benjamin Vedder da955e42c4 Added BMS pressure sensor support 2024-01-12 11:53:47 +01:00
Dado Mista dcbac81915 COMM_SHUTDOWN command for shutdown/restart
cmd[0] = [force] // 0=normal, 1=force (allow while motor is spinning)
cmd[1] = [restart] // 0=shutdown, 1=restart

Obviously, shutdown only works for hardware with shutdown support

Signed-off-by: Dado Mista <dadomista@gmail.com>
2024-01-03 22:14:38 -08:00
Benjamin Vedder 79c86db6e6 New current sampling modes, FOC interpolation support 2023-09-23 14:45:00 +02:00
Benjamin Vedder fd80107522 More hall sensor tweaks 2023-08-08 19:56:48 +02:00
Benjamin Vedder 05de2f6108 Added remote message support 2023-08-07 22:07:08 +02:00
Benjamin Vedder 9eb978ef15 Added option to select PID speed controller source, some cleanup 2023-07-01 14:51:08 +02:00
Benjamin Vedder e3d7e8624c Added filter for the mapped input current limit 2023-06-23 11:10:37 +02:00
Benjamin Vedder ac7df4a7f6 Removed app_balance in favor of the balance package 2023-06-19 13:58:22 +02:00
Benjamin Vedder f674aaaa2b
Merge pull request #631 from NewHavenRobotics/e7/strong-typed-id
Strongly-Typed COMM and CAN IDs
2023-06-08 04:40:21 +02:00
Benjamin Vedder 7487e5fd44 Added setting to limit input current with field weakening, added timeout to lbm app adc detach 2023-06-08 04:31:36 +02:00
Electro707 ef1998a039
Change COMM and CAN command IDs to strongly typed 2023-05-23 15:10:19 +01:00
Marcos Chaparro f061afa554 Add regen cutoff to prevent overcharging the battery during braking
This change helps ensure that the battery remains in good condition, prolongs its overall lifespan and avoids hazardous scenarios of overcharge.
A soft cutoff for the regenerative braking is implemented, in which start and end thresholds should be set in VESC Tool. The end threshold should be set such that the cells don't exceed 4.2v in a typical Li-Ion battery.

Signed-off-by: Marcos Chaparro <marcos@lunacycle.com>
2023-03-30 09:59:33 -03:00
Benjamin Vedder 514ed3727d Moved to 6.05 beta, attempt at smooth hall sensor transition 2023-03-20 22:10:01 +01:00
Thomas Solatges 4ed731479c WIP adding sin/cos phase error compensation 2022-12-01 15:50:27 +01:00
Benjamin Vedder 50aa16d200 Added configurable battery level filter 2022-11-24 10:15:36 +01:00
Benjamin Vedder 8a7f5c7b50 Rearranged encoder settings, added custom encoder support 2022-11-19 16:23:07 +01:00
Benjamin Vedder b8e8952e32 Moved ahrs-parameters into attitude info, added ahrs-functions and imu callback to vesc_if 2022-11-19 00:09:54 +01:00
Benjamin Vedder eee535960b Use amplitude instead of gain setting for sin/cos encoder 2022-11-18 09:55:40 +01:00
Benjamin Vedder 7ea099732c Added option to disable motor temp sensor and made it possible to read the temperature adc input from lisp 2022-11-17 21:17:40 +01:00
Teslafly c234b5c94b fix tle5012 typo 2022-11-17 01:43:33 -06:00
Teslafly 28260c6cfc Add tle5012 encoder using software ssc interface 2022-11-15 13:34:30 -06:00
Mitch Lustig 00c03fa5bb Add Gyro filter 2022-11-15 01:47:52 -08:00
Benjamin Vedder 696acb581a 64-bit logging support 2022-11-10 21:56:29 +01:00
Euan d4ffa77413 Update to support TeamTriforceUK hardware
Add 25MHz external clock option
Add Low voltage output fault handling
Add support for A50S High gain (HG) versions
Add support for A200S V3 and V4.
Move A200S V2 to its own folder.
2022-11-08 23:43:05 +00:00
Benjamin Vedder ed4c54059f Start of GNSS-support 2022-11-08 17:47:53 +01:00
Benjamin Vedder ff427594e9 Added COMM_SET_APPCONF_NO_STORE and only restart app and IMU when needed 2022-10-30 14:48:22 +01:00
Benjamin Vedder 70c58f2b7c First CAN log support, added foc voltage and current extensions 2022-10-23 18:35:26 +02:00
Benjamin Vedder da3e8cc33a Added app-disable-output, updated documentation 2022-10-17 13:59:40 +02:00
Mitch Lustig dd7e5f70b5 Split accel filter by axis 2022-10-09 10:27:04 -07:00
Benjamin Vedder a219498055 Added CAN_MODE_UNUSED, added more settings to native lib 2022-10-07 17:02:02 +02:00
Vincent Manoukian 413ccdbff1 First impl of bissc.
Update the motor signature for VescTools.
2022-10-02 16:33:17 +02:00
Mitch Lustig 1c4d4a88c1 Add accel filter 2022-09-27 21:30:15 -07:00
Benjamin Vedder 35d2dfcff2 App adc button bitfield and cc disable support 2022-09-27 22:33:40 +02:00
Benjamin Vedder 114fc7aa53 Added PT1000 temperature sensor support 2022-09-23 11:26:31 +02:00
Benjamin Vedder 765ed4d3d4 Added BMS limit mode 2022-09-19 23:47:20 +02:00
Benjamin Vedder e9386cb339
Merge pull request #526 from Mitchlol/balance_iterm_limit
Balance App: Add I-Term Limiter, Remove D-Term Biquad Filters
2022-09-18 22:57:15 +02:00
Benjamin Vedder ff9679d336 Lisp code streaming, more native functions and checks, custom config support, moved global send buffer to mempools 2022-09-18 22:47:50 +02:00
Mitch Lustig 2127da0c0f Balance App: Add I-Term Limiter, Remove D-Term Biquad Filters 2022-09-05 18:44:14 -07:00
Benjamin Vedder 324b3a90ba Added uavcan status current mode 2022-09-03 13:38:12 +02:00
Benjamin Vedder 352c6eb86f BMS support for more temp sensors 2022-09-03 09:30:28 +02:00
Zach O'Brien 9c7b0dae2c Adding support for the AS5x47U encoder. 2022-07-18 14:25:03 -06:00
Dado Mista 20796a66c1 Balance app: dual adc switch (single combined switch) support
Support for combining both adc switches into a single one.

Signed-off-by: Dado Mista <dadomista@gmail.com>
2022-07-16 13:54:47 -07:00
Benjamin Vedder e2b2f91f25 Added saturation compensation modes 2022-05-23 14:42:42 +02:00
Benjamin Vedder 09266def29 Added start_curr_dec parameter and decreased mcconf serialization size 2022-05-22 10:33:33 +02:00
Benjamin Vedder e025e177e0 Observers, observers, observers 2022-05-21 22:54:12 +02:00
Benjamin Vedder 4a8bb6a399 Added option to disable phase filter fault code 2022-05-19 03:12:07 +02:00
Mitch Lustig cd1e021c4d Merge branch 'master' into balanceapp_cascading_pid 2022-05-07 12:14:59 -07:00
Benjamin Vedder d5619f98f1 Added optional fault info string and implemented it for the phase filter fault 2022-05-06 00:49:35 +02:00