Peter Barker
c43965f32e
GCS_MAVLink: correct decimation of SENSOR_STATUS message
...
static infers shared between all backends
4 years ago
Andrew Tridgell
6c24a030a6
GCS_MAVLink: use HAL_EFI_ENABLED
4 years ago
Josh Henderson
518666b5f0
GCS_MAVLink: Add battery_charge_state to Battery_Status message
4 years ago
Andrew Tridgell
96577b47f0
GCS_MAVLink: removed perf counters
4 years ago
giacomo892
f486d7170c
GCS_MAVLink: Fix build for builds with GPS_MAX_RECEIVERS = 1
4 years ago
Andy Piper
fca6925129
GCS_MAVLink: use generic send_esc_telemetry_mavlink() from AP_ESC_Telem
4 years ago
Peter Barker
bd76d15df4
GCS_MAVLink: log auxillary function invocations
4 years ago
Andrew Tridgell
8444a3310d
GCS_MAVLink: added handle_command_landing_target()
...
used to allow vehicle handling of time corrected LANDING_TARGET msgs
4 years ago
Peter Barker
9471d8069c
GCS_MAVLink: move handling of last-seen-SYSID_MYGCS up to GCS base class
4 years ago
Peter Barker
1a2b960b0d
GCS_MAVLink: prune old statustexts from queue
4 years ago
Peter Barker
4027ed6070
GCS_MAVLink: make servicing statustext more efficient
...
We should only need to do a single PAYLOAD_SIZE check for each mavlink
backend now.
- stop iterating over all channels, only do instantiated mavlink
backends
- if we don't have space for a statustext on a channel, break
immediately and don't do remaining texts
- resposibility is now on the GCS_MAVLINK backend for sending texts
- that's a timing change
- only iterate over entries actually in the queue rather than maximum
queue size
- it's likely to be the full length anyway as we don't expire things
from the queue and most setups will have full channels
4 years ago
Iampete1
0fe38da522
GCS_MAVLink: rename battery reset function
4 years ago
Peter Barker
115e895c82
GCS_MAVLink: return MAV_RESULT_FAILED from do_aux_function if invalid function
4 years ago
Peter Barker
2d61ded1f3
GCS_MAVLink: add option to execute auxillary functions via mavlink
4 years ago
Randy Mackay
b8f9c3b9c0
GCS_MAVLink: use of AP_Proximity checks HAL_PROXIMITY_ENABLED
4 years ago
Peter Barker
5123b05b2b
GCS_MAVLink: add support for ATTITUDE_QUATERNION
4 years ago
James O'Shannessy
f028747399
GCS_MAVLink: Remove todo since plane now supports MAV Protocol Capability Mission Fence
4 years ago
Peter Barker
e3de88d1d4
GCS_MAVLink: handle MAV_CMD_DO_SET_MISSION_CURRENT
4 years ago
Peter Barker
7480a2a00b
GCS_MAVLink: correct output of AHRS2 mavlink message
...
The || here was causing short-circuiting
4 years ago
Peter Barker
9932aa99f7
GCS_MAVlink: return identical seq in MISSION_CURRENT if possible after set
...
// because MISSION_SET_CURRENT is a message not a command,
// there is not ACK associated with us successfully changing
// our waypoint. Some GCSs use the fact we return exactly the
// same mission sequence number in this packet as an ACK - so
// if they send a MISSION_SET_CURRENT with seq number of 4
// then they expect to receive a MISSION_CURRENT message with
// exactly that sequence number in it, even if ArduPilot never
// actually holds that as a sequence number (e.g. packet.seq==0).
4 years ago
Peter Barker
cfe9dc32d1
GCS_MAVLink: only send distance_sensor messages if valid data seen
...
In the case you only have a forward-pointing LIDAR we'd send messages
for each of the other orientations from proximty's horizontal-distances
array, chewing up bandwidth and processing time.
4 years ago
Peter Barker
c5e62eb6e4
GCS_MAVLink: schedule current waypoint rather than immediate send
...
This message may not fit in our outgoing buffer
4 years ago
Patrick José Pereira
ba2adac869
GCS_MAVLink: Simplify boolean expression
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
Peter Barker
eefcc92f24
GCS_MAVLink: take MAV_CMD_DO_SPRAYER as a mavlink command
4 years ago
Andrew Tridgell
6d1511f3eb
GCS_MAVLink: added method to force save calibration
...
useful after reloading parameters
4 years ago
Patrick José Pereira
e8e41c512e
GCS_MAVLINK: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
4 years ago
Rishabh
a5fafe57d8
GCS_MAVLink: Add support for OBSTACLE_DISTANCE_3D
4 years ago
Peter Barker
e32ca819fc
GCS_MAVLink: mark results as unused
4 years ago
Peter Barker
e58d2ecf2f
GCS_MAVLink: add mavlink command option to create a 250ms long loop
4 years ago
yaapu
1c3b7d5ecd
GCS_MAVLink: added support for passthrough telemetry over crossfire
4 years ago
Pierre Kancir
30a4747898
GCS_MAVLink: send sim_state msg
4 years ago
Andrew Tridgell
ed8d86e5e6
GCS_MAVLINK: support deliberate parameter corruption
4 years ago
Peter Barker
3d577d94e8
GCS_MAVLink: add do_disarm_checks boolean to disarm call
...
this creates symmetry between arming and disarming, at least as far as
the top-level arm() and disarm() calls are concerned.
4 years ago
Peter Barker
0052500d67
GCS_MAVLink: split out a handle_command_component_arm_disarm
4 years ago
Brad Bosch
a2192eda5e
GCS_MAVLink: use RADIO_STATUS message txbuf field
...
this avoids overrunning radio buffer in queued_param_send()
4 years ago
Peter Barker
d24e569b20
GCS_MAVLink: add option to panic the autopilot
4 years ago
Peter Barker
b8827e6486
GCS_MAVLink: allow control to be return to radio for higher-numbered RC_CHANNELS_OVERRIDE
4 years ago
Peter Barker
6f4bbd3f57
GCS_MAVLink: for high RC_CHANNELS_OVERRIDE channels zero means ignore the field
4 years ago
Andrew Tridgell
e6c5382a28
GCS_MAVLINK: fixed FPE in DO_SET_ROI
...
this prevents a floating point exception when MissionPlanner sends an
invalid DO_SET_ROI
See https://github.com/ArduPilot/MissionPlanner/issues/2528
4 years ago
Dr.-Ing. Amilcar do Carmo Lucas
d76825feeb
GCS_MAVLink: adapt to upstream changes in the distance_sensor mavlink message
4 years ago
Dr.-Ing. Amilcar do Carmo Lucas
1d0e7d2974
GCS_MAVLink: Added cells 11...14 voltage information (13 and 14 are 0 for now)
4 years ago
Gone4Dirt
caf1ad28d5
GCS_Common: AP_Generator_Richenpower is now AP_Generator
4 years ago
Peter Barker
f0c22244a5
GCS_MAVLink: correct response codes when mode change fails
...
Was "UNSUPPORTED", which is supposed to mean, "Command is not supported"
Now is either "DENIED" (Command is invalid (is supported but has invalid
parameters)) or "FAILED" (Command is valid, but execution has failed.)
We should probably returned DENIED if we try to change to a mode which
doesn't exist, but that would require another callback on AP_Vehicle.
It would also lead to questions around what a valid mode is - so
QSTABILIZE if quadplane is disabled in Plane, for example.
4 years ago
Hwurzburg
6eca18c08b
GCS_MAVLink: add Board option to disable MAVftp in low mem bds/apps
4 years ago
Andrew Tridgell
9c74474196
GCS_MAVLink: setup baudrates for passthru serial ports
4 years ago
Andy Piper
4d1c660ebc
GCS_MAVLink: enable OSD parameters on parameter enablement
4 years ago
Tatsuya Yamaguchi
e1126d4fd6
GCS_MAVLink: use micro64 instead of micros for time_usec
4 years ago
Iampete1
73594cb19b
GCS_MAVLink: send airspeed temp in scaled_pressure
4 years ago
Peter Barker
74f75dcd31
GCS_MAVLink: fill AUTOPILOT_VERSION.uid2 from get_system_id_unformatted
4 years ago
murata
6304ade668
GCS_MAVLink: Change to leave the lower 16 bits.
4 years ago