Commit Graph

1280 Commits

Author SHA1 Message Date
Benjamin Vedder 988c68b3a7
Merge pull request #395 from surfdado/speed_tb_bugfix
Balance App: bugfix for speed based variable tiltback config
2022-01-09 20:27:53 +01:00
Benjamin Vedder 76f100f61a
Merge pull request #383 from TechAUmNu/dev_fw_5_03
Tweak settings for A50S hardware
2022-01-09 20:23:49 +01:00
Benjamin Vedder 88a360162e
Merge branch 'dev_fw_5_03' into dev_fw_5_03 2022-01-09 20:23:39 +01:00
Benjamin Vedder 768a9a633a Added deprecation warning 2022-01-06 22:54:27 +01:00
Benjamin Vedder 648b8a33d5 MCCONF_FOC_F_SW backwards-compatibility 2022-01-06 22:47:46 +01:00
Benjamin Vedder a092ea99d2 More consequences of the f_sw renaming 2022-01-06 21:34:22 +01:00
Benjamin Vedder af55c79a2a Renamed foc_f_sw to foc_f_zv 2022-01-06 20:44:00 +01:00
Dado Mista 015dce3845 Balance App: bugfix for speed based variable tiltback config
Avoid division by 0 when variable tiltback is not set

Signed-off-by: Dado Mista <dadomista@gmail.com>
2022-01-06 10:32:35 -08:00
Benjamin Vedder aeda17e38e Moved luna appconf 2022-01-02 22:53:19 +01:00
Benjamin Vedder 5401557f7e
Merge pull request #394 from luna-cycle/luna_bbshd_appconf
bbshd: add appconf
2022-01-02 22:40:11 +01:00
Marcos Chaparro a1dd7f4c73 bbshd: include appconf
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2021-12-31 10:52:47 -03:00
Marcos Chaparro a77179ca02 bbshd: add appconf
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2021-12-31 08:45:33 -03:00
Benjamin Vedder ab0aa126d6 Collected luna-files in one place, removed some old files 2021-12-31 12:27:36 +01:00
Benjamin Vedder d1b962b7e8
Merge pull request #392 from luna-cycle/luna_bbshd_support
Luna bbshd support
2021-12-31 11:59:27 +01:00
Benjamin Vedder 95c67175ab First attempt at a resistance and temperature observer 2021-12-29 18:21:42 +01:00
Benjamin Vedder 1ab9584b5c
Merge pull request #393 from kubark42/rotor_lock_d_axis
[MCPWM_FOC] Make rotor lock feature use D axis
2021-12-29 12:07:14 +01:00
ElwinBoots e4f4bb1d3f [MCPWM_FOC] Make rotor lock feature use D axis
Changes rotor lock feature from Q axis to D axis. This has two advantages:
1. Now the angle you put in is the angle you really get in the alpha beta frame (no 90 degree offset).
2. Now when the rotor is being locked, the D axis is really the D axis and Q is really the Q axis. This helps for FRF measurements.
2021-12-28 19:43:51 -05:00
Marcos Chaparro b7caa46a8e bbshd: update qmlui
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2021-12-28 11:17:53 -03:00
Marcos Chaparro 2246be4440 bbshd: update default motor config
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2021-12-28 11:17:53 -03:00
Marcos Chaparro d6fc739899 bbshd: Support display, assist levels, PTC temp sensor, wheel speed sensor, gearshift sensor, custom UI
Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2021-12-28 11:17:53 -03:00
Marcos Chaparro 627c12b1ca bbshd: Ruggedize PAS against vibrations
Also includes an update to set power limits from other threads (like a display) and
prepares support for PAS torque sensors.

Signed-off-by: Marcos Chaparro <mchaparro@powerdesigns.ca>
2021-12-28 11:17:53 -03:00
Benjamin Vedder 3ed8c90a1d
Merge pull request #390 from kubark42/fluxlinkage_clunkfix
Flux linkage clunk fix
2021-12-28 11:17:56 +01:00
Kenn Sebesta 2978e9b8e3 [conf_general] Brief code cleanup
1) Use `false` instead of `0`. This communicates that it is a bool which is being sent, and not a decimal
number.

2) Add some code comments
2021-12-27 16:55:33 -05:00
ElwinBoots fefa32e7bf Fix the clunk at the end of the open loop flux linkage measurement.
Old code tried to remove all current instantly. New code disabled the pwm first.
2021-12-27 16:55:33 -05:00
Jeffrey M. Friesen 817c4e806a Merge branch 'dev_fw_5_03' of https://github.com/vedderb/bldc into dev_fw_5_03 2021-12-23 08:40:42 -08:00
Benjamin Vedder 5a2382adc8
Merge pull request #388 from secupol/dev_fw_5_03
Fix fault parameter in mcpwm_foc_measure_inductance function.
2021-12-21 09:48:27 +01:00
secupol 480ffbbeb0
Fix fault parameter in mcpwm_foc_measure_inductance function. 2021-12-21 16:35:25 +09:00
Jeffrey M. Friesen 796c122fc2 Merge branch 'dev_fw_5_03' of https://github.com/vedderb/bldc into dev_fw_5_03 2021-12-20 14:33:47 -08:00
Jeffrey M. Friesen f8ba78c03a fixed power switch on 60dxs 2021-12-20 14:33:44 -08:00
Benjamin Vedder 4eec52d5c0 Fix NaN-problem after lost tracking on some motors 2021-12-19 23:55:03 +01:00
Benjamin Vedder a8f989eb64 er updates 2021-12-08 12:04:19 +01:00
Benjamin Vedder b302c1a614 er update 2021-12-08 10:12:23 +01:00
Benjamin Vedder 4da6b603d4 er updates 2021-12-06 16:55:58 +01:00
Benjamin Vedder 4fa7a922fe Fixed dual motor detect offset problem 2021-12-01 13:46:49 +01:00
Benjamin Vedder d30fb57a90 Fixed stat reset, removed stat terminal command 2021-12-01 13:45:48 +01:00
Euan Mutch 5e6110189e
Tweak settings for A50S hardware
Limited duty cycle and lowered default switching frequency to reduce impact of using 2 low side shunts. 
Cleaned up formatting.
2021-11-28 23:59:26 +00:00
Benjamin Vedder 6b076f07f1 updated signature 2021-11-28 10:48:04 +01:00
Benjamin Vedder 2a281e36ae Initialize integrator in dutycycle downramp controller 2021-11-27 23:32:08 +01:00
Benjamin Vedder 40c2842aa8 Sign macro fix 2021-11-27 23:30:10 +01:00
Benjamin Vedder c5c309e227 More braking improvements 2021-11-27 18:51:02 +01:00
Benjamin Vedder e6c44bb133 build using 12 cores 2021-11-27 18:50:34 +01:00
Benjamin Vedder afe85a2937 Handle different max and min currents in braking mode 2021-11-27 16:38:32 +01:00
Benjamin Vedder b524773c0d Another attempt at braking 2021-11-27 10:58:52 +01:00
Benjamin Vedder a4201139f2 Minor cleanup 2021-11-26 18:06:07 +01:00
Benjamin Vedder 76b4f58e4e Another attempt at braking smoothly to 0 2021-11-26 00:43:41 +01:00
Benjamin Vedder 824e74b3c9
Merge pull request #382 from avlasic/temp_comp_fix_5_03
Use the same minimal temp value for Temperature compensation
2021-11-25 09:50:52 +01:00
Benjamin Vedder 61356d6ae9 Added APPCONF_UAVCAN_RAW_RPM_MAX default value 2021-11-24 14:15:30 +01:00
Andrej Vlašić 132c603699 Use the same minimal temp value for Temperature compensation 2021-11-24 12:18:29 +01:00
Benjamin Vedder e1b150b6d1
Merge pull request #381 from Jfriesen222/dev_fw_5_03
fixed GPIO mapping for phase filters on SC
2021-11-24 10:58:34 +01:00
Benjamin Vedder 5d385c046b Added UAVCAN raw RPM command 2021-11-24 10:56:45 +01:00