Commit Graph

53 Commits

Author SHA1 Message Date
Peter Barker 55710e7f7b Blimp: 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 8e91c72089 Blimp: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
Peter Barker a13353f740 Blimp: stop streaming trying SIM_STATE messages outside sim 2023-11-20 19:25:25 +11:00
Peter Barker c79e9eb039 Blimp: tidy sending of esc telem generator messages 2023-11-20 19:25:25 +11:00
Peter Barker 3af77ea470 Blimp: tidy sending of queued generator messages 2023-11-20 19:25:25 +11:00
Peter Barker 294e04cffa Blimp: tidy sending of queued mcu status messages 2023-11-20 19:25:25 +11:00
Peter Barker e9700c1709 Blimp: tidy sending of queued opticalflow messages 2023-11-20 19:25:25 +11:00
Peter Barker c22a755373 Blimp: tidy sending of queued mount messages 2023-11-20 19:25:25 +11:00
Peter Barker 7a5ee38b9f Blimp: add and use AP_MAVLINK_COMMAND_LONG_ENABLED 2023-11-16 10:50:21 +11:00
Peter Barker 724104aa2a Blimp: tidy use of GPS mavlink defines 2023-10-27 14:16:47 +11:00
Peter Barker 159b71cee8 Blimp: save bytes when AP_AIS_ENABLED is false 2023-10-27 14:16:47 +11:00
Peter Barker 6cfc6f56cb Blimp: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false 2023-10-26 13:23:57 +11:00
Peter Barker 146485f7cf Blimp: handle MAV_CMD_NAV_TAKEOFF via command_long and command_in 2023-10-24 12:59:19 +11:00
Peter Barker b183d167d9 Blimp: remove misleading implementation of MAV_CMD_CONDITION_YAW
this would return success when it, in fact, does nothing.
2023-10-18 19:04:23 +11:00
Peter Barker 705f2102de Blimp: don't send fence_status mavlink message if fence not compiled in 2023-10-04 19:13:23 +11:00
Peter Barker eb0d421bfc Blimp: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int 2023-09-27 11:27:45 -07:00
Peter Barker 60ce931ce2 Blimp: 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 0f48bf7552 Blimp: support preflight calibration via command_int 2023-09-13 17:24:07 +10:00
Peter Barker 0bf4a0a39a Blimp: 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
Michelle Rossouw 362d4bf73b Blimp: Fix formatting to follow codestyle using script 2023-08-22 08:04:10 +10:00
Michelle Rossouw b5d22ce47c Blimp: Remove extra defines and other code, fixup some formatting and naming 2023-08-21 21:01:47 +10:00
Peter Barker d5b064b660 Blimp: remove un-needed DO_FOLLOW code case
UNSUPPORTED is the default return value from any unhandled case
2023-08-01 10:43:34 +10:00
Randy Mackay 5e6b974556 Blimp: remove unused handle_command_mount override 2023-05-17 12:38:49 +10:00
Peter Barker d92311381f Blimp: add support for mavlink in-progress message 2023-02-21 17:07:41 +11:00
Peter Barker 8f86cc85b5 Blimp: stop sending BATTERY2 by default 2022-10-18 11:12:49 +11:00
Peter Barker 5c75ad282f Blimp: do not send MSG_RPM if RPM not enabled 2022-09-28 20:10:21 +10:00
Peter Barker 3ced1b27aa Blimp: remove empty override method 2022-09-14 20:16:38 +10:00
Michael du Breuil 1759dd6368 Blimp: Don't send HWSTATUS by default 2022-09-13 14:27:06 +10:00
Randy Mackay 9d7f09f840 Blimp: replace send-mount-status with send-gimbal-device-attitude-status 2022-08-15 20:29:25 -04:00
Iampete1 6b06e2eb9b Blimp: add AIS to ADSB stream rate 2022-07-12 09:39:54 +10:00
Randy Mackay 03a2859e0e Blimp: remove unused MSG_GIMBAL_REPORT 2022-06-07 09:27:47 +10:00
Peter Barker 2f8b25328d Blimp: 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
Peter Barker c7f954c6c7 Blimp: 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 b76d048a5e Blimp: Change the process for errors 2022-03-08 14:36:19 -08:00
Peter Barker 5ae96b4656 Blimp: add RebootRequred to stream rate parameters 2022-03-01 11:01:12 +11:00
Peter Barker 7775b519bb Blimp: create and use location_from_command_t 2022-02-09 09:15:11 +11:00
Peter Barker 24a5f57b45 Blimp: 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
Tom Pittenger 667925ebbf Blimp: move ADSB mavlink handling from vehicles to common library 2021-10-14 19:55:27 -07:00
Andrew Tridgell 8929f4b763 Blimp: added MCU_STATUS message 2021-08-25 07:11:31 +10:00
Andrew Tridgell 4c1700d195 Blimp: added slew rate and Dmod for PID_TUNING message 2021-08-19 12:08:54 +10:00
Peter Barker dbf88265c0 Blimp: 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
Josh Henderson f64ccbd2a6 Blimp: remove POSITION_TARGET_TYPEMASK_FORCE_SET 2021-08-03 12:48:38 +10:00
Peter Barker 0986ade905 Blimp: remove misleading NOINLINE comment
NOINLINE hasn't been used in years in these files
2021-07-08 21:28:38 +10:00
Stephen Dade 2821e6815e Blimp: Add support for HIGH_LATENCY2 messages 2021-07-07 17:10:05 +10:00
Michelle Rossouw 1a0f44a8ad Blimp: Add logging and MAVLink 2021-07-06 14:56:02 +10:00
Michelle Rossouw 2cbcb2be87 Blimp: Code cleanups 2021-07-06 14:56:02 +10:00
Peter Barker d66220e3fc Blimp: remove HIL support 2021-06-15 09:47:31 +10:00
Leonard Hall c91fdcea72 Blimp: Use PosControl fixes 2021-05-24 20:13:37 +10:00
Pierre Kancir bb00340171 Blimp: use MAVLink POSITION_TARGET_TYPEMASK 2021-05-11 09:53:50 +10:00
Peter Barker d822499155 Blimp: move handling of last-seen-SYSID_MYGCS up to GCS base class 2021-04-07 17:54:21 +10:00