15778 Commits

Author SHA1 Message Date
Daniel Agar
cbdb08bb61 mavlink receiver delete unused orb_adverts 2017-12-12 11:25:09 -05:00
Daniel Agar
d2457467e7 mavlink delete unimplemented and deprecated handle_message_request_data_stream 2017-12-12 11:25:09 -05:00
Daniel Agar
c8aa262e85 mavlink delete unimplemented handle_message_quad_swarm_roll_pitch_yaw_thrust 2017-12-12 11:25:09 -05:00
Paul Riseborough
3c667bb4f5 mc_pos_control: format fixes 2017-12-12 12:14:24 +00:00
Paul Riseborough
deaa83bba0 mc_pos_control: Use vertical position derivative when in velocity control mode
Stops vertical velocity bias errors preventing the vehicle from landing.
Use of the vertical derivative is blended in so that for zero vertical velocity set point, the  local_position.vz is used and when the magnitude of the vertical velocity setpoint exceeds the landing speed, the  local_position.z_deriv is used.
2017-12-12 12:14:24 +00:00
Dennis Mannhart
26e85736a5 land_detector: Reduce and detection false negatives due to estimator bias
Using the vertical derivative estimate prevents vertical velocity offsets caused by estimation vertical velocity errors preventing the vehicle disarming.
2017-12-12 12:14:24 +00:00
Paul Riseborough
64a06d8523
commander: Fix pre-flight delta velocity bias check level (#8446)
Previous check level was less than the max achievable by the estimator using current default parameters making the check ineffective.
2017-12-12 11:41:42 +11:00
Daniel Agar
32cba41bed cmake handle mavlink v1 submodule only where used 2017-12-10 19:24:05 -05:00
Daniel Agar
c56b0a0e7c
Mavlink only stream HOME_POSITION if valid (#8440) 2017-12-10 02:31:42 -05:00
lamping7
63718bf27b fix MISSION_ITEM REACHED message broadcast (#8332) 2017-12-10 02:30:58 -05:00
Daniel Agar
bc9a8e4432
cmake nuttx base .px4 file naming on elf binary 2017-12-09 20:35:44 -05:00
Daniel Agar
df4ab8b59e px4fmu-v3_default name binary appropriately
- fixes #8436
2017-12-10 01:07:41 +00:00
Paul Riseborough
324c5151e7 ekf2: use local scope for control mask variable 2017-12-08 07:43:13 +00:00
Paul Riseborough
b812f95a77 ekf2: Adjust pre-flight check level
Reduce max yaw error when not using global frame aiding data to prevent large yaw yaw changes after takeoff.
2017-12-08 07:43:13 +00:00
Paul Riseborough
ded9ca13e4 ekf2: Reduce sensitivity of preflight yaw check when not doing absolute aiding
When the EKF is not fusing in observations from the NE global reference frame, the tolerance to yaw errors is much higher. This changes will prevent false triggering of the preflight fail check when operating indoors without GPS where mag field errors can be high.
2017-12-08 07:43:13 +00:00
Beat Küng
fa929322ab load_mon: remove usage of CONFIG_RAM_SIZE
The define should not be used, as it might be wrong.
This is the case on fmu-v5, which meant that the used RAM was always 1.
2017-12-07 20:28:17 +00:00
Dennis Mannhart
4f8f0d8645 mc_pos_control: set triplets to NAN if not in auto mode 2017-12-07 20:27:11 +00:00
Daniel Agar
aef8bf2ce8 delete incomplete nuttx sim config 2017-12-07 14:48:28 -05:00
Daniel Agar
3506f7b828 delete non-functional aerocore 1 remains 2017-12-07 14:48:28 -05:00
Beat Küng
c4ee5c318f px4fmu-v5: make sure the internal ist8310 is detected as internal mag 2017-12-07 17:17:17 +00:00
Beat Küng
a791adf3b9 ist8310: enable internal/external distinction 2017-12-07 17:17:17 +00:00
Beat Küng
a0afc370d0 land detector: move arming state into base class & set param when disarming
Before that, different modules (ekf2, commander & land detector) changed
params upon different events:
- ekf2 & commander set params after disarm
- land detector set params on land detected
If the 2 events were several 100ms appart, it led to 2 param saves, and
the latter param set could have been blocked by an ongoing save. And if
the land detector was blocked, it could lead to mag timeouts.

This patch makes all modules use the same event, thus only a single param
save will happen.

If we want to have guarantees to never block, we should introduce a
param_try_set() API method.
2017-12-07 11:55:51 +00:00
Beat Küng
1dbeec6a19 logger: do not write param changes if _should_stop_file_log is set
_should_stop_file_log is set after disarming: logging continues for 1s
to measure the CPU usage.
During that time, other modules might change params (such as ekf), and
we don't need to have these the log. However currently all modules do
not notify the system when setting params after disarming.
Meaning this patch is not strictly needed, it's more a preventive
measure.
2017-12-07 11:55:51 +00:00
Paul Riseborough
b5be990109 lpe: fix incorrect setting of local_position.z_global 2017-12-07 08:20:16 +00:00
Paul Riseborough
8d89e5e40b commander: rework centralise home position publication
This fixes a bug preventing use of auto and RTL when taking off with GPS.
2017-12-07 08:20:16 +00:00
Paul Riseborough
41f3e1f9b4 commander: centralise home position publication 2017-12-07 08:20:16 +00:00
Paul Riseborough
934a7af579 commander: Set home alt to EKF origin if global navigation commences in-flight
The EKF origin height is calculated to be where the vehicle was at takeoff and is suitable as a surrogate home altitude.
2017-12-07 08:20:16 +00:00
Paul Riseborough
49d82164c6 navigator: check home position horizontal and vertical validity 2017-12-07 08:20:16 +00:00
Paul Riseborough
a81c49014f mc_pos_control: reset height reference when global position available
This enables the reference height to be reset when global vertical position becomes available in-flight.
2017-12-07 08:20:16 +00:00
Daniel Agar
db8900fffc cmake improve git submodule dependencies 2017-12-06 21:15:32 -05:00
Daniel Agar
8d39f4e4a1 px4io only update params and bind if not armed 2017-12-06 10:08:00 +00:00
Daniel Agar
f748b38b3a mc_att_control set timestamp_sample from gyro 2017-12-06 10:08:00 +00:00
Paul Riseborough
f6b108c2b6 ecl: Use branch Release_1.7.0 (#8406)
This branch fixes a reported bug, fixes tow potential bugs and fixes a minor documentation error.

1) Removes code un-used under normal conditions that would prevent a height reset if a negative height variance was present. Potential bug.
2) Fix error in parameter documentation.
3) Adds missing initialisations for class variables . Potential bug.
4) Prevents the EKF loss of navigation message being output on startup. Reported bug.
2017-12-06 00:04:34 -05:00
Beat Küng
2f18a3699c micrortps_bridge: add optical_flow to the set of received topics
Required for Optical Flow on the Aero via RTPS
2017-12-05 23:48:15 -05:00
Julien Lecoeur
9fb98dad3e Fix warning -Wimplicit-fallthrough 2017-12-05 22:51:43 -05:00
Sander Smeets
b21af471ac QuadChute monitor tecs height rate (#8395) 2017-12-04 13:12:44 -05:00
Paul Riseborough
fa5010109e commander: Reset nav test when vehicle is disarmed
Previously, the only way to clear a failed nav test was to reboot. This hindered testing.
2017-12-04 09:09:54 +00:00
Paul Riseborough
d783bc8ae1 commander: Check for nav divergence due to bad yaw at takeoff
This check is performed for up to 30 seconds after takeoff or until  a horizontal speed of 5 m/s has been achieved.
If the vehicle is not landed and the check is active, then the yaw will be declared as failed if the velocity innovations fail for a continuous period of 1 second.
This will cause the local and global position and velocity validity to be latched false to prevent unsafe use of position control modes.
2017-12-04 09:09:54 +00:00
Paul Riseborough
afe857dfe6 commander: rework preflight GPS checks
Fix the bug allowing arming without GPS checks passed in the first 20 seconds after gaining GPS lock when COM_ARM_WO_GPS is set to 0
Allow 10 seconds after boot for EKF quality checks to pass before reporting failure to allow EKF to stabilise.
Move GPS quality checking and reporting to after all innovation and bias checks.
Make messages more informative.
Add missing GPS speed accuracy check.
2017-12-04 09:09:54 +00:00
Paul Riseborough
c09eecbab1 commander: prevent ekf checking being bypassed if GPS checking is disabled 2017-12-04 09:09:54 +00:00
Paul Riseborough
ddfe077f7c commander: strengthen pre-flight fail checking
The commander checks use instantaneous values which are vulnerable to false negatives  or positives with noisy data or transient faults.

This patch checks the estimators published pre flight check status which is based on persistent checks using filtered data.
2017-12-04 09:09:54 +00:00
Paul Riseborough
fc80be0917 ekf2: improve preflight checks and publish status
Separate the vertical and horizontal checks for use by local position validity reporting
Add checking of yaw using a decaying envelope filter to the horizontal checks.
Publish the check result to estimator_status topic.
2017-12-04 09:09:54 +00:00
Hamish Willee
6bb3e65d23 Make non-wrapping/scrolling table 2017-12-03 14:10:50 +00:00
Hamish Willee
c551496a41 Stop parameter names from wrapping in markdown table 2017-12-03 14:10:50 +00:00
ChristophTobler
2ca2382dbb tap_esc: replace FILE with file_t from base class device 2017-12-03 14:10:20 +00:00
ChristophTobler
06a9f54796 tap_esc: changes needed to run on qurt 2017-12-03 14:10:20 +00:00
Lorenz Meier
0e1c7eb2d2 IO driver: Reflect availability of override state in safety topic
This allows other components to correctly configure for potential manual override states if the pilot chooses to enable them.
2017-12-02 11:39:52 +00:00
Lorenz Meier
1b7d3883a4 Commander: Obey override / manual reversion mode from external override device
This change will force commander into manual reversion mode when an external override device (like PX4IO) overrides the system externally. This is not a functional change on the outputs, as they were in override mode even without this patch. However, this change ensures that the system state is consistent with the output state and also ensures that the pilot and operator has better situational awareness when he / she triggers the manual reversion without realizing it.
2017-12-02 11:39:52 +00:00
Lorenz Meier
4abc578932 Commander: State machine helper documentation
Future contributors need to know about the time constraints that the execution of this function needs to satisfy.
2017-12-02 11:39:52 +00:00
Lorenz Meier
67fa220d61 IO driver: Report override device state
This allows other components to correctly register the IO override status.
2017-12-02 11:39:52 +00:00