Paul Riseborough
ec3fe09602
ekf2: format fix
2017-05-20 10:24:08 +02:00
Paul Riseborough
889fb30029
ekf2: Improve control of magnetometer bias learning
...
Adds parameters so that the motion checks used to switch between magnetic yaw and 3-axis fusion can be adjusted.
Modifies the check used to determine if learned mag biases can be saved. A cumulated calibration time is used rather than continuous calibration time to allow for for switching in and out of 3-axis fusion mode that is required to do calibration.
2017-05-20 10:24:08 +02:00
Paul Riseborough
aa69ae0ee6
ekf2: Add preflight checking of velocity and height innovations
...
Filters the vertical position and 3-axis velocity innovations and sets the local and global position as invalid if they exceed limits during ARMING_STATE_STANDBY.
2017-05-20 10:24:08 +02:00
Paul Riseborough
2d34a3e096
ekf2: monitor estimator time slip
...
Used to check if the ekf2 module is failing to keep up with the IMU data
2017-05-20 10:24:08 +02:00
Lorenz Meier
74b0e485e7
MAVLink stream: Ensure the message is not sent again if it was already dispatched.
2017-05-19 10:34:43 +02:00
Lorenz Meier
c84611f0f5
MAVLink: Fix rate handling for camera trigger messages
2017-05-19 10:34:43 +02:00
Beat Küng
3d77102653
mavlink_main: remove MISSION_ITEM from streams configuration
2017-05-18 09:48:14 +02:00
Beat Küng
2a79ddd621
MavlinkLogHandler: increase MAX_BYTES_SEND to 256kb
...
It increases the throughput on UDP (from around 2Mb to 2.5Mb), while the
rate via USB & telemetry stay the same.
2017-05-18 09:48:14 +02:00
Beat Küng
a89980f440
MavlinkParametersManager: update sending rate
...
This is an adjustment due to the changed calling frequency of send()
(was 300 Hz, is now 100 Hz)
2017-05-18 09:48:14 +02:00
Beat Küng
cfa61c5841
MavlinkReceiver: add mission manager, param manager, ftp and log handler
...
This makes also a slight stack size increase necessary (was 284 bytes left)
2017-05-18 09:48:14 +02:00
Beat Küng
d70caeb24b
MavlinkParametersManager: remove MavlinkStream inheritance
2017-05-18 09:48:14 +02:00
Beat Küng
a761c4189e
MavlinkMissionManager: remove MavlinkStream inheritance
2017-05-18 09:48:14 +02:00
Beat Küng
99b29777ba
MavlinkLogHandler: remove MavlinkStream inheritance
2017-05-18 09:48:14 +02:00
Beat Küng
e6c3b29aa6
MavlinkFTP: remove MavlinkStream inheritance
2017-05-18 09:48:14 +02:00
Beat Küng
78c1f51f11
mavlink main: remove mission_manager, param manager, ftp & log handler
...
Will be moved to the receiver thread
2017-05-18 09:48:14 +02:00
Beat Küng
4105394234
mavlink_receiver: check for allocation failure
...
Also remove the start() declration (there's no definition of that)
2017-05-18 09:48:14 +02:00
Beat Küng
2c548f84a7
refator mavlink: prefix class members with _
2017-05-18 09:48:14 +02:00
Lorenz Meier
9be5193965
Navigator: Fix RTL command lnd logic for missions
...
The navigator was sending RTL commands in the wrong circumstances leading to a cycle between Navigator and Commander.
2017-05-16 08:40:53 +02:00
Dennis Mannhart
32685338c9
mc_pos_control: simplify transition with just using triplets
2017-05-15 15:41:47 +02:00
Dennis Mannhart
a98c0ef25d
mc_pos_control: during transition set vel_sp to zero
2017-05-15 15:41:47 +02:00
Dennis Mannhart
1ee160a5ff
navigator takeoff: use global yaw instead of home yaw
2017-05-15 15:41:47 +02:00
ChristophTobler
14f860090a
remove empty line and fix typo
2017-05-15 15:41:47 +02:00
Dennis Mannhart
00c9e4b79f
mc_pos_control: set triplets.valid to first time when landed
2017-05-15 15:41:47 +02:00
Dennis Mannhart
9e383f2cd3
navigator: when landed only exit idle if mission/takoff
2017-05-15 15:41:47 +02:00
Nicolae Rosia
32498009a3
navio_adc: add driver for Navio2 ADC
...
Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com >
2017-05-14 17:51:02 +02:00
Mohamed Abdelkader Zahana
cd1e04d43c
support of multi uav simulation in SITL
2017-05-14 15:46:18 +02:00
Lorenz Meier
669e580f0a
Land detector max altitude: Adjust max limit
2017-05-14 14:24:06 +02:00
Lorenz Meier
cdb8146af5
Land detector: Choose a default alt limit parameter value that ensures regular users are not running into it
2017-05-14 13:27:57 +02:00
yaoling
3ad23a44c5
navigator fix takeoff insidetime = 0 ( #7199 )
2017-05-13 12:16:55 -04:00
Mohammed Kabir
773d1ec6a8
camera_feedback : only use global position subscription to fill geotagging packet
2017-05-12 22:11:17 +02:00
Mohammed Kabir
ad5fe5f44a
Add support for SET_CAMERA_MODE command; Not used yet.
2017-05-12 22:11:17 +02:00
Mohammed Kabir
83888e3e7f
camera_feedback : move class definitions into hpp
2017-05-12 22:11:17 +02:00
Mohammed Kabir
b146e7afde
logger : log geotagging packet
2017-05-12 22:11:17 +02:00
Mohammed Kabir
d79750a06c
camera_feedback : inital module import
2017-05-12 22:11:17 +02:00
Mohammed Kabir
192e8b48d1
mavlink : send camera_image_captured message
2017-05-12 22:11:17 +02:00
Mohammed Kabir
2e92a3946d
camera_trigger : completely refactor state handling
2017-05-12 22:11:17 +02:00
Lorenz Meier
7af7c86384
mavlink : send camera capture information
2017-05-12 22:11:17 +02:00
Dennis Mannhart
29795fa95f
mc_pos_control: switch to auto only if triplets have been updated
2017-05-09 11:54:50 +02:00
lovettchris
47faaa5d78
Add loiter option to COM_OBL_RC_ACT ( #7170 )
2017-05-08 14:17:29 -04:00
Paul Riseborough
341bd6e836
commander: add timeout test for global position data
2017-05-08 09:21:38 +02:00
Paul Riseborough
00a42abc69
commander: Add parameter to control postal fallback after loss of navigation accuracy
...
Also remove else if branch that cannot be accessed.
2017-05-08 09:21:38 +02:00
Paul Riseborough
b85c8fa135
commander: fix bug in pos vel validity transition
...
This ensures that a mode change will occur immediately when the EKF reports the solution as invalid.
2017-05-08 09:21:38 +02:00
Lorenz Meier
981dac8e95
Navigator: Increase RAM size
2017-05-06 12:34:28 +02:00
Lorenz Meier
dc2a2a9552
IO: Better formatting
2017-05-04 22:57:47 +02:00
Julian Oes
bcd66f1408
mc_pos_control: ignore a NaN/inf position setpoint ( #7186 )
...
* mc_pos_control: ignore a NaN/inf position setpoint
This is a hotfix that prevents the position controller from trying to
do velocity control with a position setpoint that isn't valid in the
first place.
This is only a workaround, ideally the controls later should not scale
down throttle to the minimum just because the position setpoint is far
away if they still have valid setpoint in z.
* mc_pos_control: use PX4_ISFINITE and not isfinite
2017-05-04 22:55:53 +02:00
Lorenz Meier
1bb56e775e
IO: Fix access to free memory
...
The free memory was accessed from interrupt context where it should not be accessed from. We build the statistic now at a fixed rate while not armed.
2017-05-04 22:32:52 +02:00
Beat Küng
8bfa84f73f
log_writer_file: make sure to close the file
...
and avoid doing a loop iteration when the thread is requested to exit
(as it could access _buffer).
2017-05-04 08:44:11 +02:00
Nate Weibley
50740ef813
Improve FW landing predictability
...
- Use the course over ground as loiter exit criteria (better wind behavior)
- Compute the tangent origin coordinate explicitly instead of using immediate position
2017-05-04 07:51:46 +02:00
Lorenz Meier
3d2d6c4fdc
IO: Add lazy atomic OR, AND and CLEAR functions for flags
...
IO needs atomic updates of a few critical status flags, but doing these always atomic (with interrupts disabled) might cause a too high interrupts disabled interval. In order to avoid this only operations that change the state of the target variable are done with interrupts disabled, while operations without an effect on the target variable are not executed.
2017-05-04 07:46:57 +02:00
Werner Stern
dc6b688a6a
fixed px4io firmware read-modify-write bug
2017-05-04 07:46:57 +02:00