Daniel Mesham
06a9be74fa
microdds: add xrce client
2022-03-22 09:01:05 +01:00
Konrad
e080fab8f6
Set up landing gear logic for tiltrotor and tailsitter VTOL. Gear is set down when in hover mode, esle gear is set up.
2022-03-21 09:30:04 +01:00
Konrad
d7de67844f
Set up landing gear logic for standard VTOL. Gear is set down when in hover mode, else gear is set up.
2022-03-21 09:30:04 +01:00
Daniel Agar
c86d5769ea
boards: px4_fmu-v2_{fixedwing,multicopter} module selection changes to save flash
2022-03-19 14:43:45 -04:00
Daniel Agar
475bd42ab8
sensors: add 2nd static notch and migrate existing parameters
...
- new static notch filter configured via IMU_GYRO_NF1_FRQ and IMU_GYRO_NF1_BW
- existing notch parameters IMU_GYRO_NF_FREQ and IMU_GYRO_NF_BW become
IMU_GYRO_NF0_FRQ and IMU_GYRO_NF0_BW
2022-03-19 14:38:04 -04:00
Daniel Agar
afeab9587e
gyro_fft: peak detection exclude side FFT buckets
...
- when estimating the peak frequency the magnitude of side buckets will
be factored in, so it doesn't make sense to potentially treat them as
separatey detected peaks
2022-03-19 14:37:36 -04:00
Matthias Grob
9ab99a7689
MatrixHelperTest: don't rely on FLOAT_EQ accepting FLT_EPSILON inaccuracy
2022-03-18 13:35:18 +01:00
Thomas Stastny
144697bb6a
MatrixHelperTest: correct wrap compare values
2022-03-18 13:35:18 +01:00
benjinne
620f25503c
Add geofence predict param ( #17795 )
2022-03-18 11:44:13 +01:00
Thomas Debrunner
5b0fc8f507
print_load: Removed unused variable to fix compilation on macos
2022-03-18 10:42:19 +01:00
Daniel Agar
36e6527013
ROMFS: MAV_TYPE cleanup
...
- set MAV_TYPE as a parameter default per vehicle type, or airframe if necessary
- cleanup MAV_TYPE param metadata and commander helper to only include
what's currently used in PX4
2022-03-17 09:28:10 -04:00
Matthias Grob
cde7b1bc41
Matrix: remove deprecated minimal test framework
2022-03-17 13:02:22 +01:00
Matthias Grob
91493307b9
Matrix: convert vector test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
4b63f6b29a
Matrix: convert vector assignment test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
f4b53d2762
Matrix: convert vector3 test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
ddfd62dfc2
Matrix: convert vector2 test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
be28aeb3ee
Matrix: convert upper right triangle test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
4d43aad847
Matrix: convert transpose test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
b3cc18c6de
Matrix: convert square test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
555ed9b9d8
Matrix: convert slice test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
46df8ab60c
Matrix: convert set identity test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
831f0e9aac
Matrix: convert scalar multiplication test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
38d742f1b5
Matrix: convert pseudo inverse test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
57e443c4a4
Matrix: convert multiplication test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
719898f1e3
Matrix: convert least squares test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
fddcf342e9
Matrix: convert inverse test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
f5ec4b2339
Matrix: convert integral test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
7c9e28c168
Matrix: convert helper test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
0c4c3a917c
Matrix: convert hat vee test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
8f695a5613
Matrix: convert filter test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
79e8152f05
Matrix: convert dual test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
62571b6984
Matrix: convert copy to test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
35b035e880
Matrix: convert attitude test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
c33bf5b705
Matrix: convert assignment test to gtest
2022-03-17 13:02:22 +01:00
Matthias Grob
fa35635486
Matrix: change naming of sparse vector test
2022-03-17 13:02:22 +01:00
Jukka Laitinen
3d35929f3e
Put gyro_fft in kernel by default in protected build
...
It is a performance issue to run it on user side
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
Jukka Laitinen
4658a627d7
Separate i2c and spi board bus configuration into and own library for protected build target
...
This info is needed on both kernel and user sides, and is just data.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
Jukka Laitinen
543c7bd0c5
uORB: Build uorb systemcmd always in kernel side in memory protected build
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
Jukka Laitinen
d167f91eb8
logger/watchdog: Disable watchdog for NuttX protected/kernel builds
...
It accesses kernel internal structures directly; this needs to be
worked out with some proper userspace-kernel interface
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
Jukka Laitinen
56c6120e83
Use IOCTL for board_read_VBUS_state in NuttX protected builds
...
Direct gpio read is not possible from user side applications, so use boardctl
interface instead.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
Jukka Laitinen
0cf3079401
px4_fmuv5: Implement BOARD_*_LOCKOUT_STATE in protected/kernel builds
...
In memory protected builds these perform nuttx boardctl ioctl calls to kerenel
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
Jukka Laitinen
356328056a
Add px4_fmu-v5_protected target
...
Add a target for nuttx protected build development
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
Jukka Laitinen
005095d199
Add gran allocator also to user side in protected build
...
This is needed for DMA capable memory for fat also in the user side;
the file system doesn't seem to work reliably without.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
Jukka Laitinen
49b089f149
Add a simple way to launch kernel side modules
...
Add launch_kmod command to start/execute px4 modules in kenel space
in NuttX protected build
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
Jukka Laitinen
c43c71f4af
platforms/nuttx/src/px4/common/board_ctrl: Add handlers for vbus & shutdown lockout
...
Add kernel side ioctls and handlers for vbus state and managing shutdown lockout
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
Jukka Laitinen
4a74d266be
Initialize cxx static variables also in kernel side
...
For protected/kernel builds the cxx static initializations
needs to be done also in kernel side, since px4 creates
c++ objects in kernel
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
Jukka Laitinen
c1a7b8df1d
Add a px4 userspace initialization in protected build
...
The px4_userspace_init function is called from userspace
entrypoint before starting NSH
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-03-17 08:01:51 +01:00
bresch
f3f09c1344
PreFlightCheck: add data timeout detection for mag, baro accel and gyro
2022-03-16 11:46:01 +01:00
bresch
75aa11c955
PreFlightCheck: refactor sensors preflight checks
2022-03-16 11:46:01 +01:00
bresch
b1c1163ee4
PreFlightCheck: remove unused device_id argument
2022-03-16 11:46:01 +01:00