baumanta
c0a1f5b72f
Collision prevention improvements ( #11866 )
...
* match max vel in col-prev to regular pos ctrl
* change warning criterium to avoid float error
* disable push back from obstacles
* use floats consistently
2019-04-17 13:20:29 -04:00
bresch
93d52581ef
Auto - Fix cruise speed. Tested with and without SDK. Before that commit, the drone files at max speed instead of cruise speed if not precised by the SDK
2019-04-15 16:32:26 +02:00
Julian Oes
e88f1b33b2
FlightTasks: fix mission DO_CHANGE_SPEED
...
This fixes the issue where the DO_CHANGE_SPEED command was ignored and
the drone always travelled at the MPC_XY_CRUISE velocity.
2019-04-12 15:47:36 +02:00
Matthias Grob
1454694bdd
FlightTaskAuto: separate default speed and limit
...
It wasn't possible to fly faster than cruise speed even if planned
in the mission.
Limiting the planned cruise speed is necessary because
the smoothed trajectory mission plans to the _mc_cruise_speed and
if that's higher than the maximum it gets capped for safety by the
position controller and the result is a jerky flight.
2019-04-12 15:47:36 +02:00
romain
e1d9438f79
sih: remove SYS_SIH parameter and extend SYS_HITL
2019-04-12 09:25:07 +02:00
Beat Küng
914a9b78b6
new airframe for sih, HIL_STATE_QUATERION sent through MAVLink
2019-04-12 09:25:07 +02:00
PX4 Build Bot
3549354599
Update submodule ecl to latest Tue Apr 9 12:38:37 UTC 2019
...
- ecl in PX4/Firmware (aed3d80d5982f37e8353d6d07e29c79a9260b086): https://github.com/PX4/ecl/commit/f95cd4b3584d029c35b288a39180ddf25b2dd004
- ecl current upstream: https://github.com/PX4/ecl/commit/c4492b17c1d7bb9b74011efa9890452b091421e8
- Changes: https://github.com/PX4/ecl/compare/f95cd4b3584d029c35b288a39180ddf25b2dd004...c4492b17c1d7bb9b74011efa9890452b091421e8
c4492b1 2019-04-09 Martina - do not reset yaw if vehicle on ground
14227ea 2019-04-08 Julian Oes - CMakeLists.txt: fix cmake warning
f97f0b6 2019-03-30 Paul Riseborough - EKF: Remove unnecessary code
43b5e26 2019-03-02 Paul Riseborough - EKF: Fix bug causing continual yaw reset when EKF2_MAG_TYPE = 2
2019-04-09 17:21:28 +02:00
Daniel Agar
6bb93936d1
cmake use ${PYTHON_EXECUTABLE} for mixer test
...
- needed for code coverage of python scripts
2019-04-07 16:35:31 -04:00
Daniel Agar
b9516d7e38
mixer move test_mixer_multirotor into cmake
2019-04-07 16:12:17 -04:00
Beat Küng
0bb5225370
rcS: add airframe parameter versioning and extend SYS_AUTOCONFIG
2019-04-05 08:08:47 +02:00
Martina Rivizzigno
6f5c97f184
ObstacleAvoidance: do not check for loiter nav state twice
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
0dab5d3a11
ObstacleAvoidance: enforce camel case
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
c5dfcbc50e
cosmetics changes to ObstacleAvoidance library
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
e5441a6565
make format
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
34c0bb1723
ObstacleAvoidance: don't inject avoidance setpoint when in
...
loiter mode since it's the failsafe mode
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
0e27b5cbfa
include libraries without the need for full path, make ObstacleAvoidance
...
instance protected
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
4dcc77b822
ObstacleAvoidance: remove printf and remove unnecessary new lines
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
c1258931da
rename updateAvoidanceWaypoints->updateAvoidanceDesiredWaypoints and
...
updateAvoidanceSetpoints->updateAvoidanceDesiredSetpoints
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
b165c41737
ObstacleAvoidance: add comments
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
aa1b46f85a
ObstacleAvoidance library: save current waypoint in global variable
...
to check progress
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
94f73117c7
reintroduce obstacle avoidance failsafe. If OA fails, switch to loiter
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
e464502d2d
remove empty_trajectory_waypoint and getter method for avoidance
...
waypoints in FlightTasks. In obstacle avoidace library reset desired
avoidance waypoints after publication
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
34b0f33098
move all obstacle avoidance interfaces to the ObstacleAvoidance library
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
4e806d79fe
inject avoidance setpoints into AutoMapper
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
320ed40806
use subscription array in ObstacleAvoidance library
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
a9bab81eb8
make format
2019-04-04 16:41:26 +02:00
Martina Rivizzigno
8c24ba9255
move injection of avoidance setpoints to flight task library
2019-04-04 16:41:26 +02:00
PX4 Build Bot
7a27284d75
Update submodule ecl to latest Thu Apr 4 00:38:15 UTC 2019
...
- ecl in PX4/Firmware (3a004d13dc13d81403ae3873d5109c0503a4f964): https://github.com/PX4/ecl/commit/a892ececf8490b21aa8917bc243b2bc441af6a87
- ecl current upstream: https://github.com/PX4/ecl/commit/f95cd4b3584d029c35b288a39180ddf25b2dd004
- Changes: https://github.com/PX4/ecl/compare/a892ececf8490b21aa8917bc243b2bc441af6a87...f95cd4b3584d029c35b288a39180ddf25b2dd004
f95cd4b 2019-01-22 Roman - ground effect: removed dependency on local position
7845ff4 2019-01-23 CarlOlsson - EKF: increase wind process noise scaler to 0.5
32ca6f7 2018-10-24 CarlOlsson - ekf: scale wind process noise with low pass filtered height rate
938c8ad 2019-02-04 CarlOlsson - EKF: use hagl estimate if valid for when to trigger yaw reset on takeoff
8b4ae48 2019-03-05 Hamish Willee - README: Fix link to EKF/ECL tuning guide
f0889c1 2019-03-18 Carl Olsson - EKF: fixed some comment typos
6e77b19 2019-03-14 Todd Stellanova - Add DataValidatorGroup tests, add more DataValidator tests (#592 )
2019-04-03 22:22:57 -04:00
bresch
dec96b0a3a
revert FlightTasks: fix mission DO_CHANGE_SPEED
2019-04-03 18:08:24 +02:00
bresch
20adce5077
Add new line at the end of FlightTaskFailsafe.cpp and FlightTaskAutoLine.cpp
2019-04-03 15:38:50 +02:00
bresch
b14446f0e5
Parameter update - Rename variables in lib
...
using paramter_update.py script
2019-04-03 15:38:50 +02:00
Julian Oes
a21242b0e3
FlightTasks: fix mission DO_CHANGE_SPEED
...
This fixes the issue where the DO_CHANGE_SPEED command was ignored and
the drone always travelled at the MPC_XY_CRUISE velocity.
2019-04-03 11:21:12 +02:00
bresch
99fb88ce83
AltitudeSmoothVel - Create new altitude flight task that uses the
...
velocity smoothing library to create a jerk-limited trajectory along the
Z axis. This FlightTask is used when MPC_POS_MODE = 3.
2019-04-03 10:43:31 +02:00
Alessandro Simovic
3d668d871b
tunes: don't let tune interrupt itself
2019-03-29 19:42:02 -07:00
Daniel Agar
3d271245a1
PX4Gyroscope apply sensor rotation before scaling
...
- prevents loss of numerical precision
2019-03-24 18:34:31 -04:00
Daniel Agar
5a841761ce
PX4Accelerometer apply sensor rotation before scaling
...
- prevents loss of numerical precision
- fixes #11695
2019-03-24 18:34:31 -04:00
Martina Rivizzigno
8cdc2d9ae9
update matrix library submodule
2019-03-22 15:41:33 +01:00
bresch
a08b1682e3
[Position|AutoLine]SmoothVel - Update position and velocity states of the trajectories in case of EKF reset. Until now, only the position reset on XY axis was properly handled. Now, xy, vxy, z and vz are handled
2019-03-20 14:35:26 -04:00
bresch
0813f30723
AutoLineSmoothVel - change function contrain_one_side(..) from snake_case to camelCase
2019-03-20 14:35:26 -04:00
bresch
aecf8fce58
ManualPositionSmoothVel - Force velocity and acceleration setpoints to zero if the velocity setpoint is smaller than 1mm/s and that the acceleration setpoint is null
2019-03-18 08:33:11 +01:00
bresch
1fefa76e5d
ManualSmoothVel - Set jerk to 1.0 during position hold to help the optimizer to converge towards 0 vel and acc
2019-03-18 08:33:11 +01:00
bresch
06f683bdda
VelocitySmoothing - Add simple test script
2019-03-18 08:33:11 +01:00
bresch
b9cf4dfb6c
VelocitySmoothing - Get rid of math.h, math.cpp and px4_defines dependencies
2019-03-18 08:33:11 +01:00
bresch
ddab0ccdf1
VelocitySmoothing - Protect against division by zero and sqrt of a negative number
2019-03-18 08:33:11 +01:00
Mark Sauder
4c228eaf4a
cmake whitespace fixes to quiet git hook.
2019-03-16 14:48:44 -04:00
Daniel Agar
b35d048566
cmake enable -Wcast-align and disable per module
2019-03-16 11:47:15 -04:00
Daniel Agar
13dba60149
perf counter lib convert to c++
2019-03-16 11:47:15 -04:00
Julian Oes
2ebb9d2ab5
mixer_multirotor.py: fixes for Python3
...
This fixed running `make tests` on Arch Linux where Python 3 is the
default.
2019-03-15 10:53:55 +01:00
bresch
c5706f6283
FlightTaskAuto - Recover position control after local position reset ( #11636 )
...
* FlightTaskAuto - Explicitly check is _triplet_target is finite to decide if the target has to be updated or not. If the _target is NAN, always try to update it to get a valid setpoint.
2019-03-15 00:42:24 -04:00
Paul Riseborough
f8ae8ba502
ekf2: Use ecl library with recent bug fixes and enhancements.
...
Bug Fixes:
https://github.com/PX4/ecl/pull/586 - EKF: fix covariance and output filter buffer initialization
https://github.com/PX4/ecl/pull/590 - EKF: Fix innovation in fuseDeclination()
Enhancements:
https://github.com/PX4/ecl/pull/543 - ekf_helper: add more useful methods to interface with the covariances
https://github.com/PX4/ecl/pull/588 - Add unit tests for DataValidator
Note:
https://github.com/PX4/ecl/pull/543 has required a change to how the state variances are accessed .
2019-03-14 19:25:36 +11:00