James Goppert
13e64d00a8
commander handle shutdown command ( #8000 )
2017-09-23 10:35:36 -04:00
Daniel Agar
b4755297ec
delete control_state and cleanup vehicle_attitude ( #7882 )
2017-09-21 16:24:53 -04:00
Beat Küng
26e4756055
mavlink_ftp_test: fix unit-tests
2017-09-21 07:33:09 +02:00
Beat Küng
5b85b26351
mavlink_ftp: keep a copy of the last reply & resend it upon duplicated seq num
2017-09-21 07:33:09 +02:00
Beat Küng
b072599679
mavlink_ftp: fix alignment issue
2017-09-21 07:33:09 +02:00
Beat Küng
ea587d585f
mavlink_ftp: add & handle kErrFailFileExists error
...
This error definitions already existed in QGC
2017-09-21 07:33:09 +02:00
Daniel Agar
545ce9ae24
modules remove extra semicolons
2017-09-16 21:29:52 +01:00
Daniel Agar
e15afcca7a
vehicle_command commands are uint16, not uint32
2017-09-08 09:06:30 +02:00
Hancheol Choi
43667b240e
mavlink fix incorrect attitude_sp subscription in HIGH_LATENCY ( #7928 )
2017-09-07 09:32:42 -04:00
Daniel Agar
9b5fe8c476
ignore -Wsign-compare per module
2017-09-07 10:27:36 +02:00
Sugnan Prabhu S
6562dd496b
mavlink: implement MAV_CMD_REQUEST_FLIGHT_INFORMATION
...
Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s@intel.com >
2017-08-31 09:26:39 +02:00
Julien Lecoeur
b0c57fd65b
Return bool in added MavlinkStream*::send()
2017-08-30 14:45:02 +01:00
Julien Lecoeur
12353f4da7
Add support for mavlink message DEBUG_VECT
2017-08-30 14:45:02 +01:00
Julien Lecoeur
eeb966d375
Add support for mavlink message DEBUG
2017-08-30 14:45:02 +01:00
Julien Lecoeur
b6c30cf9b2
Add support for incoming NAMED_VALUE_FLOAT mavlink messages
2017-08-30 14:45:02 +01:00
José Roberto de Souza
66170d1c01
mavlink: Do not miss a vehicle_command
...
If 2 or more vehicle_command are queued a call to update() will
return the oldest vehicle_command and set the _cmd_time to the
timestamp of the last vehicle_command queued losing it.
Using update_if_changed() fix this causing all item being consumed
one at each call of send().
2017-08-28 08:28:57 +02:00
Beat Küng
dd4be8aecf
mavlink: only enable FTP if -x flag is provided
2017-08-24 19:03:58 +02:00
Beat Küng
12f1c342d0
mavlink_main: do not use message_buffer if _ftp_on
...
if _ftp_on is true, message_buffer was created and read, but it was
actually never written to, so this is not needed. It can only ever be
written to if _forwarding_on is true.
2017-08-24 19:03:58 +02:00
Daniel Agar
a02caff1bc
unit_test inline implementation and remove module build
2017-08-23 08:06:55 +02:00
Daniel Agar
1e42d523da
mavlink main return main loop delay proper size
2017-08-21 01:31:27 +02:00
Daniel Agar
b70b8288b9
px4_includes cleanup incomplete list
2017-08-20 20:42:42 +02:00
José Roberto de Souza
4462869432
Add support to new fields in command_ack
2017-08-19 09:04:52 +02:00
Beat Küng
9e01842c6a
mavlink ulog: advertise ulog_stream topic before subscribing to ulog_stream_ack
...
This reduces the maximum number of needed file descriptors by 1 when using
ulog streaming.
2017-08-16 16:46:56 +02:00
Julian Oes
ba150566c6
mavlink_command_sender: add some log printfs
...
This improves the printfs which will be logged. This should improve to
debug the camera triggering. The debug printfs are disabled by default.
2017-08-16 09:47:50 +02:00
Julian Oes
31edab6d6d
mavlink_command_sender: remove unused include
2017-08-16 09:47:50 +02:00
José Roberto de Souza
925efe990d
Initialize all outgoing vehicle_command_ack_s and vehicle_command_s
...
This will initialize those structs with zero in all fields not set
and all fields set will only be change once to the final value not
wasting CPU time zeroing it.
This will guarantee that no non-unitialized structs will have
a trash value on from_external causing it to be sent to the
MAVLink channel without need it.
2017-08-08 21:46:30 +02:00
José Roberto de Souza
7c268f4fa1
mavlink: Safely avoid send the same vehicle_command and vehicle_command_ack back
...
The previous approach was checking system id and component id but it
will not work in 100% of cases as external devices can send MAVLink
message with the right system id but with broadcast component id.
2017-08-08 21:46:30 +02:00
José Roberto de Souza
89a428fbfe
commander: Keep vehicle_command_ack_s local
...
No need to keep this struct as global or alive while looping.
2017-08-08 21:46:30 +02:00
José Roberto de Souza
7082cc13e0
mavlink: Allow vehicle to receive a command_ack message and publish it to listeners
2017-08-08 21:46:30 +02:00
Beat Küng
a2ef611a30
dataman: improve error reporting
2017-08-04 18:08:51 +02:00
Beat Küng
45e185f8e3
mavlink: document verbose command
2017-08-04 18:08:51 +02:00
Beat Küng
843cb05ef4
mavlink_mission: fix send_mission_count: must always use MAV_MISSION_TYPE_MISSION
...
Because it's only used for missions
2017-08-04 18:08:51 +02:00
Beat Küng
34e31641ab
mavlink_mission: print mission_type on clear_all verbose output
2017-08-04 18:08:51 +02:00
Beat Küng
25cc64947a
mavlink_mission: add check for fence & safe point on regular mission upload
2017-08-04 18:08:51 +02:00
Beat Küng
fde1c061ed
fix mavlink_mission: mission_set_current message only applies to MISSION_TYPE_MISSION
...
and thus the current _mission_type does not matter.
2017-08-04 18:08:51 +02:00
Beat Küng
6d85a3c4e4
geofence: lock geofence items during a write transfers
...
- avoids race conditions when geofence data is updated in flight. During
a transfer, the geofence module will not check for violations, which
is done with the new dm_trylock method.
- there is an update counter stored in dataman, and for each write
transaction this is increased, so that the geofence module can reload
the data upon data change (after it's unlocked).
- single dm item updates are atomic already, so resetting the polygons
to 0 does not need locking.
2017-08-04 18:08:51 +02:00
Beat Küng
3d3e6428c2
msg/geofence_update.msg: remove this topic
...
We'll use dataman to check for geofence data updates.
2017-08-04 18:08:51 +02:00
Beat Küng
ed478f40fd
geofence: implement circular areas
2017-08-04 18:08:51 +02:00
Beat Küng
6667b6434b
mavlink_mission: replace warnx, add mission_type to verbose output
2017-08-04 18:08:51 +02:00
Beat Küng
cf3b068179
mavlink: add 'verbose [on|off]' command
2017-08-04 18:08:51 +02:00
Beat Küng
371586be2c
MAVLink: Add verbose command
2017-08-04 18:08:51 +02:00
Beat Küng
32491626b6
mavlink mission: set mission_type in mavlink_mission_count_t message
2017-08-04 18:08:51 +02:00
Julian Oes
0ed29192b8
mavlink_mission: don't reset vertex_count
...
Since vertex_count is in a union with do_jump_current_count, we can't
always reset the current count, otherwise the vertex_count ends up being
0.
2017-08-04 18:08:51 +02:00
Beat Küng
82716012bd
geofence_update.msg: notify navigator on geofence update
2017-08-04 18:08:51 +02:00
Beat Küng
a987886ca3
mavlink: add fence & rally to protocol capabilities
2017-08-04 18:08:51 +02:00
Beat Küng
54d8e245c0
mavlink_mission: fix dm_read check
...
... and init to 0 is not needed, since already done in constructor
2017-08-04 18:08:51 +02:00
Beat Küng
b8fb8c610e
mavlink_mission: implement geofence & rally point protocol
...
- retrieve & store the geofence & rally point data from/to dataman
- interleaved transmissions (of different types) are not possible. trying
to do so will NACK the new transmission
- only one storage backend for polygons & rally points (not alternating
between 2 as the mission does)
2017-08-04 18:08:51 +02:00
Mark Charlebois
131496ce79
Reverted change to stack size for mavlink module
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2017-08-01 22:32:43 +02:00
Vicente Monge
c85039e413
Fixing rebase conflicts
2017-08-01 22:32:43 +02:00
Lorenz Meier
dc4faa81de
MAVLink: Only initialize where required
2017-07-29 16:12:41 +02:00