Commit Graph

155 Commits

Author SHA1 Message Date
Benjamin Vedder af55c79a2a Renamed foc_f_sw to foc_f_zv 2022-01-06 20:44:00 +01:00
Benjamin Vedder d30fb57a90 Fixed stat reset, removed stat terminal command 2021-12-01 13:45:48 +01:00
Benjamin Vedder f6e78a09b6 Fixed measured MTPA mode, send ld_lq_diff detection result 2021-11-21 18:17:40 +01:00
Benjamin Vedder 3778dbe2e2 Added support for statistics 2021-11-11 01:08:21 +01:00
Benjamin Vedder f9170e93d0 Added uptime to setupvalues 2021-11-10 15:45:28 +01:00
Benjamin Vedder 8f8d913419 Added raw sample mode 2021-10-18 21:45:47 +02:00
Johan Svard add855f6e6 blackmagic: Add cmd to write to target memory. 2021-10-01 16:29:57 +02:00
Benjamin Vedder 1ab25a47db Added position PID offset support and KD_PROC term 2021-07-11 20:19:26 +02:00
Benjamin Vedder b7a5ff5a1b Check external NRF crc 2021-06-27 13:02:24 +02:00
Benjamin Vedder 75b84f1f2d Added kill switch support 2021-06-13 13:46:27 +02:00
Mitch Lustig d68fc0ff4f Balance: Updates
-Fix D term to use angle rather than error (which includes tilt steps)
-Switch TT to Biquad (Clear z1 z2)
-Split TT Relax speed
-Add Biquad to D term
-Add console command to graph specific variables
-Add console command to dump realtime data from specific variables
2021-06-01 03:20:00 -07:00
Benjamin Vedder e66552c83f Added io-board commands 2021-05-11 14:03:22 +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 5767b703b7 Custom UI support 2021-04-24 22:36:00 +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
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 55dba9a79d Made odometer persist after firmware updates, added hw runtime counter 2021-04-11 19:36:11 +02:00
Benjamin Vedder dfc42defb1 Removed unneeded allocation and copy 2021-04-11 09:42:03 +02:00
Benjamin Vedder 9dff7b42c4 Resolved conflict 2021-04-11 09:38:33 +02:00
dnordahl83 33da036106 commands: Added COMM_GET_BATTERY_CUT.
This command returns a buffer with the following parameters:
[type, scale, size]

 * cut off start [float, 1e3, 4b]
 * cut off end [float, 1e3, 4b]
2021-04-09 14:31:23 +02:00
CTSchorsch 4f048442d0 cleanup spaces 2021-03-31 19:46:31 +02:00
Benjamin Vedder fcb7e12158 Made servo output a config option 2021-03-31 16:28:46 +02:00
CTSchorsch 755ff98ec9 fix spaces, delete lines and default config 2021-03-31 14:10:27 +02:00
CTSchorsch 331494291d - move lora files from hwconf/ to lora/
- modify Makefile and add lora/lora.mk
- hopefully have all idents fixed
- restore commands.c and add new function again
- fix memory leak bug in gesc.c
- rfm95w.c add delay in while loop
- add gesc to build_all / rebuild all works
2021-03-27 21:13:24 +01:00
CTSchorsch cdb8e82c32 - Add driver for SX1278 LoRa boards, eg. HopeRF RFM95W (driver by Wojciech Domski, https://github.com/wdomski/SX1278)
- Add a simple bool isInitialized() to commands.c, to check if commands are initialzied
- Add hwconf for GESC, hobby open source ESC (https://github.com/CTSchorsch/gesc) including a simple double pulse test function
- Add app_dpv.c to read out a simple I2C magnetic field sensor and two hall sensors to control a underwater scooter
2021-03-27 14:15:22 +01: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