Commit Graph

7156 Commits

Author SHA1 Message Date
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 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 8e9e9f8a8b vehicle_status: move vtol_vehicle_status enum
It makes more sense to have the VTOL status in its own 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
tumbili 2f7601370b mixer multirotor: initialise min_out with correct value 2016-04-11 17:47:40 +02:00
tumbili 092efd22fd set default thrust scale parameter to zero - this will disable using the fw motor for mc pitch by default 2016-04-11 15:10:53 +02:00
tumbili 04cfc23c01 allow pusher for pitch strategy to be turned off by setting thrust scal param to zero 2016-04-11 15:03:50 +02:00
Roman f7c0518a61 log pitch setpoint after modifying it 2016-04-11 14:56:50 +02:00
tumbili db2a53d95d added parameter to allow scaling the forward thrust used to acclerate forward
in multirotor mode
2016-04-11 14:56:50 +02:00
tumbili 34fe340864 added parameter for maximum allowed standard vtol down pitch 2016-04-11 14:56:49 +02:00
sander cf309bfc3f invert setpoint formula 2016-04-11 14:56:49 +02:00
Roman e11d4ae302 standard vtol:
implement moving forward using pusher
2016-04-11 14:56:49 +02:00
sander 0b10720034 testing tweaks 2016-04-11 14:56:49 +02:00
sander 3a6882a4d6 First attempt at pusher assist 2016-04-11 14:56:49 +02:00
Beat Küng 215aa78f30 fix coding style for gps drivers 2016-04-11 11:23:01 +02:00
Beat Küng b3ed8b70d2 systemlib scheduling_priorities: include the more generic px4_tasks.h
this makes sure the header can also be used under POSIX
2016-04-11 11:23:01 +02:00
Beat Küng ec819737c1 systemlib: make err() & errx() work for POSIX 2016-04-11 11:23:01 +02:00
Beat Küng 7ff80463be fix completely wrong file permissions for log files & mavlink ftp (new mode 666) 2016-04-11 11:23:01 +02:00
Lorenz Meier d97f32cca1 Fix MAVLink not responding regression on TELEM2 2016-04-10 12:11:26 -07:00
Lorenz Meier d2c98a98e9 Rename stop-all to stop for MAVLink, but still keep stop-all for existing scripts 2016-04-10 11:18:05 -07: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
sander 7338fe889e Only set virtual waypoint for VTOL_TAKEOFF. Fixes #4193 2016-04-09 13:24:20 +02:00
sander 42eff31c84 Keep current altitude for vtol move to land after transition 2016-04-09 12:23:43 +02:00
Andreas Antener 7f5a2b1bac only use the default acceptance radius for checking mission feasibility 2016-04-08 22:40:02 -07:00
Julian Oes 727783fe94 mavlink: keep trying to find to broadcast
This should help the Snapdragon to connect if the network is not yet up
by the time the mainapp starts. It will retry to find a network and
broadcast once it finds one.
2016-04-08 22:38:22 -07:00
Holger Steinhaus 0ddf720759 uavcan: fix shadowed variable 2016-04-08 22:36:59 -07:00
Lorenz Meier dd0d1f001e MPC velocity controller: Reduce gain to stabilize control loop 2016-04-08 21:25:55 -07:00
Julian Oes c32310b6b4 muorb: improve comment 2016-04-08 15:51:16 +02:00
Julian Oes 8422280f18 muorb: typo and added comment for magic number 2016-04-08 15:51:16 +02:00
Julian Oes 2bce8f2803 muorb: abs time on aDSP in sync with Linux side
This adds a call on startup of the muorb on the aDSP side to use an
offset for hrt_absolute_call(). This means that the hrt_absolute_call()
on the appsproc (Linux) side should now match the one on the aDSP
(QURT) side.
The accuracy still needs to be determined.
2016-04-08 15:51:16 +02:00
Julian Oes ae2c28677d mavlink: adapt network detection for Mac, use heap
It seems that Mac does not support the ioctl to check how big the ifconf
buffer needs to be. Therefore we just have to make a guess.
Alos, instead of allocating the variable size array on the stack, it's
probably safer to use the heap.
2016-04-08 09:41:10 +02:00