Benjamin Vedder
b1f564c3bb
Merge pull request #352 from kubark42/convenience_math
...
Use convenience macros for deg/rad conversions
2021-10-15 22:35:47 +02:00
Benjamin Vedder
d8a99fd0f1
Inductance and resistance measurement and scaling fixes, various other fixes
2021-10-15 22:25:07 +02:00
Kenn Sebesta
bec06ac85a
[Utils] Change convenience multiplication factors into convenience MACROs
2021-10-13 14:18:05 -04:00
Kenn Sebesta
aeb5d74488
[Utils] Use convenience macros for deg/rad conversions
2021-10-13 11:52:04 -04:00
Benjamin Vedder
7418102412
Renamed encoder functions, moved fault generation
2021-07-31 10:53:15 +02:00
Benjamin Vedder
11e2062312
Pull request cleanup
2021-07-30 20:53:22 +02:00
Jakub Tomczak
5f7b49c01b
reduction of characters in terminal.c methods
2021-07-30 15:55:55 +02:00
Jakub Tomczak
2511458ab3
USE_HW_PINS added in appropriate places
2021-07-29 14:57:33 +02:00
Jakub Tomczak
e951e3a374
Added AS504x Diagnostics
2021-07-28 17:14:10 +02:00
Benjamin Vedder
1ab25a47db
Added position PID offset support and KD_PROC term
2021-07-11 20:19:26 +02:00
Benjamin Vedder
75b84f1f2d
Added kill switch support
2021-06-13 13:46:27 +02:00
Benjamin Vedder
2c2238f76a
Unified DRV fault reset interface, reset DRV faults after fault stop time ends
2021-05-14 11:24:01 +02:00
Benjamin Vedder
509713e21a
Fixed timeout values
2021-05-13 10:59:33 +02:00
Benjamin Vedder
9e9e13ae14
Wait for motor release where needed
2021-05-13 10:42:40 +02:00
Benjamin Vedder
7a0e560e8b
Lowpass filter input voltage and battery level
2021-04-27 17:48:15 +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
8b9e3bf93f
Offset calibration improvements
2021-03-24 13:09:05 +01:00
Benjamin Vedder
3b4e601f61
Offset calibration update
2021-03-22 12:13:19 +01:00
Benjamin Vedder
c869fa0e9f
Stop motor after rotor lock command
2021-03-13 11:40:09 +01:00
Benjamin Vedder
8900c41c34
First phase filter and offset calibration attempt
2021-02-28 20:36:02 +01:00
Marcos Chaparro
50bc55e487
MT6816 SPI encoder support
...
This encoder needs x2 16bit SPI transfers so the hardware SPI peripheral
was used to run SCLK at 10MHz and reduce the ISR duration.
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-11-30 19:12:58 -03:00
Till Rosenband
09a6c7a058
Remove build date to allow easy comparison of compiled binaries.
2020-10-28 08:31:37 -04:00
Benjamin Vedder
b5eb228a04
PR fix
2020-10-09 22:01:17 +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
Till Rosenband
82e5bcd845
Verify FLASH integrity of MC and APP config with CRC.
...
* Currently the FW code has CRC checks, but configs are also important!
* This helps maintain FLASH integrity when the config pages are occasionally
re-written due to odometer updates (later commit).
* If the config CRC checks fail, store the fault and fall back to default config.
* New 'crc' terminal command displays CRC values.
2020-10-04 00:31:31 -04:00
Benjamin Vedder
6f7c40b4e1
Improved flux linkage measurement
2020-04-16 09:12:08 +02:00
Benjamin Vedder
0e6f8dd567
Change back motor thread after foc_sensors_detect_apply terminal command
2020-04-09 09:27:43 +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
0bb5b2d99c
Cleaned up detect_apply_all terminal command for dual hardware
2020-04-05 12:04:04 -07: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
c0f75f14ac
Current ramping during resistance measurement
2020-04-02 20:43:11 +02:00
Marcos Chaparro
278f767854
BBSHD: monitor 12V rail
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-03-26 11:04:37 -03:00
Benjamin Vedder
a06f09e7f2
Observer gain scaling update, print correct motor on faults, updated timer terminal command
2020-03-17 09:38:09 +01:00
Benjamin Vedder
52e17059e5
Major restructuring for dual motor support, and added unity hw files
2020-03-16 18:32:39 +01: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
ae5ea13998
Merge pull request #124 from powerdesigns/Axiom-resolver
...
Axiom full resolver support
2020-01-21 08:35:36 +01:00
Marcos Chaparro
9965bb52d5
Axiom: Full resolver support
...
Fixes a low level SPI timing bug.
Provide Loss of Signal, Degradation Of Signal and Loss Of Tracking
fault sources, and stats to the 'encoder' terminal command.
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2020-01-20 11:06:02 -03:00
Kirill Kostiuchenko
2fa512b5ed
merge
2020-01-14 22:04:02 +05:00
Benjamin Vedder
b002e5d78e
FW 3.66: Many changes, see changelog
2020-01-12 21:25:21 +01:00
Kirill Kostiuchenko
2bf417db03
Priority to custom commands
2019-12-26 08:15:03 +05:00
Benjamin Vedder
23e61925b6
FW upload compression support, TS5700N8501 support
2019-12-05 19:50:17 +01:00
Benjamin Vedder
602db7435b
FW3.59. Many updates, see changelog for details
2019-09-03 20:39:05 +02:00
Benjamin Vedder
05b1a9483e
Merge branch 'Axiom-board-support' of https://github.com/powerdesigns/bldc into powerdesigns-Axiom-board-support
2019-05-04 10:44:03 +02:00
Benjamin Vedder
404bbcf64b
Fixed current offset fault bug, added support for multiple IMUs and ICM-20948
2019-05-03 19:55:36 +02:00
Marcos Chaparro
1d08745376
Axiom control board support
...
Rename paltatech naming to Axiom.
For safety set Axiom default max input voltage to 0.0V so it can not run a
motor without mc_conf being explicitly configured by the user.
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-27 08:21:46 -03:00