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
Andrew Tridgell
e346cd3c80
GCS_MAVLink: fixed use of incorrect millis16() values
4 years ago
Peter Barker
45f7322af6
GCS_MAVLink: avoid catching up on sending messages when sending disrupted
...
The code here was never meant to maintain an "average" streamrate. It
was designed so that we would maintain a consistent clock in the face of
minor scheduling anomalies (like an EKF fusion step).
The way this is written, however, makes us spit out a message for each
of the intervals we missed - clearly not intended behaviour.
This was tested by inserting the following code:
void GCS_MAVLINK::update_send()
{
+ const uint32_t xnow = AP_HAL::millis();
+ if (xnow > 10000 &&
+ xnow < 20000) {
+ return;
+ }
+
4 years ago
Peter Barker
7cb8cde417
GCS_MAVLink: move orderly rebooting code from GCS into AP_Vehicle
...
Several places we reboot the vehicle we should probably do several of
the things done in this code - flushing parameters, forcing safety on
etc.
4 years ago
yaapu
e7a49dd624
GCS_Mavlink: refactor zero_rc_outputs() out of GCS_Mavlink
4 years ago
Andy Piper
5d487be242
GCS_MAVLink: squash enum type error
4 years ago
Andy Piper
8b766efb0a
GCS_MAVLink: add support for updating OSD parameters over mavlink
4 years ago
Sharvashish Das
80e2dbc9f2
GCS_Common: send_local_position uses offset from origin
5 years ago
Andrew Tridgell
30f9fd9d2a
GCS_MAVLink: fixed overrun of text passed to other libraries
...
this caused corruption in log files, and was passing a
non-nul-terminated string to notify and other libraries
5 years ago
Siddharth Purohit
42f5f986d8
GCS_MAVLink: use AP_CANManager library
...
also add support for handling enumeration cmd by KDETest
5 years ago
Peter Barker
0e284b95b0
GCS_MAVLink: move battery type enumeration out of parameters object
5 years ago
Randy Mackay
1a3ef62b84
GCS_MAVLink: add virtual send_winch_status
5 years ago
elhayra
9b3a574775
GCS_MAVLink: sending UAVCAN MAVlink ESC messages
5 years ago
Andy Piper
e91ae19544
GCS_MAVLink: make mount/gimbal configurable on a per-board basis
5 years ago
Dr.-Ing. Amilcar do Carmo Lucas
7067cbdafd
GCS_Mavlink: Adapt to upstream mavlink changes to the SCALED_PRESSURE message
5 years ago
Michael du Breuil
6773821b3b
GCS_MAVLink: Don't forward MAVLink data on channels marked private, make private channels more private
5 years ago
Andy Piper
05416daef3
GCS_Mavlink: output fast sampling startup messages
5 years ago
Andrew Tridgell
5a18b16f69
GCS_MAVLink: use strncpy_noterm
5 years ago
Peter Barker
741520d598
GCS_MAVLink: find next bucket to send when sending-ids emptied on msg removal
...
We need to find the next bucket of messages to send when we've removed
the last message id from the current set of IDs we're sending out - not
just when we've empted the bucket the messages came from in the first
place.
An internal check caught this bug - the
'next_deferred_bucket_message_to_send called on empty bucket' error
5 years ago
Peter Barker
e2056f56e3
GCS_MAVLink: support for sending generator message
5 years ago
Randy Mackay
03ea646e50
GCS_MAVLink: send_battery_status uses memcpy for cell voltages
...
Co-authored-by: WickedShell <Wicked.Shell.Scripts@gmail.com>
5 years ago
Randy Mackay
65aea0e9c1
GCS_MAVLink: send_battery_status sends min of cell 10 11 and 12
5 years ago
Michael du Breuil
7fae084793
GCS_MAVLink: Only send a single battery status per call
5 years ago
Peter Barker
e4621e6921
GCS_MAVLink: do not process commands after we have decided to reboot
5 years ago
chobits
991387dbfb
GCS_MAVLink: support covariance field in vis pose msg
5 years ago
Peter Barker
f158533fe9
GCS_MAVLink: allow private channels to also be active
...
This will allow for logging of private channels.
5 years ago
Peter Barker
06012cbc56
GCS_MAVLink: cope with RingBuffer rename if empty() to is_empty()
5 years ago
Peter Barker
07e3f1d48f
GCS_MAVLink: add RADIO_STATUS.rssi as an AP_RSSI telemetry source
5 years ago
chobits
ff6e4c4f9a
GCS_MAVLink: support VISION_SPEED_ESTIMATE
5 years ago
Peter Barker
5100c9fb8c
GCS_Common: whitelist AUTOPILOT_VERSION for in_delay_callback sending
...
GCSs may request this very early on in the boot process, particularly
for SITL.
If we try to send it during a delay callback then we end up dropping it
at the moment - but we'd already sent the ack in response to the
request.
5 years ago
Andy Piper
da166b256d
GCS_MAVLink: add messages to Spektrum telemetry if it is enabled
5 years ago
Andrew Tridgell
7cd901fa5b
GCS_MAVLink: enable ftp without filesystem
...
allows for @PARAM and @SYS
5 years ago
Peter Barker
8b0b644c11
GCS_MAVLink: correct check for payload space for COMMAND_ACK
5 years ago