Commit Graph

444 Commits

Author SHA1 Message Date
Shiv Tyagi
dabd9ba73e Tools: use new AP_PERIPH_MSP_ENABLED define 2025-02-23 10:28:54 +11:00
Shiv Tyagi
873abe3fd3 Tools: use new AP_PERIPH_RELAY_ENABLED define 2025-02-23 08:58:36 +11:00
Shiv Tyagi
6a429b887a Tools: use new AP_PERIPH_RC_OUT_ENABLED define 2025-02-22 18:26:07 +11:00
Shiv Tyagi
76aed8f89c Tools: use new AP_PERIPH_HOBBYWING_ESC define 2025-02-20 21:56:14 +11:00
Shiv Tyagi
2b6bbedce6 Tools: use new AP_PERIPH_NOTIFY_ENABLED define 2025-02-20 13:32:20 +11:00
Shiv Tyagi
82a0347657 Tools: use new AP_PERIPH_EFI_ENABLED define 2025-02-20 13:05:19 +11:00
Shiv Tyagi
9b226edf3a Tools: use new AP_PERIPH_ADSB_ENABLED define 2025-02-20 12:06:00 +11:00
Iampete1
9fccccbb3d Tools: AP_Periph: SIM: servo telem move to one indexed 2025-02-18 11:51:34 +11:00
Iampete1
9427b81366 Tools: move from MAV_MODE enum to uint8_t 2025-02-17 17:20:24 +11:00
Shiv Tyagi
222f3ceefd Tools: use AP_PERIPH_NETWORKING_ENABLED for HAL_PERIPH_ENABLE_NETWORKING 2025-02-17 09:55:51 +11:00
Shiv Tyagi
0248f0d5d8 Tools: replace HAL_PERIPH_ENABLE_AIRSPEED with AP_PERIPH_AIRSPEED_ENABLED 2025-02-16 10:11:10 +11:00
Shiv Tyagi
abc605c7e4 Tools: u AP_PERIPH_RPM_ENABLED and AP_PERIPH_RPM_STREAM_ENABLED 2025-02-13 20:29:06 +11:00
Shiv Tyagi
651e0be73c Tools: replace HAL_PERIPH_ENABLE_RCIN with AP_PERIPH_RCIN_ENABLED 2025-02-11 19:31:19 +11:00
Shiv Tyagi
0b96145fbb Tools: use AP_PERIPH_RTC_ENABLED in place of HAL_PERIPH_ENABLE_RTC 2025-02-10 09:37:48 +11:00
Shiv Tyagi
61fb095525 Tools: use AP_PERIPH_IMU_ENABLED in place of HAL_PERIPH_ENABLE_IMU 2025-02-08 08:22:10 +11:00
Shiv Tyagi
c324143866 Tools: create and use AP_PERIPH_RANGEFINDER_ENABLED 2025-02-03 10:06:04 +11:00
Andrew Tridgell
30e3533cef AP_Periph: support CAN switch and LED defines
this allows for hwdef entries like this:

PB1 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW LOW
PB3 GPIO_CAN1_TERM_LED OUTPUT PUSHPULL SPEED_LOW LOW
PB0 GPIO_CAN1_TERM_SWITCH INPUT FLOAT

that specifies a termination pin controllable by either a parameter or
a hardware switch, with an LED to indicate if termination is active
2025-02-01 16:59:29 +11:00
Shiv Tyagi
dba4136f95 Tools: create and use AP_PERIPH_BARO_ENABLED 2025-01-31 08:25:28 +11:00
Shiv Tyagi
1060d6703b Tools: create and use AP_PERIPH_MAG_ENABLED 2025-01-30 08:49:03 +11:00
Peter Barker
a2322abe02 AP_Periph: adjust for new type-safety for AP_Enum 2025-01-29 19:21:59 +11:00
Peter Barker
4fb4556017 Tools: rename SRV_Channel::Aux_servo_function_t to SRV_Channel::Function 2025-01-28 21:56:46 +11:00
Peter Barker
6a9d3f97dd Tools: use python3 -m pip to install Python packages 2025-01-28 21:56:05 +11:00
Iampete1
f8967eb842 SITL: AP_Periph: sim_update_actuator report IDs that match AP channel indexes 2025-01-28 12:10:17 +11:00
Peter Barker
b3bc0528e0 Tools: create and use AP_PERIPH_BATTERY_ENABLED
... and AP_PERIPH_BATTERY_BALANCE_ENABLED while we're here
2025-01-28 09:11:21 +11:00
murata
3b8d1d23dd AP_Periph: support 32 motors in a frame 2025-01-27 14:03:41 +11:00
Peter Barker
04786200c3 Tools: create AP_PERIPH_GPS_ENABLED 2025-01-23 17:47:58 +11:00
Andy Piper
bc94df6d54 AP_Periph: correct use usage 2025-01-21 11:10:31 +11:00
Hayden Donald
a953cc2019 AP_Periph: Add restart acknowledgement for UAVCAN
There was no acknowledgement for UAVCAN so we add it here
2025-01-15 14:05:48 +11:00
muramura
bdacfdc76d AP_Periph: Change division to multiplication 2025-01-02 23:22:42 +11:00
Iampete1
95d4dc1a0d Tools: AP_Periph: Web: scripts: fix luacheck issue 2024-12-24 14:48:58 -06:00
Andrew Tridgell
4c0ef40d3b AP_Periph: fixed IMU in periph
wait_for_sample() can't handle very low sample rates without a
separate delay() by a ms value
2024-12-10 09:29:37 +11:00
Andrew Tridgell
13807f24d7 AP_Periph: added simulation of DroneCAN servo status
allows for testing of DroneCAN servo logging in SITL
2024-12-03 07:38:17 +11:00
Andrew Tridgell
08761e6066 AP_Periph: fixed build with scripting 2024-11-20 07:32:03 +11:00
Hayden Donald
79b596d229 AP_Periph: Prepare reboot before rebooting via AP_Periph:reboot()
Call AP_Periph:prepare_reboot() before rebooting via AP_Periph:reboot()
2024-11-19 16:08:40 +11:00
bugobliterator
37cfe71257 AP_Periph: add missing mandatory virtual method define for GCS_MAVLink 2024-11-15 11:25:19 +11:00
Peter Barker
dce4396430 Tools: make SRV_Channels::cork non-static
for symmetry with the push function
2024-11-13 19:47:49 +11:00
Peter Barker
573b02fc23 AP_Periph: create and use a singleton for SRV_Channels 2024-11-13 19:47:49 +11:00
Peter Barker
0ce765aac1 Rover: add specific defines for sending of GPS mavlink messages 2024-11-13 19:40:19 +11:00
Peter Barker
d1674b089a AP_Periph: rearrange apd periph initialiser for --error=reorder 2024-11-13 06:40:37 +11:00
James O'Shannessy
753f9eedef AP_Periph: Fix documentation for INS parameters
Parameters are being generated as `INS_` as the group, so `INS_USE` is actually documented as `INS__USE` (not the double underscore).
2024-11-05 10:05:01 +09:00
bugobliterator
b05a6c00b6 AP_Periph: add support for publishing raw imu data 2024-10-23 06:46:22 +09:00
bugobliterator
27b202e984 AP_Periph: make can broadcast threadsafe, like can_printf call from lua thread 2024-09-16 19:45:24 +10:00
Thomas Watson
dcd34dd39e AP_Periph: clean up node ID parameter handling
Properly document the range and behavior.

Rename storage variable as it doesn't connect to the DNA preferred ID
feature.
2024-09-10 12:36:34 +10:00
Thomas Watson
ebcb753acc AP_Periph: reject allocation of broadcast node ID
It is technically legal to receive an "allocation" of the broadcast node
ID. Fortunately, this was already ignored by `canardSetLocalNodeID`,
though it would trigger an assertion failure if those were enabled.

Fix by rejecting that ID. There is effectively no change in behavior
(except possibly fixes using moving baseline GPSes) but the code now
correctly ignores that ID and retries the allocation as it did before.
2024-09-10 12:31:19 +10:00
Ryan Friedman
c5484d9d62 Tools: AP_Periph: Add AP_GSOF to libraries
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-08-20 14:50:05 +10:00
Iampete1
0b551ed7bc AP_Periph: add support for sending extended ESC status 2024-08-20 09:14:11 +10:00
Thomas Watson
f2f1ac39cf AP_Periph: remove redundant DroneCAN packet buffer initialization
The <msg>_encode method always zeros the buffer up to <msg>_MAX_SIZE
bytes so there is no need to do it before calling the function.

Saves at least 8 bytes per instance.
2024-08-03 19:02:39 +10:00
rishabsingh3003
6a13432a21 AP_Periph: Fix compiling issues with AP_PERIPH_PROBE_CONTIONUS enabled 2024-07-25 10:53:23 +10:00
Bob Long
230269bed8 HAL_ChibiOS: add adjustable wdg timeout for hwdefs
This allows the watchdog timeout to be adjusted in the hwdef.dat file,
so that critical nodes like ESCs can recover more quickly.
2024-07-23 19:53:38 +10:00
Thomas Watson
dc58d0406c AP_Periph: add ESC_RATE parameter to RC_OUT peripherals
Like other vehicles (which use RC_SPEED), ESC_RATE is used to set the
PWM output rate for outputs whose functions are set to MotorN so that
ESCs can be driven at a fast speed (400Hz, same default as aerial
vehicles) while servos still run at normal speed (50Hz, controlled by
OUT_RATE).
2024-07-10 18:17:41 +10:00