Martina
87cd110044
mavlink_receiver: make format
2018-07-12 16:36:11 -04:00
Martina
f3ce7be1e3
mavlink_messages: stream TRAJECTORY mavlink message with data from
...
uORB trajectory_waypoint as input path to a obstacle avoidance node
2018-07-12 16:36:11 -04:00
Martina
5ef26dd862
mavlink_receiver: decode mavlink message TRAJECTORY in uORB msgs
...
trajectory_waypoint or trajectory_bezier depending on the mav trajectory
representation type
2018-07-12 16:36:11 -04:00
Beat Küng
e1a7472738
MavlinkOrbSubscription::update: improve performance & fix corner case
...
- reorders operations, such that the most expensive one (orb_copy) is done
only when really needed.
- corner case: when the topic was not advertised yet, orb_stat() would fail
and then update() was called, which succeeds for the first advertisement.
In that case the timestamp was incorrectly set to 0 and true was
returned.
The next call would again return true, because the timestamp was updated,
but the topic data was still the same.
Reduces CPU load by ~2% on a Pixracer.
2018-07-12 21:31:38 +02:00
Beat Küng
060b130128
mavlink: add optional disable_sharing flag to add_orb_subscription
...
This is a more generic solution for 532a97041 , and also enables it for
vehicle_command_ack's.
In addition it avoids using a timestamp for subscription update checking,
because it does not work well together with orb queuing.
2018-07-12 21:31:38 +02:00
Oleg Kalachev
532a970410
mavlink: fix transmitting vehicle commands
2018-07-05 22:38:02 +02:00
Daniel Agar
9ce83f2208
fix all sign-compare warnings
2018-07-01 09:36:55 +00:00
Daniel Agar
cf74166801
double promotion warning fix or ignore per module
2018-07-01 09:36:55 +00:00
Daniel Agar
02d4405a62
c++11 default destructors
2018-06-30 19:55:08 -04:00
acfloria
17df184953
Fix sending first High Latency message
2018-06-29 16:49:30 +00:00
acfloria
ca1f7a4a19
Reenable the MissionManager for the Iridium mavlink instance
...
The MissionManager handles the MAVLINK_MSG_ID_MISSION_SET_CURRENT command which should also be supported for SatCom.
2018-06-29 16:49:30 +00:00
Florian Achermann
02116c0a80
mavlink: Indicate if the instance did not start correctly ( #9744 )
2018-06-29 10:11:27 -04:00
Beat Küng
ddde968a6f
mavlink: allow resetting streams to their default via 'mavlink stream' command
2018-06-25 12:19:56 +02:00
Beat Küng
ec15fc333b
mavlink: add 'mavlink status streams' command
...
Displays all enabled streams and their configured rates.
Example output:
instance #1 :
Name Rate Config (current) [Hz] Message Size (if active) [B]
HEARTBEAT 1.00 (1.000) 21
STATUSTEXT 20.00 (6.320)
COMMAND_LONG unlimited
ALTITUDE 1.00 (0.316)
ATTITUDE 25.00 (7.900) 40
ATTITUDE_TARGET 10.00 (3.160) 49
ESTIMATOR_STATUS 1.00 (0.316) 44
EXTENDED_SYS_STATE 1.00 (0.316) 14
GLOBAL_POSITION_INT 10.00 (3.160) 40
GPS_RAW_INT 1.00 (0.316) 62
HOME_POSITION 0.50 (0.158)
RC_CHANNELS 5.00 (1.580)
SERVO_OUTPUT_RAW_0 1.00 (0.316) 49
SYS_STATUS 5.00 (1.580) 43
SYSTEM_TIME 1.00 (0.316) 24
VFR_HUD 25.00 (7.900) 32
WIND_COV 2.00 (0.632)
2018-06-25 12:19:56 +02:00
Beat Küng
84841236cb
mavlink: allow resetting mavlink streams to default via MAV_CMD_SET_MESSAGE_INTERVAL
...
This implementation does not need more resources.
It's not super efficient in terms of runtime, but it's also not something
that is called often.
2018-06-25 12:19:56 +02:00
Beat Küng
333fd9cf45
mavlink: improve status output
...
- add datarate
- add UDP remote port
- add partner IP
2018-06-25 12:19:56 +02:00
Beat Küng
f59412ba65
mavlink: only enable HIL_ACTUATOR_CONTROLS in hil if link has enough bandwidth
...
Plus correct return value.
Iridium links are below that.
2018-06-25 12:19:56 +02:00
Beat Küng
4553992760
mavlink: refactor get_client_source_address() to return a reference instead of a pointer
2018-06-25 12:19:56 +02:00
Daniel Agar
d21cf7123e
version library add ECL
2018-06-22 08:46:30 +02:00
Julien Lecoeur
c73944c7a2
Mavlink: initialize _ping_stats
...
Uninitialized `_ping_stats.last_ping_time` caused ping statistics to be printed even when no ping was received.
2018-06-19 13:00:36 +02:00
Oleg Kalachev
23cd6adbe7
precland: put land precision parameter to MAVLink mission item
2018-06-13 23:32:51 -04:00
Beat Küng
08064c2b71
mavlink_main: remove nonexisting streams
...
Removes SITL startup warnings:
WARN [mavlink] stream SCALED_IMU2 not found
WARN [mavlink] stream SCALED_IMU3 not found
Introduced in 9122725052
2018-06-13 15:54:45 +02:00
David Sidrane
8aa1d4d68d
BUGFIX hardfault FMUv5 List was used before being initalized.
...
_uavcan_open_request_list was accessed before it was initalized.
2018-06-12 13:44:04 -07:00
Daniel Agar
20aabd3566
move systemlib/airspeed to standalone lib
2018-06-12 09:06:30 +02:00
Daniel Agar
d73d20bcce
systemlib delete unused systemlib.h
2018-06-12 09:06:30 +02:00
Daniel Agar
d0bde9ab2a
replace geo _wrap_pi with matrix::wrap_pi
2018-06-12 09:00:52 +02:00
Daniel Agar
619cc6aedc
mavlink disable conversion helpers and use Matrix
2018-06-09 21:19:33 +02:00
Daniel Agar
a99f75dde2
Mavlink set last sent timestamp to space out initial publication
...
- remove QURT defines no longer required
2018-06-09 13:38:44 +02:00
Mohammed Kabir
e8f1d50758
mavlink : update for compatibility with new navigation limits architechture
2018-06-09 13:38:04 +02:00
Beat Küng
2fa8783795
mavlink_receiver: implement MAV_CMD_REQUEST_STORAGE_INFORMATION
2018-06-05 14:40:01 +02:00
Beat Küng
5f87545e48
mavlink_messages: fill in all 16 servo channels
2018-06-04 10:55:29 +02:00
Beat Küng
3f00e2e6c2
mavlink mission: send an ack on duplicated last uploaded mission item
2018-05-28 11:57:35 +02:00
acfloria
57162ff08d
Improve high latency switching and acknowledge
...
- Move publishing the telemetry status from the IridiumSBD driver to the mavlink instance
- In the commander use the iridiumsbd_status message for heartbeat in case of a high latency link
- Move positive acknowledge to the mavlink instance
- Add a failed acknowledge in the commander if no high latency link exists
2018-05-27 12:11:35 -04:00
mcsauder
9122725052
Alphabetize the mavlink stream lists in mavlink_main.cpp.
2018-05-26 14:49:08 -04:00
Daniel Agar
222a91c6be
mathlib delete Matrix, Quaternion, Vector
2018-05-23 17:27:09 -04:00
mcsauder
0da01cd6f0
Alphabetize #include list in mavlink_receiver.h
2018-05-23 15:42:23 -04:00
Daniel Agar
da5a9043a7
clang-tidy modernize-use-equals-delete
2018-05-18 22:48:55 +02:00
Daniel Agar
4e32cb17df
clang-tidy modernize-use-equals-default
2018-05-18 22:48:55 +02:00
Mohammed Kabir
92457bcafd
mavlink : implement full ping protocol and link latency reporting
2018-05-15 18:57:34 +02:00
Beat Küng
289e618b6c
mavlink: fix compiler warnings with GCC 8.0.1
...
-Wno-extra-semi is not valid for C code
2018-05-09 07:59:46 +02:00
Daniel Agar
2e92484325
ecl update to latest master with separate libraries ( #9406 )
2018-05-03 23:48:09 -04:00
Mohammed Kabir
39bb65ffd7
mavlink : add advanced timesync algorithm
2018-05-03 09:59:16 +02:00
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Daniel Agar
d75fd72c02
stop manually defining physical constants
2018-04-19 07:24:58 +02:00
Thomas Stastny
71170dce0a
mavlink: HIGHRES_IMU set diff_pressure in fields_updated ( #9296 )
2018-04-16 11:43:52 -04:00
Daniel Agar
3b5b12e1d1
move baro and magnetometer data out of sensor_combined
2018-04-11 23:26:58 -04:00
Daniel Agar
5dc23def2a
move pressure altitude from baros to sensors module
2018-04-11 23:26:58 -04:00
Mohammed Kabir
28f9b38919
mavlink : fix pointer for main_mode and sub_mode
2018-04-11 22:03:12 +02:00
Oleg Kalachev
1b1617b5a0
Add new mode AUTO_PRECLAND
2018-04-11 14:50:07 -04:00
acfloria
0caa4dc171
Mavlink: Don't use a packed struct as input for the convert_limit_safe function
...
- Addional small cleanup of the iridium driver and the include guards of mavlink module header files
2018-04-11 15:15:28 +02:00