Commit Graph

319 Commits

Author SHA1 Message Date
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
Peter Barker 4640ef9a66 ArduSub: rename AP_AHRS::get_position to get_location 2022-01-25 10:47:22 +11:00
Josh Henderson bdac4a2416 Sub: INAV rename for neu & cm/cms 2021-11-30 10:08:07 +11:00
Andrew Tridgell fd758113ce Sub: no need to fabs() get_default_speed_down() as it does fabs already 2021-09-07 18:55:00 +09:00
Andrew Tridgell 4daedd4572 Sub: added MCU_STATUS message 2021-08-25 07:11:31 +10:00
Andrew Tridgell bf7f140052 Sub: added slew rate and Dmod for PID_TUNING message 2021-08-19 12:08:54 +10:00
Peter Barker aa22126355 ArduSub: stop sending SENSOR_OFFSETS
Only works for first compass instance.

We have all of these in parameters anyway.
2021-08-18 18:06:24 +10:00
Peter Barker ed0b0451cf ArduSub: remove AC_TERRAIN compilation option
Use AP_TERRAIN_AVAILABLE instead
2021-07-12 17:34:44 +10:00
Peter Barker bc4ee95004 ArduSub: remove misleading NOINLINE comment
NOINLINE hasn't been used in years in these files
2021-07-08 21:28:38 +10:00
Stephen Dade 2a1f6e1b31 ArduSub: Add support for HIGH_LATENCY2 messages 2021-07-07 17:10:05 +10:00
Leonard Hall 266bd22df3 Sub: Use PosControl fixes 2021-05-24 20:13:37 +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
Tom Pittenger 5b684e5e2b Sub: change SRx_ docs value 1 50 2021-03-03 18:17:22 +11: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
Dr.-Ing. Amilcar do Carmo Lucas 664b181d16 ArduSub: Adapt to upstream mavlink changes to the SCALED_PRESSURE* messages 2020-07-29 14:34:22 +10:00
Randy Mackay b73d8b32de Sub: do not send ahrs3 mavlink message 2020-04-22 14:11:17 +09:00
Peter Barker 33f00c0051 ArduSub: remove comment for already-removed in-delay-callback function
These are now attached to completely unrelated functions, which is
pretty bad.
2020-04-16 15:11:35 +09:00
Willian Galvani ba415c99fe Sub: send Roll/Pitch Toggle flag 2020-03-30 11:19:45 -07:00
Peter Barker 4d0c61970d ArduSub: log disarm method 2020-02-22 12:16:29 +11:00