Commit Graph

30 Commits

Author SHA1 Message Date
Jaaaky 37a08507df AP_ToshibaCAN: Fix multi #include's 2021-12-21 10:38:46 +11:00
Andrew Tridgell c4d05b3f3a AP_ToshibaCAN: fixed printf format errors 2021-08-05 09:43:35 +10:00
Siddharth Purohit 5d8a6d167f AP_ToshibaCAN: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS 2021-06-24 09:02:42 +10:00
Dr.-Ing. Amilcar do Carmo Lucas 9d2790049f AP_ToshibaCAN: fix compilation when HAL_WITH_ESC_TELEM == 0 2021-06-09 21:42:51 +10:00
Tom Pittenger 5e4efe9f57 AP_ToshibaCAN: AP::can().log_text() needs HAL_ENABLE_LIBUAVCAN_DRIVERS 2021-06-09 18:36:18 +10:00
Andy Piper 677d863401 AP_ToshibaCAN: generalise ESC telemetry to allow harmonic notch handling with other ESCs
remove send_esc_telemetry_mavlink()
log telemetry data in frontend
remove datastructures and semaphore obsoleted by AP_ESC_Telem* (<amilcar.lucas@iav.de>)
record volts, amps and consumption as floats
2021-05-12 17:01:11 +10:00
Siddharth Purohit 65ea8e1f13 AP_ToshibaCAN: use new CANIface drivers and CANManager
also had to add a work-around for issue with constexpr in gnu++11 build under sitl
2020-08-19 17:31:09 +10:00
Peter Barker 3f4a14c610 AP_ToshibaCAN: correct checking of payload space in telem send 2020-07-21 09:14:22 +10:00
Randy Mackay 5b7918030f AP_ToshibaCAN: correct unused portion of motor reply data1 packet 2020-07-09 08:41:42 +09:00
Randy Mackay 0850b0acae AP_ToshibaCAN: handle negative RPM 2020-07-09 08:41:42 +09:00
murata bd688ef412 AP_ToshibaCAN: Using the maximum number of ESCs definition
AP_ToshibaCAN: Using the maximum number of ESCs definition
2020-04-20 10:12:57 +09:00
Siddharth Purohit afc0cf8f3b AP_ToshibaCAN: fix unused variable error 2020-04-01 17:10:36 +11:00
Randy Mackay 1d8e4ce5ac AP_ToshibaCAN: move usage_sec in telemetry struct
According to WickedShell this saves 48bytes of RAM
2020-02-12 11:58:34 +09:00
Randy Mackay 415ba0f40d AP_ToshibaCAN: add accessors for use by scripts 2020-02-12 11:58:34 +09:00
Randy Mackay 2bc91cbc4d AP_ToshibaCAN: request usage time from ESC 2020-02-12 11:58:34 +09:00
Randy Mackay 9fd315f061 AP_ToshibaCAN: add get_motor_request_data_cmd helper function 2020-02-12 11:58:34 +09:00
Randy Mackay 9fe624ab77 AP_ToshibaCAN: consume and log motor temperature
also fix esc temperature consumption
also minor change to temperature logging multipler (was float, now
unsigned)
2019-11-26 11:56:33 +11:00
Randy Mackay 45ce8e8d79 AP_ToshibaCAN: add get_present_mask for use in pre-arm checks 2019-11-01 16:09:52 +08:00
Randy Mackay ad55b961a4 AP_ToshibaCAN: consume current sent by ESC 2019-11-01 16:09:52 +08:00
Randy Mackay f6b669e3d8 AP_ToshibaCAN: rename millivolts to voltage_mv
also add some comments
2019-11-01 16:09:52 +08:00
Randy Mackay 973caf26f7 AP_ToshibaCAN: constify some local variables 2019-08-14 13:29:14 +09:00
Randy Mackay fbf5ecfe8c AP_ToshibaCAN: ensure motors are off when vehicle is disarmed 2019-08-14 13:29:14 +09:00
Andrew Tridgell 24636aeb45 AP_ToshibaCAN: removed unusued AP_Common/Semaphore.h 2019-05-15 15:33:48 +10:00
Michael du Breuil bbe500daf8 AP_ToshibaCAN: Fix includes 2019-04-05 20:12:53 +11:00
Tom Pittenger bf1ed2285a AP_Toshiba: rename dataflash to logger 2019-03-28 16:40:58 +11:00
Randy Mackay 72d4727bcf AP_ToshibaCAN: log and report temp 2019-02-18 20:55:47 +09:00
Randy Mackay d0fef6daed AP_ToshibaCAN: log and report rpm and voltage 2019-02-18 20:55:47 +09:00
Randy Mackay 73850f7a06 AP_ToshibaCAN: send aborts on error
avoids flooding the bus when trying to send to ESCs that are not connected
2019-02-18 20:55:47 +09:00
Siddharth Purohit 70da885214 AP_ToshibaCAN: add argument for enabling filters, unsupported 2019-01-23 15:57:05 +11:00
Randy Mackay fdf51a6a51 AP_ToshibaCAN: driver to support Toshiba CAN ESCs 2019-01-18 17:30:28 +11:00