Peter Barker
4be9898fa5
RC_Channel: return a reference from AP::mission()
...
Every vehicle which compiles mission support in also instantiates an
AP_Mission object, so the singleton is never null. Returning a
reference rather than a pointer says so, and lets the nullptr checks at
each call site go away.
Saves around 150 bytes of flash per firmware.
2026-07-29 18:18:35 +10:00
Leonard Hall
24081385e1
RC_Channel: add missing if AP_LANDINGGEAR_ENABLED
2026-07-06 09:06:59 +10:00
Tatsuya Yamaguchi
d377162cfa
RC_Channel: add RC_OPTIONS bit to clear RC override by RC input change
...
Set CLEAR_OVERRIDES_BY_RC (bit 14) to clear an active MAVLink override
when the pilot moves the RC sticks beyond their deadzones. Vehicles
override has_pilot_input_for_override_clear() to define which axes
count; default matches Copter/Plane/Blimp.
2026-06-03 08:54:09 +09:00
Peter Barker
c4383c6c99
RC_Channel: do not allow RC override channel to be overridden
2026-06-02 08:04:27 +09:00
Andy Piper
3f1230b10a
RC_Channel: gate EKF reset on disarmed and fix short-circuit ordering
...
Resetting the EKF while armed would discard the in-flight state estimate.
Check the armed flag first so reset_configured_backend() is not called when
armed, and emit a distinct STATUSTEXT for the refused-while-armed case.
2026-05-13 18:04:37 +01:00
Andy Piper
76999e2ea5
RC_Channel: add EKF_RESET aux function for bootstrap reset
...
Add RCx_OPTION=187 (EKF_RESET) aux function that triggers a full EKF
bootstrap reset on HIGH, gated to fire only on state transition.
Sends GCS status message indicating whether the reset succeeded or
failed. Available for all vehicle types.
Gated by AP_AHRS_EKF_RESET_ENABLED compile-time option.
2026-05-13 18:04:37 +01:00
Henry Wurzburg
2a3ef13d9a
RC_Channel: add mount POI lock Aux Func/Switch
2026-01-19 18:29:05 -05:00
nttedt-murata
0277ae7be8
RC_Channel: Change all POSTION to POSITION
2026-01-17 20:28:48 +11:00
Henry Wurzburg
8a503f496b
RC_Channel:clean up format of RP lock switch
2026-01-06 14:15:47 +11:00
Randy Mackay
4f900815f9
RC_Channel: set-powered-state loses MPPT prefix
2026-01-02 09:41:26 -08:00
Henry Wurzburg
952ce21f2e
RC_Channel:add metadata for new switches
2025-12-03 06:45:07 +11:00
Henry Wurzburg
cf543fe1e6
RC_Channel: CADDX mount R/P earth frame lock options and control
2025-12-02 13:58:02 +09:00
bnsgeyer
e0666c0e28
RC_Channel: remove quadplane only label on system ID Aux switch
2025-11-04 10:35:38 +11:00
Randy Mackay
26e02c37e2
RC_Channel: rename aux fn for gripper
...
Gripper Release led users to think that high would release but actually high is grab
2025-10-19 18:12:29 +11:00
Leonard Hall
d01c6cd87e
RC_Channel: Do not assume gripper should be released on init.
2025-10-13 21:56:10 -05:00
David Howie
85a8a55611
RC_Channel: Add All-Vehicles value to scripting options for OPTION param.
2025-08-02 15:12:49 +10:00
Andy Piper
131318a6ff
RC_Channel: add function to stop or restart scripting
2025-07-23 18:13:36 +10:00
Peter Barker
c9080ecd43
RC_Channel: add a bool norm_input_ignore_trim
...
allows for validity of the data to be verified with the single call
2025-07-22 08:14:19 +09:00
Peter Barker
bfbbf4b8ed
RC_Channel: correct define gating AUX_FUNC::AVOID_ADSB
...
this doesn't actually really fix a bug at the moment as ADSB is required for AVOID_ADSB. But it is currently wrong
2025-06-27 10:10:55 +10:00
Peter Barker
577ce15ad9
RC_Channel: add and use AP_ADSB_AVOIDANCE_ENABLED
...
this gates the "ADSB" avoidance feature used for macro-level avoidance. It's not actually limited to ADSB as input...
2025-06-26 16:32:22 +10:00
Peter Barker
db26db9049
RC_Channel: correct compile when Arming and/or AHRS not available
2025-06-11 08:31:12 +10:00
rishabsingh3003
d694155211
RC_Channel: Correct AHRS_ENABLED macro
2025-06-02 16:28:47 +10:00
Peter Barker
25bf3cfc07
RC_Channel: remove line feeds from GCS_SEND_TEXT calls
...
these often make their way in when moving from some other printf-style debugging...
2025-05-30 22:36:07 +10:00
Henry Wurzburg
37930c5ebf
RC_Channel:add sub to additional aux sw metadata
2025-05-13 10:12:41 -03:00
Peter Barker
77c076ca44
RC_Channel: rename HAL_EXTERNAL_AHRS_ENABLED to AP_EXTERNAL_AHRS_ENABLED
...
in preparation for making this an optional feature; a lot of people will want to go and put this in their hwdef files as soon as we do this!
2025-05-13 09:06:44 +09:00
Henry Wurzburg
abd8c90218
RC_Channel:add Lowheiser metadata to aux functions
2025-05-12 12:01:08 +10:00
Henry Wurzburg
ddccad888e
RC_Channel:add Sub Aux Sw metadata
2025-04-25 12:37:32 -03:00
Henry Wurzburg
818f4558ef
RC_Channel: add RC to Sub
2025-04-25 12:21:43 -03:00
bnsgeyer
113736f9d3
RC_Channel: add description for SystemID Option 184
2025-03-21 13:01:43 +11:00
Andy Piper
211428d063
RC_Channel: make pwm_to_angle_dz_trim and pwm_to_range_dz full resolution
2025-03-18 11:36:20 +11:00
Randy Mackay
02ab06ff05
RC_Channel: rename rc option to AHRS AutoTrim
2025-03-05 11:22:40 +09:00
Henry Wurzburg
984409ca82
RC_Channel: add AUTOLAND AUX Function
2025-02-19 10:51:25 +11:00
Iampete1
9da6be2ef8
RC_Channel: Document EKF lane switch and yaw reset aux functions.
2025-02-18 14:19:51 +09:00
Iampete1
a74f0b35c7
RC_Channel: add docs for copter inflight trim
2025-02-17 17:15:10 +11:00
Peter Barker
6cd862709b
RC_Channel: make compass LearnType enum-class and parameter AP_Enum
2025-01-29 19:21:59 +11:00
Andy Piper
a87862dd3a
RC_Channel: add get_stick_gesture_pos() for OSD menus
2025-01-15 18:28:44 +11:00
Iampete1
efb5800d07
RC_Channel: re-instate init_aux_function call.
2025-01-02 08:25:34 +11:00
Iampete1
9ebb87816a
RC_Channel: add source index to aux function trigger
2024-12-24 11:34:07 +11:00
Iampete1
be86284f18
RC_Channel: move to AuxFuncTrigger structure
2024-12-24 11:34:07 +11:00
Iampete1
634e106af4
RC_Channel: add another 8 scripting aux functions
2024-12-14 15:41:57 +11:00
Andy Piper
9308a6ef69
RC_Channel: HAL_RUNCAM_ENABLED -> AP_CAMERA_RUNCAM_ENABLED
2024-12-13 11:07:09 +00:00
Henry Wurzburg
6e263532c8
RC_Channel:add QuickTune metadat
2024-12-11 14:04:00 +00:00
Peter Barker
88a80993dc
RC_Channel: remove unused method get_channel_pos
2024-11-13 20:08:51 +11:00
Peter Barker
091ba2782c
RC_Channel: adjust description of aux function 90 (EK3 Source Set
2024-09-16 22:34:34 +10:00
Peter Barker and Michelle Rossouw
6d8f0decac
RC_Channel: rename EKF_POS_SOURCE to EKF_SOURCE_SET
...
Co-authored-by: Michelle Rossouw <michelleros128@gmail.com >
these data sources span more than just position
2024-09-16 22:34:34 +10:00
Tatsuya Yamaguchi
253d98dd53
RC_Channel: use SourceSetSelection enum class
2024-09-08 10:02:29 +10:00
Peter Barker
b09e546fce
RC_Channel: remove AUX_FUNC entries based on feature defines
2024-09-08 00:55:43 +10:00
Iampete1
51963f497b
RC_Channel: add ICEngine start / stop aux function
2024-08-27 09:37:34 +10:00
Iampete1
9da6f321a0
RC_Channel: add autotune switch
2024-08-13 08:57:44 +09:00
Peter Barker and muramura
6f5ea5a5e9
RC_Channel: rework duplicate-rc-options check to use a Bitmask
...
just for the memory saving.
Co-authored-by: muramura <ma2maru@gmail.com >
2024-07-30 10:28:42 +10:00