Lorenz Meier
b1c6494ed7
MAVLink receiver: Do use correct multi-topic architecture
...
This prevents two inputs publishing to the same topic. Now if both RC and joystick are connected the first to be active gets control. This is not optimal but consistent and safe.
2017-01-25 07:43:45 +01:00
David Sidrane
e6ba897b9a
mavlink is using board_get_uuid_raw32 instead of mcu_unique_id
2017-01-25 07:43:11 +01:00
Lorenz Meier
905c091f8c
MAVLink receiver: Use fake device ID
2017-01-19 19:24:52 +01:00
Paul Riseborough
677616ed83
mavlink: Populate baro device ID
...
TODO - use unique HW ID
2017-01-19 19:24:52 +01:00
wangxdflight
67c3102db4
updated to remove a compilation flag check as orb_exists() is already supported
2017-01-16 08:25:58 -08:00
wangxdflight
b693e29d64
enable px4 flight for excelsior(legacy)
2017-01-16 08:25:58 -08:00
Lorenz Meier
1c42cea28e
MAVLink: Ignore bogus mission item requests silently
2017-01-15 01:47:10 +01:00
Lorenz Meier
d1fcd8dd8e
Fix code style for mavlink main
2017-01-14 07:47:03 -08:00
Lorenz Meier
521b89b1ce
MAVLink: Protect against illegal length indication of RTCM data
2017-01-14 07:47:03 -08:00
Lorenz Meier
3eb7caba4f
MAVLink param handling: Exclude Coverity false positives
2017-01-14 07:47:03 -08:00
Lorenz Meier
4939e42c0f
MAVLink main: Fix resource leak for non-NuttX cases
2017-01-14 07:47:03 -08:00
Daniel Agar
c9956e25b4
mavlink fix code style
2017-01-07 01:03:18 -05:00
Lorenz Meier
4fcb4cf0fd
MAVLink: Fix FTP file path handling
...
This was a real issue for long paths and not a flight safety issue for regular users, but could have been an issue for developers trying to use FTP on very deep nested file systems
2017-01-03 14:44:45 +01:00
Daniel Agar
28971caaf3
partially restore mavlink_tests
2017-01-02 10:14:41 +01:00
James Goppert
964dabe179
Add better option handling to integration testing script.
2016-12-27 00:34:13 +01:00
Lorenz Meier
4dc96e3ea1
MAVLink app: Remove flow control warning to clean up the boot log
2016-12-26 13:55:04 +01:00
Lorenz Meier
8a58cf0daa
Fix usage of CRTSCTS define from termios.h
...
NuttX had the CRTSCTS define incorrectly set for only output flow control, which broke our flow control logic. This commit patches NuttX and puts in addition a guard in place to prevent any future issue with the non-POSIX define being incorrect.
This has been debugged and identified by @ecmnet, which was the main contribution for this patch.
2016-12-26 12:08:05 +01:00
Lorenz Meier
0b6e0c020e
MAVLink stream: Guard against an interval value of zero
2016-12-25 21:34:19 +01:00
Lorenz Meier
9b97e0358b
MAVLink: Send correct home heading
2016-12-25 21:30:31 +01:00
Lorenz Meier
6444988392
MAVLink app: Send messages on average at a more correct rate and send on first call
...
This patch fixes two issues:
* It sends the message on the first call, making sure that the first update gets sent out.
* It improves the rate scheduling. In an experiment with 0.5, 50 and 250 Hz all rates were correct within 0.3% of the intended rate.
2016-12-25 21:30:31 +01:00
Lorenz Meier
737e18dccb
MAVLink app: Fix VTOL reporting and prevent mission reached spam
...
The VTOL status reporting and the mission status reporting were both suboptimal. VTOL was too slow, mission reporting too fast
2016-12-25 18:15:51 +01:00
Lorenz Meier
661fda2b2a
MAVLink app: Acknowledge all commands that are not sent off to other components
2016-12-23 17:40:11 +01:00
Julian Oes
8aede5d32b
mavlink: add 500000 baudrate
2016-12-21 11:44:47 +01:00
Lorenz Meier
6b9d95648f
MAVLink app: Fix flow control handling flags
2016-12-21 11:44:47 +01:00
Beat Küng
41dc34204c
version cleanup: move all version information into version.c and use a common API
...
The provided versioning information is the same, except for some additions,
like OS version (which still need to be implemented on NuttX).
2016-12-21 11:35:10 +01:00
Beat Küng
08dc3decb1
mavlink: avoid sending uninitialized data
...
_global_pos_sub->update(&_global_pos_time, &global_pos); could return
false and in that case global_pos was not set but still accessed.
This is prevented by checking if timestamp == 0.
2016-12-21 11:35:10 +01:00
David Sidrane
3ed0bfe0d8
Nuttx added FIONSPACE and fixed FIONWRITE: had retuned the space and should have returned enqueued count
2016-12-21 08:34:21 +01:00
David Sidrane
81d00e730a
Portable fsync call
2016-12-21 08:34:21 +01:00
David Sidrane
fd7d399958
Upstream Nuttx restructured directories use micro_hal
2016-12-21 08:34:20 +01:00
Lorenz Meier
1d98c8f202
MAVLink app: Correct use of unsubscribe
2016-12-19 20:39:03 +01:00
Julian Oes
e01eaf172a
Add body/NED frame for offboard velocity control
...
This adds the possibility to use offboard velocity control in the body
frame and not just the NED (world) frame.
The frame is set in the set_position_target_local_ned message and passed
on to mc_pos_control in the position_setpoint topic.
2016-12-15 10:17:03 +01:00
Julian Oes
f6c573e882
mavlink: don't send uninitialized bytes
...
Valgrind did not approve uninitialized bytes from either home or
vehicle global position to be sent.
2016-12-14 22:08:26 +01:00
Daniel Agar
bce7ecb0f6
Iridium driver and support
...
Mavlink module implement HIGH_LATENCY (Iridium)
2016-12-14 08:20:01 +01:00
Daniel Agar
e0a9793347
mavlink doesn't have already published message
...
- if the land detector started before the mavlink module it won't have
a valid message vehicle_land_detected message until published again
2016-11-29 00:49:57 -05:00
Julian Oes
0109f6f549
update mavlink to master, rename MOUNT_STATUS
...
The mavlink message MOUNT_STATUS has been renamed to MOUNT_ORIENTATION.
This changes the Firmware code accordingly.
2016-11-28 21:01:22 +01:00
José Roberto de Souza
508c782bab
mavlink: Add support for high speed baudrates
2016-11-28 09:21:12 +01:00
Julian Oes
43caf2b683
Revert "mavlink: copy chars of git hash instead of binary"
...
Pushed by accident.
This reverts commit 87f0ec19e4 .
2016-11-23 10:57:05 +01:00
Julian Oes
87f0ec19e4
mavlink: copy chars of git hash instead of binary
...
I could not figure out how to make sense out of the binary git data.
Therefore, I replaced the px4_git_version_binary with the first 8 bytes
of px4_git_version (char[]) and this is easily readable when it arrives
on the other side.
2016-11-23 10:48:17 +01:00
Daniel Agar
c17c8884d1
implement MAV_CMD_DO_LAND_START
2016-11-19 15:48:10 +01:00
Andreas Antener
a94c8d7812
Log download: try to use file modification date for log list if it makes sense
2016-11-19 14:51:30 +01:00
Andreas Antener
dd8d178168
MAVLink Streams: added collision stream
2016-11-19 14:46:20 +01:00
lovettchris
8a2399eee1
Fix multithreading bug in mavlink over serial port.
2016-11-19 00:24:15 +01:00
Andreas Antener
0eadf26d34
Log download: fix memory leak in generating the list
2016-11-18 16:27:47 +01:00
Lorenz Meier
1f0e630958
Update use of time stamp field
2016-11-17 09:38:56 +01:00
Beat Küng
d54e22614f
fix mavlink ulog: return if initial ack not yet received
...
Avoid sending data before we have an ack from the logger.
2016-11-14 10:27:57 +01:00
Carlo Wood
04aa2bb3a4
Add missing header files.
...
These headers files were missing from the header files that
I added them to; the fact that they were missing didn't
lead to compile errors because by coincidence the missing
headers are included in the source files before including
these headers. But, after the reordering of header inclusions
by Tools/fix_headers.sh, these cases will give rise to compiler
errors.
2016-11-13 19:36:27 +01:00
Lorenz Meier
86c581b2ef
Enable usage of UAVCAN node ID for params
2016-11-13 18:43:15 +01:00
Lorenz Meier
9866ff8959
Allow sending a param with a different component ID
2016-11-13 18:43:15 +01:00
Julian Oes
d1d47c4c27
mavlink: send MOUNT_STATUS msg if subscribed
...
This adds the message MOUNT_STATUS to report about the attitude of a
gimbal.
2016-11-09 10:23:34 +01:00
Julian Oes
8ddda0a8fa
mavlink: move the msg id from uint8_t to uint16_t
...
With mavlink2 new messages are added with msg IDs greated than 255.
Therefore the msg ID types needed to be raised everywhere.
2016-11-09 10:23:34 +01:00