Commit Graph

185 Commits

Author SHA1 Message Date
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
Michelle Rossouw de0dcdd9e4 Blimp: Fix inverted throttle 2023-08-21 21:01:47 +10:00
Michelle Rossouw 81650d34a3 Blimp: Add Loiter class and RTL mode 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
Andrew Tridgell 87092265d0 Blimp: removed set_blocking_writes_all calls 2023-07-12 17:06:02 +10:00
Henry Wurzburg 2e1b7897fd Blimp: allow scaled passthru to go to trim on rc failsafe 2023-06-29 21:37:12 +10:00
Peter Barker ccd39efe1c Blimp: add option to disable relay and servorelay libraries 2023-06-20 09:36:39 +10:00
bugobliterator 2ab058ef95 Blimp: move sysid_my_gcs to be public 2023-06-17 14:49:22 +10:00
Randy Mackay 5e6b974556 Blimp: remove unused handle_command_mount override 2023-05-17 12:38:49 +10:00
Randy Mackay 51708998f5 Blimp: version to 4.5.0-dev 2023-04-26 17:45:52 +10:00
tzarjakob dc037b9825 Blimp: configuration of Precision Landing for custom build server 2023-03-27 09:04:07 +11:00
Peter Barker fab0adf636 Blimp: remove unused defines from config.h 2023-03-20 19:26:44 -07:00
Peter Barker a303ddb6e3 Blimp: remove vestiges of system identification mode 2023-03-20 19:26:44 -07:00
Leonard Hall bfbc76e172 Blimp: Guided Yaw Fix 2023-03-21 08:23:12 +09:00
bugobliterator 581eb83f04 Blimp: change INS_ to INS 2023-03-21 10:04:16 +11:00
Peter Barker d92311381f Blimp: add support for mavlink in-progress message 2023-02-21 17:07:41 +11:00
Peter Barker 1aa5e07564 Blimp: remove vestige of advanced failsafe 2023-02-08 19:00:13 +11:00
Peter Barker 0f326b338e Blimp: tidy includes of SRV_Channel.h 2023-01-25 22:30:55 +11:00
Iampete1 31ba715616 Blimp: use check_enabked hepler to always check if all bit is set 2023-01-24 11:09:51 +11:00
Iampete1 010144b2bd Blimp: use shared param info defines 2023-01-11 18:41:34 +11:00
Peter Barker d3bbc94af9 Blimp: make check_var_info void
Given all the callers die anyway, make it void
2023-01-10 10:48:15 +11:00
Peter Barker 3ec97ea900 Blimp: implement parameter CopyFieldsFrom and use it 2023-01-03 11:08:43 +11:00
Leonard Hall 2d64bb8aa1 Blimp: Payload Place enhancements 2022-12-31 12:29:31 +09:00
Peter Barker 85d223b9d0 Blimp: code-generate chan-fetching methods
A recent PR had to change every single one of these methods, which was kind of unfortunate.

So generate the methods using a #define so the duplication happens at preprocessor-time.
2022-12-15 08:31:54 +11:00
Leonard Hall 5491d5bf2d Blimp: Support changing update period 2022-12-13 17:10:06 +11:00
Peter Barker e56544515a Blimp: remove some unused definitions 2022-11-25 20:13:24 +09:00
Peter Barker edab0d12bf Blimp: remove unused SPRAYER_ENABLED define 2022-11-15 08:45:42 +09:00
Peter Barker ea538641ea Blimp: change namespace of MultiCopter and FixedWing params
this stops the libraries knowing anything about AP_Vehicle
2022-11-09 19:04:37 +11:00
Peter Barker 8f86cc85b5 Blimp: stop sending BATTERY2 by default 2022-10-18 11:12:49 +11:00
jackhong12 4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
Peter Barker 997f8d3d3a Blimp: add AP_GRIPPER_ENABLED 2022-10-04 10:58:34 +11:00
Peter Barker 5c75ad282f Blimp: do not send MSG_RPM if RPM not enabled 2022-09-28 20:10:21 +10:00
Tatsuya Yamaguchi 701abc756e Blimp: remove unused define 2022-09-21 11:58:38 +10:00
Peter Barker fc2bd8428f Blimp: add and use AP_RPM_ENABLED 2022-09-20 09:28:27 +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
Peter Barker 27c5a80275 Blimp: move call to compass cal update up to AP_Vehicle 2022-08-16 10:06:44 +10:00
Henry Wurzburg 20c0448165 Blimp: update logging bitmask metadata to new style and correct errors 2022-08-09 11:38:16 +10:00
Iampete1 0bb28c6484 Blimp: set defualt format version 2022-07-20 17:59:59 +10:00
Iampete1 6b06e2eb9b Blimp: add AIS to ADSB stream rate 2022-07-12 09:39:54 +10:00
Peter Barker 1087b297ac Blimp: let AHRS update orientation in its own time 2022-06-12 17:32:11 +10:00
Randy Mackay 03a2859e0e Blimp: remove unused MSG_GIMBAL_REPORT 2022-06-07 09:27:47 +10:00
Peter Barker 2f7df9ef4c Blimp: run prearm checks on all vehicles @1Hz, displaying @0.0333Hz 2022-05-18 12:25:26 +09:00
Peter Barker b33fda72fe Blimp: move logging of compass ERR flags into AP_Compass 2022-05-10 19:46:40 +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 8783bb9638 Blimp: move error logging of sensor health into AP_Baro 2022-05-03 17:38:09 +10:00
Andy Piper d7d7574d2e Blimp: remove fast loop and convert to tasks 2022-05-03 08:20:13 +09:00
Michelle Rossouw b562d5c865 Blimp: Update output to current version 2022-04-21 13:01:40 +09: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
Peter Barker 6ac68c5875 Blimp: remove land_acel_ef_filter
Landing is for wimps
2022-04-06 17:36:51 +10:00
Henry Wurzburg 875f3f7d97 Blimp: add temporary GCS FS behavior of disarming Blimp 2022-04-02 14:57:17 +11:00
Henry Wurzburg 913afe7b4e Blimp: fix duplicate param and remove params/values not used 2022-03-29 08:37:09 +09:00
Peter Barker a501a86c8d Blimp: split AP_HAL_SITL and HAL_SIM_ENABLED 2022-03-17 14:39:55 +11:00
murata b76d048a5e Blimp: Change the process for errors 2022-03-08 14:36:19 -08:00
Peter Barker e277c3bd49 Blimp: include cleanups 2022-03-01 11:21:33 +11: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 2ef09752c1 Blimp: move logging of LogEvent::SET_HOME up 2022-02-08 11:04:26 +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
Peter Barker 62e10b328e Blimp: move logging of SIMSTATE, AHRS2 and POS into AP_AHRS library 2022-01-25 10:59:17 +11:00
Peter Barker 89b56f38f2 Blimp: rename AP_AHRS::get_position to get_location 2022-01-25 10:47:22 +11:00
Josh Henderson 5549c03e65 Blimp: move Airspeed to AP_Vehicle 2022-01-19 18:21:32 +11:00
Iampete1 c241bf6479 Blimp: remove motbatt logging 2022-01-18 10:18:10 +11:00
Peter Barker 3312ce06e7 Blimp: remove unimplemented methods 2022-01-11 11:09:26 +11:00
Michelle Rossouw e8e26d0b7f Blimp: Remove commented-out guided mode log message 2022-01-07 22:54:13 +11:00
Peter Barker e07a94e62c Blimp: move INS notch filter logging into INS 2022-01-05 16:34:36 +11:00
Peter Barker fe9ee72bf7 Blimp: make vehicles write notch log messages 2022-01-05 16:34:36 +11:00
Shiv Tyagi 3ad8e50603 Blimp: remove pilot_throttle_checks()
This method is redundant as throttle below FS_THR_THROTTLE value is already checked in set_throttle_and_failsafe() method.
2022-01-03 11:31:41 +11:00
Peter Barker 3f9ca50869 Blimp: tidy log message id definitions
Add a comment indicating only 20 ids are available to the vehicle
2021-12-21 10:42:18 +11:00
Peter Barker bcf9928c78 Blimp: use @CopyValuesFrom for FLTMODEn parameters 2021-12-16 07:11:33 +11:00
Andrew Tridgell f7442eca36 Blimp: revert compass parameter changes 2021-12-04 16:51:53 +11:00
Iampete1 2a2685d874 Blimp: remove compass params underscore 2021-11-30 08:14:43 +09:00
Josh Henderson 119ed0c103 Blimp: INAV rename for neu & cm/cms 2021-11-30 10:08:07 +11:00
Peter Barker 080149d174 Blimp: allow specification of Scheduler table priorities 2021-11-17 19:00:04 +11:00
Peter Barker 60932e04d5 Blimp: move from ENABLE_SCRIPTING to AP_SCRIPTING_ENABLED 2021-11-15 20:27:40 +11:00
Peter Barker e301595143 Blimp: ensure ENABLE_SCRIPTING is always defined 2021-11-15 20:27:40 +11:00
Peter Barker d4a25d5999 Blimp: remove unimplemented update_proximity/init_proximity declarations 2021-11-15 07:57:34 +09:00
Iampete1 0613ce64d7 Blimp: run parent mandatory_checks 2021-11-02 10:05:07 +11:00
Peter Barker f145785be0 Blimp: handle renaming of AP_InertialNav_NavEKF to AP_InertialNav 2021-10-20 18:09:36 +11:00
Shiv Tyagi 280ddb3d22 Blimp : Parameters.cpp : Formatting fixes in GCS_PID_MASK Bitmask description 2021-10-20 14:22:48 +11:00
Peter Barker 62bbfd60fb Blimp: move SITL object up to AP_Vehicle 2021-10-19 11:34:43 +11:00
Peter Barker e4f1b61f71 Blimp: factor substring from allocation_error parameter 2021-10-18 12:49:44 +11:00
Tom Pittenger 667925ebbf Blimp: move ADSB mavlink handling from vehicles to common library 2021-10-14 19:55:27 -07:00
bugobliterator 8a3e1b96ab Blimp: use allocation_error instead of panic on allocation failure 2021-09-30 08:51:26 +10:00
lthall 1d6e87e68d Blimp: Update PSC logging to include desired 2021-09-23 20:07:52 +09:00
Iampete1 085cb72fb5 Blimp: fix RC init order to avoid error message 2021-09-21 17:49:47 +10:00
Iampete1 be99a8a0bc Blimp: convert to new ARMDISARM 2021-09-21 09:36:24 +10:00
Andrew Tridgell 65c878c06f Blimp: moved accel cal update to vehicle code 2021-09-17 14:07:14 +10:00
Iampete1 07a114052c Blimp: remove defines for functions that dont exist 2021-09-14 13:26:05 +09:00
Tatsuya Yamaguchi 33d026f745 Blimp: remove unused config 2021-09-08 19:34:33 +09:00
Michelle Rossouw 0ee8b452ab Blimp: fixup mavlink mav type, fix mode ordering 2021-09-06 11:31:34 +01:00
Peter Barker ac05a66a54 Blimp: make bad-mode-number notification consistent across vehicles 2021-09-01 19:45:46 +09:00
Peter Barker 81fc725435 Blimp: eliminate AP::ahrs().get_location 2021-08-31 09:47:31 +10:00
Peter Barker 52eb168ca5 Blimp: add and use HAL_BUTTON_ENABLE 2021-08-25 19:03:42 +10:00
Andrew Tridgell 8929f4b763 Blimp: added MCU_STATUS message 2021-08-25 07:11:31 +10:00
Iampete1 ee5ff413a9 Blimp: remove stick gesture compass cal start and stop 2021-08-24 08:51:29 +09:00
Andrew Tridgell 4c1700d195 Blimp: added slew rate and Dmod for PID_TUNING message 2021-08-19 12:08:54 +10:00