Daniel Agar
b33d49c77d
state_machine_helper use static_assert
2017-02-01 22:15:50 -05:00
Daniel Agar
6631e72d6f
clang-tidy modernize-redundant-void-arg
2017-02-01 22:15:50 -05:00
Daniel Agar
e927f3e040
clang-tidy modernize-use-nullptr
2017-02-01 22:15:50 -05:00
Beat Küng
c0fd3afc8c
accelerometer_calibration: only notify system once (after last scale change)
2017-02-01 08:40:23 +01:00
Paul Riseborough
bdbc4f4d65
commander: fix bug in gyro calibration
...
If the same gyro data was contained in two uORB instances, the thermal offset coefficient was being corrected twice.
TODO should fix what was causing data from the same sensor to appear on two uORB topics.
2017-02-01 08:40:23 +01:00
Paul Riseborough
6e841f6cbd
commander: fix bugs in handling of thermal compensation during access cal
2017-02-01 08:40:23 +01:00
Beat Küng
4763a119bc
calibration: make sure to notify the system when temp calibration changes
...
This is needed so that temperature compensation reads in the updated values
and publishes the updated sensor_correction topic.
2017-02-01 08:40:23 +01:00
Beat Küng
7ebe2ac017
gyro_calibration: take into account temperature compensation when storing the scale
2017-02-01 08:40:23 +01:00
Beat Küng
fbef2b7a6a
accelerometer_calibration: avoid using accel_mapping
...
This is not needed, as s is an uORB instance and accel_offset_0
contains data from uORB instance 0.
2017-02-01 08:40:23 +01:00
Beat Küng
fdb75dbba2
accelerometer_calibration: simplify & fix if temp compensation is enabled
...
if compensation enabled, scale & offsets for the drivers should be reset,
but actually only the params were reset and accel_scale was still applied
to the driver via ioctl.
2017-02-01 08:40:23 +01:00
Beat Küng
d0ea4e8876
accelerometer_calibration: cleanup
2017-02-01 08:40:23 +01:00
Beat Küng
69fd8447ae
accelerometer_calibration: make sure to initialize sensor_correction properly
2017-02-01 08:40:23 +01:00
Beat Küng
51def4fc60
gyro_calibration: make sure to initialize sensor_correction properly
...
if it's not published yet or published with low frequency, this makes sure
we have valid data.
also:
- _sensor_correction -> sensor_correction
- remove unnecessary init of sensor_correction_sub
2017-02-01 08:40:23 +01:00
Paul Riseborough
fb774bef67
commander: enable accel cal to adjust thermal compensation parameters
2017-02-01 08:40:23 +01:00
Paul Riseborough
62694d92d2
commander: rework IMU cal for compatibility with temperature compensation
2017-02-01 08:40:23 +01:00
pixhawk
ef2a5599a1
mag_calibration: Make sure calibration fails if any mag fails; More checks on calibration results
2017-02-01 08:38:26 +01:00
pixhawk
fded02220b
calibration_routines: use PX4_ISFINITE() instead of isnan()
2017-02-01 08:38:26 +01:00
pixhawk
5c96c8c1b3
Removed std::fill_n since it is not supported
2017-02-01 08:38:26 +01:00
pixhawk
9fe65d0957
Fix array initialization bug
2017-02-01 08:38:26 +01:00
Siddharth Bharat Purohit
2c831c314e
commander: correct mag cal offset direction
2017-02-01 08:38:26 +01:00
Siddharth Bharat Purohit
c6f8bcf8b3
commander: use mathlib matrix_alg functions
2017-02-01 08:38:26 +01:00
Siddharth Bharat Purohit
78b8deda15
commander: add ellipsoid 9 param fit for magnetometer corrections
2017-02-01 08:38:26 +01:00
Siddharth Bharat Purohit
c9ac15f0dd
commander: fix code style
2017-02-01 08:38:26 +01:00
Siddharth Bharat Purohit
f811777789
commander: add new math for sphere fit for compass calibration
2017-02-01 08:38:26 +01:00
Beat Küng
c1e2aeff0b
commander: ignore PREFLIGHT_CALIBRATION for temperature calibration param
2017-01-25 22:43:29 +01:00
David Sidrane
63e3bbde07
gyro_calibration is using board_get_uuid_raw32 instead of mcu_unique_id
2017-01-25 07:43:11 +01:00
Julian Oes
4ceba407f2
commander: raise stack size
...
A stack usage of 3000 bytes was observed, therefore it's safer to raise
the commander's stack size by 400 bytes.
2017-01-21 16:04:43 +01:00
David Sidrane
1c3ebadb85
Removed unused defines AVIONICS_ERROR_VOLTAGE and AVIONICS_WARN_VOLTAGE
2017-01-21 11:45:36 +01:00
Chris Lovett
33a307873a
Enable rc mode change switch to override offboard mode. This is a safety feature, in case offboard control goes crazy, user can always regain control by switching modes to stabilize, or alt hold or position hold, however they have configured the mode change RC switch.
2017-01-18 18:15:58 +01:00
Lorenz Meier
a13082bfed
commander: Widen pre-flight check for airspeed
2017-01-16 08:26:37 -08:00
wangxdflight
b693e29d64
enable px4 flight for excelsior(legacy)
2017-01-16 08:25:58 -08:00
Daniel Agar
df5d0ba8b9
airspeed cal more descriptive error message ( #6324 )
2017-01-13 17:26:27 -05:00
Beat Küng
48c5ec54bb
commander: make sure all code paths return an (n)ack to MAV_CMD_PREFLIGHT_CALIBRATION
2017-01-11 16:25:04 +01:00
Daniel Agar
5ec546f735
Makefile add scan-build target
2017-01-02 10:14:41 +01:00
Lorenz Meier
8416505a67
Commander: Header cleanup
2016-12-27 21:00:51 +01:00
Anton Matosov
3a17c07b1e
Implement RC and DL failsafe action handling for multirotors
...
Move RC and DL failsafe actions handling from navigator to commander (credits to @AndreasAntener)
Separate manual kill switch handling via manual_lockdown to prevent override and release of software lockdown by RC switch
Other changes:
Add failsafe tune
Fix LED blinking for Pixracer
Return back support for rc inputs in simulator but now it is configurable via cmake
2016-12-27 00:38:13 +01:00
Lorenz Meier
fff35fe34b
Commander: Improve preflight check experience
...
* Loosen thresholds for gyro consistency check until temperature compensated units are the norm
* Cut down string lengths so they make it through the MAVLink transport as a whole
2016-12-26 14:04:30 +01:00
Lorenz Meier
5d7d26531c
Commander: Acknowledge pair commands
2016-12-23 17:40:11 +01:00
Beat Küng
db2efa79da
fix commander: remove unused variable rtl_on
2016-12-21 14:09:41 +01:00
Lorenz Meier
9ae2376d1c
Commander: Indicate overload on the ground only if not transient. Adjust max CPU load to 80%. Indicate overload in air immediatley
2016-12-21 11:44:47 +01:00
Matthias Grob
0dbdde3404
Arming: made flags more understandable, added error message for rejected disarm
2016-12-20 09:46:36 +01:00
Matthias Grob
f6282f5b3d
Arm button fix: include the arm switch into the structure of all the checks for RC arming
2016-12-20 09:46:36 +01:00
Matthias Grob
94c8371ffe
Arm button fix: toggle arming state only once per arm button press
2016-12-20 09:46:36 +01:00
Matthias Grob
8a75827d6a
fixed all comments of arm button review
2016-12-20 09:46:36 +01:00
Matthias Grob
aa984edd90
added an rc switch for arming and disarming with the option to use it as a button
2016-12-20 09:46:36 +01:00
Julian Oes
e3aecc0762
state_machine_helper: remove unused const var
2016-12-15 10:17:03 +01:00
Julian Oes
0b02a6e0f7
state_machine_helper: warn about offboard lost, not RC
...
When offboard input stops and we're in OFFBOARD mode, we should complain
about offboard being lost and not RC because we probably never even had RC.
2016-12-15 10:17:03 +01:00
Lorenz Meier
4b0647d9c0
Condition the GPS check always on the commander GPS prearm check param ( #6055 )
2016-12-14 15:30:24 +01:00
Julian Oes
adc9ed61b8
commander: ignore arm/disarm in DO_SET_MODE cmd
...
According to https://github.com/mavlink/mavlink/pull/629 the mavlink
command DO_SET_MODE should only determine the mode but not the
armed/disarmed state, so the MAV_MODE_FLAG_SAFETY_ARMED bit should be
ignored.
Instead the mavlink command COMPONENT_ARM_DISARM should be used instead.
Therefore, the commander now ignores the arm/disarm bit.
2016-12-11 17:00:09 +01:00
Paul Riseborough
1fbc688757
Commander: Fix pre-flight EKF check errors
2016-12-09 17:58:23 +01:00