Peter Barker
71533c7c5c
GCS_MAVLink: correct frame on rally mission items
6 years ago
Peter Barker
880e96448b
GCS_MAVLink: tighten type on mavlink_coordinate_frame_to_location_alt_frame
6 years ago
Peter Barker
979a9fb679
GCS_MAVLink: ensure item being converted is a rally point
6 years ago
Randy Mackay
767408ffe9
GCS_MAVLink: resolve gcs::send_text compiler warning
6 years ago
Peter Barker
5e55aedd20
GCS_MAVLink: add printf-format attribute to send_text methods
6 years ago
Peter Barker
0bbe049477
GCS_MAVLink: assert max length of statustexts we send to the GCS
6 years ago
Andrew Tridgell
58b739db18
GCS_MAVLink: allow non-register device access with devop
...
useful for i2c devices such as LW20 lidar
6 years ago
Peter Barker
93ca243987
GCS_MAVLink: rearrange mission item handling code
...
This splits the missionitemprotocol handling entirely into separate
header files and separate compilation units.
6 years ago
Peter Barker
210c2070a1
GCS_MAVLink: remove include of AP_Param.h in GCS_MAVLink.h
...
This will help break include loops.
6 years ago
Pierre Kancir
b1506ca652
GCS_MAVLink: pass mavlink_message_t by const reference
6 years ago
Peter Barker
459680e7c8
GCS_MAVLink: make Avoidance responsible for sending collision message
6 years ago
Peter Barker
c0993509f7
GCS_MAVLink: declare GCS_MAVLINK as a class as it hasn't been defined yet
6 years ago
Michael du Breuil
b3c6d3d75a
GCS_MAVLink: Refactor battery current interface
6 years ago
Peter Barker
6cb8fcc466
GCS_MAVLink: move use of AP_AHRS_NAVEKF_AVAILABLE into cpp file
...
This is defined in AP_AHRS which we only get transitively in the header
6 years ago
Peter Barker
1ebbe45fe1
GCS_MAVLink: split sending of RC_CHANNELS and RC_CHANNELS_RAW
...
Before this patch is applied we may never send the second message
because there's not room for it in the buffer and we can't return
failure-to-send (always interpreted as "retry") as we're in a void function.
Further, if you are on a mavlink2 connection we will not send out the
RC_CHANNELS_RAW message, depriving the user of any RC_CHANNELS messages.
This patch does have the drawback of doing more work on a mavlink1
connection - it has to fetch the data twice. On the other hand, it also
allows the GCS to set the message rates independently for both
RC_CHANNELS and RC_CHANNELS_RAW so one or the other can be squelched.
That could be handy for reducing bandwidth if you know you're not using
more than 8 input channels.
6 years ago
Peter Barker
c8353c1c13
GCS_MAVLink: fill target system and target component in MISSION_ITEM responses
6 years ago
Peter Barker
c6533723de
GCS_Param: correct sending of parameters of length 16
6 years ago
Peter Barker
ebd8170a15
GCS_MAVLink: add missing include for AP_RTC
6 years ago
Peter Barker
f31b7b5772
GCS_MAVLink: remove stray undef of undefined macro
6 years ago
Michael du Breuil
18e979fd4f
GCS_MAVLink: Include needed AP_Baro.h
6 years ago
Michael du Breuil
f955a4e4d5
GCS_MAVLink: Don't retain a FrSky instance if we aren't using it
...
Saves 96 bytes of RAM
6 years ago
Peter Barker
278ac5e6ed
GCS_MAVLink: correct deferred body timing debug
6 years ago
Peter Barker
feddaabc42
GCS_MAVLink: handle out-of-time to send messages in parent class
6 years ago
Andrew Tridgell
f28df4dff1
GCS_MAVLink: support MAV_CMD_BATTERY_RESET command
6 years ago
Peter Barker
a55c40949b
GCS_MAVLink: remove pointless protocol parameter to setup_uart
6 years ago
Peter Barker
ca449cd979
GCS_MAVLink: stop pointlessly passing serial manager around
6 years ago
Peter Barker
45fab82345
GCS_MAVLink: eliminate redundant static pointer to serialmanager
6 years ago
Andrew Tridgell
b6dbb8f464
GCS_MAVLink: always show AHRS healthy with EKF type 10
...
this fixes an issue noticed by Marco with xplane
6 years ago
Peter Barker
c11da6a85d
GCS_MAVLink: routing example: use GCS_Dummy in place of custom GCS
6 years ago
Peter Barker
0963957b31
GCS_MAVLink: correct GCS_Dummy firmware version
6 years ago
Peter Barker
c39a622653
GCS_MAVLink: take sw_version from AP_FWVersion struct
6 years ago
Peter Barker
a2c4bfea0c
GCS_MAVLink: use send_to_active_channels for parameters
6 years ago
Michael du Breuil
be7afe346b
GCS_MAVLink: Fix AP_GPS include
6 years ago
Michael du Breuil
8c00102259
GCS_MAVLink: Reduce scoping on AP_BattMonitor include
6 years ago
Peter Barker
ae85994c59
GCS_MAVLink: include internal error count as errors4 in SYS_STATUS
6 years ago
Peter Barker
f385a4a329
GCS_Common: fix compiler warnings on missing parentheses
6 years ago
Randy Mackay
6ed09d83f3
GCS_MAVLink: send_home_position uses const Location reference
6 years ago
Rajat Singhal
bc22aeb4da
GCS_Mavlink: Correct format specifier in UART panic message
6 years ago
Peter Barker
a025794bae
GCS_MAVLink: correct is_streaming check and update of is-streaming mask
6 years ago
Peter Barker
264a757095
GCS_MAVLink: add send_to_active_channels method
6 years ago
Peter Barker
4d46c801f2
GCS_MAVLink: panic in SITL if we fail to write to uart
6 years ago
Peter Barker
99c56c1770
GCS_MAVLink: fix MAV.txp log field
...
This was being promoted to an unsigned.
6 years ago
Peter Barker
75ae6b59b0
GCS_MAVLink: allow Copter to disallow mavlink disarm
6 years ago
Peter Barker
e340873d88
GCS_MAVLink: canonicalise on success on commanded-to-arm-when-armed
...
This means the mavlink return value indicates the current arm status of
the vehicle rather than success/failure of transitioning to the armed or
disarmed state (where trying to arm when armed is considered a failure).
MAVLink is a lossy communication mechanism. It would not be
unreasonable for a GCS to issue a disarm command multiple times to
increase the chances of the command getting through.
6 years ago
Peter Barker
b857d2c1af
GCS_MAVLink: handle MAV_CMD_COMPONENT_ARM_DISARM
6 years ago
Peter Barker
1b90643751
GCS_MAVLink: report more internal errors in SYS_STATUS
6 years ago
Peter Barker
d0105c8fa7
GCS_MAVLink: factor mission handling, use for Rally
...
GCS_MAVLink: allow all mission types to be cleared
GCS_MAVLink: remove unused parameters from handle-mission-count
6 years ago
Andrew Tridgell
e2d863498b
GCS_MAVLink: clear last msgs when done
...
this makes MON and WDOG logs clearer
6 years ago
Andrew Tridgell
64c723fd31
GCS_MAVLink: record mavlink msg IDs for watchdog
6 years ago
Andrew Tridgell
3772f58be9
GCS_MAVLink: removed unusued AP_Common/Semaphore.h
6 years ago