Peter Barker
cd92e301ab
ArduCopter: don't send fence_status mavlink message if fence not compiled in
2023-10-04 19:13:23 +11:00
Peter Barker
ef1952e1c0
Copter: acccept DO_LAND_START as both int and long
2023-09-29 13:55:32 +10:00
Peter Barker
d54d9ae922
ArduCopter: accept several mode-changing commands via command_int
...
... as well as via command_long
2023-09-29 08:56:50 +10:00
Peter Barker
a0ca3ffb22
ArduCopter: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int
2023-09-27 11:27:45 -07:00
Peter Barker
efc2c39c96
ArduCopter: 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
ad9a36c157
Copter: allow MAV_CMD_CONDITION_YAW to be run as COMMAND_INT
2023-09-26 11:35:55 +10:00
Peter Barker
c61022f596
Copter: handle DO_CHANGE_SPEED as both COMMAND_LONG and COMMAND_INT
2023-09-20 15:44:38 +10:00
Peter Barker
b3dd5c20c5
Copter: handle MISSION_START as both COMMAND_LONG and COMMAND_INT
2023-09-20 09:39:31 +10:00
Peter Barker
624cfc8fcc
ArduCopter: handle MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN as INT or LONG
2023-09-19 11:16:10 +10:00
Peter Barker
4c6918afea
ArduCopter: handle DO_PARACHUTE as both command_long and command_int
2023-09-19 11:14:29 +10:00
Peter Barker
5e9c2a04d0
Copter: allow motor tests to be triggered with COMMAND_INT
2023-09-13 18:14:31 +10:00
Peter Barker
619b1ecd47
ArduCopter: support preflight calibration via command_int
2023-09-13 17:24:07 +10:00
Peter Barker
38ba5da09b
Copter: allow winch commands to be run as both COMMAND_LONG and COMMAND_INT
2023-09-12 09:30:27 +10:00
Peter Barker
496e6b18ff
Copter: accept solo buttons as both long and int
2023-09-05 09:58:53 +10:00
Peter Barker
b725a632d6
ArduCopter: allow MAV_CMD_SOLO_BTN_PAUSE_CLICK as COMMAND_INT
2023-08-29 11:14:05 +10:00
Peter Barker
e922d7e3bd
ArduCopter: accept mount commands as command_int
2023-08-24 22:07:12 +10:00
Peter Barker
57eeda0439
ArduCopter: 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
Peter Barker
3fd0886574
Copter: rely on magic COMMAND_INT transform for MAV_CMD_DO_PAUSE_CONTINUE
2023-08-09 07:44:44 +10:00
Peter Barker
d41e677c08
Copter: 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 UNSUPPORTED , which is wrong, it should be DENIED
2023-08-01 10:43:34 +10:00
Peter Barker
a79a8ca659
ArduCopter: 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
Andrew Tridgell
ab07a2ecf3
Copter: moved MAV_CMD_AIRFRAME_CONFIGURATION to common code
2023-06-21 17:38:28 +10:00
Peter Barker
078debb893
ArduCopter: use enum class for mount type
2023-05-25 09:54:43 +10:00
Peter Barker
aa5a882de8
Copter: protect against bad vels/accels being sent through in guided mode
2023-05-25 09:42:28 +10:00
Randy Mackay
dec9584e5e
Copter: handle_command_mount override accepts msg
...
mavlink msg required to extra caller's sysid/compid
2023-05-17 12:38:49 +10:00
Peter Barker
f33e5e7847
ArduCopter: allow Copter to emit MISSION_STATE_PAUSED when paused in auto
2023-04-21 09:49:55 +10:00
tzarjakob
97b7e8d1d0
ArduCopter: configuration of Precision Landing for custom build server
2023-03-27 09:04:07 +11:00
Peter Barker
ade654b251
Copter: use AP_WINCH_ENABLED in place of WINCH_ENABLED
2023-03-03 20:59:06 +11:00
Peter Barker
9e00b8eeac
ArduCopter: add support for mavlink in-progress message
2023-02-21 17:07:41 +11:00
Peter Barker
1f13fd35e3
ArduCopter: 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
Andrew Tridgell
8cabcfc750
Copter: allow for flight mode UI when FRAME_CLASS=0
...
this makes the user experience of a first time install nicer for
copters/helis. At the moment the user finds the GCS is not functional,
for example flight mode drop-downs don't display. This can be
confusing as the user doesn't know about the link between displaying
flight modes and the FRAME_CLASS
2023-01-17 09:40:12 +09:00
Tatsuya Yamaguchi
da73b419ab
Copter: fix compilation when GUIDED, AUTO and CIRCLE modes are disabled
2022-12-22 13:37:28 +09:00
Peter Barker
c32a11f37a
ArduCopter: make and use AP_LANDINGGEAR_ENABLED
2022-12-14 18:30:23 +11:00
chobitsfan
b7e0b1ad38
Copter: explain msgs handling in packetReceived
2022-12-01 08:00:13 +09:00
Peter Barker
c5a3dfaa57
ArduCopter: factor out handle_manual_control_axes
2022-11-23 19:33:46 +11:00
Andrew Tridgell
5ba9b873b1
Copter: enable send of EFI_STATUS
2022-10-25 11:44:45 +11:00
Henry Wurzburg
ca80961a92
ArduCopter: update SRX descriptions
2022-10-19 23:26:45 +11:00
Peter Barker
76cb127067
ArduCopter: stop sending BATTERY2 by default
2022-10-18 11:12:49 +11:00
Peter Barker
410bd30f04
ArduCopter: do not send MSG_RPM if RPM not enabled
2022-09-28 20:10:21 +10:00
Peter Barker
0827ec0aaa
ArduCopter: populate sysid/compid in reboot ACK
2022-09-14 20:16:38 +10:00
Michael du Breuil
5c73cd581f
Copter: Don't send HWSTATUS by default
2022-09-13 14:27:06 +10:00
Randy Mackay
38665a7935
Copter: fix do-mount-control yaw scaling
2022-09-06 10:17:34 +10:00
Randy Mackay
33d214589f
Copter: replace send-mount-status with send-gimbal-device-attitude-status
2022-08-15 20:29:25 -04:00
Leonard Hall
7dd196c7ea
Guided Mode support MAV_CMD_DO_CHANGE_SPEED
2022-08-02 10:26:58 +10:00
Peter Barker
3480a8f9f9
ArduCopter: save some bytes by removing empty methods based on #ifs
2022-07-22 13:49:51 +10:00
Iampete1
cbaea15c96
Copter: add AIS to ADSB stream rate
2022-07-12 09:39:54 +10:00
Randy Mackay
7247bc50e5
Copter: remove unused MSG_GIMBAL_REPORT
2022-06-07 09:27:47 +10:00
Andrew Tridgell
705ec9040c
Copter: allow VTOL_TAKEOFF and VTOL_LAND as synonyms
...
this allows is_takeoff_next() to be in common, and reduces confusion
if user selects VTOL_TAKEOFF in a GCS mission editor
2022-05-18 06:43:16 +10:00
Peter Barker
fdb971fc0b
Copter: remove duplicate logging of mavlink parachute enable/disable
2022-05-10 08:47:11 +09:00
Peter Barker
c789755372
ArduCopter: 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
32cfe70a44
ArduCopter: 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