Commit Graph

13526 Commits

Author SHA1 Message Date
Robbie Sharma ab51a41793 Removed [cal] references from calibration_log_critical() routines. 2017-11-24 08:12:37 +01:00
Daniel Agar b569a8c2b9 fw_pos_control_l1 increase stack by 110 Bytes (#8348) 2017-11-23 17:09:05 -05:00
Daniel Agar d1a4c2dcd0 cmake handle git submodule depdencies 2017-11-23 00:22:45 -05:00
Florian Achermann a5cc4bcd08 Update SDP3x Airspeed Correction (#8242)
Update the model for the standard configuration based on the model from Sensirion and add also an option to do the tube pressure loss correction from Sensirion for other configurations.
2017-11-22 22:03:26 -05:00
Daniel Agar 85a7a0a86a parameters.xml sort parameters by name, sort enums by value 2017-11-22 13:42:54 -05:00
Daniel Agar fc80846825 simplify param scoping and centralize dependencies 2017-11-22 10:36:51 +01:00
makekam 6ddbe91f42 Change the name of sdlog file in case of differential gps
The fix_type variable in ubx.cpp may be assigned to 4(DGPS) or 5(Float RTK) or 6(Fixed RTK). So if we use differential gps, the value of the fix_type variable may not be 3. But gps still has 3d data and gps time. So The name of the file should named with gps time.My ublox differential gps fix_type is 5 (Float RTK).
2017-11-18 13:49:58 +01:00
Beat Küng 3744cac1bb fix mc_att_control: re-add dropped acro parameters (#8293)
and make sure the vtol params are always initialized

This got lost in 4416c4ddb3
2017-11-15 10:08:22 -05:00
Paul Riseborough 44a71ad6c9 ekf2: Update parameter descriptions (#8292)
Make it clearer that the gate parameters control innovation consistency checks and that the gate size is specified in standard deviations.
Also make it clear that the EKF2_BARO_GATE also controls the GPS height fusion.
2017-11-15 09:19:08 -05:00
Matthias Grob 26171df9fc mc_pos_control: save previous velocity setpoint after constraining, fix smooth takeoff to be still excluded from slewrate 2017-11-15 10:38:57 +01:00
Julien Lecoeur 89642a9203 Move src/module/systemlib/mixer to src/lib/mixer 2017-11-15 09:56:10 +01:00
Julien Lecoeur d46c37be79 Mixers: raise exception when geom file is incomplete
pylint format
2017-11-15 09:56:10 +01:00
Julien Lecoeur cb8d951a7e Mixers: add geoms quad_vtail (tilted props) and quad_y (rear coax props)
quad_vtail: reverse prop direction (same quad_h) to combine yaw torque induced by propellers and yaw torque induced by tilted rotors.
2017-11-15 09:56:10 +01:00
Julien Lecoeur 3e35dcb7dd Mixers: Use geometry of SK450 deadcat for both quad_wide (centered CG) and quad_deadcat (off-centered CG) 2017-11-15 09:56:10 +01:00
Julien Lecoeur 758d214dd1 Mixers: Add geometries
Mixers: add quad_x, quad_h, quad_plus

Mixers: add quad_deadcat

Set quad_deadcat.toml according to dimensions of SK450 deadcat

Mixers: add hex_x, hex_plus, hex_cox and hex_t

Mixers: add geoms octa_x, octa_plus, octa_cox

Mixers: add wide geoms

Mixers: add tri_y and twin_engine geoms

Mixers: add dodeca geoms

Mixers: Add geom quad_x_pusher
2017-11-15 09:56:10 +01:00
Julien Lecoeur 2c4228ce98 Mixers: generate all versions (new,normalized,6dof,legacy) 2017-11-15 09:56:10 +01:00
Julien Lecoeur 99f6c4dbc3 Mixers: Generate from geometry description files
Mixers: List geom files in CMakeLists.txt

Mixers: add option to normalize like legacy script

Fix py2 compatibility
2017-11-15 09:56:10 +01:00
Julien Lecoeur 4991ab5362 Mixers: use key list to select multirotor mixer 2017-11-15 09:56:10 +01:00
Daniel Agar aa789f5e8a voted sensors set enabled by default 2017-11-15 01:34:59 -05:00
Daniel Agar fabab8ac4d sensors remove barometer enabled check for now 2017-11-15 01:34:59 -05:00
Daniel Agar 8d27925443 change CAL_MAG_SIDES param group 2017-11-14 15:54:37 -05:00
Daniel Agar 1ccbaf4cd2 sensors params split by sensor index 2017-11-14 15:54:37 -05:00
Daniel Agar 273742aa0d add boolean parameters to enable/disable each sensor 2017-11-14 15:54:37 -05:00
Daniel Agar 84f07c64b0 Navigator RTL fully initialize mission item in each state 2017-11-14 14:57:34 -05:00
Daniel Agar 98cbd44526 RTL check alt_max before using
- fixes #8257
2017-11-14 14:57:34 -05:00
Dennis Mannhart 05c00855c4 navigator: reset triplets if navigation mode changes (#8285) 2017-11-14 11:32:21 -05:00
Paul Riseborough a410893080 ecl: Update ekf2 to version that addresses known vulnerabilities
See:

https://github.com/PX4/ecl/pull/350
https://github.com/PX4/ecl/pull/354

Note the amount of stack allocation has had to be increased to accomodate pr350
2017-11-13 22:50:12 +01:00
Beat Küng c2c8ed6f5c navigator: make FollowTarget::_follow_position_matricies constexpr (#8281)
The matrix is never changed and has a size of 144 bytes.
2017-11-13 12:30:33 -05:00
Julian Oes 585b03898f vtol_att_control: ack transition commands
Previously transition commands were not acked at all which meant that a
mavlink consumer such as a ground station would not get feedback if the
command arrived.

This solution is not optimal because it does not take into account if
the transition actually happened but at least it is feedback that the
command has arrived at the destination.
2017-11-13 09:56:11 -05:00
Lorenz Meier 4028692bfe Navigator: Limit string copy to length of target array 2017-11-13 09:59:54 +01:00
Daniel Agar 0a58bd309c EKF2 always publish status message (#8234)
* EKF2 always publish status message

* EKF2 fix comment typo

* EKF2 time slip use signed int and consolidate

* EKF2 minor readability improvements
2017-11-08 07:55:50 +11:00
Daniel Agar aa699cf4b7 Jenkins track test results (#8236) 2017-11-05 15:04:14 -05:00
TSC21 5a17f6b2d5 lpe: update _sensorTimeout init on constructor 2017-11-03 23:45:43 +01:00
TSC21 483f0d55e0 lpe: style fix 2017-11-03 23:45:43 +01:00
TSC21 051822eee1 lpe: remove unneeded subscriber to manual_control_setpoint 2017-11-03 23:45:43 +01:00
TSC21 691c35f47e lpe: small fixes 2017-11-03 23:45:43 +01:00
TSC21 e6efb5ec0a lpe: update _sensorTimeout and _sensorFault to handle support of more sensors 2017-11-03 23:45:43 +01:00
TSC21 392999c2df lpe: fix innovation covariance publishing 2017-11-03 23:45:43 +01:00
Beat Küng 459a71a6f1 mavlink_receiver: directly pass the result to acknowledge()
And use denied in case ulog streaming fails.
2017-10-31 22:16:06 +01:00
Beat Küng a2db639289 mavlink_receiver: disable ulog streaming via Telemetry links
Telemetry links don't have enough bandwidth for that feature. The vehicle
will return a NACK when trying to enable log streaming on such a link.
2017-10-31 22:16:06 +01:00
Beat Küng 8f7a5d0e0c mavlink_receiver: merge handle_message_command_{long,int} into a common method 2017-10-31 22:16:06 +01:00
Beat Küng 29af2343e1 fix NAV_TRAFF_AVOID param definition: needs a ;
Without that the parameter was not in parameters.xml, producing the error:
ERROR [lib__controllib] error finding param: NAV_TRAFF_AVOID
2017-10-31 11:18:49 +01:00
Lorenz Meier a1a002f9b6 Navigator: Add the ability to do a low-altitude RTL to avoid traffic
This is a first baseline implementation for collision avoidance with aircraft equipped with transponders. Since the drone-to-drone and drone-to-airplane system will be regulated by a standard, we do carefully avoid to do anything too fancy. This implementation allows to reduce altitude to get close to ground and land immediately or RTL. This is similar to what a human pilot would do and allows to get out of manned airspace which is at higher altitudes.
2017-10-31 09:10:32 +01:00
Daniel Agar ce78f254c2 mavlink parameters initialize struct
- fixes CID 141890
2017-10-31 08:11:18 +01:00
Daniel Agar 21995bd4b7 sensors ignore invalid failover index
- fixes CID 199478
2017-10-31 08:10:04 +01:00
sanderux dd9179efc9 Adaptive QuadChute disabled in manual modes 2017-10-30 20:57:47 +01:00
sanderux fc16a31f89 Adaptive quadchute 2017-10-30 20:57:47 +01:00
Beat Küng 9c8dc3941d commander: fix 'commander arm' not working in HIL mode
This got introduced with 61b0a81bf9. Due to the removed startup_in_hil flag,
this check does not work anymore, so remove it completely.
2017-10-30 20:53:58 +01:00
Lorenz Meier afc8503260 PX4IO Firmware: Fix usage of new operator in IRQ
The mixer was creating a new class in interrupt context, which is not valid use in NuttX. This change copies the mixer into the buffer and runs the mixer management section of the code outside of interrupt context in the normal task.
2017-10-30 20:03:19 +01:00
Paul Riseborough b3d045d4d0 Revert "add boolean parameters to enable/disable each sensor"
This reverts commit 9fde19259e.
2017-10-30 20:49:36 +11:00