Peter Barker
127961e692
Plane: break out a method for set-attitude-target
2024-01-24 19:10:35 +11:00
Peter Barker
f96add13e9
Plane: break out a method for set-position-target-local-ned
2024-01-24 19:10:35 +11:00
Peter Barker
5bc2b1a09b
Plane: break out a method for set-position-target-global-int
2024-01-24 19:10:35 +11:00
Peter Barker
57535b538e
ArduPlane: handle RADIO_STATUS is GCS base class
2024-01-24 18:43:15 +11:00
Peter Barker
2f0cb8b650
ArduPlane: use virtual method for GCS_MAVLink::handle_message
...
use more appropriate naming for the method.
2024-01-24 09:07:41 +11:00
Tim Tuxworth
3cf0de2224
Plane: convert parameter TRIM_PITCH_CD to TRIM_PITCH_DEG
2024-01-23 15:00:30 +11:00
Peter Barker
6ee5ab41fd
ArduPlane: allow compilation with HAL_LOGGING_ENABLED false
2024-01-17 18:25:55 +11:00
Peter Barker
b3897c020e
ArduPlane: make AHRS attitude member variables private
2024-01-14 12:47:47 +11:00
Peter Barker
6c105d2649
PLane: return MAV_RESULT_COMMAND_INT_ONLY if command-long support not compiled in
2024-01-02 18:58:07 +11:00
Peter Barker
ba8e770a81
ArduPlane: stop streaming trying SIM_STATE messages outside sim
2023-11-20 19:25:25 +11:00
Peter Barker
ec5fa8bd62
ArduPlane: tidy sending of esc telem generator messages
2023-11-20 19:25:25 +11:00
Peter Barker
e1e1fae604
ArduPlane: tidy sending of queued mcu status messages
2023-11-20 19:25:25 +11:00
Peter Barker
803a56a6b4
ArduPlane: tidy sending of queued opticalflow messages
2023-11-20 19:25:25 +11:00
Peter Barker
4f76a6ec65
ArduPlane: tidy sending of queued mount messages
2023-11-20 19:25:25 +11:00
Peter Barker
4b285fa579
ArduPlane: add and use AP_MAVLINK_COMMAND_LONG_ENABLED
2023-11-16 10:50:21 +11:00
Peter Barker
e0eacdc197
ArduPlane: handle DO_SET_MISSION_CURRENT as both long and int
2023-11-16 10:50:21 +11:00
Peter Barker
c91968017b
ArduPlane: tidy use of GPS mavlink defines
2023-10-27 14:16:47 +11:00
Peter Barker
628bc02bf1
ArduPlane: save bytes when AP_AIS_ENABLED is false
2023-10-27 14:16:47 +11:00
Peter Barker
7961eb6045
Plane: consider nan as zero in DO_REPOSITION
...
QGC's interfaces want to send nan for these parameters
2023-10-27 14:16:07 +11:00
Peter Barker
edb4f25953
ArduPlane: remove MSG_BATTERY_STATUS from steams if AP_BATTERY_ENABLED is false
2023-10-26 13:23:57 +11:00
Paweł Rozenblut
1c6b4debe2
Plane: send attitude target message implementation (for quadplanes)
...
Minor modification - implementation of the send_attitude_target msg. streaming (for quadplanes). The code is analogous in its structure and functionality to the implementation in Copter
Co-Authored-By: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2023-10-25 09:53:13 +11:00
Michael du Breuil
b630efd4db
ArduPlane: Pass the 4th parameter to ICE for engine start
2023-10-24 14:11:39 -07:00
Peter Barker
a97adcf9cd
ArduPlane: handle MAV_CMD_NAV_TAKEOFF via command_long and command_in
2023-10-24 12:59:19 +11:00
Peter Barker
c990b0105e
ArduPlane: accept LOITER_UNLIM and RETURN_TO_LAUNCH as command_int
2023-10-17 12:58:57 +11:00
Peter Barker
2e494d496b
ArduPlane: allow Plane to run MAV_CMD_MISSION_START as long and int
2023-10-11 19:05:56 +11:00
Peter Barker
be3f292ba4
ArduPlane: don't send fence_status mavlink message if fence not compiled in
2023-10-04 19:13:23 +11:00
Peter Barker
e965b987f6
Plane: accept MAV_CMD_DO_LAND_START as both command_long and COMMAND_INT
2023-10-04 19:04:25 +11:00
Iampete1
73db3c3823
Plane: MAV_CMD_GUIDED_CHANGE_HEADING: allow changing heading type or rate for same heading
2023-10-03 11:28:18 +11:00
Peter Barker
af3992d795
Plane: handle DO_GO_AROUND as both COMMAND_LONG and COMMAND_INT
2023-09-27 17:37:55 +10:00
Peter Barker
c726dec834
ArduPlane: 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
11ffb059ae
Plane: accept MAV_CMD_DO_AUTOTUNE_ENABLE as both long and int
2023-09-26 11:36:57 +10:00
Peter Barker
63c88fea58
Plane: handle DO_PARACHUTE as both COMMAND_LONG and COMMAND_INT
2023-09-20 17:37:59 +10:00
Peter Barker
06f1ac07bc
Plane: accept motor test as both command long and command int
2023-09-19 20:31:03 +10:00
Peter Barker
ee316f04ed
Plane: allow DO_VTOL_TRANSITION as both LONG and INT commands
2023-09-13 21:25:14 +10:00
Peter Barker
c1b5e9a446
ArduPlane: support preflight calibration via command_int
2023-09-13 17:24:07 +10:00
Peter Barker
445f1fa272
Plane: handle DO_CHANGE_SPEED as COMMAND_INT
2023-09-12 09:22:36 +10:00
Peter Barker
4103d5cdb9
Plane: accept DO_ENGINE_CONTROL as both COMMAND_LONG and COMMAND_INT
2023-08-29 11:48:24 +10:00
Peter Barker
7df3d29e9d
ArduPlane: 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
Shiv Tyagi
ecdc036eb6
Plane: use AP_FOLLOW_ENABLED
2023-08-15 09:57:35 +10:00
Peter Barker
5c7e22debb
ArduPlane: correct return error return codes for DO_FOLLOW
...
in the case it wasn't compiled in the return code would be correct.
in the case that the parameter was invalid we would return FAILED, which is wrong, it should be DENIED
2023-08-01 10:43:34 +10:00
Peter Barker
354e3fa5bf
Plane: rely on conversion from long to int for DO_FOLLOW
...
we have code which tries to handle commands coming in as command long as command int.
Change to rely on that code working, rather than handling both command-long and command-int variants
2023-08-01 10:43:34 +10:00
Henry Wurzburg
b4c79c9105
Plane:add FlightOptions helper
2023-04-26 17:35:25 +10:00
Peter Barker
068443718e
GCS_MAVLink: deprecate use of MISSION_SET_CURRENT message
...
The mavlink command MAV_CMD_DO_SET_MISSION_CURRENT has been in place since January 2019 and is superior to this.
2023-04-18 10:24:26 +10:00
Tom Pittenger
3ac55f97b1
Plane generalize Aux Switch VTOL abort for any plane abort landings
2023-03-15 13:31:43 -07:00
Peter Barker
c18276e19b
ArduPlane: add support for mavlink in-progress message
2023-02-21 17:07:41 +11:00
Andrew Tridgell
2989e2deba
Plane: added support for NAV_PACKAGE_PLACE mission item
...
this works in conjunction with a lua script to allow for a wide
variety of package place options
2023-02-09 07:02:12 +11:00
Peter Barker
f0e17957f4
ArduPlane: 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
Iampete1
da503a5e44
Plane: GCS_Mavlink: use base class DO_SET_HOME
2022-12-14 19:25:44 +11:00
Peter Barker
447392c7f4
Plane: factor out handle_manual_control_axes
2022-11-23 19:33:46 +11:00
Peter Barker
de4dda2d17
ArduPlane: change namespace of MultiCopter and FixedWing params
...
this stops the libraries knowing anything about AP_Vehicle
2022-11-09 19:04:37 +11:00