Commit Graph

44 Commits

Author SHA1 Message Date
Benjamin Vedder e0bc115454 Always add vesc id to imu values as there were no bits left in mask. Changing mask size would break compatibility with old code. 2023-10-15 09:13:59 +02:00
Benjamin Vedder 79c86db6e6 New current sampling modes, FOC interpolation support 2023-09-23 14:45:00 +02:00
Benjamin Vedder 90ea079389
Merge pull request #624 from Gabrielerusso/master
Duplicated include; improved shutdown.c; store data even without switch
2023-08-07 22:46:22 +02:00
Benjamin Vedder 05de2f6108 Added remote message support 2023-08-07 22:07:08 +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 ac7df4a7f6 Removed app_balance in favor of the balance package 2023-06-19 13:58:22 +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
Gabriele Russo 8f2644044e Duplicated include; improved shutdown.c; store backup without power switch;
commands.c: delete duplicated "mc_interface.h" include
shutdown.c/shutdown.h/main.c:
- reducing possibility to write backup data frequently, now requires  minimum distance to be traveled before it enables storing, common condition if push to start is enabled with a low shutdown time, say 10s, or in any other condition where user turn on/off ESC a lot of times. Saves chip life at the cost of not having updated data during very short trips.
- Data is stored even when using "always on"
- Introducing possibility to store data without a power-switch by using a combination of trip distance and inactivity timer. It can be deactivated by using "always off" in app setting  Shutdown Mode.
2023-05-03 02:39:57 +02:00
Benjamin Vedder fea2c81e55 Limit Senored ERPM start 2023-04-01 14:04:21 +02:00
Benjamin Vedder 6578a642d1 Fixed can repl command 2023-02-23 20:33:25 +01:00
Benjamin Vedder 06906e29bb PPM detach fix and other tweaks 2023-02-02 14:03:43 +01:00
Benjamin Vedder 0dec878d1d Multiple CAN RX buffers 2023-01-02 13:09:10 +01:00
Benjamin Vedder 26c97f7624 Made chVTGetSystemTimeX consistent everywhere 2022-12-14 19:48:26 +01:00
Benjamin Vedder b8504e11a8 Fixed buffer size bug 2022-12-12 20:38:13 +01:00
Benjamin Vedder 62efc8d890 Lower f_zv when measuring resistance and inductance 2022-12-07 20:58:05 +01:00
Benjamin Vedder 1e7da25160 Send foc can detect result back to sender even if some other interface communicates in-between 2022-11-22 18:18:38 +01:00
Benjamin Vedder 57c675f868 Dual motor can-fix 2, indentation fix 2022-11-22 14:06:59 +01:00
Benjamin Vedder 15d26d95bc Dual motor can-fix 2022-11-22 13:55:57 +01:00
Benjamin Vedder cc41064271 Added setting l-erpm-start 2022-11-17 17:43:52 +01:00
Benjamin Vedder 40e9e29075 Added function to unregister previously registered reply function 2022-11-17 11:21:45 +01:00
Benjamin Vedder 696acb581a 64-bit logging support 2022-11-10 21:56:29 +01:00
Benjamin Vedder 37e5a9cbc9 Lock system while writing doubles 2022-11-08 21:15:09 +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
Euan Mutch 7bf78592f7 Correct spaces to tabs, remove fault checks from low level funcs. 2022-11-08 10:46:35 +00:00
Benjamin Vedder fe03e720ea Set appdata-func to 0 when the pointer is invalid 2022-11-03 20:21:17 +01:00
Benjamin Vedder ff427594e9 Added COMM_SET_APPCONF_NO_STORE and only restart app and IMU when needed 2022-10-30 14:48:22 +01:00
Benjamin Vedder f9ec80d2ec Small fix 2022-10-26 17:37:28 +02:00
Benjamin Vedder 70c58f2b7c First CAN log support, added foc voltage and current extensions 2022-10-23 18:35:26 +02:00
Benjamin Vedder 43f525ba30 More lbm can-fixes 2022-10-10 17:06:49 +02:00
Benjamin Vedder bea4d63b7a Let lbm process CAN-frames in the bridge and unused modes too 2022-10-10 16:57:02 +02:00
Benjamin Vedder a219498055 Added CAN_MODE_UNUSED, added more settings to native lib 2022-10-07 17:02:02 +02:00
Euan Mutch f7a2e4c621 Fault handling, Terminal improvements and better flux linkage.
Add fault handling to all functions that touch the motor.
Improve terminal usability by echoing commands and giving feedback on faults and missing / invalid arguments.  Improve flux linkage measurement by increasing switching frequency and using the measured resistance and inductance to set the kp & ki.
2022-09-27 21:54:50 +01:00
Benjamin Vedder 92855bf2c4 Fixed forgotten send_buffer_global 2022-09-20 00:01:54 +02:00
Benjamin Vedder a5ba6b79f1 Added app data handler to c-if and check function pointer 2022-09-19 23:17:04 +02:00
Benjamin Vedder ff9679d336 Lisp code streaming, more native functions and checks, custom config support, moved global send buffer to mempools 2022-09-18 22:47:50 +02:00
Benjamin Vedder 805006f03e LispBM file import support 2022-07-25 14:26:21 +02:00
Benjamin Vedder 360f0ef9a9 Lispbm offDelay current argument 2022-07-05 13:41:24 +02:00
Benjamin Vedder 766f6e02d4 Lispbm can standard frame fix 2022-07-05 13:40:11 +02:00
Benjamin Vedder 553548a6e2 Dual motor triple temp sens support 2022-06-08 14:31:23 +02:00
Benjamin Vedder f93e62ea6d Changed timeout reset behavior for detect modes 2022-05-17 12:19:44 +02:00
Andrej Vlašić e64f9b370e use NVIC_SystemReset in COMM_REBOOT command 2022-05-16 11:01:04 +02:00
Benjamin Vedder b900ffcde5 Orginized files 2022-05-15 11:55:34 +02:00