Commit Graph

17507 Commits

Author SHA1 Message Date
Julian Oes 015d7431a7 sdlog2: comment fix 2016-04-12 13:13:50 +02:00
Julian Oes 1aa45cede8 sdlog2: workaround for Snapdragon
This fixes an issue where topics where not subscribed to on the Linux
side on Snapdragon. It's a hack until there is a proper fix for the
orb_exists() call.
2016-04-12 13:13:50 +02:00
Paul Riseborough 592113178b ecl: update library reference
Improved recovery from bad height estimation
2016-04-12 12:36:05 +02:00
Julian Oes fbd7c73043 drv_hrt: fix comment 2016-04-12 08:56:34 +02:00
Lorenz Meier 4bdfb8a107 Drop Wifi rate to 20K 2016-04-11 12:51:24 -07:00
Julian Oes 6abc55c303 navigator: whitespace 2016-04-11 18:01:49 +02:00
Julian Oes 34e504aec5 navigator: fix after rebase 2016-04-11 18:01:49 +02:00
Julian Oes c9ac9c7dbd commander: fixes after rebase 2016-04-11 18:01:49 +02:00
Julian Oes 32f2b89252 sdlog2: comment fix 2016-04-11 18:01:49 +02:00
Julian Oes 3c9f9540dc commander: add failsafe flag back in 2016-04-11 18:01:49 +02:00
Julian Oes 11c2b6784d msg: fix comment in commander_state 2016-04-11 18:01:49 +02:00
Julian Oes 974223bdd1 commander: pass battery status to preflight check
A low battery check was recently added to the preflight check, therefore
we need to pass on the information about the battery.
2016-04-11 18:01:49 +02:00
Julian Oes 68a69c9d46 cmake: add commander_state message to ROS build 2016-04-11 18:01:49 +02:00
Julian Oes a325b77adf ros-commander: refactor changes 2016-04-11 18:01:49 +02:00
Julian Oes 3b806235ac sdlog2: compile fixes after rebase 2016-04-11 18:01:49 +02:00
Julian Oes 50c36296fa navigator: compile fixes after rebase 2016-04-11 18:01:49 +02:00
Julian Oes 08ce231d76 ekf2: compile fixes after rebase 2016-04-11 18:01:49 +02:00
Julian Oes e91f587438 commander; various compile fixes after rebase 2016-04-11 18:01:49 +02:00
Julian Oes 9859d43fe2 frsky_telemetry: fixed build 2016-04-11 18:01:49 +02:00
Julian Oes 05d64b3342 navigator: fix for vehicle status refactor 2016-04-11 18:01:49 +02:00
Julian Oes 03a0788207 fw_pos_control_l1: fix for vehicle status refactor 2016-04-11 18:01:49 +02:00
Julian Oes f21f82223c ekf2: fix stupid bug caught by travis on Mac 2016-04-11 18:01:49 +02:00
Julian Oes be2fe78c82 commander: publish internal state 2016-04-11 18:01:48 +02:00
Daniel Agar 3a209d71af fix clang size error 2016-04-11 18:01:48 +02:00
Daniel Agar dfeab4f5e3 remove unused vehicle_status 2016-04-11 18:01:48 +02:00
Daniel Agar 56dbfef378 remove duplicate bat_msg.id 2016-04-11 18:01:48 +02:00
Daniel Agar c494e85095 fix sign compare to make travis-ci happy 2016-04-11 18:01:48 +02:00
Julian Oes 315c202824 sensors: removed more leftover variables 2016-04-11 18:01:48 +02:00
Julian Oes c87fa43b68 sensors: removed unused variable 2016-04-11 18:01:48 +02:00
Julian Oes 9512a71cf8 commander: cleanup the status messages 2016-04-11 18:01:48 +02:00
Julian Oes 2cd05dea4d commander: try different mavlink include 2016-04-11 18:01:48 +02:00
Julian Oes 5ca5af5fcd commander: take main_state out of vehicle_status
This state is only commander internal. Therefore it doesn't need to be
in vehicle_status. Instead it is now in the commander_state message.
2016-04-11 18:01:48 +02:00
Julian Oes 1ad0ee0fae mc_att_control: don't use main state for RATTITUDE
Instead of the state use the boolean flags.
2016-04-11 18:01:48 +02:00
Julian Oes 5c9713f05b commander: try to get the travis include right 2016-04-11 18:01:48 +02:00
Julian Oes 70cff975cc commander: move some flags out of vehicle_status
All the removed flags were not used anywhere else than inside the
commander.
2016-04-11 18:01:48 +02:00
Julian Oes 0988fef831 commander: forgot to close fd 2016-04-11 18:01:48 +02:00
Julian Oes 23df992cc5 commander: moved offboard bools into status_flags
The offboard status bools were not used anywhere but in the commander.
Therefore they are now moved to the local status_flags topic.
2016-04-11 18:01:48 +02:00
Julian Oes a11a986df8 mavlink: removed leftover debug printf 2016-04-11 18:01:48 +02:00
Julian Oes 1f44fb1efd commander: internalize system status bools
Most condition bools in the commander are not used anywhere but in the
commander. It therefore makes sense to move them to a different internal
struct and remove them from the vehicle_status message.

Also, the land_detected should be used by all the modules instead of
getting it through the commander and system_status.
2016-04-11 18:01:47 +02:00
Julian Oes 705979e3c7 simulator: use new battery systemlib 2016-04-11 18:01:47 +02:00
Julian Oes 2dfc644f17 sensors: only publish battery topic if valid 2016-04-11 18:01:47 +02:00
Julian Oes 4ddd1bbf03 battery: fix segfault
The name was set NULL which lead to a segfault on POSIX.
2016-04-11 18:01:47 +02:00
Julian Oes 141b984d5b commander: take previous main state out of status 2016-04-11 18:01:47 +02:00
Julian Oes 181eb49da8 commander: remove calibration_enabled
This flag is not used anywhere, it therefore doesn't need to be in
vehicle_status.
2016-04-11 18:01:47 +02:00
Julian Oes fe85841a1d commander: remove counter
The counter variable in system status wasn't used anywhere.
2016-04-11 18:01:47 +02:00
Julian Oes 1cc43a00d6 battery: astyle 2016-04-11 18:01:47 +02:00
Julian Oes 76c66a4e92 frsk_telemetry: astyle 2016-04-11 18:01:47 +02:00
Julian Oes 69b0b75151 px4io: astyle 2016-04-11 18:01:47 +02:00
Julian Oes 32c3135788 commander: move battery calculations to systemlib
The commander used to consume the battery_status topic and write the
contents after some calculations into the system state. Instead, the
calculations now happen in library calls in systemlib/battery.

This moves the battery fields out of the vehicle_status message into the
battery_status topic.

This brought quite some changes in all modules that need battery
information. The current state is compiling but untested.
2016-04-11 18:01:47 +02:00
Julian Oes 699b08c9fd commander: move battery warning
The battery warning is not consumed anywhere, therefore scrap it from
the vehicle_status message.
2016-04-11 18:01:47 +02:00