Commit Graph

63 Commits

Author SHA1 Message Date
Andrew Tridgell 128ca65973 AP_CANManager: disable SLCAN when armed
this disables SLCAN if enabled using CAN_SLCAN_CPORT and
SERIALn_PROTOCOL=22 when we are armed, to reduce load on the CAN
thread from the very inefficient SLCAN processing
2022-10-04 13:38:30 +11:00
Andrew Tridgell 1b25babd8a AP_CANManager: added scripting2 protocol
allows for lua scripts to distinguish two CAN interfaces
2022-07-03 08:21:55 +10:00
Randy Mackay 533a16287e AP_CANManager: remove ToshibaCAN support 2022-06-10 12:08:05 +09:00
murata 1e485c20fc AP_CANManager: Console output can be disabled 2022-05-17 09:53:06 +10:00
Henry Wurzburg 6ba9946cfc AP_CANManager: correct parameter metadata error 2022-03-14 08:18:13 +11:00
bugobliterator 28b76474cd AP_CANManager: set canfd bitrates using CANFD_SUPPORTED opt
also adds option to set as 4MBits/s
2022-03-11 18:13:54 +11:00
Andrew Tridgell cf5d94b81f AP_CANManager: fixed slcan receive of CANFD frames 2022-03-11 18:13:54 +11:00
Andrew Tridgell 6320599404 AP_CANManager: support mavcan with CANFD_FRAME 2022-03-11 18:13:54 +11:00
bugobliterator c0188fbf0e AP_CANManager: disable CANTester by default 2022-03-11 18:13:54 +11:00
bugobliterator cb1bc4e613 AP_CANManager: add support for enabling CANFD 2022-03-11 18:13:54 +11:00
Siddharth Purohit 563e69e64c AP_CANManager: add support for trx CANFD frames over SLCAN 2022-03-11 18:13:54 +11:00
Siddharth Purohit 287151a858 AP_CANManager: add support for CANFD tests 2022-03-11 18:13:54 +11:00
Andrew Tridgell 454879e638 AP_CANManager: include hal.h 2022-02-22 12:13:19 +11:00
Andrew Tridgell c94c9d8859 AP_CANManager: added CAN_FRAME filter handling 2022-02-19 18:24:56 +11:00
Andrew Tridgell 6e83633a12 AP_CANManager: moved CAN_FRAME timeout code to CANManager 2022-02-19 18:24:56 +11:00
Andrew Tridgell 0b95272f27 AP_CANManager: support mavcan message forwarding 2022-02-12 16:36:05 +11:00
Andrew Tridgell b6bf74b73d AP_CANManager: disable CAN filtering except on AP_Periph
this saves flash space and makes CAN forwarding for any bus without
reconfigure/reboot easy. CAN filtering is not useful in the main
flight controller firmware as we want to see nearly all packets
2022-02-12 16:36:05 +11:00
Peter Barker d028a6efc3 AP_CANManager: make C_TO_KELVIN a function macro; create KELVIN_TO_C
These are in celsius
2022-01-13 18:31:46 +11:00
Shiv Tyagi d846a81055 AP_CANManager: remove MPPT_PacketDigital parameter description
We have removed the class AP_BattMonitor_MPPT_PacketDigital, we should also remove these from parameter descriptions and enums
2021-12-17 20:24:25 +09:00
Hwurzburg 71f8a1f25e AP_CANManager: change UAVCAN in metadata to DroneCAN 2021-12-15 09:53:21 +11:00
Andrew Tridgell 4f6da39bb7 AP_CANManager: support Benewake CAN 2021-11-30 09:49:20 +11:00
Andrew Tridgell c56bd323ee AP_CANManager: fixed CAN protocol docs to include USD1 2021-10-26 15:31:12 +11:00
Andy Piper f9c74f207b AP_CANManager: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI 2021-10-26 11:42:12 +11:00
Peter Barker 60759f9a83 AP_CANManager: factor substring from allocation_error parameter 2021-10-18 12:49:44 +11:00
bugobliterator f5ee2a3a50 AP_CANManager:replace config_error with allocation_error 2021-09-30 08:51:26 +10:00
Gone4Dirt 40f8407c1d AP_CANManager: Add APM_BUILD_Heli 2021-09-29 19:55:48 +10:00
Hwurzburg 00a1cbffde AP_CANManager: correct metadata for values 2021-08-24 10:52:33 +10:00
bugobliterator e29ddebe3c AP_CANManager: remove unused variable from SLCANIface code 2021-08-19 14:20:58 +10:00
Andrew Tridgell 7cdd18924e AP_CANManager: fixed printf format errors 2021-08-05 09:43:35 +10:00
Iampete1 bd36053abc AP_CANManager: support scripting CAN driver 2021-07-27 09:04:17 +10:00
bugobliterator 6e61867e7f AP_CANSensor: create a separate register driver method 2021-07-23 16:01:29 +10:00
bugobliterator 0b505c491c AP_CANManager: fix casting without ensuring alignment 2021-07-15 07:50:12 +10:00
Siddharth Purohit 603b302ffd AP_CANManager: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS 2021-06-24 09:02:42 +10:00
bugobliterator 63b8733aab AP_CANManager: add support for multiple protocols on AP_Periph using CANSensor 2021-06-09 18:36:18 +10:00
Tom Pittenger bdf0efbbe7 AP_CANManager: reorganize precompiler for HAL_ENABLE_LIBUAVCAN_DRIVERS and HAL_MAX_PROTOCOL_DRIVERS 2021-06-09 18:36:18 +10:00
murata cfaf9f9420 AP_CANManager: Delete unused methods 2021-05-23 09:09:20 +10:00
Siddharth Purohit 8ca6b3e3ee AP_CANManager: add testing and debugging README 2021-05-19 17:51:28 +10:00
Tom Pittenger c756138ede AP_CANManager: add MPPT PacketDigital driver 2021-04-28 19:22:53 -07:00
Tom Pittenger 5e2dbd93fc AP_CANManager: add write_frame() to AP_CANSensor class 2021-04-28 19:22:53 -07:00
Randy Mackay 83c18249a4 AP_CANManager: chane KDECAN enum from 2 to 8
This is to force users to realise that something has changed in the hopes they will read the 4.1 release notes
2021-04-20 09:13:30 +10:00
Siddharth Purohit d1dcfd91b5 AP_CANManager: do select before sending passthrough message 2021-03-30 08:05:00 +11:00
Siddharth Purohit cb118c6b73 AP_CANManager: improve robustness of slcan passthrough under high rate 2021-03-30 08:05:00 +11:00
Patrick José Pereira e9a299d96e AP_CANManager: Remove pointer check before delete
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-04 09:01:19 +11:00
Peter Barker 96981baadf AP_CanManager: use milliseconds for timeout
The use of PRIu64 was breaking people's builds
2021-01-12 10:38:54 +11:00
Andrew Tridgell 0c6b4a1045 AP_CANManager: use ExpandingString class 2021-01-05 10:52:00 +11:00
Andrew Tridgell 6ed4eca57f AP_CANManager: fixed use of CANSensor on multiple ports
we should not increment _num_drivers if we don't have a driver yet
2021-01-02 06:25:20 +11:00
Andrew Tridgell b7fa1a4b98 AP_CANManager: added USD1 CAN driver type 2021-01-01 17:29:54 +11:00
Andrew Tridgell db798ace05 AP_CANManager: added EFI_NWPMU 2021-01-01 17:29:54 +11:00
Andrew Tridgell 32c3a2feef AP_CANManager: added CANSensor class
this makes creation of custom CAN protocol handlers much easier
2021-01-01 17:29:54 +11:00
Andrew Tridgell b2885e3e32 AP_CANManager: exposed can log level 2020-12-01 11:14:50 +11:00