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
Marcos Chaparro
de707e0975
Add SinCos encoder checks and fault management
...
Sin/Cos signals are checked to make sure the module of the vector
is larger than 1V and smaller than 1.65V. A working encoder will
never have both sin and cos signals at 0V (zero amplitude module).
Both sin and cos at 3.3V is also not a possible value.
Errors are logged independently for signals too large and for
signals too small, provinding the user more insight when an encoder
fault happens. In the terminal, the 'encoder' command will show
the error counts and error rates of the encoder being used.
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-04-02 10:37:15 -03:00
Benjamin Vedder
1161f8417c
Added SWD programming support (based on Black Magic Probe) and open loop duty cycle control
2019-03-31 10:49:18 +02:00
Benjamin Vedder
65298263b6
75/300 R2 support, terminal sync cmd, IMU support, option to disable permanent UART, collected timer functions in one place
2019-03-10 14:57:42 +01:00
Benjamin Vedder
01e72eb555
Autogenerated config parsing with signatures, fixed previous PRs
2019-03-01 21:36:58 +01:00
vadim
8cc3ea519a
update the help text for the terminal with the new encoder command
2019-03-01 11:00:32 +02:00
vadim
f668b89db5
trigger a fault when AS5047 encoder SPI communication is broken
2019-02-25 14:43:02 +02:00
vadim
5b09d687b8
debug function for encoder CRC
2019-02-25 14:37:54 +02:00
Marcos Chaparro
32cf05629d
Resolve merge conficts with major 2019 release
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2019-02-18 20:25:52 -03:00
Benjamin Vedder
123bb00ab4
Major 2019 update
2019-02-18 19:30:19 +01:00
Marcos Chaparro
f1978ac5b4
Stronger filtering on gate driver supply voltage sensing. Add that voltage to fault logs
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2019-01-18 19:03:53 -03:00
Marcos Chaparro
89e6022698
Gate driver supply voltage monitoring
...
Signed-off-by: Marcos Chaparro <mchaparro@paltatech.com>
2018-12-12 20:03:12 -03:00
Benjamin Vedder
92a54246f0
DRV and terminal refactoring, DRV8320 updates
2018-04-14 16:28:51 +02:00
Unknown
5d9cc774ab
added das_mini and DRV8320 support
2018-04-05 14:20:17 +02:00
Benjamin Vedder
f141157358
First official commit after the VESC Project release
2017-09-04 21:12:43 +02:00
Benjamin Vedder
0b59fb1445
FW 3.10: BLDC ADC sampling bug fix when changing switching frequency, removed cycles_running from mcpwm
2016-11-06 20:28:07 +01:00
Benjamin Vedder
5dbc94c525
FW 3.7
2016-11-04 15:18:34 +01:00
Benjamin Vedder
cb2a205cb8
FW 2.17: as5047 support, change sensor port mode in conf, better encoder detection, FOC ah and wh counter fixes
2016-04-27 15:32:32 +02:00
Benjamin Vedder
02f140e335
FW 2.11: Refactoring, dead time comp fix for smoother braking when the speed is zero
2016-01-30 15:57:51 +01:00
Benjamin Vedder
42c1b79a08
FW 2.7: Better encoder support, small UART and CAN fixes, NRF commands preparation
2015-12-28 01:50:23 +01:00
Benjamin Vedder
d995cf6749
FW 2.6: Slow abs current fix, current limit fix, FOC control CPU resource measurement, current filters, D current injection fix
2015-12-24 00:43:31 +01:00
Benjamin Vedder
2377a45bcb
FW 2.5: red LED fix on hw 4.5, updated default PID parameters
2015-12-19 21:24:46 +01:00
Benjamin Vedder
ff090fd4e0
FW 2.3: MAJOR UPDATE: FOC!!
2015-12-08 21:01:23 +01:00
Benjamin Vedder
c4ff81e849
Ported to ChibiOS 3, refactoring, cleanup, added safe start delay after fault for PPM app, removed unused ST libraries
2015-10-08 23:09:39 +02:00
Benjamin Vedder
c3e82f7651
Soft battery cutoff, more BLDC Tool parameters
2015-08-26 23:12:39 +02:00
Benjamin Vedder
58d892935d
PPM dec fix, current sampling updates, ADC cruise control, commutation fix, higher switching frequency, refactoring
2015-08-23 18:26:05 +02:00
Benjamin Vedder
24380c3fc0
New hall sensor implementation with hybrid mode and connection/order auto detection
2015-06-19 23:38:46 +02:00
Benjamin Vedder
828cdd92f8
Chuk and PPM config structs, phase advance fixes and implementation for delay comm mode, CAN fixes and status message implementation, multi-esc mode for PPM and Chuk, traction control for PPM and chuk, CAN id config, multi-esc and traction control config, ADC sampling change, hall-sensor read bug fix for HW45+
2015-02-19 21:20:07 +01:00
Benjamin Vedder
42cab4c18d
Added voltage to fault log
2014-11-27 20:56:17 +01:00
Benjamin Vedder
7c7a315a81
Commutation fixes, timer update change, current measurement fix, fault logging in RAM, current limit fix
2014-10-24 23:04:10 +02:00
Benjamin Vedder
d6beda7b47
Complete servo-decoding rewrite, common command module, full access to everything over uart, more ppm options
2014-09-20 03:22:38 +02:00
Benjamin Vedder
fd83286cd6
Parameter detection command and RC-car fix
2014-09-15 22:44:39 +02:00
Benjamin Vedder
58889d6543
Hall sensor fixes and sample send delay removal after fixing a bldc_tool problem
2014-09-15 20:48:46 +02:00
Benjamin Vedder
2cc53de346
Major USB communication protocol re-write and beginning runtime motor parameter configuration
2014-09-14 23:08:22 +02:00
Benjamin Vedder
bb2c313893
Motor parameter fixes and simplification
2014-09-13 10:46:46 +02:00
Benjamin Vedder
e3bbc7d088
Delay-based commutation option and a terminal cmd to measure motor parameters
2014-09-12 23:37:33 +02:00
Benjamin Vedder
452b8e9506
Timer synchronization from cyril; clearer and safer timer register updates
2014-09-12 13:03:34 +02:00
Benjamin Vedder
cd52f94184
Printf refactoring
2014-08-17 20:51:52 +02:00
Benjamin Vedder
eeff8543ea
New printf implementation
2014-08-15 22:17:06 +02:00
Benjamin Vedder
2c7017c3a3
Voltage terminal command and ebike motor configuration
2014-08-14 00:23:32 +02:00
Benjamin Vedder
1b4feb77ca
Some hall sensor fixes
2014-06-29 14:23:39 +02:00
Benjamin Vedder
55dcf4bfbb
Refactoring, braking features and some bug fixes
2014-04-12 21:59:33 +02:00
Benjamin Vedder
0ba8e01a9e
Timer register update synchronization
2014-04-01 19:26:46 +02:00
Benjamin Vedder
d3e4f38fb3
The first implementation of current control
2014-03-31 00:51:59 +02:00
Benjamin Vedder
17d26077fb
Direction tracking and new terminal commands
2014-03-30 00:57:22 +01:00
Benjamin Vedder
82c9ed1564
Fault terminal command
2014-03-23 22:31:57 +01:00
Benjamin Vedder
eaebf6148a
first commit
2014-01-09 15:20:26 +01:00