Lorenz Meier
6b17db35b0
MAVLink: Fix vibration message timestamp
2017-07-29 16:12:41 +02:00
Lorenz Meier
3f048e8a87
MAVLink stream: Do not override interval too much
2017-07-29 16:12:41 +02:00
Lorenz Meier
af451ce638
MAVLink time sync: Better output handling
2017-07-29 16:12:41 +02:00
Lorenz Meier
f0e8ebb2ac
MAVLink: Remove link termination command
...
This is no longer required as we have a full shell available now and there is no reason to let the remote terminate the instance.
2017-07-29 16:12:41 +02:00
Lorenz Meier
37657cf99b
MAVLink FTP: Use modern output printing to capture errors in system log
2017-07-29 16:12:41 +02:00
Lorenz Meier
68d70cc8c0
MAVLink: Use modern PX4 output format to enable system logging for errors.
2017-07-29 16:12:41 +02:00
Lorenz Meier
09f1373a08
MAVLink: Adjust stream rates to match real usage
2017-07-29 16:12:41 +02:00
Lorenz Meier
07ced9895c
MAVLink: Improve message handling / tracking
...
The message handling was not obeying action focused messages and high-rate messages properly before. With this change update rates track the desired rates closely. Critical high-rate messages such as ADS-B are queued additionally to guarantee that all received packets are being correctly forwarded.
2017-07-29 16:12:41 +02:00
Lorenz Meier
dc8caeaedf
MAVLink: Default to standard stream config
2017-07-27 10:15:53 +02:00
sanderux
1eda66c9ba
Code format
2017-07-27 10:15:53 +02:00
sanderux
7612b94c72
Allow relaying from same system ID or with target component 0
2017-07-27 10:15:53 +02:00
Lorenz Meier
c44322ca15
MAVLink app: Use more advanced forwarding logic
2017-07-27 10:15:53 +02:00
Lorenz Meier
286c3d41d3
MAVLink app: Send GPS uncertainty via MAVLink 2
...
This is needed by some consumers like transponders.
2017-07-23 00:16:00 +02:00
Daniel Agar
2939bd9c96
Partial Revert "MAVLink: Add capture command to command queue"
...
This reverts commit dde5781142 .
2017-07-22 11:36:35 +02:00
Beat Küng
a6c682ce50
mavlink_ftp: fix stack overflow & add root dir prefix
...
- change memory allocation from stack to a malloc'd buffer. This avoids
increasing the stack size. And since FTP is rarely used, the buffers
are only allocated upon use and freed after a time of 2s inactivity.
- adds PX4_ROOTFSDIR as root directory prefix. This does not change
anything on NuttX, but in SITL it will avoid enumerating the whole
disk tree when using QGC (which enumerates all files recursively).
2017-07-21 19:59:45 +02:00
Beat Küng
29f23a390f
mavlink_ftp: avoid using seekdir()
...
The provided argument payload->offset is in range [0, num_file_entries-1],
but seekdir might use a completely different range. It is not defined
by the API spec. It is only useful in conjunction with telldir().
2017-07-21 19:59:45 +02:00
Lorenz Meier
c1f5feac83
MAVLink: Queue transponder reports and send them at full data rate
...
This will ensure that no transponder reports are dropped and that all received reports are passed on to the GCS and other devices.
2017-07-20 09:13:53 +02:00
Lorenz Meier
dde5781142
MAVLink: Add capture command to command queue
2017-07-18 23:05:43 +02:00
Lorenz Meier
6e97aec8ce
MAVLink app: Do not warn about required reboot but rely on param meta. Fixes #7642
2017-07-18 22:51:42 +02:00
Beat Küng
8d7481f9ac
load_mon: use ModuleBase & add documentation
2017-07-14 11:57:11 +02:00
Beat Küng
6778be2c6e
mavlink: remove 'p' from px4_getopt()
...
It is not handled and not documented.
2017-07-14 11:57:11 +02:00
Beat Küng
053eb12329
Module documentation: switch to Markdown
2017-07-14 11:57:11 +02:00
Beat Küng
f691ae2a4f
mavlink: update usage & module description
2017-07-14 11:57:11 +02:00
José Roberto de Souza
9a05c5f137
mavlink: Send command long when component id is broadcast
...
Check for the broadcast systemd id to block forward of broadcast
commands.
2017-07-11 09:52:22 +02:00
Lorenz Meier
eb5b153d10
MAVLink app: send status text only if connected to something that can actually handle it.
...
This increases the chance that the operator gets to see the messages that the vehicle emitted before telemetry was connected.
2017-07-09 14:43:24 +02:00
Lorenz Meier
5a8062e646
MAVLink app: Provide function for connected state
...
If we have not received an inbound heartbeat we are probably not connected and so user-facing output (which is even buffered) should go only out once we are connected.
2017-07-09 14:43:24 +02:00
Lorenz Meier
d80be2e4ff
MAVLink: better output handling
2017-07-08 19:36:58 +02:00
Lorenz Meier
90fdc544fd
MAVLink app: Code style fix
2017-07-08 15:34:36 +02:00
Lorenz Meier
ddf32e14de
MAVLink app: More print improvements
2017-07-08 15:23:46 +02:00
Lorenz Meier
d15dd061f9
MAVLink app: More debug string formatting
2017-07-08 14:36:08 +02:00
Lorenz Meier
e8aa5a3172
MAVLink app: Fix non-enabled debug string output
2017-07-08 14:23:46 +02:00
Lorenz Meier
6f368f34d1
MAVLink: Remove non-required safety check
2017-07-08 13:59:35 +02:00
Lorenz Meier
8d8174ea0c
MAVLink command retransmission: Reduce RAM footprint and make debug output optional
2017-07-08 12:46:28 +02:00
Julian Oes
a13f23f244
timestamped_list: use const ref
2017-07-08 11:52:23 +02:00
Julian Oes
7e1e98b258
timestamped_list: fix comment syntax
2017-07-08 11:52:23 +02:00
Julian Oes
1576094d9f
mavlink_command_sender: use const ref
2017-07-08 11:52:23 +02:00
Julian Oes
893b7b5d46
mavlink_command_sender: instantiate in initialize
2017-07-08 11:52:23 +02:00
Julian Oes
c66af00753
mavlink_command_sender: fix NuttX build
2017-07-08 11:52:23 +02:00
Julian Oes
e6d31f951c
mavlink_command_sender: fix logic after first test
...
- change/add a few printfs so they make more sense
- don't accidentally ignore command_acks
- don't forward commands to the same component id, and don't forward
commands that are broadcast to all components (target component 0)
2017-07-08 11:52:23 +02:00
Julian Oes
af0107ae0a
mavlink: add class for command retransmission
...
This adds a class to allow for retransmission of outgoing commands.
The sent commands are kept in a timestamped list to check if they are
acked as required by the mavlink protocol.
If they are not acked within a timeout, they can be retransmitted.
2017-07-08 11:52:23 +02:00
Julian Oes
9854fc0d84
Set timestamp with vehicle commands
...
The vehicle_command uORB messages had the timestamp unset at 0.
2017-07-08 11:52:23 +02:00
ChristophTobler
a5e435808f
mavlink log if camera unsuccessful
2017-07-08 11:52:23 +02:00
Daniel Agar
f947205cbe
delete vehicle_global_velocity_setpoint
2017-06-26 11:31:25 -04:00
Julien Lecoeur
7929287f73
Fix -Werror=format-truncation on GCC 7
...
Fix formatting
Check snprintf return for error AND overflow
2017-06-26 15:50:44 +02:00
Daniel Agar
6a443765a5
cmake only include mavlink where used
2017-06-19 20:24:09 +02:00
Sean Matthews
1c56cad3b1
Uses astyle 2.06
2017-06-15 08:56:49 +02:00
Sean Matthews
08891526fd
Fixes #6484 : Bug in Offboard mode incorrect use of type_mask
2017-06-15 08:56:49 +02:00
Lorenz Meier
e60fbccbee
MAVLink app: Add ability to output packets for training and inspection
2017-06-05 22:44:21 +02:00
Lorenz Meier
8c3b90007c
MAVLink app: Enable protocol version handshaking
...
This allows the ground control station or any other communication partner to query the supported versions. The key aspect is to send the response in MAVLink 2 framing to test the link with a MAVLink 2 framed message.
2017-06-04 16:14:00 +08:00
Beat Küng
0c3a34fb7f
mavlink log handler: remove code to delete the msgs_ mavlink txt log files
2017-06-04 04:35:21 +08:00