Commit Graph

129 Commits

Author SHA1 Message Date
Benjamin Vedder bb52360043 Fixed hall_analyze command 2022-12-04 10:44:51 +01:00
Benjamin Vedder 841b5d7613 Added deadtime to hw_status 2022-11-23 19:50:47 +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 77e8c04fc4 Print current measurement range in hw_status terminal command 2022-11-18 18:13:57 +01:00
Benjamin Vedder 7cacf99e09 Some cleanup 2022-11-08 18:21:06 +01:00
Benjamin Vedder 226c40cdb0
Merge branch 'master' into Improvements 2022-11-08 17:37:21 +01:00
Euan Mutch d06fce3ee4 Interface commands for openloop 2022-11-08 11:46:08 +00:00
Euan Mutch 7bf78592f7 Correct spaces to tabs, remove fault checks from low level funcs. 2022-11-08 10:46:35 +00:00
Teslafly 4bbcc40bf4 convert terminal command arguments to lowercase 2022-11-05 01:11:34 -05: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 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 d5619f98f1 Added optional fault info string and implemented it for the phase filter fault 2022-05-06 00:49:35 +02:00
Euan 3db2860cf4 Improve fault handling during detection routines
Added more checks for faults during detection routines.
Always return an error if a fault occured.
Handing for returned errors.
2022-05-04 19:41:09 +01:00
Benjamin Vedder 4fd7b12d3e Removed some terminal commands 2022-04-10 19:08:36 +02:00
Kenn Sebesta cf6f32332d [Utils] Update the header includes 2022-03-23 20:25:37 -04:00
Benjamin Vedder 6ace516b3f Added CAN status message 6 with ADC and PPM values 2022-03-13 20:56:26 +01:00
Benjamin Vedder e9d6fd5842 Use bitfields for CAN-messages and support two different CAN status rates 2022-03-11 18:08:28 +01:00
Benjamin Vedder 9fdacea522 Added fwinfo terminal command 2022-03-07 15:39:37 +01:00
Benjamin Vedder 9893c058a3 Threads command resets counters between calls now 2022-02-28 14:24:53 +01:00
Benjamin Vedder 0f12cb7d50 First round of cleanup 2022-02-19 18:51:34 +01:00
Benjamin Vedder 468c4f6353
Merge branch 'encoder_split' into master 2022-02-19 15:21:13 +01:00
Benjamin Vedder 9527f94cf8 First lisp integration with vesc tool and enabled lisp by default 2022-01-29 03:36:34 +01:00
Jakub Tomczak 6a9bd07c72 Merge remote-tracking branch 'origin/master' 2022-01-27 10:28:16 +01:00
Benjamin Vedder 015a657cc9 Sensor port init in only one place, better encoder debug info 2022-01-25 13:57:25 +01:00
Benjamin Vedder a029a82a18 Terminal foc flux linkage measurement fix 2022-01-22 22:21:00 +01:00
Jakub Tomczak da4b3e0edd Merge branch 'master' into dev_fw_5_03 2022-01-21 15:07:44 +01:00
Benjamin Vedder c87bf43b23 Added stack checks 2022-01-17 22:15:48 +01:00
Jakub Tomczak 2a120615be encoders to encoder refactor 2022-01-09 17:10:40 +01:00
Jakub Tomczak 4743194894 old encoder files deleted 2021-12-20 14:18:51 +01:00
Jakub Tomczak f26f3beb2d WIP: 3 encoders partially implemented, AS504x tested
compiled on gcc-arm-none-eabi-7-2018-q2
2021-12-14 16:40:40 +01:00
Benjamin Vedder d30fb57a90 Fixed stat reset, removed stat terminal command 2021-12-01 13:45:48 +01:00
Benjamin Vedder f6e78a09b6 Fixed measured MTPA mode, send ld_lq_diff detection result 2021-11-21 18:17:40 +01:00
Benjamin Vedder 3778dbe2e2 Added support for statistics 2021-11-11 01:08:21 +01:00
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