Peter Barker
f064dcd902
ArduSub: 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
bugobliterator
6866ceb2e2
ArduSub: move sysid_my_gcs to be public
2023-06-17 14:49:22 +10:00
Peter Barker
3bbe5ee3ff
ArduSub: add support for mavlink in-progress message
2023-02-21 17:07:41 +11:00
Peter Barker
2372a4f3b6
ArduSub: provide default implemenation of handle_change_alt_request
...
The TODO items to actually implement these are almost 6 years old.
Since then these methods have been burning space.
This doesn't even make sense for several vehicles, so a default
implementation which does nothing seems OK.
2022-02-08 10:59:13 +11:00
Stephen Dade
2a1f6e1b31
ArduSub: Add support for HIGH_LATENCY2 messages
2021-07-07 17:10:05 +10:00
Peter Barker
2e23822b27
ArduSub: move handling of last-seen-SYSID_MYGCS up to GCS base class
2021-04-07 17:54:21 +10:00
Peter Barker
840bdbba62
Sub: show frame class as part of banner
...
Similar to how Copter does in its equivalent method.
frame type is not used on Sub ATM
2021-02-12 08:37:20 +09:00
Peter Barker
13e5e03a0d
ArduSub: move orderly rebooting code from GCS into AP_Vehicle
...
Several places we reboot the vehicle we should probably do several of
the things done in this code - flushing parameters, forcing safety on
etc.
2020-09-29 18:07:59 +10:00
Peter Barker
38a0fe4564
Sub: rename system_status as it won't be called from base class
2019-11-27 14:27:53 +11:00
Michael du Breuil
3f94f0d517
Sub: Support new AP_Vehicle::set_mode
2019-10-25 08:48:22 +08:00
Peter Barker
45af50f8bd
Sub: avoid allocate a GCS_MAVLINK per mavlink channel
2019-08-14 18:25:43 +10:00
Pierre Kancir
147a678569
ArduSub: pass mavlink_message_t by const reference
2019-07-16 20:51:42 +10:00
Peter Barker
fabf0a10d5
Sub: move vehicle_initialised to be on GCS not GCS_MAVLink
2019-03-19 14:39:14 +11:00
Peter Barker
1ce531b921
Sub: move base_mode and frame_type into GCS from GCS_MAVLink
2019-03-19 14:39:14 +11:00
Peter Barker
b04d084a50
Sub: move sending of send_pid_tuning up
2019-03-05 10:41:56 +11:00
Peter Barker
bb706305d0
Sub: move sensor flags to be a GCS thing rather than a GCS_MAVLINK thing
2019-02-19 14:09:59 +11:00
Peter Barker
7b80f56a80
Sub: GCS_MAVLink takes care of mavlink capabilities
2019-02-19 13:14:52 +11:00
Peter Barker
57e5991fde
Sub: move try_send_message of nav_controller_output up
2019-02-19 10:08:00 +11:00
Peter Barker
8937ef3190
Sub: make setting of home boolean in preparation for sanity checks
2019-02-15 08:28:45 +11:00
Peter Barker
44b7763caf
Sub: move handling of command-int MAV_CMD_DO_SET_HOME up
2019-02-13 09:42:26 +11:00
Peter Barker
17e4981785
Sub: move handling of RC_CHANNELS_OVERRIDE up
2019-02-05 13:59:21 +11:00
Peter Barker
fc19ce03b6
Sub: move sending of sys_status message up
2019-02-05 11:07:39 +11:00
Michael du Breuil
b4c5041aad
Sub: Remove unneeded GCS rally override
2019-01-08 10:39:50 +11:00
Peter Barker
d1daacd699
Sub: split SYS_STATUS and POWER_STATUS onto separate ap_messages
2018-12-18 14:05:20 +11:00
Peter Barker
aab9103356
Sub: GCS_MAVLink now uses Mission singleton
2018-12-13 10:52:52 +09:00
Peter Barker
a487cb09ed
Sub: move handling of gimbal messages up
...
Sub: move handling of mav_cmd_do_mount_control up
Sub: move handling of deprecated mount messages up
Sub: move handling of command_do_set_roi up
Sub: move handling of command_do_set_roi up
Sub: mount no longer takes ahrs in constructor
2018-10-30 17:19:14 +11:00
Peter Barker
753be1142f
Sub: use camera singleton to get camera rather than callback
2018-08-31 15:48:56 +10:00
Peter Barker
e4c0ef789b
Sub: GCS_MAVLink uses compass singleton, stop implementing get_compass
2018-08-31 15:48:56 +10:00
Peter Barker
2d1ed75592
Sub: handle command_long in GCS base class
2018-07-06 09:43:09 +10:00
Peter Barker
332fcb3226
Sub: handle command_int in base class
2018-07-06 09:43:09 +10:00
Peter Barker
e0eb3424ec
Sub: move mavlink reboot code up to base class
2018-07-03 12:12:25 +10:00
Peter Barker
c17514cf85
Sub: use AP_FWVersion singleton
2018-06-18 19:10:37 +01:00
Peter Barker
1dbfb9943c
Sub: make VFR_HUD always return height above MSL
2018-06-05 09:38:20 +10:00
Peter Barker
18c494b25f
Sub: move sending of vfr_hud up
2018-05-29 13:00:40 +10:00
Peter Barker
324be6ca0d
Sub: move sending of GLOBAL_POSITION_INT up to GCS_MAVLINK
2018-05-17 15:48:06 +01:00
Peter Barker
c91ba19e7f
Sub: override sending of scaled_pressure3
...
Without this change we run the risk of sending out the same message with
vastly different data in it
2018-05-17 15:37:14 +10:00
Peter Barker
631e967df3
Sub: handle setting of ekf origin in GCS_MAVLink
2018-05-17 10:13:42 +10:00
Michael du Breuil
2d7f60ab59
Sub: Use named float wrappers
2018-05-17 00:59:45 +01:00
Peter Barker
5674a68457
Sub: move data stream send up
2018-05-09 16:15:38 +10:00
Peter Barker
c7327acef7
Sub: use AP_ServoRelayEvents singleton
2018-04-18 20:31:55 +09:00
Peter Barker
fa3b3964e8
Sub: factor vehicle's mavlink send_heartbeat
2018-04-03 13:05:19 +01:00
Peter Barker
05ee33d037
Sub: tidy handling of barometer calibrations
2018-04-02 23:25:05 +01:00
Peter Barker
fe293abf37
Sub: factor out preflight calibration function
2018-04-02 23:25:05 +01:00
Peter Barker
2fc9b3b5f4
Sub: use gps singleton for GCS functions
2017-11-15 13:43:03 +00:00
Peter Barker
5b7f396e23
Sub: move handling of SET_GPS_GLOBAL_ORIGIN up
2017-09-19 15:44:23 +09:00
Peter Barker
52463a5ed6
Sub: move send_autopilot_request calls up to GCS base class
2017-08-30 15:54:46 +01:00
Peter Barker
ae9891d291
Sub: add constant structure holding firmware version
2017-08-30 15:54:46 +01:00
Peter Barker
5a9af5bc28
Sub: use GCS_MAVLINK subclasses to handle set_mode
2017-08-16 13:11:07 +01:00
Michael du Breuil
6e55c9554a
Sub: Support common version of MAV_CMD_DO_FLIGHT_TERMINATION
2017-08-15 15:14:56 +01:00
Peter Barker
077f577e5c
Sub: move common mavlink camera handling up
2017-07-28 14:32:58 +01:00