Commit Graph

895 Commits

Author SHA1 Message Date
Peter Barker
d665d2c56e GCS_MAVLink: save bytes when AP_AIS_ENABLED is false 2023-10-27 14:16:47 +11:00
Peter Barker
e85f843c5d CS_MAVLink: tidy use of AP_BATTERY_ENABLED defines
remove entire functions rather than just their content
2023-10-26 13:23:57 +11:00
Peter Barker
2412ba495d GCS_MAVLink: remove handling of PREFLIGHT_SET_SENSOR_OFFSETS
This was the old offboard-calibration code.

We've checked MAVProxy, QGC and MissionPlanner and they're not using this code.

The onboard calibration stuff is better.
2023-10-26 13:19:59 +11:00
Peter Barker
740b939aa5 GCS_MAVLink: handle control-high-latency as both long and int 2023-10-26 13:19:29 +11:00
Peter Barker
21eaa08333 GCS_MAVLink: handle MAV_CMD_NAV_TAKEOFF via command_long and command_in 2023-10-24 12:59:19 +11:00
Peter Barker
0b04f765d4 GCS_MAVLink: factor out a virtual mav_frame_for_command_long method 2023-10-24 12:59:19 +11:00
Peter Barker
25846eb2bc GCS_MAVLink: handld MAV_CMD_DO_FENCE_ENABLE as both long and int 2023-10-24 11:37:18 +11:00
Peter Barker
37b02725b3 GCS_MAVLink: handle MAV_CMD_DO_SEND_BANNER as both long and int 2023-10-18 19:49:17 +11:00
Peter Barker
e71227fe3a GCS_MAVLink: handle MAV_CMD_GET_HOME_POSITION as both long and int 2023-10-18 19:48:23 +11:00
Peter Barker
7713b531a0 GCS_MAVLink: allow setting modes via COMMAND_INT and DO_SET_MODE 2023-10-17 10:41:36 +11:00
Peter Barker
90d39a6ee0 GCS_MAVLink: add build option for deprecated MISSION_REQUEST
replaced by MISSION_REQUEST_INT
2023-10-17 10:40:12 +11:00
Peter Barker
1ece48b2b3 GCS_MAVLink: handle MAV_CMD_DEBUG_TRAP as both long and int 2023-10-17 10:25:45 +11:00
Peter Barker
659db36efe GCS_MAVLink: accept accel cal vehicle positions as both int and long 2023-10-12 20:39:32 +11:00
Peter Barker
bb6287893d GCS_MAVLink: allow for compilation without AP_RTC_ENABLED 2023-10-11 19:17:27 +11:00
Peter Barker
ce1bb64686 GCS_MAVLink: handle EKF_SOURCE_SET as both long and int 2023-10-11 18:37:02 +11:00
Willian Galvani
107474b792 GCS_Common: use int8_t for rangefinder quality_pct 2023-10-11 08:29:58 +11:00
Peter Barker
805901dc18 GCS_MAVLink: allow PREFLIGHT_STORAGE as COMMAND_INT and COMMAND_LONG 2023-10-10 08:29:26 +09:00
Peter Barker
77945be031 GCS_MAVLink: cope with NaNs being passed in when doing conversion to command_int 2023-10-05 20:44:12 +11:00
Peter Barker
57c2f7b2de GCS_MAVLink: handle DO_AUX_FUNCTION as both long and int 2023-10-04 19:01:22 +11:00
Peter Barker
33b0bf699e GCS_MAVLink: allow compilation when GPS library not available 2023-10-04 18:10:58 +11:00
Peter Barker
423a88f9cd GCS_MAVLink: handle message interval commands as both long and int 2023-10-03 10:12:21 +09:00
Andrew Tridgell
92c0e7f860 GCS_MAVLink: use mavlink_frame_char_buffer()
and remove unnecessary extra mavlink_get_channel_status() function
2023-10-02 21:45:28 +11:00
Peter Barker
ef8cd449ec GCS_MAVLink: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int 2023-09-27 11:27:45 -07:00
Peter Barker
0f6bf8994f GCS_MAVLink: handle MAV_CMD_AIRFRAME_CONFIGURATION as both LONG and INT 2023-09-26 11:37:42 +10:00
Asif Khan
65be0bd1ba GCS_MAVLink: add MAV_CMD_IMAGE_STOP_CAPTURE support
Co-authored-by: Zachary Zalass <zachzalass@gmail.com>
2023-09-21 21:05:01 +10:00
Peter Barker
b44682d1a6 GCS_MAVLink: handle CAN_FORWARD as both command_INT and COMMAND_LONG 2023-09-20 17:50:56 +10:00
Peter Barker
5b0393e280 GCS_MAVLink: handle MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN as INT or LONG 2023-09-19 11:16:10 +10:00
Peter Barker
4f0b328674 GCS_MAVLink: support preflight calibration via command_int 2023-09-13 17:24:07 +10:00
Nick Exton
d47b60b92a GCS_MAVLink: Fix CAMERA_SETTINGS payload size check 2023-09-08 15:31:33 +09:00
Peter Barker
ed5da4ead2 GCS_MAVLink: allow more libraries to compile with no HAL_GCS_ENABLED 2023-09-05 22:23:51 +10:00
Peter Barker
8473f05738 GCS_MAVLink: add defines for serial control, deviceop and servo_relay 2023-09-05 10:20:14 +10:00
Peter Barker
fe512f7074 GCS_MAVLink: handle servo/relay events as both command_long and command_int 2023-08-29 11:15:14 +10:00
Peter Barker
92192a7510 GCS_MAVLink: add build options for deprecated messages MOUNT_CONTROL/MOUNT_CONFIGURE
these are repalced by the command equivalents
2023-08-29 11:06:13 +10:00
Asif Khan
e3f0904616 GCS_MAVLink: move handling of all do-set-roi to AP_Mount library 2023-08-26 17:55:53 +10:00
Peter Barker
a2d5244b10 GCS_MAVLink: accept mount commands as command_int 2023-08-24 22:07:12 +10:00
Nick Exton
fad1f35d93 GCS_MAVLink: Remove unreachable return in handle_command_mount() 2023-08-24 11:57:55 +10:00
Tom Pittenger
732cd31f27 GCS_MAVLink: MSG_HOME_POSITION to use NaN for invalid 2023-08-23 08:53:29 -07:00
Peter Barker
b141cca3d5 GCS_MAVLink: 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
1dd5778956 GCS_MAVLink: correct placement of AP_MAVLINK_MISSION_SET_CURRENT_ENABLED 2023-08-22 09:09:54 +10:00
Peter Barker
f2066d8e58 GCS_MAVLink: remove ap_message<->mavlinkid mappings for unused ids 2023-08-15 09:14:27 +10:00
Peter Barker
7764d1d904 GCS_MAVLink: add build_options.py option to remove rallypoint protocol 2023-08-15 08:37:17 +10:00
Peter Barker
808fcbda0e GCS_MAVLink: fix airspeed cal / format commands via non-USB telemetry 2023-08-15 08:13:32 +10:00
Andy Piper
9ac683a350 GCS_Common: report ARM CPUID on startup 2023-08-15 06:53:48 +10:00
Andy Piper
cf9a3ada28 GCS_MAVLink: print out IOMCU mcuid on startup 2023-08-15 06:53:48 +10:00
olliw42
2f58d082f0 GCS_Common: brackets missing in switch case 2023-08-11 12:11:43 -07:00
davidsastresas
6a9b457be3 GCS_Common: autopilot_state_for_gimbal_device sends angular_velocity_z 2023-08-10 14:37:30 +09:00
Ryan Friedman
578ba20df0 GCS_MAVLink: Use renamed visual odom function
* Now called pose instead of position

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-08-10 13:58:00 +09:00
Peter Barker
6097f1aa61 GCS_MAVLink: allow removal of preflight commands to fail the autopilot 2023-08-10 07:11:22 +10:00
Peter Barker
77b8c96eae GCS_MAVLink: add build_options.py option to remove fencepoint protocol
also gate more code on defines

Saves ~2kB
2023-08-09 17:53:54 +10:00
Peter Barker
13c83ee9f8 GCS_MAVLink: enable sending of RELAY_STATUS message 2023-08-09 07:44:07 +10:00