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
Andrew Tridgell
0c14a28aa3
Plane: check for EFI enable in messages
2022-10-25 11:44:45 +11:00
Henry Wurzburg
58f8c34211
ArduPlane: update SRX descriptions
2022-10-19 23:26:45 +11:00
Andrew Tridgell
1421fccdac
Plane: send HYGROMETER_SENSOR data if available
2022-10-19 13:17:30 +11:00
Peter Barker
93c1b53a67
ArduPlane: stop sending BATTERY2 by default
2022-10-18 11:12:49 +11:00
Tom Pittenger
46bc30a40c
Plane: add guided radius to mavlink DO_REPOSITION
2022-10-11 09:35:28 -07:00
Peter Barker
3a61c97221
ArduPlane: do not send MSG_RPM if RPM not enabled
2022-09-28 20:10:21 +10:00
Peter Barker
81c138e0a4
Plane: remove logging of CMDI
...
This is a duplicate of the data logged into "MAVC"
2022-09-14 17:44:50 +10:00
Michael du Breuil
dba90ec227
Plane: Don't send HWSTATUS by default
2022-09-13 14:27:06 +10:00
Randy Mackay
c255b3b5b6
Plane: replace send-mount-status with send-gimbal-device-attitude-status
2022-08-15 20:29:25 -04:00