Peter Barker
f8863971a2
GCS_MAVLink: move try_send_message telemetry_delayed call up to caller
2018-12-18 14:25:56 +11:00
Peter Barker
039ade421e
GCS_MAVLink: split SYS_STATUS and POWER_STATUS onto separate ap_messages
2018-12-18 14:05:20 +11:00
Peter Barker
294be787f8
GCS_MAVLink: correct SYSID_ENFORCE for our own mavlink-connected components
2018-12-14 12:44:31 +11:00
Peter Barker
759a8e5553
GCS_MAVLink: move accept_packet to base class
2018-12-14 12:44:31 +11:00
Francisco Ferreira
a50a9c65ad
GCS_MAVLink: change order in removing message from bucket
...
A call to find_next_bucket_to_send would change sending_bucket_id so the if would have a wrong meaning
The call also changes the bucket_message_ids_to_send so currently there is no bug, but it can change
2018-12-14 09:17:02 +09:00
Peter Barker
dfd0ecd2bd
GCS_MAVLink: use mission singleton
2018-12-13 10:52:52 +09:00
Peter Barker
cf5dd7cdd7
GCS_MAVLink: emit pressure data for separate airspeed instances
2018-12-12 21:36:01 +11:00
Peter Barker
cc5ad393e7
GCS_MAVLink: split MSG_SCALED_PRESSURE into three separate messages
2018-12-12 21:36:01 +11:00
Peter Barker
eb2ef9fd2d
GCS_MAVLink: use dataflash singleton rather than storing pointer
2018-12-11 08:43:47 +09:00
Peter Barker
1c6af7d777
GCS_Common: don't attempt to shove timesync message into a full channel
2018-12-10 15:25:10 +11:00
Peter Barker
6e7b9aa727
GCS_MAVLink: remove dead code
2018-12-10 12:52:41 +09:00
Peter Barker
160c29e01f
GCS_MAVLink: change number of buckets to 10
2018-12-10 12:52:41 +09:00
Peter Barker
17c82999d0
GCS_MAVLink: use panic() call for what it is good for
2018-12-10 12:52:41 +09:00
Peter Barker
a9c5affe8a
GCS_MAVLink: be consistent about calling count() or first_set
2018-12-10 12:52:41 +09:00
Peter Barker
8d970c13c0
GCS_MAVLink: avoid considering no_message_to_send equal to -1
2018-12-10 12:52:41 +09:00
Peter Barker
57fee7e8ef
GCS_MAVLink: remove redundant check in find_next_bucket_to_send
2018-12-10 12:52:41 +09:00
Peter Barker
e91ee3e54a
GCS_MAVLink: rename confusingly-named method
2018-12-10 12:52:41 +09:00
Peter Barker
b696986de6
GCS_MAVLink: clarify extra code in do_try_send_message is debug code
2018-12-10 12:52:41 +09:00
Peter Barker
f9399a708c
GCS_MAVLink: use defined no_message_to_send constant for what it's good for
2018-12-10 12:52:41 +09:00
Peter Barker
0dfe5b64bf
GCS_MAVLink: clarify comment on sending requests
2018-12-10 12:52:41 +09:00
Peter Barker
54d9e74f17
GCS_MAVLink add description for special messages
2018-12-10 12:52:41 +09:00
Peter Barker
5a0e0e7a87
GCS_MAVLink: rename DEBUG_SEND_MESSAGE_TIMINGS to GCS_DEBUG_SEND_MESSAGE_TIMINGS
2018-12-10 12:52:41 +09:00
Peter Barker
b6ac20ce32
GCS_MAVLink: use correct type for streamrate values
2018-12-10 12:52:41 +09:00
Peter Barker
c70fec305c
GCS_MAVLink: avoid squashing close-together intervals into same bucket
2018-12-10 12:52:41 +09:00
Peter Barker
e4bc874083
GCS_MAVLink: cap the minimum message interval to 80% of the main loop rate
2018-12-10 12:52:41 +09:00
Peter Barker
e08a8d03d2
GCS_MAVLink: initialise last_sent_ms when reusing bucket
2018-12-10 12:52:41 +09:00
Peter Barker
09905bb2f2
GCS_MAVLink: send data for sensors even if no data for other sensors
...
This is notable when you have a lot of compasses, for example
2018-12-10 12:52:41 +09:00
Peter Barker
c15de72095
GCS_MAVLink: split MSG_RAW_IMU1 into per-IMU ap_messages
...
Also allows for sending SCALED_IMU for the first IMU rather than RAW_IMU
2018-12-10 12:52:41 +09:00
Peter Barker
ef46acda71
GCS_MAVLink: support MAV_CMD_SET_MESSAGE_INTERVAL
2018-12-10 12:52:41 +09:00
Peter Barker
f0a95182be
GCS_MAVLink: add is_active and is_streaming methods
2018-12-10 12:52:41 +09:00
Peter Barker
75e63db366
GCS_MAVLink: rename MSG_EXTENDED_STATUS2 to MSG_MEMINFO
2018-12-04 18:01:38 +11:00
Peter Barker
d5322633ed
GCS_MAVLink: rename MSG_RAW_IMU2 and MSG_RAW_IMU3 to reflect what they send
2018-12-04 17:45:32 +11:00
Andrew Tridgell
259723eb26
GCS_MAVLink: use JitterCorrection class
2018-12-04 11:37:38 +11:00
Randy Mackay
70817bb6a7
GCS_Common: optical flow comp fields should include flow
2018-11-28 20:38:58 +09:00
Matt
adf78ab8d3
MAVLINK: Forward to private channels if sysid and compid match
...
If the target system ID and target component ID match a private channel,
it is ok to forward that mavlink traffic. Any traffic without a
matching sysid or compid will not be forwarded on the channel
2018-11-28 11:33:23 +11:00
Peter Barker
686abb5e61
GCS_MAVLink: warn user via text message of mission upload failure
2018-11-26 14:31:41 -08:00
Andrew Tridgell
1e354d53c9
GCS_MAVLink: added private channel mask
...
this allows a channel to be marked "private". A private channel gets
heartbeats, but doesn't get forwarded packets or broadcast messages
This is used by solo gimbal driver
2018-11-24 11:00:37 +11:00
Peter Barker
f4cf4c7fa2
GCS_MAVLink: remove unused variable
2018-11-23 14:25:20 +09:00
Peter Barker
38fdcb02a4
GCS_MAVLINK: move sending of optical flow status up to base class
2018-11-13 10:40:23 +11:00
Peter Barker
3749cfd764
GCS_MAVLink: allow vehicles to override VFR_HUD.alt
2018-11-06 11:26:38 +09:00
Peter Barker
1eac03a257
GCS_MAVLink: scale parameter send rate according to link bandwidth
2018-10-30 19:31:37 +11:00
Peter Barker
890a62fc51
GCS_MAVLink: move handling of gimbal messages up
...
GCS_MAVLink: move handling of mav_cmd_do_mount_control up
GCS_MAVLink: move handling of deprecated mount messages up
GCS_MAVLink: move handling of command_do_set_roi up
GCS_MAVLink: move handling of command_do_set_roi up
GCS_MAVLink: handle MAV_CMD_DO_MOUNT_CONFIGURE
GCS_MAVLink: call renamed AP_Mount send_mount_status msg
GCS_MAVLink: add support for MAV_CMD_DO_SET_ROI_LOCATION
2018-10-30 17:19:14 +11:00
chobits
ed12c6719d
GCS_MAVLink: log vision data pitch/roll/yaw in degree
2018-10-30 11:39:47 +09:00
Peter Barker
96b5be0e7d
GCS_MAVLink: account for snprintf now null-terminating strings
2018-10-21 07:54:30 +11:00
Peter Barker
26e7abe6c4
GCS_MAVLink: use camera singleton to get camera rather than callback
2018-08-31 15:48:56 +10:00
Peter Barker
d5f6911db7
GCS_MAVLink: use compass singleton instead of subclass callback
2018-08-31 15:48:56 +10:00
Pierre Kancir
2661ad2ed3
GCS_Common: remove status text for gripper
2018-08-27 14:39:49 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
b9df513705
GCS_MAVLink: remove redundant ret = true statements (NFC)
2018-08-26 18:21:45 +10:00
Andrew Tridgell
5988c3258f
GCS_MAVLink: use Semaphore.h
2018-08-16 12:40:10 +10:00
Andrew Tridgell
a26e534654
GCS_MAVLink: use WITH_SEMAPHORE()
...
this is a suggestion from Peter, will need some discussion
2018-08-16 12:40:10 +10:00
Andrew Tridgell
048a52ebc0
GCS_MAVLink: make mavlink send from multiple threads safe
...
this takes a lock to prevent interleaving of mavlink msgs from
multiple threads
2018-08-16 12:40:10 +10:00
Andrew Tridgell
5de49aa5aa
GCS_MAVLink: flush parameters on reboot
2018-08-16 12:40:10 +10:00
Michael du Breuil
83d01c8b7d
GCS_MAVLink: Use ARRAY_SIZE to avoid a magic value
2018-08-09 11:53:05 +10:00
Michael du Breuil
21dfe02c6e
GCS_MAVLink: always send an idea of battery voltage as part of
...
BATTERY_STATUS
2018-08-07 09:52:45 +10:00
Andrew Tridgell
df643d8499
GCS_MAVLink: allow uninstall of alt protocol handler
2018-08-04 19:29:13 +10:00
Peter Barker
dbccd6a399
GCS_MAVLink: use rc() method to get rc singleton
2018-08-01 12:11:30 +09:00
Peter Barker
d698960728
GCS_MAVLink: correct bad fall-through
2018-07-06 10:43:17 +10:00
Peter Barker
3710c50c4e
GCS_MAVLink: handle MAV_CMD_ACCELCAL_VEHICLE_POS in GCS base class
2018-07-06 09:43:09 +10:00
Peter Barker
4775a67ea0
GCS_Common: handle command_long in GCS base class
2018-07-06 09:43:09 +10:00
Peter Barker
4ad065de99
GCS_MAVLink: handle command_int in base class
2018-07-06 09:43:09 +10:00
Peter Barker
e7b409924c
GCS_Common: send 0 rather than 1 in servo zero-rc-outputs
2018-07-03 12:12:25 +10:00
Peter Barker
f7daf1c676
GCS_MAVLink: rearrange code for clarity
2018-07-03 12:12:25 +10:00
Peter Barker
11df6debd0
GCS_MAVLink: move mavlink reboot code up to base class
2018-07-03 12:12:25 +10:00
Peter Barker
73bbe8b84e
GCS_MAVLink: send ack before board reboot
...
Based on https://github.com/ArduPilot/ardupilot/pull/6640
2018-07-03 12:12:25 +10:00
Andrew Tridgell
94d8010a16
GCS_MAVLink: expose HUD throttle accessor
2018-07-03 07:29:43 +10:00
Andrew Tridgell
a3e44b3249
GCS_MAVLink: fix from review comment
...
thanks Pierre
2018-06-28 11:35:13 +10:00
Peter Barker
4a8614fbbd
GCS_MAVLink: handle MAV_CMD_FLASH_BOOTLOADER
2018-06-28 11:35:13 +10:00
Peter Barker
a44c1378f7
GCS_MAVLink: add send_textv functions
2018-06-23 15:33:19 +10:00
Andrew Tridgell
f401dc1a77
GCS_MAVLink: fixed error in SITL for ESC_TELEMETRY
2018-06-21 10:48:02 +10:00
Peter Barker
27cd972331
GCS_MAVLink: add magic number definitions
2018-06-20 11:43:38 +10:00
Andrew Tridgell
5495e98483
GCS_MAVLink: build fixes
...
needed for new mavlink2 extensions in battery monitor message
2018-06-19 09:36:03 +10:00
Andrew Tridgell
4e4e5a2feb
GCS_MAVLink: send ESC telemetry messages
2018-06-19 09:36:03 +10:00
Peter Barker
cad7f9d9c0
GCS_MAVLink: tidy waypoint receiving part of update
...
This is NFC. The early-return here is confusing, and there were
redundant checks going on.
2018-06-18 19:54:21 +01:00
Peter Barker
c333a905df
GCS_MAVLink: use AP_FWVersion singleton
2018-06-18 19:10:37 +01:00
Peter Barker
721feaf40f
GCS_MAVLink: use AP_RTC
...
GCS_MAVLINK: Add SYSTEM_TIME handle (Patrick José Pereira)
2018-06-15 08:01:22 +10:00
chobits
0d2b70e607
GCS_MAVLink: fix ATT_POS_MOCAP timestamp handle
2018-06-13 09:43:42 +09:00
Peter Barker
b0aeec4b6a
GCS_MAVLink: move handling of MAV_CMD_DO_GRIPPER up
2018-06-11 19:07:39 +01:00
Michael du Breuil
b331ddd49b
GCS_MAVLink: Remove some common wrappers, fix excessive FALLTHROUGH
2018-06-05 03:25:42 +01:00
Peter Barker
e50a817150
GCS_MAVLink: make VFR_HUD always return height above MSL
2018-06-05 09:38:20 +10:00
Peter Barker
69db7b040a
GCS_MAVLink: move try_send_message handling of EKF_STATUS_REPORT up
2018-06-01 16:12:45 +01:00
Peter Barker
0baee6f82b
GCS_MAVLINK: avoid pushing partial RC_CHANNEL message into uart
...
In the case we do not send RC_CHANNELS_RAW, we will not check to see if
RC_CHANNELS will fit. RC_CHANNELS is larger than RC_CHANNELS_RAW, so the
check in the caller is insufficient.
2018-05-30 17:05:13 +01:00
Peter Barker
1aaf7e96af
GCS_MAVLink: remove intermediate functions
...
GCS_MAVLink: remove comm_receive_ch
This is a lot of sanity checking in a static function which has been
called from a place where things are guaranteed
GCS_MAVLink: remove unused comm_is_idle
GCS_MAVLink: remove unused comm_send_ch
GCS_MAVLink: remove unused hal reference
GCS_MAVLink: remove unused #includes
2018-05-29 14:42:02 +10:00
Peter Barker
d8871078ff
GCS_MAVLink: create persist_streamrates() callback to indicate persistence
...
Removes the catching of the message in each vehicle separately.
2018-05-29 13:08:29 +10:00
Peter Barker
879f250fac
GCS_Common: return airspeed sensor value in vfr_hud_airspeed
2018-05-29 13:00:40 +10:00
Peter Barker
d1174bcf70
GCS_MAVLINK: move try_send_message handling of vfr_hud up
2018-05-29 13:00:40 +10:00
Pierre Kancir
053f124492
GCS_MAVLink: fix FALLTHROUGH warning
2018-05-26 09:13:29 +09:00
Randy Mackay
938dc2e47d
GCS_MAVLink: resolve compiler warnings correct_offboard_timestamp
...
applies only to SITL
2018-05-25 14:00:00 +09:00
Peter Barker
f668d0dc57
GCS_MAVLink: enhance TIMESYNC handling
...
GCS_MAVLink: use de-jittered timestamp for our timesync responses
GCS_MAVLink: periodically send timesync request packets
Currently no use is made of the result of these requests, however,
having the result present in telemetry logs will be useful data.
2018-05-25 11:36:17 +10:00
Dr.-Ing. Amilcar do Carmo Lucas
8427b569b6
GCS_MAVLink: replace /* fall through */ with FALLTHROUGH;
2018-05-25 08:41:07 +09:00
Peter Barker
e9d2be143a
GCS_MAVLink: moving sending of sim state up
2018-05-23 18:36:50 +10:00
Peter Barker
fe2d8f853b
GCS_MAVLink: add type-correctness for stream entries
2018-05-22 11:21:25 +10:00
Peter Barker
c5520cd995
GCS_MAVLink: eliminate MSG_LIMITS_STATUS
...
Only Sub used this, and it used it to send fence status, which we have a
separate ID for
2018-05-22 09:05:14 +09:00
Eugene Shamaev
b260a6ca7c
GCS_Mavlink: HAL_RCINPUT_WITH_AP_RADIO definition
2018-05-22 08:35:01 +09:00
Peter Barker
92927cd848
GCS_MAVLink: move try_send_message of servo-output-raw up
2018-05-21 19:08:08 +01:00
Peter Barker
0ca888d52a
GCS_MAVLink: move sending of POSITION_TARGET_GLOBAL_INT up
2018-05-18 20:26:37 +10:00
Peter Barker
da40ebaf70
GCS_MAVLink: use relative altitide from ahrs.get_relative_position_D_home()
...
This will return a barometer height if the EKF is not available.
2018-05-17 15:48:06 +01:00
Peter Barker
4440f7ec4a
GCS_MAVLink: move sending of GLOBAL_POSITION_INT up to GCS_MAVLINK
2018-05-17 15:48:06 +01:00
Peter Barker
217fd73100
GCS_MAVLink: remove arguments to send_home and send_ekf_origin
2018-05-17 20:42:36 +10:00
Peter Barker
514bc5c21d
GCS_MAVLink: move send_attitude up to GCS_MAVLINK
2018-05-17 18:28:43 +10:00
Peter Barker
695c52be05
GCS_MAVLink: allow sub to override sending of scaled_pressure3
2018-05-17 15:37:14 +10:00
Peter Barker
c887a5c188
GCS_MAVLink: move try_send_message sending of scaled_pressure up
2018-05-17 15:37:14 +10:00
Peter Barker
8cb2b5809f
GCS_MAVLink: move try_send_message sending of sensor offsets up
2018-05-17 15:37:14 +10:00
Peter Barker
b51ec1d346
GCS_MAVLink: move try_send_message of RAW_IMU up to GCS_MAVLINK
2018-05-17 15:37:14 +10:00
Peter Barker
fc1775df75
GCS_MAVLink: handle setting of ekf origin in GCS_MAVLink
2018-05-17 10:13:42 +10:00
Michael du Breuil
1b05a18b84
GCS_MAVLink: Wrap sending named float values
2018-05-17 00:59:45 +01:00
Michael du Breuil
805e9519d1
GCS_MAVLink: Send rangefinder data
2018-05-16 23:21:41 +01:00
Michael du Breuil
03fc653e62
GCS_MAVLink: Don't rely on instance data from rangefinders
2018-05-16 23:21:41 +01:00
Andrew Tridgell
f4f62ececa
GCS_MAVLink: take account of transport lag in vision timestamps
2018-05-16 18:49:22 +10:00
Andrew Tridgell
ab9ef01889
GCS_MAVLink: added function for correcting offboard timestamps
2018-05-15 10:42:52 +09:00
Randy Mackay
e04de34014
GCS_MAVLink: add local time to VISP message
...
Adding both local and remote time is useful for providing support for this message because misaligned clocks lead to our EKF discarding the message
2018-05-10 08:29:30 +09:00
Peter Barker
347ab96bf0
GCS_MAVLink: move sending of battery data up
...
Also, use singleton to get battery object
2018-05-09 11:40:31 -07:00
Peter Barker
417e9e9aaf
GCS_MAVLink: move data stream send up
2018-05-09 16:15:38 +10:00
Peter Barker
8d7fadfdfc
GCS_MAVLink: set _initialised as last thing
2018-05-09 16:15:38 +10:00
Peter Barker
b76fa57108
GCS_MAVLink: move try_send_message handling of RC_CHANNELS_RAW up
2018-05-08 12:33:32 +01:00
Peter Barker
eecdcacf3e
GCS_MAVLink: move sending of heartbeats up to GCS_MAVLINK
2018-05-07 11:30:13 -06:00
Peter Barker
e4b4a746e6
GCS_MAVLink: move try_send_message handling of VIBRATION up
...
Also, use singleton to get ins
2018-05-07 11:23:28 -06:00
Andrew Tridgell
a5fe798e7f
GCS_MAVLink: we don't need the conversion helpers
2018-05-07 11:43:23 +10:00
Peter Barker
bf124e9333
GCS_MAVLink: make send_parameter_value_all a GCS method rather than static
2018-05-01 09:39:01 +10:00
Randy Mackay
e5c0b1814a
GCS_MAVLink: remove underscore from method names
2018-04-19 13:38:22 +09:00
Vince Kurtz
2f81747112
GCS_MAVLink: fix VISP logging
...
log VISP messages for the ATT_POS_MOCAP mavlink message as well
2018-04-19 13:34:49 +09:00
Peter Barker
682679c68d
GCS_MAVLink: use AP_ServoRelayEvents singleton
2018-04-18 20:31:55 +09:00
Tom Pittenger
63e42e194f
GCS_MAVLink: send correct mission_ack result type
...
has no effect since the two typedef enums equated to same value
2018-04-18 12:02:43 +09:00
Michael du Breuil
6e9e9dcdfa
GCS_MAVlink: Use RC_Channels instead of hal.rcin
2018-04-11 21:47:07 +01:00
Andrew Tridgell
fd3037bbb7
GCS_MAVLink: add support for alternative protocol
...
this allows an alternative to MAVLink to be installed on a GCS
port. This is used for BLHeli passthru support
2018-04-07 09:10:29 +10:00
Randy Mackay
64be134f7b
GCS_MAVLink: add VISP logging
2018-04-06 11:13:28 +09:00
Francisco Ferreira
ac73fa9681
GCS_MAVLink: fix method shadowing
2018-04-03 16:29:33 +01:00
Peter Barker
4fd2ec1cef
GCS_MAVLink: factor vehicle's mavlink send_heartbeat
2018-04-03 13:05:19 +01:00
Peter Barker
1f862e8192
GCS_MAVLink: serial control: avoid nullptr dererences
2018-04-02 23:29:33 +01:00
Peter Barker
d2ab76b2c6
GCS_MAVLink: calibrate airspeed sensor if it is present
2018-04-02 23:25:05 +01:00
Peter Barker
c6d7f5151a
GCS_MAVLink: tidy handling of barometer calibrations
2018-04-02 23:25:05 +01:00
Peter Barker
d878690d00
GCS_MAVLink: move common calibration functions up
2018-04-02 23:25:05 +01:00
Peter Barker
f6b7ca75e9
GCS_MAVLink: allow Plane to override method so it can set calib. flag
2018-04-02 23:25:05 +01:00
Peter Barker
09d4e36970
GCS_MAVLink: handle preflight calibrations
2018-04-02 23:25:05 +01:00
Peter Barker
c3e70e477d
GCS_MAVLink: avoid using global chan to uart mapping
...
This is an instance method, so it has a pointer to its own
uart
2018-04-02 23:04:24 +01:00
Peter Barker
42547d2d6d
GCS_MAVLink: allow extra mavlink port for packing vicon messages
2018-04-02 09:23:27 +09:00
Randy Mackay
428682c8e9
GCS_MAVLink: fix handling of global_vision_position_estimate
2018-03-30 18:21:48 +09:00
Peter Barker
ac1a00739c
GCS_MAVLink: remove msg_snoop functionality
...
inherit from GCS_MAVLink if you want to see mavlink traffic
2018-03-28 09:28:23 +09:00
Peter Barker
484d97597b
GCS_MAVLink: pass mavlink acks into accelcal library if it exists
2018-03-28 09:28:23 +09:00
Michael du Breuil
97fce557f5
GCS_MAVLink: Support AFS changes
2018-03-27 22:12:21 +01:00
Peter Barker
a5a36c04d1
GCS_MAVLink: feed vision position data into AHRS
2018-03-27 20:28:49 +09:00
Peter Barker
ed5140307a
GCS_MAVLink: move handling of visual odometry messages up
2018-03-23 09:28:07 +09:00
Peter Barker
0a08bba437
GCS_MAVLink: eliminate AP_HAL::Print and AP_HAL::Stream
2018-03-23 08:12:38 +11:00
Michael du Breuil
6652dd73e4
GCS_MAVLink: Correct sending SCALED_PRESSURE.press_diff
...
Closes #6642
2018-03-21 13:36:35 +00:00
Peter Barker
bed3f0c344
GCS_MAVLink: move handling of get_home_position up
2018-03-19 10:32:37 +09:00
Peter Barker
e9ecc11b00
GCS_MAVLink: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
9d381c26a7
GCS_MAVLink: use AHRS singleton
2018-03-07 12:34:39 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
03019918cc
GCS_MAVLink: NFC adapt to new AP_Battery method name
2018-03-03 17:19:07 +00:00
Andrew Tridgell
6241ca4527
GCS_MAVLink: send 65535 for 16 bit meminfo
...
when above 65535 send 65535, so users don't get worried about low memory
on ChibiOS where they often have more than 64k available
2018-02-26 22:04:33 +11:00
Jacob Walser
582ef7ca5c
GCS_MAVLink: handle reset params to defaults command
2018-02-20 10:49:09 +11:00
Andrew Tridgell
8f1e8e787a
GCS_MAVLink: added DATA96 hook for AP_Radio
2018-02-08 17:36:33 +11:00
James Stewart
ec5faed133
GCS_MAVLink: send mission item requests to correct destination for partial updates
...
The correct destination is the GCS which last requested to update the mission (full or partial), not just the last GCS to set the mission count (full only).
2018-02-07 07:01:32 -08:00
Holger Steinhaus
36f0b429fb
GCS_MAVLink: send BATTERY_STATUS.energy_consumed if current measurement is available
2018-02-06 20:00:16 -07:00
Andrew Tridgell
e255f07022
GCS_MAVLink: rename ch variable
...
avoid conflict with ch variable from ChibiOS
2018-01-15 11:46:02 +11:00
Dr.-Ing. Amilcar Do Carmo Lucas
596119bca3
GCS_MAVLink: do not use hardcoded array sizes
2018-01-11 09:52:13 +11:00
Dr.-Ing. Amilcar Do Carmo Lucas
24ad9e9dff
GCS_MAVLink: Adapt to upstream mavlink changes in autopilot_version message
2018-01-11 09:52:13 +11:00
Peter Barker
8d7c710e9b
GCS_MAVLink: panic in SITL if unknown message sent
2018-01-10 19:11:15 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
f6ab044161
GCS_MAVLink: add microseconds since boot to the home and origin Mavlink messages
2018-01-09 13:01:05 +11:00
Peter Barker
e39e8359b6
GCS_MAVLink: tighten result of handle_preflight_reboot
2017-12-01 17:01:10 +00:00
Peter Barker
269294754f
GCS_MAVLink: use gps singleton
2017-11-15 13:43:03 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
91b6404b13
GCS_MAVLink: Replace hardcoded duplicated end_mavlink_gps*_rtk() function with a flexible one
2017-10-30 18:28:20 +00:00
Michael du Breuil
9b7c3ce9a7
GCS_Mavlink: Fix out of bounds access, CID 144337
2017-10-28 03:30:46 +01:00
Peter Barker
bb2573f945
GCS_MAVLink: send mission item requests to correct destination
...
The correct destination is the GCS which last set the mission count,
not the last GCS that requested it!
2017-10-19 20:52:24 +11:00
Lucas De Marchi
ec935cf0fe
GCS_MAVLink: refactor send_banner() to use AP_FWVersion
2017-09-23 21:37:45 -07:00
Lucas De Marchi
ed2b8d3476
GCS_MAVLink: refactor send_autopilot_verison() to use AP_FWVersion
...
Make the method use the getter directly to get a reference of
AP_FWVersion and work out everything that needs to be sent. This allows
us to remove ifdefs and replace with runtime if/else.
Note that there's also a bug fix: we were not setting flight_custom_version
to zero in case GIT_VERSION wasn't defined.
2017-09-23 21:37:45 -07:00
Randy Mackay
953adc506d
GCS_MAVLink: add break in default case
...
non-functional change but removes some warnings in eclipse editors
2017-09-20 12:14:38 +09:00
Peter Barker
d0c2898ebc
GCS_MAVLink: move handling of SET_GPS_GLOBAL_ORIGIN up
2017-09-19 15:44:23 +09:00
Randy Mackay
07c195a865
GCS_MAVLink: add send_ekf_origin
2017-09-19 10:30:15 +09:00
Peter Barker
6bd7089718
GCS_MAVLink: implement handling of MAV_CMD_DO_SET_MODE
2017-09-19 01:24:11 +01:00
Peter Barker
8507763a1c
GCS_MAVLink: create _handle_set_mode for common msg and cmd-long code
2017-09-19 01:24:11 +01:00
Lucas De Marchi
58dec08b29
GCS_MAVLink: fix non static perf counter
...
Commit b9877e0d38
(GCS_MAVLink: make per channel perf counter non-static) made the
perf counters to be available per instance but missed the fact that
the perf infra doesn't copy the string.
Fix this by maintaining a the string inside the object.
2017-09-12 17:24:31 -07:00
Peter Barker
b4e536b424
GCS_MAVLink: move gcs_out_of_time into GCS object
2017-09-12 18:28:07 +01:00
Lucas De Marchi
b9877e0d38
GCS_MAVLink: make per channel perf counter non-static
...
Otherwise the perf counter from one channel may affect the other if
during an update of one channel the update function of the other gets
called.
2017-09-11 10:01:57 -07:00
Peter Barker
ac806b650f
GCS_MAVLink: move handling of do_send_banner up
2017-08-30 15:54:47 +01:00
Peter Barker
1544a92f8b
GCS_MAVLink: factor out a send_banner
2017-08-30 15:54:47 +01:00
Peter Barker
2e078f7c5e
GCS_MAVLink: send fw_string, px4 git hash and nuttx hash on param request
2017-08-30 15:54:47 +01:00
Peter Barker
8a7a1b77dd
GCS_MAVLink: handle param_request_list in GCS_MAVLINK base class
2017-08-30 15:54:47 +01:00
Peter Barker
50242178b3
GCS_MAVLink: handle param_set in GCS_MAVLINK base class
2017-08-30 15:54:47 +01:00
Peter Barker
95ff94bfad
GCS_MAVLink: factor out a handle_common_param_message
2017-08-30 15:54:47 +01:00
Peter Barker
add1743c12
GCS_MAVLink: move send_autopilot_request calls up to GCS base class
2017-08-30 15:54:46 +01:00
Peter Barker
e9204a66ee
GCS_MAVLink: include version for AP_FWVersion
2017-08-30 15:54:46 +01:00
Michael du Breuil
a895d69b42
GCS_MAVLink: Correct a bug in the FOR_EACH_ACTIVE_CHANNEL macro
2017-08-29 13:27:27 -07:00
Peter Barker
921985fe27
GCS_MAVLink: allow statustext logging from any source system
...
Turns out this is terribly useful for companion computers if
you allow them to log things when they're not your GCS.
The original check was bogus; if someone is talking to you via
mavlink they can do much worse than fill your logs!
2017-08-23 15:58:47 +01:00
Jacob Walser
e8f5967682
GCS_MAVLink: Add MSG_NAMED_FLOAT ap_message id
2017-08-23 13:40:52 +01:00
Peter Barker
154b212545
GCS_MAVLink: move serial_control case to base class
2017-08-17 12:42:31 +01:00
Peter Barker
b17c0482fb
GCS_MAVLink: move play_tune and led_control handling to base class
2017-08-17 12:27:10 +01:00
Peter Barker
2a07a077d9
GCS_MAVLink: use GCS_MAVLINK subclasses to handle set_mode
2017-08-16 11:05:37 +10:00
Peter Barker
b6076bcb77
GCS_MAVLink: adapt to new rangefinder method name
2017-08-15 19:00:29 +01:00
Peter Barker
c79cbd71af
GCS_MAVLink: use rangefinder backend accessors
2017-08-15 18:31:58 +01:00
Michael du Breuil
067335f68d
GCS_MAVLink: Handle termination requests from the GCS
2017-08-15 15:14:56 +01:00
Peter Barker
bff31e8b42
GCS_MAVLink: remove CLI
2017-08-14 10:23:50 +09:00
Peter Barker
1fc82442a0
GCS_MAVLink: remove dummy functions; examples are linked with all libs
2017-08-09 16:18:22 +01:00
Peter Barker
7aaabea4ea
GCS_MAVLink: send gps messages as separate queued messages
2017-08-09 16:18:22 +01:00
Peter Barker
ee5874ab32
GCS_MAVLink: move sending of gps_raw up
2017-08-09 16:18:22 +01:00
Peter Barker
4e3cc6fd27
GCS_MAVLink: move sending of system_time up
2017-08-09 16:18:22 +01:00
Peter Barker
d1a9128118
GCS_MAVLink: move sending of camera_feedback up
2017-08-09 16:18:22 +01:00
Peter Barker
d03c7389f7
GCS_MAVLink: move sending of meminfo up
2017-08-09 16:18:22 +01:00
Peter Barker
a841fddb3e
GCS_MAVLink: rename MSG_RETRY_DEFERRED to MSG_LAST and clarify comments
2017-08-05 23:13:48 +01:00
Peter Barker
0c5f66dc59
GCS_MAVLink: refactor code into new retry_deferred method
2017-08-05 23:11:09 +01:00
Peter Barker
fdac13d3d3
GCS_MAVLink: tidy send_message function
2017-08-05 23:09:37 +01:00
Peter Barker
ad2c3d27ec
GCS_MAVLink: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
679bb7f7a5
GCS_MAVLink: move try_send_message send_hwstatus up
2017-08-03 14:33:37 +01:00
Peter Barker
3b472ccc17
GCS_MAVLink: move try_send_message mission handling up
2017-08-03 14:24:47 +01:00
Peter Barker
b8cb758fac
GCS_MAVLink: move try_send_message compass message handling up
2017-08-03 14:24:46 +01:00
Peter Barker
b4688bd3d4
GCS_MAVLink: move common mavlink camera handling up
2017-07-28 14:32:58 +01:00
Peter Barker
60ffe00164
GCS_MAVLink: move gps inject handling up
...
Also, make AP_GPS responsible for decoding inject packets
2017-07-27 12:03:25 +01:00
Peter Barker
85a0da6178
GCS_MAVLink: handle common GPS messages in base GCS_MAVLINK class
2017-07-25 14:00:45 +01:00
khancyr
8abcb7a0e3
GCS_MAVLink: simplify send_proximity
2017-07-24 13:44:43 +01:00
khancyr
ec2ea1c903
GCS_MAVLink: move send_proximity to GCS common code (NFC)
...
Also clean two comments
2017-07-24 13:44:43 +01:00
Peter Barker
eb1cf0e73a
GCS_MAVLink: remove MSG_STATUSTEXT entirely
2017-07-18 16:12:59 +01:00
Peter Barker
06647cde2c
GCS_MAVLink: move handling of PREFLIGHT_SET_SENSOR_OFFSETS up
2017-07-17 14:17:19 +01:00
Peter Barker
bd28bdd907
GCS_MAVLink: move handling of MAG_CAL command longs up
2017-07-17 14:17:19 +01:00
Peter Barker
a7e57aa3fc
GCS_MAVLink: move MAV_CMD_START_RX_PAIR handling to base class
2017-07-17 14:17:19 +01:00
Peter Barker
318861e824
GCS_MAVLink: move mavlink support for servo/relay up
2017-07-16 23:56:00 +01:00
Peter Barker
cfc8d7feba
GCS_MAVLink: add common handling of mavlink command messages
2017-07-16 23:56:00 +01:00
Peter Barker
69eb9cbdd2
GCS_MAVLINK: add missing mavlink mission msgid to case
2017-07-15 17:01:18 +09:00
Peter Barker
aa6b339252
GCS_MAVLink: improve rally debug strings
2017-07-14 01:28:05 +01:00
Peter Barker
99cc684d0a
GCS_MAVLink: GCS_Rally: increase severity of mavlink statustexts
...
This matches plane, sending at an increased level
2017-07-14 01:28:05 +01:00
Peter Barker
ebe3dcef6f
GCS_MAVLink: move rally-point handling up
2017-07-14 01:28:05 +01:00
Peter Barker
3338de827e
GCS_MAVLink: remove unneeded telemetry_delayed parameter
...
Also make it protected
2017-07-12 17:02:54 +01:00
Peter Barker
129d7220e6
GCS_MAVLink: move handling of incoming statutext messages up
2017-07-12 16:52:24 +01:00
Peter Barker
5c0aa27b2f
GCS_MAVLink: remove global static send_statustext_chan
2017-07-11 23:53:53 +01:00
Peter Barker
a599bc9031
GCS_MAVLink: eliminate GCS_MAVLINK::send_statustext_all
2017-07-11 23:53:53 +01:00
Peter Barker
69c7402c9c
GCS_MAVLink: add const chan method to GCS_Dummy
2017-07-11 23:48:50 +01:00
Peter Barker
731aaed8af
GCS_MAVLink: eliminate global static GCS_MAVLINK::send_home_all
2017-07-11 23:48:39 +01:00
Peter Barker
6cc19fee35
GCS_MAVLink: GCS_Dummy and GCS_routing get get_mission
2017-07-11 23:47:52 +01:00
Peter Barker
726007efde
GCS_MAVLink: move common mission handling up to GCS_MAVLINK
2017-07-11 23:45:17 +01:00
Peter Barker
02532af64b
GCS_MAVLink: a send_text method on the GCS singleton
2017-07-09 17:17:29 -04:00
Peter Barker
ca6e34dfbd
GCS_MAVLink: use Notify singleton for sending statustext
2017-07-09 17:17:29 -04:00
Peter Barker
3f43789742
GCS_MAVLINK: provide a GCS singleton for examples and tools to use
2017-07-07 16:18:37 +01:00
Peter Barker
db27346fd7
GCS_MAVLink: move GCS functions up from GCS_Plane
2017-07-07 16:18:37 +01:00
Peter Barker
4c1aff03a3
GCS_MAVLink: move send-logs-via-mavlink code into DataFlash
2017-06-27 03:10:43 +01:00
Peter Barker
cbbee995b6
GCS_MAVLink: move GCS_Logs into DataFlash directory
2017-06-27 03:10:43 +01:00
Peter Barker
cf918d233f
GCS_MAVLink: move MAVLINK_MSG_ID_REMOTE_LOG_BLOCK_STATUS handling up
2017-06-17 15:07:48 +01:00
Pierre Kancir
d5cc1e64ed
GCS_Common: rename send_rangefinder to send_rangefinder_downward
2017-06-08 01:32:04 +01:00
Pierre Kancir
e9685ba13e
GCS_MAVLink: add rangefinder msg
2017-06-08 01:22:07 +01:00
Pierre Kancir
0848d96354
GCS_MAVLink: add send_distance_sensor_downward function
2017-06-08 01:22:07 +01:00
Pierre Kancir
f0369bc507
GCS_MAVLink: add distance sensor msg
2017-06-08 01:22:07 +01:00
Michael du Breuil
c62e79b5c0
GCS_MAVLink: Update the accelcal signature to accept uint32_t
2017-06-01 20:20:05 +01:00
Michael du Breuil
16bd7a091e
GCS_MAVLink: Add landing reporting
2017-05-24 15:22:27 -07:00
Peter Barker
b18c1853f9
GCS_MAVLink: count parameters in param thread
...
This helps avoid counting parameters on the main thread,
avoiding long-loops
2017-05-11 08:21:17 +10:00
Andrew Tridgell
5c62e4f4c2
GCS_MAVLink: don't use more than 1ms sending parameters
...
this reduces the scheduling misses when fetching parameters initially
2017-05-01 14:37:15 +10:00
Andrew Tridgell
f465c37c65
GCS_MAVLink: added async parameter sending
2017-05-01 14:37:13 +10:00
Andrew Tridgell
5c4ca3bf0b
GCS_MAVLink: added send_queued_parameters()
2017-05-01 14:36:52 +10:00
Andrew Tridgell
f778954b84
GCS_MAVLink: split parameter functions into a separate file
2017-05-01 14:36:10 +10:00
Andrew Tridgell
4ce0a8e24e
GCS_MAVLink: time limit GCS update() calls
...
and add performance counters
2017-04-28 16:09:12 -07:00
Michael du Breuil
341ac701d1
GCS_MAVLink: report temperature information to the battery status report
2017-04-19 14:17:24 +01:00
Michael du Breuil
9cb0d8f99b
GCS_MAVlink: Add battery cell backend
2017-04-19 14:17:24 +01:00
Eugene Shamaev
c9f413da38
GCS_MAVLink: AOA, SSA message
2017-04-19 20:48:42 +10:00
Pierre Kancir
b2c8bc8074
GCS_MAVLink: example fix travis warning
...
missing function declaration
implicit cast
some style fix
2017-04-13 19:56:16 +01:00
Michael du Breuil
1e816b8be5
GCS_MAVLink: Support sending the BATTERY_STATUS message
2017-04-12 10:21:49 +09:00