Julian Kent
d70b024ec7
GTest functional tests that include parameters and uORB messaging ( #12521 )
...
* Add kdevelop to gitignore
* Add test stubs
* Rename px4_add_gtest to px4_add_unit_gtest
* Add infrastructure to run functional tests
* Add example tests with parameters and uorb messages
* Fix memory issues in destructors in uORB manager and CDev
* Add a more real-world test of the collision prevention
2019-08-09 15:10:09 +02:00
bresch
4eb9c7d812
Create TrajMath library and move waypoint speed calculations in it
2019-08-09 12:04:48 +02:00
bresch
b1698b78bc
AutoSmoothVel - scale down acc_hor using traj_p parameter in the computation of the maximum waypoint entrance speed
2019-08-09 12:04:48 +02:00
bresch
de10f1e04d
MC auto - Modify yaw_sp_aligned to take mis_yaw_error tolerance.
...
Add check for this flag in AutoLine
2019-08-09 12:04:48 +02:00
Dennis Mannhart
9e9b2ab9e8
FlightTaskAutoLine/SmoothVel: stop at waypoint if altitude is has not been reached yet
2019-08-09 12:04:48 +02:00
bresch
255c911155
AutoSmoothVel - Compute desired speed at target based on angle between previous-current and current-next waypoints
...
Also remove crosstrack P controller that produces overshoots when the
acceptance radius is large (crosstrack error is suddenly large at
waypoint switch).
2019-08-09 12:04:48 +02:00
Silvan Fuhrer
cedf14e2ba
Airspeed Selector: repurpose wind estimator into an airspeed (selection, validation) module.
...
This new airspeed module does:
-runns an airspeed validator for every airspeed sensor present, which checks measurement validity and estimates an airspeed scale
-selects another airspeed sensor if for the current one a failure is detected
-estimates airspeed with groundspeed-windspeed if no valid airspeed sensor is present
-outputs airspeed_validated topic
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2019-08-09 10:55:05 +02:00
Silvan Fuhrer
50dc8aee7a
Airspeed Selector: added airspeed validator class
...
This validator takes measurements from a single airspeed sensor and:
-checks validity of measurement
-can estimate an airspeed scale factor (estimation enabled with parameter setting) to accout for errors in airspeed due due placement of sensor
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2019-08-09 10:55:05 +02:00
Silvan Fuhrer
248e1818e2
Airspeed Selector: changes in airspeed library to account for new EAS state (equivalent airspeed)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2019-08-09 10:55:05 +02:00
Claudio Micheli
5fe7992af5
mixer_group: improved get_multirotor_count () code readbility.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-08-09 09:41:17 +02:00
Claudio Micheli
1e04d718f6
uavcan escs: Modified esc_status reporting to have _rotor_count published.
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-08-09 09:41:17 +02:00
PX4 Build Bot
34ed454ea9
Update submodule ecl to latest Fri Aug 9 02:59:11 UTC 2019
...
- ecl in PX4/Firmware (e93e676c38bc3ce2e57c20a8dc33ffe377826903): https://github.com/PX4/ecl/commit/d38164fc8e68b740405669127138e550c3c7375c
- ecl current upstream: https://github.com/PX4/ecl/commit/62fa464e4dd6cb5e585d23bd353aa50a469879f7
- Changes: https://github.com/PX4/ecl/compare/d38164fc8e68b740405669127138e550c3c7375c...62fa464e4dd6cb5e585d23bd353aa50a469879f7
62fa464 2019-07-17 RomanBapst - WindEstimator: added support for pre-set airspeed scale factor
a7d9c73 2019-07-09 Silvan Fuhrer - Wind estimator: added wind_estimator_reset state (to indicate if wind estimator was reset in last fusion-cycle)
09f29db 2019-07-02 Silvan Fuhrer - added option to fix airspeed scaling to 1
2019-08-08 23:39:43 -04:00
Daniel Agar
e8a11086eb
create uORB::PublicationMulti for multi publications
2019-08-08 21:01:56 -04:00
baumanta
e91614c791
change angle parmeter to degrees
2019-08-07 15:29:13 +02:00
baumanta
f80a539faa
add unit for coll prev angle
2019-08-07 15:29:13 +02:00
baumanta
14f128b89d
add parameter for detection angle
2019-08-07 15:29:13 +02:00
baumanta
150b5df7cb
change size of reaction angle
2019-08-07 15:29:13 +02:00
baumanta
b26d3ac9d4
no slinding in collision prevention (roll jerk fix)
2019-08-07 15:29:13 +02:00
bresch
50fbb56737
Yaw mode 3 - Add check for minimum distance to target in MPC_YAW_MODE 3 (along trajectory) to be consistent with the other yaw modes
2019-08-07 10:30:34 +02:00
Martina
119e5e3182
Revert "CollisionPrevention only process distance_sensor updates"
...
This reverts commit 839787568c .
2019-08-07 04:01:50 -04:00
Martina Rivizzigno
19ad80385e
ObstacleAvoidance: update empty_trajectory_waypoint
2019-08-05 16:05:40 +02:00
Martina Rivizzigno
d29f2ff60c
ObstacleAvoidance: use hysteresis on z to check progress towards the goal
2019-08-05 16:05:40 +02:00
Martina Rivizzigno
39e59d6cc4
add point type (mavlink command associated with wp) in Obstacle Avoidance interface
2019-08-05 16:05:40 +02:00
Daniel Agar
e69398c09f
introduce uORB::PublicationQueued and transition most orb_advertise_queue usage
2019-08-04 10:08:09 -04:00
Daniel Agar
839787568c
CollisionPrevention only process distance_sensor updates
2019-08-04 10:04:09 -04:00
Daniel Agar
6a6bc4be58
drivers helper classes remove empty publication (forced advertise)
...
- this is no longer necessary with all publications outside of ISRs
2019-08-03 14:08:45 -04:00
PX4 Build Bot
5f962401cb
Update submodule DriverFramework to latest Fri Aug 2 08:39:05 EDT 2019
...
- DriverFramework in PX4/Firmware (eda49a4b63 ): https://github.com/PX4/DriverFramework/commit/06277ef49fb8c9fad18d56ef40e8bc9fe1655a65
- DriverFramework current upstream: https://github.com/PX4/DriverFramework/commit/c7d2fe2d4f5954b9042af4edf7e5aeb21dbdd129
- Changes: https://github.com/PX4/DriverFramework/compare/06277ef49fb8c9fad18d56ef40e8bc9fe1655a65...c7d2fe2d4f5954b9042af4edf7e5aeb21dbdd129
c7d2fe2 2019-07-23 Andrii Beregovenko - Fix missing symbol from librobotcontrol
2019-08-02 10:36:38 -04:00
Timothy Scott
39a5799e65
Mavlink: fixed temperature for batteries ( #12605 )
2019-08-02 10:09:03 -04:00
Daniel Agar
29c50da1f6
ll40ls: cleanup and create PX4Rangerfinder helper class ( #12567 )
2019-07-31 15:17:35 -04:00
PX4 Build Bot
36534d5bab
Update submodule ecl to latest Fri Jul 26 12:38:35 UTC 2019
...
- ecl in PX4/Firmware (83316cf7b0484e7ba7f9b61201dea7215185da49): https://github.com/PX4/ecl/commit/e1751188fd15b799cbfae86bd7373bb91206069b
- ecl current upstream: https://github.com/PX4/ecl/commit/d38164fc8e68b740405669127138e550c3c7375c
- Changes: https://github.com/PX4/ecl/compare/e1751188fd15b799cbfae86bd7373bb91206069b...d38164fc8e68b740405669127138e550c3c7375c
d38164f 2019-07-21 Jaeyoung-Lim - Fix flag for initialization
2019-07-26 12:04:07 -04:00
TSC21
2b4c878e77
rebase: sync up submodules
2019-07-26 15:05:54 +02:00
TSC21
3d9f83a4f2
microRTPS_bridge: structural change to make possible to generate pub/sub code for multi-topics/aliased msgs
2019-07-26 15:05:54 +02:00
Beat Küng
05ff7bb731
version: validate format of the git tag
...
This fails the build if a wrong version tag is used.
A wrong tag leads to wrong reporting in QGC, and incorrect error messages
about minimum required PX4 version.
It also leads to wrong statistics on Flight Review.
2019-07-23 13:16:43 +02:00
bresch
ea0e164145
FlightTask - Rename state_prev to last_setpoint
2019-07-16 13:09:09 +02:00
bresch
37a9b90945
FlightTask - Move checkSetpoints function in each FlightTask to be tailored to the specific needs and avoid checking all the setpoints
2019-07-16 13:09:09 +02:00
bresch
24811cf550
FlightTask smoothVel - Initialize ekf reset counters when task is activated
2019-07-16 13:09:09 +02:00
bresch
1414f50cea
FlightTask - When switching task, pass the last setpoints of the previous task to the new task
...
This is done to allow proper initialization of the new FlightTask and
give it a chance to continue the setpoints without discontinuity. The
function checkSetpoints replaces the setpoints containing NANs with an
estimate of the state. The estimate is usually the current estimate of
the EKF or zero.
The transition FlightTask also provides an estimate of the current
acceleration to properly initialize the next FlightTask after
back-transition. This avoid having to initialize the accelerations to
zero knowing that the actual acceleration is usually far from zero.
2019-07-16 13:09:09 +02:00
Beat Küng
098afad9e0
missing SD card error tune: play only twice instead of repeating endlessly
2019-07-16 08:09:22 +02:00
Beat Küng
92c2d7ae36
CBRK_BUZZER: allow to disable startup sound
...
The 'if [ $LOG_FILE = /dev/null ]' block can be removed, because
STARTUP_TUNE is already set in that case.
2019-07-16 08:09:22 +02:00
Martina Rivizzigno
1fb80612f3
CollisionPrevention: address https://github.com/PX4/Firmware/pull/12179
...
review comments
2019-07-15 10:58:00 +02:00
Martina Rivizzigno
ac67d5603f
CollisionPrevention: compute the attitude_sensor_frame outside for loop
2019-07-15 10:58:00 +02:00
Martina Rivizzigno
560c9f972a
CollisionPrevention: use the maximum timestamp between offboard and
...
distance sensor such that if one of the two fails the vehicle goes into
failsafe, do not switch off CollisionPrevention if it fails
2019-07-15 10:58:00 +02:00
Martina Rivizzigno
02bdc2c46b
CollisionPrevention: use FlightTasks convention for private/public methods,
...
add doxygen on header file
2019-07-15 10:58:00 +02:00
Martina Rivizzigno
8637a9255e
CollisionPrevention: add failsafe for stale distance data
2019-07-15 10:58:00 +02:00
Martina Rivizzigno
e6e4d846fb
add uORB message obstacle_distance_fused with data from offboard
...
obstacle_distance and distance sensor
2019-07-15 10:58:00 +02:00
Martina Rivizzigno
a9b1946bea
CollisionPrevention: make sure that vehicle tilt compensation is
...
correct for all sensor orientation
2019-07-15 10:58:00 +02:00
Martina Rivizzigno
2439dc09ae
CollisionPrevention: refactor code to make it more readable
2019-07-15 10:58:00 +02:00
Martina Rivizzigno
b6eea508bb
CollisionPrevention: make sure that the timestamp is updated for distance
...
sensors even if they are out of range
2019-07-15 10:58:00 +02:00
Martina Rivizzigno
09bfb00c88
Obstacle_distance: use only one increment in float directly
...
CollisionPrevention: rename a few variables to make the code more readable
2019-07-15 10:58:00 +02:00
Martina Rivizzigno
5b24f28ac7
CollisionPrevention: map distance_sensor data to obstacle distance
2019-07-15 10:58:00 +02:00