Iampete1
25e77a5d9f
Copter: GCS_MAVLink: use pos control `is_active_xy` to set `base_mode` `GUIDED_ENABLED` flag
2024-09-27 07:54:35 +09:00
Thomas Watson
873fe1df82
ArduCopter: only send airspeed when enabled
...
Avoids debug message spam about sending an unknown message.
2024-09-23 18:53:27 +10:00
Iampete1
9c5d071653
ArduCopter: add Airspeed to raw sensor stream rates
2024-09-17 09:10:17 +10:00
Peter Barker
784760342d
Copter: remove ENABLE/ENABLED/DISABLE/DISABLED defines
2024-09-06 11:53:09 +10:00
Peter Barker
6b2f3ff591
ArduCopter: emit MAV_RESULT_DENIED if start/stop item passed to MAV_CMD_MISSION_START
2024-08-20 09:38:43 +10:00
Peter Barker
42cf3aed97
Copter: use HAL_PARACHUTE_ENABLED in place of PARACHUTE_ENABLED
2024-08-07 18:09:23 +10:00
Peter Barker
86faf1ac52
ArduCopter: add build option to not send RC_CHANNELS_RAW
...
we keep this around in case we break old OSD setups
2024-07-30 10:29:58 +10:00
Leonard Hall
b45b07d539
Copter: Fix rate input frame and clarify SET_ATTITUDE_TARGET
2024-06-26 11:22:54 +10:00
richaravoil
b782d24f87
ArduCopter: get MAV_STATE_BOOT on reboot
...
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2024-06-18 20:22:29 +09:00
Iampete1
5b9848c5e1
Copter: support `DO_RETURN_PATH_START`
2024-04-30 08:03:39 +09:00
Peter Barker
5de6e20ecd
Copter: factor out methods for guided-mode commands
2024-04-14 13:19:07 +10:00
Peter Barker
5d41125b49
ArduCopter: move handling of DO_SET_HOME up to GCS_MAVLink base class
2024-04-09 09:35:16 +10:00
Peter Barker
cb76ce534b
ArduCopter: move AC_Avoidance defines into libraries
2024-03-11 18:07:18 +11:00
Iampete1
e9397e10f9
ArduCopter: don't try and send MSG_RANGEFINDER if AP_RANGEFINDER_ENABLED is false
2024-03-05 12:32:20 +11:00
Peter Barker
4c2cc511e6
ArduCopter: handle RADIO_STATUS is GCS base class
2024-01-24 18:43:15 +11:00
Peter Barker
8cda4ad924
ArduCopter: use virtual method for GCS_MAVLink::handle_message
...
use more appropriate naming for the method.
2024-01-24 09:07:41 +11:00
Peter Barker
7377b3f8f2
ArduCopter: allow compilation with HAL_LOGGING_ENABLED false
2024-01-17 18:25:55 +11:00
Peter Barker
a84e9e8e6c
Copter: don't send WINCH_STATUS message if winch not enabled
2023-11-26 20:59:14 +09:00
Peter Barker
c531d81cb3
ArduCopter: stop streaming trying SIM_STATE messages outside sim
2023-11-20 19:25:25 +11:00
Peter Barker
1059183758
ArduCopter: tidy sending of winch messages
2023-11-20 19:25:25 +11:00
Peter Barker
621e245b10
ArduCopter: tidy sending of esc telem generator messages
2023-11-20 19:25:25 +11:00
Peter Barker
256f373d7f
ArduCopter: tidy sending of queued generator messages
2023-11-20 19:25:25 +11:00
Peter Barker
88a862f128
ArduCopter: tidy sending of queued mcu status messages
2023-11-20 19:25:25 +11:00
Peter Barker
a97d51c877
ArduCopter: tidy sending of queued opticalflow messages
2023-11-20 19:25:25 +11:00
Peter Barker
dbc0f02649
ArduCopter: tidy sending of queued mount messages
2023-11-20 19:25:25 +11:00
Peter Barker
e7ff4a43ca
ArduCopter: add and use AP_MAVLINK_COMMAND_LONG_ENABLED
2023-11-16 10:50:21 +11:00
Peter Barker
875580069c
ArduCopter: tidy use of GPS mavlink defines
2023-10-27 14:16:47 +11:00
Peter Barker
20563bf58d
ArduCopter: save bytes when AP_AIS_ENABLED is false
2023-10-27 14:16:47 +11:00
Peter Barker
d46859aa96
ArduCopter: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false
2023-10-26 13:23:57 +11:00
Peter Barker
ca3b5a860a
ArduCopter: handle MAV_CMD_NAV_TAKEOFF via command_long and command_in
2023-10-24 12:59:19 +11:00
Peter Barker
cd92e301ab
ArduCopter: don't send fence_status mavlink message if fence not compiled in
2023-10-04 19:13:23 +11:00
Peter Barker
ef1952e1c0
Copter: acccept DO_LAND_START as both int and long
2023-09-29 13:55:32 +10:00
Peter Barker
d54d9ae922
ArduCopter: accept several mode-changing commands via command_int
...
... as well as via command_long
2023-09-29 08:56:50 +10:00
Peter Barker
a0ca3ffb22
ArduCopter: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int
2023-09-27 11:27:45 -07:00
Peter Barker
efc2c39c96
ArduCopter: remove COMPASS_CAL messages from streamrates if tumble cal disabled
...
fatal error in SITL if we try to send messages with these disabled
2023-09-26 11:39:50 +10:00
Peter Barker
ad9a36c157
Copter: allow MAV_CMD_CONDITION_YAW to be run as COMMAND_INT
2023-09-26 11:35:55 +10:00
Peter Barker
c61022f596
Copter: handle DO_CHANGE_SPEED as both COMMAND_LONG and COMMAND_INT
2023-09-20 15:44:38 +10:00
Peter Barker
b3dd5c20c5
Copter: handle MISSION_START as both COMMAND_LONG and COMMAND_INT
2023-09-20 09:39:31 +10:00
Peter Barker
624cfc8fcc
ArduCopter: handle MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN as INT or LONG
2023-09-19 11:16:10 +10:00
Peter Barker
4c6918afea
ArduCopter: handle DO_PARACHUTE as both command_long and command_int
2023-09-19 11:14:29 +10:00
Peter Barker
5e9c2a04d0
Copter: allow motor tests to be triggered with COMMAND_INT
2023-09-13 18:14:31 +10:00
Peter Barker
619b1ecd47
ArduCopter: support preflight calibration via command_int
2023-09-13 17:24:07 +10:00
Peter Barker
38ba5da09b
Copter: allow winch commands to be run as both COMMAND_LONG and COMMAND_INT
2023-09-12 09:30:27 +10:00
Peter Barker
496e6b18ff
Copter: accept solo buttons as both long and int
2023-09-05 09:58:53 +10:00
Peter Barker
b725a632d6
ArduCopter: allow MAV_CMD_SOLO_BTN_PAUSE_CLICK as COMMAND_INT
2023-08-29 11:14:05 +10:00
Peter Barker
e922d7e3bd
ArduCopter: accept mount commands as command_int
2023-08-24 22:07:12 +10:00
Peter Barker
57eeda0439
ArduCopter: pass mavlink_message_t to handle_command_*_packet
...
the "special case" blocks are getting longer and longer. Merge the switch statements for the command type to be handled by passing around the message.
2023-08-22 10:11:33 +10:00
Peter Barker
3fd0886574
Copter: rely on magic COMMAND_INT transform for MAV_CMD_DO_PAUSE_CONTINUE
2023-08-09 07:44:44 +10:00
Peter Barker
d41e677c08
Copter: correct return error return codes for DO_FOLLOW
...
in the case it wasn't compiled in the return code would be correct.
in the case that the parameter was invalid we would return UNSUPPORTED , which is wrong, it should be DENIED
2023-08-01 10:43:34 +10:00
Peter Barker
a79a8ca659
ArduCopter: rely on conversion from long to int for DO_FOLLOW
...
we have code which tries to handle commands coming in as command long as command int.
Change to rely on that code working, rather than handling both command-long and command-int variants
2023-08-01 10:43:34 +10:00