Roman Bapst
37108870e1
fw_pos_control_l1: added roll setpoint for logging ( #4869 )
...
in altitude control mode for fixed wings the roll setpoint was not
logged because the position controller publishes the attitude setpoint
but the desired roll setpoint is calculated in the attitude control
module. Now the position controller calculates the roll setpoint as well
for the sake of logging.
Signed-off-by: tumbili <roman@px4.io >
2016-06-22 15:19:11 +02:00
Daniel Agar
924fb49bf5
fw_pos_control_l1 shorten task name
...
-limited to 16 chars
2016-06-22 13:51:39 +02:00
jwilson
9794bb2f2f
Running fix_code_style.sh on the requested source files.
2016-06-22 08:57:06 +02:00
jwilson
acc1f04b67
Unfortunately, lot's of whitespace changes, required to satisfy unspecified code style format errors.
2016-06-22 08:57:06 +02:00
jwilson
a73ac821ab
Fixes shared memory locking bug and eliminates the need for an AppsProm driver to reserve a shared memory region.
2016-06-22 08:57:06 +02:00
tumbili
6739ae9dfc
ekf2: substract gyro bias from control state rates
...
Signed-off-by: tumbili <roman@px4.io >
2016-06-22 07:10:20 +02:00
Lorenz Meier
b563fae118
Fix request data stream handling
2016-06-22 00:09:13 +02:00
Lorenz Meier
de675845af
Fix navigator timeout logic
2016-06-22 00:04:31 +02:00
Lorenz Meier
2f113a4ce3
MAVLink: Allow data rate updates
2016-06-21 16:38:53 +02:00
Lorenz Meier
1869ffd15f
Fix unknown command message for Spektrum bind
2016-06-21 13:36:35 +02:00
Julian Oes
91127d51c0
commander: stay in failsafe even when landed
...
If the failsafe state is ended when landed, we would switch back to
POSCTL and therefore take off again, however, all we want is stay on
ground and wait for the auto disarm.
2016-06-21 10:21:34 +02:00
dong.chen
5ad671ed4c
Solve the problem When lost rc signal, it will rtl repeated.
2016-06-21 10:21:34 +02:00
Julian Oes
c7ec07be70
commander: properly use new param
...
The param COM_ARM_WO_GPS is set to 1 by default to allow arming without
GPS. This then sets a bool arm_without_gps which translates to
!GNSS_check in preflightCheck.
2016-06-21 10:21:34 +02:00
Julian Oes
f67e74935e
commander: remove leftover printf
2016-06-21 10:21:34 +02:00
Julian Oes
66dd72555a
navigator: change default of RC loss param to RTL
2016-06-21 10:21:34 +02:00
Julian Oes
ef04085ac5
commander: go to ALTCTL if GPS is lost in POSCTL
...
Previously, we renained in POSCTL and would drift away if GPS was lost.
2016-06-21 10:21:34 +02:00
Julian Oes
67a4a57491
commander: only warn if termination happens
...
The termination warnings were printed even if termination was not
actually enabled. This was confusing and is therefore fixed.
2016-06-21 10:21:34 +02:00
Julian Oes
872b08f677
commander: remove unneeded include
2016-06-21 10:21:34 +02:00
Julian Oes
fdff6ea325
Revert "commander: remove unused/wrong failsafe handling"
...
This reverts commit 9e704a5e121c7516e2133d02b328500d9d66fb67.
2016-06-21 10:21:34 +02:00
Julian Oes
d0355cef1f
Revert "commander/navigator: remove param NAV_RCL_ACT"
...
This reverts commit 77ea4cebf41cd106fe771b9eb469aa2326339467.
2016-06-21 10:21:34 +02:00
Julian Oes
049146ef9c
commander: param to allow arming without GPS
2016-06-21 10:21:34 +02:00
Julian Oes
3e9d1388af
commander: remove unused/wrong failsafe handling
...
The deleted code conflicts with the failsafe handling in set_nav_state.
Also, flight termination was usually disabled by circuit breaker which
means this code had no effect anyway.
2016-06-21 10:21:34 +02:00
Julian Oes
016d514d80
commander/navigator: remove param NAV_RCL_ACT
...
The param NAV_RCL_ACT was not implemented as described. Also, it has the
completely the wrong name. It should be a COM param and not NAV.
Therefore, remove the param and delete the partly implemented
and probably never used functionality.
2016-06-21 10:21:34 +02:00
Julian Oes
ea10c8c8a3
circuit_breaker: change default for GPS failure
...
We should definitely take action when GPS fails, this circuit breaker
shouldn't be engaged anymore.
2016-06-21 10:21:34 +02:00
Julian Oes
739d1cfd3f
navigator: always run the loop, even without GPS
...
If the navigator stops when no more position updates arrive, it won't
switch to land mode when DESCEND is requested by the commander.
2016-06-21 10:21:34 +02:00
Julian Oes
fe29d99d62
commander: use the gps_failure flag
...
The gps_failure flag had been ignored in some navigation states.
2016-06-21 10:21:34 +02:00
Julian Oes
4d10759699
commander: use DESCEND mode and not LANDGPSFAIL
...
Always use the DESCEND mode and not LANDGPSFAIL because LANDGPSFAIL will
try to loiter for some time and then request termination instead of
descending gently and trying to land.
2016-06-21 10:21:34 +02:00
Henry Zhang
178f32ab41
Commander:fill missing command ack. ( #4814 )
2016-06-21 10:20:33 +02:00
Chris Lovett
847d9ec4f4
Fix code style using Tools/fix_code_style.sh
2016-06-21 10:10:50 +02:00
Chris Lovett
534e10c96a
Implement code review feedback. Add get_id_static to MavlinkStream items. Add implementation of MAV_CMD_SET_MESSAGE_INTERVAL, MAV_CMD_GET_MESSAGE_INTERVAL. Add deprecation message to REQUEST_DATA_STREAM.
2016-06-21 10:10:50 +02:00
Chris Lovett
4ef4be2d70
MavlinkReceiver::handle_message_request_data_stream walks into deleted memory when you send the "stop" bit on a stream. It also fails to restart the stream because it deletes the stream when you send the stop command, so restart needs to use stream_list to find the stream again.
2016-06-21 10:10:50 +02:00
Andreas Antener
d1b27ab056
moved params NAV_OBL to COM_OBL
2016-06-20 19:23:11 +02:00
Andreas Antener
8727295f8e
fix OBL parameters in commander
2016-06-20 19:03:10 +02:00
Andreas Antener
095997ca59
changed order of arguments for readability
2016-06-20 19:03:10 +02:00
Andreas Antener
fedb9de6ef
fixed offboard loss timing handling
2016-06-20 19:03:09 +02:00
Andreas Antener
ced8376268
added offboard lost actions with additional timeout
2016-06-20 19:03:09 +02:00
Lorenz Meier
229208610e
Fix simulator code style
2016-06-18 17:03:11 +02:00
Lorenz Meier
85e3073f14
Simulator: Send all actuator output groups
2016-06-18 01:50:42 +02:00
Lorenz Meier
9230688f54
Commander: Add transition command
2016-06-17 22:44:42 +02:00
Lorenz Meier
f11d42aab3
Simulator MAVLink: Forward port cleanly
2016-06-17 22:44:42 +02:00
Daniel Agar
bada390dde
fw_pos_control_l1 fix FW_LND_FLALT usage ( #4835 )
...
-fixes #4745
2016-06-16 21:02:28 +02:00
David Sidrane
538d9ada25
Needed to avoid name collsion in upcomming Nuttx logger changes ( #4830 )
2016-06-15 21:51:53 +02:00
Daniel Agar
64d9b8eefd
fix COM_FLTMODE5 metadata typo
2016-06-15 20:35:16 +02:00
Daniel Agar
4ab8ddec53
rename cb_usb -> circuit_breaker_engaged_usb_check
2016-06-15 20:35:16 +02:00
Daniel Agar
c22a9137dd
commander cleanup headers
2016-06-15 20:35:16 +02:00
Daniel Agar
7bbfa5d94b
cleanup px4_custom_mode
2016-06-15 20:35:16 +02:00
James Goppert
2a26611cf5
Make LPE sonar reading more robust. ( #4806 )
2016-06-15 12:37:52 -04:00
Julian Oes
d9d5d9d9e4
mc_pos_control: run the loop without position data
...
By running the loop in mc_pos_control without successfully polling on
position data, we still copy the manual input over so that
mc_att_control can consume it. This allows to fly in manual mode without
GPS and no position estimate.
2016-06-15 13:34:27 +01:00
Beat Küng
26b7ac3884
mavlink: remove an UDP remote port warning, print remote port in mode info
2016-06-15 09:56:34 +02:00
CarlOlsson
d66af65a92
ekf2: fixed airspeed thr bug
2016-06-14 10:28:40 +02:00