Commit Graph

1159 Commits

Author SHA1 Message Date
Lorenz Meier 0adb4d8e8c Commander: Fix single channel mode switching 2016-04-18 18:29:07 +02:00
stmoon 717c90eab4 enable commander hil option when hils mode
test for merge...

recover modification part
2016-04-18 11:10:02 +02:00
Lorenz Meier f164500580 Commander: optimize text for voice output 2016-04-17 19:06:00 +02:00
James Goppert 967e4dd127 Modified cmake to use STACK_MAX and STACK_MAIN 2016-04-14 13:36:36 -04:00
Julian Oes c9ac9c7dbd commander: fixes after rebase 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 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 e91f587438 commander; various compile fixes after rebase 2016-04-11 18:01:49 +02:00
Julian Oes be2fe78c82 commander: publish internal state 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 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 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 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
Julian Oes 74072dbe74 vehicle_status.msg: delete unused mavlink stuff
The MAV_TYPE enum was not in sync with the mavlink specs anymore. It
makes therefore sense to remove the duplication and include the correct
mavlink header file where it is needed.
Also, error counts which are not populated, can be scrapped.
2016-04-11 18:01:47 +02:00
Julian Oes 5f3a23a253 commander: remove circuit breakers from status msg
Since the circuit breaker bools are not actually used anywhere else than
in the commander, it is safe to remove them and replace them with local
bools.
2016-04-11 18:01:47 +02:00
Lorenz Meier 8b876e6497 MAVLink command feedback: Do only report command status and not additional string 2016-04-10 11:15:18 -07:00
Don Gagne 91d4e129f4 Change to normal cal message
This way QGC can respond to it and show good ui
2016-04-10 10:58:37 -07:00
Lorenz Meier ad3ca2a9d2 Commander: Indicate low battery 2016-04-10 10:57:38 -07:00
Lorenz Meier e3d6bad3fe Revert "report sensor init failure"
This reverts commit 407f467b456a393a891a936c79cc90e64e52fd45.
2016-04-10 10:37:03 -07:00
Lorenz Meier b66967a8a5 Revert "add low battery warning and comment out the "resolved" messages"
This reverts commit 221e259d01b32f23d14270af78d0996b728bf9d1.
2016-04-10 10:36:48 -07:00
Lorenz Meier 34a9449df9 Include cal status data for mag 2016-04-09 18:00:38 -07:00
Lorenz Meier 224aaeddfe Harden calibration experience on master 2016-04-09 13:44:53 -07:00
Lorenz Meier d9b32221e7 Commander: Reduce mag output 2016-04-09 11:53:44 -07:00
Lorenz Meier 275fe8ee2d Play safe with calibration done messages 2016-04-09 11:50:50 -07:00
Lorenz Meier 9fdbaa5a22 Mag cal 2016-04-06 14:30:51 -07:00
Lorenz Meier 6d24e33819 Commander: Space out mag feedback further 2016-04-06 14:23:49 -07:00
Lorenz Meier 43e0186eb3 Commander: Space out MAVLink log messages more 2016-04-05 21:33:40 -07:00
Mark Whitehorn 817c0eafbc add low battery warning and comment out the "resolved" messages 2016-04-05 19:13:49 -07:00
Mark Whitehorn b4520f538e report sensor init failure 2016-04-05 19:13:49 -07:00
Julian Oes 8707cfe9f2 commander: use macro with wait in all calibrations 2016-04-05 15:36:03 -07:00
Julian Oes f583f51027 commander: add macros for log messages and wait
As a current workaround we need to wait some time after publishing a
mavlink log message in order for it to arrive in QGC.
2016-04-05 15:36:02 -07:00
Julian Oes 7352dc6f2e commander: workaround to wait 1s before param save
Without this wait, we end up saving the old parameters on Snapdragon.
2016-04-05 13:02:53 +02:00
tumbili 94aaf0d298 increase sleep time in accel calibration routine to make accel calibration work on snapdragon 2016-04-04 11:17:26 +02:00
Julian Oes f4f1f5f027 commander: raise stack of low prio thread
The accel calibration sometimes lead to a crash. Raising the stack size
resolved the issue.
2016-04-01 15:12:08 +02:00
Felix Hu bd580e09bf supports MindPXv2 borad which is a product from AirMind. 2016-03-30 19:45:39 +02:00
Julian Oes 9a5aa4f112 commander: pass PreflightCheck on Snapdragon
The tests don't work properly on Snapdragon yet, so just report happy
for now. Otherwise users get messages such as "No Gyro found" which is
wrong.
2016-03-30 10:00:22 +02:00
Lorenz Meier 3981f06d42 Reject arming timeout 2016-03-29 22:42:57 +02:00
Julian Oes f718c25dbe commander: remove QURT workaround
Timestamps didn't exist when commander was run on the Linux side.
However, commander is now always run on the QURT side, so the hack is no
longer needed.
2016-03-27 12:40:10 +02:00
Jimmy Johnson 38c40d5601 fixing var change after rebase, setting min mission takeoff altitude to 10m for safety 2016-03-27 12:10:57 +02:00
Jimmy Johnson dfc2d9b5e0 more clean up 2016-03-27 12:10:57 +02:00
Jimmy Johnson bbc8eaefd7 Adding new follow target navigation and main states. New follow target
topic added. New follow fsm added to the navigator
2016-03-27 12:10:57 +02:00