Daniel Agar
57721cad9b
mavlink: replace sensor_combined with selected vehicle_imu
...
- check all ORB_MULTI_MAX_INSTANCES possible instances for future expansion
2020-08-23 17:38:27 -04:00
Daniel Agar
27f23ac290
move initial sensor priority to parameters and purge ORB_PRIORITY
...
- CAL_ACCx_EN -> CAL_ACCx_PRIO
- CAL_GYROx_EN -> CAL_GYROx_PRIO
- CAL_MAGx_EN -> CAL_MAGx_PRIO
2020-08-21 10:12:13 -04:00
bazooka joe
190b96a46c
SMbus battery driver - a lot of updates and optimizations
...
- added support for BQ40Z80 based battery
- added performance counter for interface errors
- added SMART_BATTERY_INFO mavlink message
- general code cleanups and optimization
- fixed: void flooding the log in case of interface error
- fixed: using _batt_startup_capacity instead of _batt_capacity for discharged_mah
- update: read manufacture_date
- update: get _cell_count from parameter and not const 4
- update: avoid re-reading data that has already been read and stored on class already
- currently the battery type defined by BAT_SMBUS_MODEL parameter and not by auto detection
2020-08-18 21:41:19 -04:00
Beat Küng
ba5d7773f8
mavlink_timesync: print sender comp id for 'RTT too high for timesync' msg ( #15539 )
...
helps with debugging
2020-08-13 10:58:25 +02:00
Daniel Agar
97fc1db768
vehicle_local_position: rename yaw -> heading and add reset logic
...
- vehicle_global_position yaw removed (redundant)
2020-08-10 11:42:03 +02:00
Daniel Agar
3002e74b4f
mavlink: publish telemetry_status per instance with all HEARTBEATS from the same system
...
- one telemetry_status publication per mavlink instance
- each telemetry_status has an array of HEARTBEATS
2020-08-07 12:23:52 -04:00
Daniel Agar
c40cf9a626
uORB: remove lost message count per DeviceNode
...
- update 'uorb status' to print basic info for all advertised DeviceNodes
- report vehicle_command gaps in commander, navigator, mavlink
2020-08-04 10:34:11 -04:00
Lorenz Meier
3b1be7dcd3
Revert "mavlink: GLOBAL_POSITION_INT send without lat/lon availability"
...
This reverts commit ad14796b5f .
2020-07-22 10:34:18 -04:00
Daniel Agar
ad14796b5f
mavlink: GLOBAL_POSITION_INT send without lat/lon availability
...
- the altitude and velocity portions of this message are still relevant
without GPS lat/lon
2020-07-17 10:46:06 -04:00
Oleg
b2af2f32d4
mavlink_ftp: close session without activity
...
10s inactivity timeout to close session
2020-07-16 14:49:44 +02:00
Ricardo Marques
d0c74712b5
Fix comment typo in mavlink_receiver.cpp
2020-07-15 10:47:52 -04:00
Daniel Agar
d791c8baad
mavlink: mission manager fix signed sequence debug print type
2020-07-14 12:47:57 -04:00
JaeyoungLim
fa0ca7e65c
Update mavlink with cellular status message fixes
...
This Commit includes a update of the mavlink submodule
since the CELLULAR_STATUS message was updated, the necessary changes were done together
Add enums
2020-07-09 15:12:02 -04:00
Roman Dvořák
f70b3046e9
mavlink: publish RAW_RPM
2020-07-09 10:35:16 -04:00
Matthias Grob
e9eae1bd76
Refactor: Name manual_control_setpoint the same way everywhere
2020-06-22 12:06:27 -04:00
Daniel Agar
e50f92805b
mavlink: mission minor whitespace fixes and initialization
...
- it's safer to zero any struct being send over mavlink to prevent
extension field surpries later
2020-06-21 11:26:02 -04:00
Daniel Agar
80c1f4e5e6
mavlink: send MISSION_CURRENT respect signed sequence number
...
- current_seq -1 indicates nothing currently active
2020-06-21 11:26:02 -04:00
TSC21
b3bbc351ca
mavlink: DISTANCE_SENSOR: propagate signal_quality metric
2020-06-20 22:25:37 +01:00
Daniel Agar
6afa7e4368
mavlink: HIL_SENSOR receiver respect fields_updated
...
- keep in sync with the simulator module
2020-06-18 09:54:00 -04:00
Julian Oes
c37ba26a2f
mavlink: remove outdated comment
2020-06-03 17:57:12 +02:00
Julian Oes
2c5b8a9491
mavlink: handle stream not updated
...
Our answer does not just depend on whether the stream was found but
whether we actually were able to send out an update.
2020-06-03 17:57:12 +02:00
Julian Oes
efb10a2fbc
mavlink: address review comments
2020-06-03 17:57:12 +02:00
Julian Oes
7d1b451e39
mavlink: add missing copyright header, pragma once
2020-06-03 17:57:12 +02:00
Julian Oes
afafc541d8
mavlink: use send() instead of using reset flag
...
I think we can just directly use send() and don't need to use the
workaround of resetting the send flag to trigger one send.
Also, we don't need to override it if we don't need to check any params.
2020-06-03 17:57:12 +02:00
Julian Oes
b54c44bd37
mavlink: don't send streams with interval 0
...
We only need to send them immediately if the interval is < 0 meaning
unlimited.
2020-06-03 17:57:12 +02:00
Julian Oes
3815e608f4
mavlink: create stream if needed and trigger once
...
Instead of creating the stream and deleting it again, we now create it
with a rate of 0 and trigger it once.
This should avoid heap fragmentation by continous allocations.
2020-06-03 17:57:12 +02:00
Julian Oes
acdc15e2cd
mavlink: create stream even if rate is 0
...
This allows to send a message exactly once if requested.
2020-06-03 17:57:12 +02:00
Julian Oes
bb032a9c46
mavlink: remove incorrect outdated comment
...
Default is -2, so the comments seems wrong.
2020-06-03 17:57:12 +02:00
Julian Oes
80f91b0f6a
mavlink: add support for legacy requests back in
2020-06-03 17:57:12 +02:00
Julian Oes
b4cbd93b7c
mavlink: new args to request message, omit param1
...
We can omit param1 because it is already used for the message_id, so
it's basically duplicate information and won't get used anywhere.
2020-06-03 17:57:12 +02:00
Julian Oes
27b6c209e0
mavlink: Move request message logic to function
2020-06-03 17:57:12 +02:00
David Jablonski
62bf0a6cf8
added streams to mavlink messages
2020-06-03 17:57:12 +02:00
David Jablonski
edbe7e3ef0
added FLIGHT_INFORMATION stream
2020-06-03 17:57:12 +02:00
David Jablonski
e1f4a70c0e
added AUTOPILOT_VERSION and PROTOCOL_VERSION streams
2020-06-03 17:57:12 +02:00
David Jablonski
aef2a5755e
moving storage_information stream to separate file
2020-06-03 17:57:12 +02:00
David Jablonski
9ce9fe38de
use storage_id 1
2020-06-03 17:57:12 +02:00
David Jablonski
fd09198c7e
implemented MAV_CMD_REQUEST_MESSAGE for STORAGE_INFORMATION
2020-06-03 17:57:12 +02:00
Daniel Agar
e34bdb4be9
move IMU integration out of drivers to sensors hub to handle accel/gyro sync
...
- IMU integration move from drivers (PX4Accelerometer/PX4Gyroscope) to sensors/vehicle_imu
- sensors: voted_sensors_update now consumes vehicle_imu
- delete sensor_accel_integrated, sensor_gyro_integrated
- merge sensor_accel_status/sensor_gyro_status into vehicle_imu_status
- sensors status output minor improvements (ordering, whitespace, show selected sensor device id and instance)
2020-05-30 11:07:54 -04:00
TSC21
ad4d4287fa
mavlink odometry: properly set the frame id fields
2020-05-28 15:45:13 +01:00
TSC21
562d57fee8
mavlink: fix odometry frames of reference setup
2020-05-28 15:45:13 +01:00
BazookaJoe1900
cd8850b43b
mavlink: bring class LogListHelper into MavlinkLogHandler ( #14452 )
...
This is in order to avoid dynamic allocation of LogListHelper when downloading logs.
2020-05-25 10:08:25 +02:00
Dusan Zivkovic
b7ebdab7fd
mavlink_receiver: handle LANDING_TARGET message: publish irlock_report when landing target position invalid
2020-05-23 11:42:21 -04:00
Beat Küng
6c16a29d26
mavlink: remove unneeded TIMESYNC stream from MAVLINK_MODE_EXTVISION
...
set in MAVLINK_MODE_EXTVISIONMIN by fallthrough
2020-05-20 09:12:50 +02:00
Beat Küng
107ab16e96
mavlink: reorder streams to optimize latency
...
In particular this together with the previous commit reduces timesync
round-trip time spikes by more than 10ms, and makes it generally more
stable.
Other streams are reordered according to onboard priority.
2020-05-20 09:12:50 +02:00
Beat Küng
fa8def903d
mavlink: move ulog handling after stream updates
...
reduces latency for the mavlink streams
2020-05-20 09:12:50 +02:00
Silvan Fuhrer
b5cc3c4ef5
mavlink_messages: send EAS instead of IAS ( #14858 )
...
Send equivalent_airspeed_m_s instead of indicated_airspeed_m_s for HUD on groundstation.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2020-05-18 10:34:39 +02:00
kritz
3897030c6f
Support odometry velocity in body and local frame ( #14703 )
...
* Update submodule ECL
* increase lower bound on EVV param
2020-05-13 12:43:02 +02:00
Daniel Agar
05886e053f
mavlink_log_info: always print to console and merge with mavlink_and_console_log_info
2020-05-12 08:53:51 +02:00
Daniel Agar
ca998c1822
IMU: parameterize IMU integration time (IMU_INTEG_RATE)
...
- default integration rate now 200 Hz (5000 us interval)
- set update rate for all drivers and simulators using PX4Accelerometer/PX4Gyroscope
2020-05-05 20:34:09 -04:00
Daniel Agar
466b5db36f
uORB::Publication improvements and cleanup ( #14784 )
...
- create common uORB::PublicationBase
- uORB::PublicationQueued types are now type aliases
- ORB_PRIO use enum type everywhere to avoid accidental misuse
- PX4Accelerometer/PX4Gyroscope/etc driver libs explicitly advertise on construction, unadvertise on destruction. This is a workaround for any potential issues that might appear when accel/gyro cdev and uORB indexing doesn't align.
2020-05-04 11:09:30 -04:00