Nico van Duijn
549a962553
EKF2: move handling of invalid range into ECL ( #12988 )
...
* ekf2: Move handling of invalid range finder data inside ecl library
The ecl library EKF is able to use vehicle motion and in-air status to better determine when the default on-ground range finder reading can be used.
The description for the EKF2_MIN_RNG parameter has been updated to make its use clearer.
5 years ago
Matthias Grob
fa13f63db6
ekf2: temporarily hardcode new quality information to unkown
...
until priseborough's and nicovanduijn's pr #12950
5 years ago
Matthias Grob
c8d0eba1d2
Update ecl and matrix to safe matrix access
5 years ago
Matthias Grob
1ecbf8efd2
test_matrix: remove duplicate namespace accesses
5 years ago
Julian Kent
2d4ecab3b0
Remove unsafe access to .data() and _data in Matrix
5 years ago
Daniel Agar
78bf12f0db
px4_tasks: reduce POSITION_CONTROL priority
...
* this is to prevent the loss of any sensor data or estimator time slip in the event of a position controller or flight task overrun
5 years ago
Daniel Agar
494f35d5f4
Mavlink: wait for boot complete before sending or receiving anything
5 years ago
Daniel Agar
be61d93d64
tfmini split out header and main
5 years ago
Daniel Agar
9b7ef7141f
tfmini cleanup and use PX4Rangefinder
5 years ago
Nico van Duijn
18eaeb564d
PMW3901 improvements ( #12977 )
...
* PMW3901: use frame count and quality metric
* PMW3901: set qual to 0 for unsuccessful SPI reads
* PMW3901: improve comment for collect_time
* PMW3901: set qual to zero for huge flow values
5 years ago
Maximilian Laiacker
72e93a9c36
fixed total flight time counting bug
...
After landing it can happen that a second take off is detected and then the _takeoff_time is rest, resulting in a wrong total flight time counter. With this fix the flight time is reliably counted from the first take off until the vehicle is disarmed. Normally the vehicle will not spend much time armed after landing, if it does the flight time will be off but this is the same as before this fix. This fix was tested in several flight experiments.
5 years ago
Daniel Agar
c13835c0f0
replay module split replay_main.cpp into separate compilation units
5 years ago
Matthias Grob
270e12a4df
VelocitySmoothing: refactor local scope t variables instead of array
5 years ago
bresch
da8ac8cafb
VelocitySmoothing - Clean up updateTraj function based on Matthias' comments
5 years ago
bresch
b82fa68893
VelocitySmoothingTest - Fix typo and use "zero" instead of "null"
5 years ago
bresch
42cedb7fda
VelocitySmoothing - Change direction of "brake" as braking means that
...
only the T3 part is required and that the jerk applied during T3 is the
opposite of the one defined by "_direction".
5 years ago
bresch
8490266be8
VelocitySmoothing - (Re)set _state_init every time _state is (re)set
5 years ago
bresch
654938f6a1
VelocitySmoothing - Cosmetic changes (new lines, reorganize functions),
...
regroup both updateTraj functions and edit some comments
5 years ago
bresch
0b765a1642
AltitudeSmoothVel - Update to use new implementation of VelocitySmoothing
...
Remove jerk reduction (not needed in the new implementation)
5 years ago
bresch
862454827e
VelocitySmoothingTest - Test that the trajectory is always within the constraints
5 years ago
bresch
8cc2a7018e
VelocitySmoothing - Re-enable time stretch, integrate dt to get local time.
...
Also split a few functions into smaller ones for readability, fix
formatting, use geters to get the current state of the trajectory
instead of return arguments.
5 years ago
bresch
c7696488fe
VelocitySmoothing - Improve computation of the direction of the trajectory by predicting the velocity at zero acceleration instead of the current velocity
...
This helps when the current velocity is smaller than the target but that
the acceleration is too large such that the velocity will overshoot.
Without this check, the algorithm increases the acceleration which leads
to an even larger overshoot.
5 years ago
bresch
052932fa95
VelocitySmoothingTest - Update unit test to use the same parameters ordering (time, setpoint) as the VelocitySmoothing class
5 years ago
bresch
c13499e64b
test_velocity_smothing - Update test script to use new polynomial evaluation algorithm
5 years ago
bresch
a03cc495ce
VelocitySmoothing - Refactor class to use polynomial evaluation instead of numerical integration
...
This solves many numerical issues when the trajectory is close to the
primary NE axes (small velocities). It is also more robust when dt is
large and has some jitter.
5 years ago
Hamish Willee
0c0b261ff2
ubuntu.sh - remove modemmanager
5 years ago
Daniel Agar
5507f14bb2
Jenkins HIL disable rgbled
5 years ago
Daniel Agar
ed6c7cc806
cmake remove unused/broken _no_optimization_for_target
5 years ago
Daniel Agar
251831f7af
cmake px4_add_library remove unused PX4_LIBRARIES property
5 years ago
Daniel Agar
dc46b6a749
cmake px4_add_module MAIN is always present (required)
5 years ago
Daniel Agar
fb7521eb5e
cmake px4_base -> px4_parse_function_args
5 years ago
Daniel Agar
d256fb8770
cmake px4_find_python_module move to standalone file
5 years ago
Daniel Agar
d27dfcd921
NuttX CMakeLists.txt extract helpers (jlink, upload, etc)
5 years ago
Daniel Agar
f2189dd045
CMakeLists.txt extract top level helpers (ccache, doxygen, metadata, etc)
5 years ago
Matthias Grob
d4f984fea5
FlightTaskAutoLineSmooth: Fix comment to be style compliant
5 years ago
bresch
47401d1177
AutoLineSmoothVel - Replace min/max absolute constraints with a function named constrainAbs
...
This function constrain the absolute value of some value but keeps the original sign.
5 years ago
bresch
3c5b24037a
AutoLineSmoothVel - Improve virtual pilot logic that provides velocity setpoints to the trajectory generator.
...
Constrain the generated velocities in the NE inertial frame rather than
just constraining the norm.
5 years ago
bresch
59f54a7fd8
mathlib - Add FLT_EPSILON deadzone in sign computation
5 years ago
mcsauder
410dd85289
Comment out the ll40ls (LidarLite) driver from the fmu-v2 build.
5 years ago
Nico van Duijn
a26865c279
drivers: set CM8JL65 signal_quality invalid beyond bounds
5 years ago
Martina Rivizzigno
78279f6587
Unit tests for Obstacle Avoidance interface ( #12816 )
...
* FlighTask: remove legacy definition of empty_trajectory_wapoint
* add unit tests for the ObstacleAvoidance interface
5 years ago
Julian Kent
39451b811a
Do syscall for time once, outside of loop
5 years ago
Julian Kent
b27d6a958a
Account for the time since range data arrived
5 years ago
Hamish Willee
94ef585f76
Link to missing params docs
5 years ago
Hamish Willee
fd10220a34
Ubuntu.sh: check for requirements.txt
5 years ago
Daniel Agar
6277710fac
Github actions simple cpp build
5 years ago
Daniel Agar
df01eda550
systemcmds/tests: delete obsolete test_sensors
5 years ago
Silvan Fuhrer
702c6f6df4
FW pos C: fix altitude control for VTOL/FW by also publishing attitude sp if in altitude, not only if position or velocity controlled
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
5 years ago
Silvan Fuhrer
92b824e218
VTOL attitude controller: run update_vtol_state only if mc or fw att sp changed, such that pusher support in hover works again
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
5 years ago
Silvan Fuhrer
1b2403a87f
VTOL land detector: trigger land detector in fixed-wing mode if disarmed.
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
5 years ago