Benjamin Vedder
fd80107522
More hall sensor tweaks
2023-08-08 19:56:48 +02:00
Benjamin Vedder
cba6f32b92
Simplified hall sensor code
2023-08-08 15:02:52 +02:00
Benjamin Vedder
14eaf5d4eb
Allow more flux linkage tracker range
2023-08-03 09:53:14 +02:00
Benjamin Vedder
76aedf16ac
BLDC and DC motor support for one motor on dual motor hardware
2023-07-27 18:01:16 +02:00
Benjamin Vedder
1fee16de47
Hall sensor bug fix and tweaks
2023-07-16 16:00:41 +02:00
Benjamin Vedder
54bf4c272e
Minor fix
2023-07-07 14:07:18 +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
3c3cf2fb99
Updated comment
2023-06-16 20:37:18 +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
Benjamin Vedder
a03e7e373b
Put back duty downramp integrator again
2023-04-13 08:50:57 +02:00
Benjamin Vedder
fea2c81e55
Limit Senored ERPM start
2023-04-01 14:04:21 +02:00
Marcos Chaparro
b481ff73c2
Increase default regen cutoff thresholds so its disabled by default
...
Signed-off-by: Marcos Chaparro <marcos@lunacycle.com>
2023-03-30 11:41:56 -03: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
572343fd18
Updated changelog and some tweaks
2023-03-29 12:04:12 +02:00
Benjamin Vedder
daf4f719df
Use filtered speed for hall sensor transition
2023-03-22 23:59:09 +01:00
Benjamin Vedder
74a6b382e3
Angle interpolation without sin/cos/atan2 and tests for it
2023-03-21 13:25:31 +01:00
Benjamin Vedder
514ed3727d
Moved to 6.05 beta, attempt at smooth hall sensor transition
2023-03-20 22:10:01 +01:00
Benjamin Vedder
9db80e52f2
Changed hall sensor hysteresis
2023-03-10 22:32:31 +01:00
Benjamin Vedder
0d0f30650a
Fixed lbm current measurement commands, some tweaks and cleanup
2023-02-07 21:40:26 +01:00
Benjamin Vedder
c01de39288
Added res, ind and lambda estimation lbm commands
2022-12-19 00:14:57 +01:00
Benjamin Vedder
26c97f7624
Made chVTGetSystemTimeX consistent everywhere
2022-12-14 19:48:26 +01:00
Benjamin Vedder
6cacc09d16
Changed defaults
2022-12-11 11:55:50 +01:00
Benjamin Vedder
50e1aee9c9
Changed duty threshold
2022-12-11 11:33:47 +01:00
Benjamin Vedder
fdf28a3fb1
Removed condition that seems to be unneeded
2022-12-11 10:37:34 +01:00
Benjamin Vedder
5781eef6f8
Small cleanup
2022-12-10 23:48:15 +01:00
Benjamin Vedder
d6d6aefc68
Duty downramp transition rewrite
2022-12-10 23:34:11 +01:00
Benjamin Vedder
70a3ed09d9
Do not go all the way to 0 with duty current decrease to make unloaded full throttle more stable
2022-12-09 22:08:19 +01:00
Benjamin Vedder
eade5ce18b
Update encoder config when needed
2022-12-07 11:55:55 +01:00
Benjamin Vedder
1c75ef1ddb
Duty control tweak
2022-12-04 15:36:47 +01:00
Benjamin Vedder
50d5fa835c
Inductance measurement current spike fix
2022-12-04 13:55:56 +01:00
Benjamin Vedder
f5df34dc3d
Merge pull request #569 from ARMMS-ORTHOPUS/merge_prepare_sincos_phase_comp
...
[Feature] SIN/COS phase error compensation
2022-12-02 12:04:09 +01:00
Thomas Solatges
4ed731479c
WIP adding sin/cos phase error compensation
2022-12-01 15:50:27 +01:00
Marcos Chaparro
041e8aa5a4
If hardware provides a wheel speed sensor, use it to calculate the traveled distance
...
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2022-11-28 16:57:36 -03:00
Benjamin Vedder
50aa16d200
Added configurable battery level filter
2022-11-24 10:15:36 +01:00
Benjamin Vedder
aa2c364fb4
Yet another pid-tweak
2022-11-21 21:59:28 +01:00
Benjamin Vedder
d169e66214
Another small pid-tweak
2022-11-21 20:38:40 +01:00
Benjamin Vedder
1f4e5772d5
Possible Speed PID fix
2022-11-21 18:52:02 +01:00
Benjamin Vedder
8a7f5c7b50
Rearranged encoder settings, added custom encoder support
2022-11-19 16:23:07 +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
e084b93bb0
Added option to override motor temperature from lisp
2022-11-17 21:46:17 +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
Benjamin Vedder
cf6723ba25
Redistributed some memory
2022-11-17 10:03:35 +01:00
Benjamin Vedder
4ea2a4f53b
Removed some duplication using goto
2022-11-12 10:44:50 +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
7cacf99e09
Some cleanup
2022-11-08 18:21:06 +01:00
Benjamin Vedder
f8dc1207c9
Some cleanup and SO tempting to use goto due to the obvious duplication
2022-11-08 18:13:27 +01:00
Benjamin Vedder
033ca5df49
Merge pull request #533 from TechAUmNu/Improvements
...
FOC fault handling, terminal usability and flux linkage detection improvement.
2022-11-08 17:48:37 +01:00
Benjamin Vedder
ed4c54059f
Start of GNSS-support
2022-11-08 17:47:53 +01:00
Benjamin Vedder
226c40cdb0
Merge branch 'master' into Improvements
2022-11-08 17:37:21 +01:00