Andrew Tridgell
9ce11159b0
AP_UAVCAN: support OpenDroneID
2022-08-09 14:37:08 +10:00
bugobliterator
4852ac332d
AP_UAVCAN: add option bit for disabling Node Unhealthy check
2022-07-27 18:18:03 +10:00
bugobliterator
7ff0af7a0d
AP_UAVCAN: add support for dna_server instance per driver
2022-07-27 18:18:03 +10:00
Peter Barker
05131853d8
AP_UAVCAN: allow rangefinder backends to be individually compiled in
2022-06-21 09:15:20 +10:00
Andrew Tridgell
465dbd89f4
AP_UAVCAN: support DroneCAN EFI
2022-06-09 21:10:37 +10:00
Andrew Tridgell
541de85354
AP_UAVCAN: added dynamically allocated pool size param
...
allow for smaller pool size to save memory
2022-06-05 16:03:35 +10:00
Peter Barker
8cd0922f01
AP_UAVCAN: allow baro backends to be individually compiled out
2022-05-22 12:11:45 +10:00
Andrew Tridgell
cc06327526
AP_UAVCAN: allow CAN output for function==0 and allow for 32 CAN servos
2022-05-22 12:07:37 +10:00
Iampete1
d1e45c93d6
AP_UAVCAN: update ESC_BM and SRV_BM Bitmask
2022-05-22 12:07:37 +10:00
Andrew Tridgell
8106291bfe
AP_UAVCAN: added CAN_Dx_UC_ESC_OF parameter
...
this allows for an offset in ESC numbering for much more efficient CAN
bandwidth usage.
For example, on a coaxial OctoQuad quadplane the ESCs are typically
setup as outputs 5 to 12. An ideal setup is to split these over 2 CAN
buses, with one CAN bus for the top layer and the one bus for the
bottom layer (allowing for VTOL flight with one bus failed).
Without this offset parameter you would be sending RawCommand messages
like this:
bus1: [ 0, 0, 0, 0, ESC1, ESC2, ESC3, ESC4 ]
bus2: [ 0, 0, 0, 0, 0, 0, 0, 0, ESC1, ESC2, ESC3, ESC4 ]
this is very wasteful of bus bandwidth, with bus1 using 3x the
bandwidth it should and bus2 using 4x the bandwidth it should (the
above will take 3 can frames for bus1, and 4 can frames for bus 2)
With this patch you can set:
CAN_D1_UC_ESC_OF = 4
CAN_D2_UC_ESC_OF = 8
and you will get this on the bus:
bus1: [ ESC1, ESC2, ESC3, ESC4 ]
bus2: [ ESC1, ESC2, ESC3, ESC4 ]
that takes just 1 can frame per send on each bus
2022-05-18 21:23:30 +10:00
Peter Barker
7799d8bff5
AP_UAVCAN: allow backends to be compiled out
2022-05-10 09:02:51 +10:00
Peter Barker
e490a5b5cd
AP_UAVCAN: tidy includes
2022-05-03 09:14:58 +10:00
pacolate12
0d256da3b5
AP_UAVCAN: correct array inxexing
...
Allows the code to be run on hardware
2022-03-20 07:32:33 -07:00
bugobliterator
5865680070
AP_UAVCAN: move pool allocator to cpp
2022-03-11 18:13:54 +11:00
Siddharth Purohit
ef1bdc2e5f
AP_UAVCAN: add support for optionally publishing CANFD frames
2022-03-11 18:13:54 +11:00
Andrew Tridgell
55f21f367b
AP_UAVCAN: 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
7db723981c
AP_UAVCAN: make C_TO_KELVIN a function macro; create KELVIN_TO_C
...
These are in celsius
2022-01-13 18:31:46 +11:00
Peter Barker
a741499cff
AP_UAVCAN: create and use AP_OPTICALFLOW_ENABLED
...
Including a define for each backend.
2021-12-29 18:12:03 +11:00
Andrew Tridgell
5afe055a46
AP_UAVCAN: use soft armed state for DroneCAN ARMING_STATUS
...
this fixes motortest on quadplanes, so that ESCs see an armed state
during the test
2021-12-06 20:16:23 +11:00
bugobliterator
e4c6c0ad17
AP_UAVCAN:add support for sending Vehicle Notify state
2021-09-30 08:52:27 +10:00
Andrew Tridgell
63fcb804b3
AP_UAVCAN: added CAN_Dn_UC_OPTION parameter
...
this allows for 2 ways of controlling conflicts in the UAVCAN DNA
database. The first is to set CAN_Dn_UC_OPTION to 1, which resets the
DNA database, thus clearing any node conflicts.
The second is to set CAN_Dn_UC_OPTION to 2, which ignores node
conflicts in the DNA database
These options are useful for vehicles with UAVCAN smart batteries
where the node ID is fixed but the hwid changes and you want to do
battery swapping (possibly without rebooting)
2021-09-17 12:32:59 +10:00
bugobliterator
e8c4b99a99
AP_UAVCAN: add support for setting parameters on CAN nodes
2021-08-19 14:20:58 +10:00
bugobliterator
ddc82f7619
AP_UAVCAN: add messages for doing MovingBaseline Heading over UAVCAN
2021-08-19 14:20:58 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
ff200e9d11
AP_UAVCAN: fix compilation when HAL_WITH_ESC_TELEM == 0
2021-06-09 21:42:51 +10:00
Tom Pittenger
c807035e02
AP_UAVCAN: use HAL_ENABLE_LIBUAVCAN_DRIVERS instead of HAL_MAX_CAN_PROTOCOL_DRIVERS
2021-06-09 18:36:18 +10:00
Peter Barker
42b1a0998f
AP_UAVCAN: move from HAL_NO_LOGGING to HAL_LOGGING_ENABLED
2021-05-19 17:38:47 +10:00
Andy Piper
f513b1d1c2
AP_UAVCAN: add esc telemetry updates
...
remove send_esc_telemetry_mavlink()
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
Michael du Breuil
05b9aa2fa2
AP_UAVCAN: Broadcast ArmingStatus regularly
2021-02-02 10:57:57 +11:00
Andy Piper
40090dcce9
AP_UAVCAN: compile fix for debug/assertions
2021-01-03 08:57:13 +11:00
Andrew Tridgell
88b5523d47
AP_UAVCAN: added logging of UAVCAN LogMessage messages
...
this allows us to log internal errors from nodes into main flight
controller log
2020-12-01 11:14:50 +11:00
Andrew Tridgell
77687a9639
AP_UAVCAN: fixed build with no GCS
...
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
bugobliterator
49915ed06f
AP_UAVCAN: save some stack space
2020-10-08 09:31:35 +11:00
Andy Piper
940d708438
AP_UAVCAN: conditionally compile in ADSB support
2020-09-22 09:33:51 +10:00
Tom Pittenger
b502582d14
AP_UAVCAN: replace old hardcoded value with new mavlink enum
2020-09-15 13:09:50 -07:00
Siddharth Purohit
07b4708a36
AP_UAVCAN: move all uavcan related methods to AP_UAVCAN
2020-08-19 17:31:09 +10:00
elhayra
fe7e243b01
AP_UAVCAN: sending UAVCAN MAVlink ESC messages
2020-08-06 09:28:35 +10:00
Andrew Tridgell
a2d40d040a
AP_UAVCAN: added logging of CAN ESC status
2020-01-05 15:25:56 +11:00
Andrew Tridgell
b4966f21d8
AP_UAVCAN: added logging of UAVCAN actuator::Status messages
...
this allows for logging of CAN servo status
2020-01-05 15:25:56 +11:00
Andrew Tridgell
4dd1ec37f1
AP_UAVCAN: support RTCMStream for RTCM injection
2019-11-09 17:11:32 +11:00
Peter Barker
4ddfe2715b
AP_UAVCAN: adjust for rename of AP_UAVCAN_Server to AP_UAVCAN_DNA_Server
2019-10-25 20:24:54 +11:00
Siddharth Purohit
9bd379e236
AP_UAVCAN: setup uavcan server with internal storage
2019-10-19 09:55:38 +11:00
Andrew Tridgell
16bc7f800e
AP_UAVCAN: support ADSB over UAVCAN
2019-10-16 13:13:24 +11:00
Andrew Tridgell
21cce1385a
AP_UAVCAN: support safety buttons on UAVCAN
...
the button works in parallel with any button attached by IOMCU or by a
pin, and obeys all the same BRD_SAFETY* options
2019-09-10 16:22:33 +10:00
Andrew Tridgell
c6c1c4bc31
AP_UAVCAN: support safety LEDs on UAVCAN
2019-09-10 16:22:33 +10:00
Andrew Tridgell
d55f76c88e
AP_UAVCAN: added buzzer support
2019-09-10 16:22:33 +10:00
Siddharth Purohit
e866a574dd
AP_UAVCAN:add hex flow sensor message
2019-05-15 16:01:53 +09:00
Siddharth Purohit
c4360264cf
AP_UAVCAN: add support for hereflow and range sensor message over can
2019-05-15 16:01:53 +09:00
Michael du Breuil
08b48142c8
AP_UAVCAN: Fix includes
2019-04-05 20:12:53 +11:00
Jonathan Challinger
71af938a12
AP_UAVCAN: use fixed-size memory pool
2019-03-21 21:25:39 +11:00
Siddharth Purohit
7a871a8843
AP_UAVCAN: add config for enabling/disabling can filters
2019-01-23 15:57:05 +11:00