Michael du Breuil
6897dd08ef
Tools: AP_Periph: Add CAN_MIRROR
...
This allows us to mirror CAN traffic between ports on demand.
2023-09-19 12:17:28 +10:00
Tom Pittenger
ea207c4b4a
AP_Periph: add AP_PERIPH_SAFTEY_SWITCH_ENABLED
2023-09-19 09:29:26 +10:00
Andrew Tridgell
a732f846e6
AP_Periph: moved CAN_APP_NODE_NAME to AP_Periph.h
...
needed by battery driver
2023-09-05 06:56:51 +10:00
Andrew Tridgell
78faa5c6b0
AP_Periph: implement can inface masking per message
...
this prevents sending duplicate messages on an interface when a send
fails on a 2nd interface
2023-09-05 06:56:51 +10:00
Andrew Tridgell
5c8a29b47e
AP_Periph: detect dead interfaces in CAN transmit logic
...
when an interface has not managed to send a packet for 2s then no
longer consider a failed send a reason to keep the packet in the
transmit queue
2023-09-05 06:56:51 +10:00
Andrew Tridgell
0c38dada6c
AP_Periph: re-structure peripheral code
...
split into separate cpp files and avoid static functions
2023-09-01 13:04:59 +10:00
Tom Pittenger
4f2344f397
AP_Peirph: fix battery parameters
2023-08-28 09:14:33 -07:00
Andrew Tridgell
5566ed979d
AP_Periph: fixed default CAN node name
...
use org.ardupilot.BOARD_NAME
2023-08-26 21:12:42 +10:00
Andrew Tridgell
698e38e849
AP_Periph: allow SITL periph with more devices
2023-08-24 13:06:40 +10:00
Andrew Tridgell
c151d9bc3d
Tools: removed native_millis/micros
2023-08-24 13:06:40 +10:00
Peter Barker
ee0a49bb7c
AP_Periph: add support for DroneCAN RCInput packets
2023-08-19 20:27:24 +10:00
Tom Pittenger
09de840c8e
AP_Periph: add support for RawAirData.Pitot_temperature
2023-08-11 13:20:51 -07:00
Andrew Tridgell
1a4d87bc45
AP_Periph: fixed build with cAN term defines and single CAN
2023-08-01 11:38:03 +10:00
Peter Barker
3c46db5261
AP_Periph: rename ins locals to avoid conflict with ins member variable
2023-08-01 11:37:14 +10:00
Andrew Tridgell
946840cc99
AP_Periph: added targetted tunnel message for CAN serial passthru
...
this allows for remote control of serial devices over DroneCAN
2023-07-12 17:06:02 +10:00
bugobliterator
b6605f5877
AP_Periph: add CAN and Protocol statistics send
2023-07-10 12:56:37 +10:00
Peter Barker
30dea46cc5
AP_Periph: make canard_broadcast non-static
...
so it can be used from other files in AP_Periph
2023-07-05 14:37:51 +10:00
Peter Barker
0f1de63d7c
AP_Periph: move ADSB CAN handling into adsb.cpp
2023-07-05 14:37:51 +10:00
Andrew Tridgell
a7d51898da
AP_Periph: raise CAN priorty of MovingBaseline data
...
and raise CAN buffer size for lots of movingbaseline data
2023-06-27 10:32:43 +10:00
Peter Barker
5a33f870c0
Tools: use HAL_PROXIMITY_ENABLED in place of HAL_PERIPH_ENABLE_PRX
...
boolean truth rather than defines, and simplifies code
2023-06-08 11:53:01 +10:00
Michael du Breuil
3fd2865857
Tools: AP_Periph: fix building of hwesc telem
...
This was broken by the APD support
2023-05-31 15:08:01 +10:00
Michael du Breuil
e2d0cc55d0
AP_Periph: Support APD ESC telemetry
2023-05-25 17:35:27 -07:00
Michael du Breuil
584a1f8c49
Tools: AP_Periph: Reduce the priority of outdoing ADS-B messages
...
We consume these at line rate from the transciever, don't allow this to
cause unnecessary congestion on the bus, as it may be used for flight
critical functions. A more proper solution would be to behave more like
the actual AP_ADSB library, and simple rate limit how often we send any
updates out to the host device, as well as filtering for distance, but
that requires more information then is currently readily available.
2023-05-25 16:59:32 -07:00
Peter Barker
ddcfe5e734
Tools: move and rename CAN Driver_Type enumeration
2023-04-20 08:53:46 +10:00
Andrew Tridgell
c7231240c8
Tools: rename more variables, types and defines
2023-04-11 10:31:31 +10:00
Andrew Tridgell
7b4e4889c7
AP_Periph: use generated decoder for FW update and actuators
2023-04-10 14:46:54 +10:00
Andrew Tridgell
119b0b15f1
AP_Periph: cope with mixed bxCAN and CANFD packets
...
this allows for runtime switching of CANFD enable, while supporting
incoming bxCAN packets in CANFD mode
2023-04-10 14:46:54 +10:00
Peter Barker
7995bc5175
Tools: add and use option to compile SLCAN support out of code
2023-03-15 19:08:09 +11:00
Andrew Tridgell
2781f65d56
AP_Periph: limit peripheral mag to 25Hz by default
...
we only read mag on the vehicles at 10Hz. Some magnetometers were
reporting data at 500Hz (see MMC5xx3 driver)
by sampling more slowly the data is accumulated and averaged on the
node which saves a lot of bandwidth
2023-03-06 17:24:29 -08:00
Andrew Tridgell
d3bf7fc946
AP_Periph: rename CAN_PROBE_CONTINUOUS to AP_PERIPH_PROBE_CONTINUOUS
2023-03-06 19:48:07 +11:00
Tom Pittenger
223b91f6b4
Periph: fix sending GPS Heading packet at correct interval
2023-02-25 03:23:07 -08:00
rishabsingh3003
32a0c8935e
AP_Periph: Fix hwesc telem temp units
2023-02-22 07:12:47 +11:00
Iampete1
cb6891821e
AP_Periph: always call airspeed init to allow param conversion
2023-01-03 10:17:56 +11:00
Andrew Tridgell
69cb6796f3
AP_Periph: send GNSS Heading message
...
if not sending RelPosHeading then send Heading message if we have yaw
2022-12-20 10:23:58 +11:00
Andrew Tridgell
dcab2d2f2a
AP_Periph: cope with GPS without yaw accuracy
2022-12-20 10:23:58 +11:00
rishabsingh3003
27f55ae626
AP_Periph: Add proximity support
2022-12-15 07:20:05 +11:00
James O'Shannessy
4679cb4265
AP_Periph: Add timeout to ESC driving when CAN packets are lost
...
Fixes a periph continuing to drive an ESC to an output when the esc_rawcommand packets are lost
2022-12-03 13:55:01 +11:00
Tom Pittenger
4e94046a4a
AP_Periph: can_printf() to send longer strings using multiple packets
2022-10-23 21:47:42 -07:00
Tom Pittenger
3f4755ea7b
AP_Periph: add support for AP_TemperatureSensor
2022-10-18 10:05:31 +11:00
Tom Pittenger
53e0c4175e
AP_Periph: add support for SLCAN
2022-10-11 11:26:40 +11:00
Peter Barker
3cbd018877
AP_Periph: correct build for EFI can
...
no longer an array
2022-10-05 18:03:59 +11:00
Andrew Tridgell
aa757501f4
AP_Periph: removed the old DroneCAN Fix message
...
only send/process Fix2 message, saving bus bandwidth and flash space
2022-09-28 17:27:32 +10:00
Andrew Tridgell
31cac4395f
AP_Periph: support actuator type with PWM
...
this makes debugging much easier in CAN analyser
2022-09-13 16:23:44 +10:00
bugobliterator
939bd94796
AP_Periph: make constants used in bitshift unisigned
2022-09-08 13:37:55 +10:00
bugobliterator
3e8355638b
AP_Periph: add support for redundant CAN bus
2022-09-08 13:37:55 +10:00
Andrew Tridgell
a92cb1017e
AP_Periph: report unsigned bootloader flash attempt
2022-09-05 12:35:37 +10:00
Andrew Tridgell
a4fa99c96c
AP_Periph: fixed undulation in Fix2 pkt
2022-08-28 11:43:01 +10:00
Andrew Tridgell
2637f87409
AP_Periph: ensure we don't send inf in Fix and Fix2 for GPS
2022-08-28 11:43:01 +10:00
Andrew Tridgell
2f3fe19aca
AP_Periph: use AP_CheckFirmware
2022-08-15 09:18:34 +10:00
Andrew Tridgell
cc2589777f
AP_Periph: pass correct WGS84 height on GPS peripherals
2022-08-10 05:04:18 +10:00