Commit Graph

337 Commits

Author SHA1 Message Date
Peter Barker f53fcffbf6 ArduSub: emit MAV_RESULT_DENIED if start/stop item passed to MAV_CMD_MISSION_START 2024-08-20 09:38:43 +10:00
Peter Barker 29ff6a28d1 ArduSub: 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
Clyde McQueen 297fcfd777 Sub: handle MAV_CMD_DO_REPOSITION 2024-07-25 10:44:16 +10:00
richaravoil d6ab080060 ArduSub: get MAV_STATE_BOOT on reboot 2024-06-20 19:25:59 -03:00
Willian Galvani be87aa5191 Sub: set default streamrates 2024-06-04 19:24:51 -03:00
Peter Barker 89a9a0e6d1 ArduSub: move handling of DO_SET_HOME up to GCS_MAVLink base class 2024-04-09 09:35:16 +10:00
Clyde McQueen e4115efa67 Sub: publish filtered alt in mav msgs 2024-04-08 10:51:12 -03:00
Iampete1 fd94222832 ArduSub: don't try and send MSG_RANGEFINDER if AP_RANGEFINDER_ENABLED is false 2024-03-05 12:32:20 +11:00
Clyde McQueen f9db039dcc Sub: add SURFTRAK mode 2024-02-21 18:59:20 -03:00
Peter Barker aa14e73a0b ArduSub: use virtual method for GCS_MAVLink::handle_message
use more appropriate naming for the method.
2024-01-24 09:07:41 +11:00
Willian Galvani 15b480f105 Sub: add support for 32 buttons and two additonal axis 2023-12-05 12:04:16 +11:00
Peter Barker a966e4232b ArduSub: stop streaming trying SIM_STATE messages outside sim 2023-11-20 19:25:25 +11:00
Peter Barker a0f4863dad ArduSub: tidy sending of esc telem generator messages 2023-11-20 19:25:25 +11:00
Peter Barker 964e0b9134 ArduSub: tidy sending of queued mcu status messages 2023-11-20 19:25:25 +11:00
Peter Barker 51481a8284 ArduSub: tidy sending of queued opticalflow messages 2023-11-20 19:25:25 +11:00
Peter Barker e407c3aacc ArduSub: tidy sending of queued mount messages 2023-11-20 19:25:25 +11:00
Peter Barker 5006242da0 ArduSub: tidy use of GPS mavlink defines 2023-10-27 14:16:47 +11:00
Peter Barker c3e5ea0b0f ArduSub: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false 2023-10-26 13:23:57 +11:00
Peter Barker 4843fa4c4b ArduSub: accept MAV_CMD_CONDITION_YAW as both long and int in Sub 2023-10-10 08:32:54 +09:00
Peter Barker 5c10db1e0c ArduSub: don't send fence_status mavlink message if fence not compiled in 2023-10-04 19:13:23 +11:00
Peter Barker 5a1a4acab2 Sub: accept DO_CHANGE_SPEED as both command_long and command_int 2023-10-04 18:36:52 +11:00
Peter Barker c1e12f691e Sub: accept MISSION_START as both long and int 2023-10-03 23:54:40 +11:00
Peter Barker 2eb5a7b09d ArduSub: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int 2023-09-27 11:27:45 -07:00
Peter Barker daf427f6d6 Sub: accept MAV_CMD_DO_MOTOR_TEST as both command-int and command-long 2023-09-27 17:39:55 +10:00
Peter Barker fe51f5448f ArduSub: 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 30101c1e0f Sub: accept NAV_LOITER_UNLIM and NAV_LAND as command_int too 2023-09-26 11:38:28 +10:00
Peter Barker 2d5452d540 ArduSub: support preflight calibration via command_int 2023-09-13 17:24:07 +10:00
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
Rakesh Vivekanandan 7628fa45bf Sub: GCS_Mavlink: Improved the functionality of SET_POSITION_TARGET_LOCAL_NED's callback. 2023-07-28 15:38:01 -03:00
Willian Galvani 9b70ac1286 Sub: big mode refactor 2023-07-13 14:56:40 -03:00
Peter Barker 3bbe5ee3ff ArduSub: add support for mavlink in-progress message 2023-02-21 17:07:41 +11:00
Peter Barker 90f41c72f4 ArduSub: avoid using struct Location
clang reports this could be a problem when compiling under some EABIs.  Remove it from most places as it is just noise, replace with class where we want to avoid including Location.h
2023-02-04 22:51:54 +11:00
Ohad Nir 8d366c16fb Sub:consider RC_CHANNELS_OVERRIDE for pilot_input_failsafe 2022-12-17 11:57:22 +11:00
Peter Barker 78808456af ArduSub: stop sending BATTERY2 by default 2022-10-18 11:12:49 +11:00
Tom Pittenger ea27d40cf6 Sub: use new function from TempSensor refactor 2022-10-18 10:05:31 +11:00
Tom Pittenger be42e53303 Sub: use new AP_TemperatureSensor library
Co-authored-by: Joshua Henderson <hendjoshsr71@gmail.com>
2022-10-18 10:05:31 +11:00
Peter Barker 365d2ef3ff ArduSub: add missing include 2022-09-28 20:10:21 +10:00
Peter Barker 48308b8156 ArduSub: add and use AP_RPM_ENABLED 2022-09-20 09:28:27 +10:00
Michael du Breuil e5a6e1133f Sub: Don't send HWSTATUS by default 2022-09-13 14:27:06 +10:00
Andrew Tridgell b3e4306b70 Sub: removed use of "blended" earth frame accel 2022-08-21 18:51:59 +10:00
Randy Mackay 796b39e908 Sub: replace send-mount-status with send-gimbal-device-attitude-status 2022-08-15 20:29:25 -04:00
Randy Mackay b0b6d35a5a Sub: remove unused MSG_GIMBAL_REPORT 2022-06-07 09:27:47 +10:00
Peter Barker 1764dce39e ArduSub: remove handling of MAVLINK_MSG_ID_SET_HOME_POSITION
We decided to remove this after 4.2 was out in favour of
MAV_CMD_DO_SET_HOME which has been available since 2015.

The gcs-maintainers list was notified in Feburary.
2022-05-10 09:46:22 +10:00
ES-Alexander 21cd4f1976 sub: GCS_Mavlink: fix depth hold typemask bug 2022-05-05 17:22:05 -03:00
Peter Barker 42383dd6f2 ArduSub: stop libraries including AP_Logger.h in .h files
AP_Logger.h is a nexus of includes; while this is being improved over
time, there's no reason for the library headers to include AP_Logger.h
as the logger itself is access by singleton and the structures are in
LogStructure.h

This necessitated moving The PID_Info structure out of AP_Logger's
namespace.  This cleans up a pretty nasty bit - that structure is
definitely not simply used for logging, but also used to pass pid
information around to controllers!

There are a lot of patches in here because AP_Logger.h, acting as a
nexus, was providing transitive header file inclusion in many (some
unlikely!) places.
2022-04-08 19:18:38 +10:00
murata e52931c692 Sub: Change the process for errors 2022-03-08 14:36:19 -08:00
Peter Barker c33590a63b ArduSub: add RebootRequred to stream rate parameters 2022-03-01 11:01:12 +11:00
Peter Barker bbc040d807 ArduSub: send deprecated message warning for MAVLINK_MSG_ID_SET_HOME_POSITION 2022-02-10 12:13:43 +11:00
Joshua Henderson 2836ec4ae0 Sub: SET_POSITION_TARGET_LOCAL_NED above origin 2022-02-08 12:14:10 +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