Daniel Agar
c11f61d57d
commander: skip estimatorCheck for now
2024-02-15 15:46:31 -05:00
Daniel Agar
d9a924225c
simulator_mavlink: add heading_good_for_control
2024-02-15 15:46:14 -05:00
Daniel Agar
5f91c7fc2b
simulation: HIL_STATE_QUATERNION add angular acceleration and protect from initial lat/lon 0
2024-02-15 15:20:33 -05:00
Daniel Agar
79538ac013
[WIP] simple simulation without sensor/estimator
2024-02-15 14:57:37 -05:00
Cyril C
74303a79e1
drivers/batt_smbus: fix BQ40Z80 timeout problem ( #22751 )
...
Co-authored-by: cyril.calvez <c.calvez@elistair.com >
2024-02-15 13:24:40 -05:00
Daniel Agar
8dc3975456
ekf2: only populate gnss pos aid src status if ref initialized
...
- this is a minor logging improvement when plotting the position from the beginning of the log (often a replay session)
2024-02-15 13:13:10 -05:00
Matthias Grob
84a7d42566
rover build: correct differential drive kconfig name
2024-02-15 10:08:51 -05:00
Matthias Grob
f26df8492f
Update GPS drivers to contain the astyle fix
2024-02-15 15:23:06 +01:00
Konrad
cb09dde606
FixedwingPositionControl: Used corrected npfg roll output in path mode
2024-02-13 17:17:44 +01:00
Konrad
1a1891073e
FixedwingPositionControl: Only warn user when roll is reduced for a longer period of time
2024-02-13 17:17:44 +01:00
Daniel Agar
b8714f8980
ROMFS: rc.simulator EKF2 setup specific to gazebo classic
2024-02-13 11:14:44 -05:00
PX4 BuildBot
0c099f2b56
Update submodule gz to latest Tue Feb 13 12:39:17 UTC 2024
...
- gz in PX4/Firmware (c9ad60e3cc ): https://github.com/PX4/PX4-gazebo-models/commit/c78f7f01417168e8faab7a83ade2129c0d26b39d
- gz current upstream: https://github.com/PX4/PX4-gazebo-models/commit/f1c461fffb8567d6f0af770fb533f60f6ec62c22
- Changes: https://github.com/PX4/PX4-gazebo-models/compare/c78f7f01417168e8faab7a83ade2129c0d26b39d...f1c461fffb8567d6f0af770fb533f60f6ec62c22
f1c461f 2024-02-08 frederik - increase monocam clipping distance
6d5db73 2024-02-07 Sergei Grichine - Added Zero Turn Lawnmower model (#27 )
5332071 2024-02-06 Frederik Markus - add navsat plugin to worlds and navsat sensor to models (#26 )
2024-02-13 11:13:17 -05:00
Frederik Markus
bb53781b8f
simulation/gz_bridge: enable navsat plugin for accurate positioning of real life maps in Gazebo ( #22638 )
...
* publish the global groundtruth from the navsat callback and rearrange the local groundtruth as the altitude reference now has a dependency on the global groundtruth being initialized
---------
Signed-off-by: frederik <frederik.anilmarkus@gmail.com >
2024-02-13 11:09:35 -05:00
Silvan Fuhrer
c9ad60e3cc
Update src/modules/navigator/mission_block.cpp
...
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2024-02-13 10:34:57 +01:00
Silvan Fuhrer
a6ef7b6da9
RTL: write out weather vane in comments (instead of WV)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-02-13 10:34:57 +01:00
Silvan Fuhrer
6957818603
RTL: clean up naming of function arguments
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-02-13 10:34:57 +01:00
Matthias Grob
cb03835124
RTL: use dest.yaw instead of a separate heading_sp
2024-02-13 10:34:57 +01:00
Silvan Fuhrer
b19e35ec7c
RTL: change when to set a heading setpoint, generally leave it up to the executer
...
-remove RTL_HDG_MD
-only set heading setpoint in Navigator::RTL once above landing point,
or when RTL is triggered close to it
-never set a heading during RTL if weather vane is enabled
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-02-13 10:34:57 +01:00
PX4 BuildBot
dce53a626e
boards: update all NuttX defconfigs
2024-02-12 08:58:49 -05:00
Daniel Agar
5f589bdda3
Update submodule GPSDrivers to latest Mon Feb 12 12:39:19 UTC 2024
...
- GPSDrivers in PX4/Firmware (17ff40898c683e1fe96ff9e2d2790594d188f872): https://github.com/PX4/PX4-GPSDrivers/commit/3393191fbb842f8e13a3f296218efec832640112
- GPSDrivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/f48cc01d31607baa4963bde090f530b44df3de12
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/3393191fbb842f8e13a3f296218efec832640112...f48cc01d31607baa4963bde090f530b44df3de12
f48cc01 2024-02-08 Julian Oes - ubx: separate config for jamming monitor
bc72f55 2024-02-08 Julian Oes - sbf: simplify odd define
Co-authored-by: PX4 BuildBot <bot@px4.io >
2024-02-12 08:58:21 -05:00
Matthias Grob
1998f54ea6
DifferentialDrive: move spoolup consideration to the main module
2024-02-12 14:29:10 +01:00
PerFrivik
bef694f9ba
Added spoolup and removed temporary timeout for EKF
2024-02-12 14:29:10 +01:00
PerFrivik
560d6a9d4b
cleanup + updated acro
2024-02-12 14:29:10 +01:00
PerFrivik
f996caa5bd
Fixed bug in the guidance logic
...
After smoothing the linera velocity setpoint, the EKF has trouble initializing, becuase the acceleration is too smooth, to combat this issue, there is a 1 second delay when initializing the mission mode
2024-02-12 14:29:10 +01:00
PerFrivik
bb0dfba4e6
added acro mode
...
Acro mode is manual mode, but with rate control
2024-02-12 14:29:10 +01:00
PerFrivik
d197d94889
Fixed guidance logic and added feedforward term to compute the angular velocity
2024-02-12 14:29:10 +01:00
Matthias Grob
396ef222ee
DifferentialDrive: Rework structure
...
3 Components Guidance - Control - Allocation
with their corresponding uORB interface.
2024-02-12 14:29:10 +01:00
Matthias Grob
f85144ca76
DifferentialDrive: remove trailing zeros from prameter metadata
2024-02-12 14:29:10 +01:00
Matthias Grob
b54b4f7dce
Rename module differential_drive_control -> differential_drive
2024-02-12 14:29:10 +01:00
Matthias Grob
fc90e235f1
Rename differential drive setpoint topics
2024-02-12 14:29:10 +01:00
Matthias Grob
f7baeae1a0
DifferentialDriveControl: only save required parts of uORB message
2024-02-12 14:29:10 +01:00
PerFrivik
e457a5baed
Differential Drive Guidance: Add guidance
...
also add dependency on control allocation parameter CA_R_REV
Differential Drive Guidance: Added mission logic
Differential Drive Guidance
Differential Drive Guidance
Differential Guidance: Inlcude library
Differential Guidance: Compiles, does not work though
Differential Guidance: Works somewhat
Differential Guidance: Temp
Differential Guidance: Tuning
Differeital Drive Guidance: Remove waypoint mover
Differential Guidance: Fixed accuracy issue by converting from float to double
Differential Guidance: rebased on differentialdrive and improved waypoint accuracy
Temp
Differential Guidance: cleanup
temp
2024-02-12 14:29:10 +01:00
PX4 BuildBot
0f3925b21d
update all px4board kconfig
2024-02-09 10:48:26 -05:00
muramura
f636414ca7
tuning_tools: Change 1G to a more accurate value
2024-02-09 10:26:57 -05:00
muramura
00a9e4c76b
Auto: Change 1G to a more accurate value
2024-02-09 10:26:57 -05:00
Alex Klimaj
31bbda0b58
boards: new ARK Septentrio GPS CAN node(ark_septentrio-gps)
...
* update gps submodule with sbf fix
* ARK Septentrio GPS initial commit
2024-02-09 10:26:09 -05:00
Matthias Grob
b355c16141
Lanbao driver: correct rangefinder type to IR
2024-02-09 06:19:12 +01:00
Matthias Grob
7fdb5ef3cb
PWMOut/px4io: correct automatic servo/motor configuration messages
2024-02-09 06:19:12 +01:00
fury1895
3de7d83e5f
v6x board_sensors: publish system_power if ADC_ADS1115_EN is enabled
2024-02-08 16:11:34 +01:00
Matthias Grob
97cb933cff
FLightTaskAuto: limit nudging speed based on distance sensor
2024-02-07 11:23:55 +01:00
Silvan Fuhrer
584d8abe1e
params: change return type of param_modify_on_import to enum
...
Return early in param_import_callback() with 1 if we do a param_set in the param translation.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-02-07 08:08:37 +01:00
Silvan Fuhrer
982c998ab9
mc_attitude_control: move attitude setpoint pulling to right before usage
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-02-06 17:54:22 -05:00
Silvan Fuhrer
e5cfbbb1ee
mc_att_control: remove direct setting of att sp in Stabilized
...
Instead of directly setting the attitude setpoint for usage inside the same module
only publish it to the uorb topic, which is subscribed to in the same module.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-02-06 17:54:22 -05:00
KonradRudin
3576d513cd
battery: make time remaining estimation dependent on level flight cha… ( #22401 )
...
* battery: make time remaining estimation dependent on level flight characteristis for FW
* battery: fix that FW flight is also correctly detected when vehicle_status is not updated
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* FixedwingPositionControl: Move constant to header file
* flight phase estimation: use tecs height rate reference to check for level flight
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2024-02-06 17:32:09 +01:00
Andrew Brahim
bf52d8adc9
drivers/uavcannode: add indicated airspeed
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2024-02-06 11:01:15 -05:00
Alessandro Simovic
a6fcb8ef1e
bat_sim: parameter for disabling battery simulator
2024-02-06 10:21:21 -05:00
PerFrivik
1917c138f7
Bugfix removed conversion from rpm to rad s
2024-02-06 13:25:25 +01:00
bresch
17d55dddd6
ekf2-drag: do not generate Kalman gain to save flash
2024-02-06 12:16:33 +01:00
bresch
1efb08375a
ekf2: let drag fusion affect the complete state vector
...
This improves tilt estimation and can extend the inertial dead-reckoning
validity period
2024-02-06 12:16:33 +01:00
Peter van der Perk
8dae9905aa
fmu-v6xrt: hotfix for sdio crash when reading multiblock to unaligned memory
2024-02-05 11:17:33 -05:00
Beat Küng
c78389a855
commander: send ack for VEHICLE_CMD_DO_SET_ACTUATOR
2024-02-02 09:38:28 -05:00
Beat Küng
8b422c5ed6
fix FunctionActuatorSet: if a param is set to NaN, it should be ignored
...
MAVLink spec: https://mavlink.io/en/messages/common.html#MAV_CMD_DO_SET_ACTUATOR
Previously, a command was overwriting all other indexes.
2024-02-02 09:38:28 -05:00
cuav-liu1
75d6e523b5
ICP201: Fix B2 version not return in bootup config
2024-02-02 09:37:18 -05:00
Vincent Poon
6dbb798e37
Change FMU-v6x REV 6 IMU Order
...
Change IMU Order, make adis16470 in 1st priority.
2024-02-02 05:49:21 -05:00
David Sidrane
c07edd1d9a
px4_fmu-v6x:Add Sensor set 8
2024-02-01 21:11:32 -05:00
Julian Oes
2cfdea2edb
fmu-6x: fix Telem2 without flow control
...
When flow control is used together with DMA, we need to add a pulldown
to CTS. Without it, it assumes flow control and gets stuck when
CTS is not connected.
Signed-off-by: Julian Oes <julian@oes.ch >
2024-02-02 06:52:17 +13:00
Niklas Hauser
103ddb5b3d
cpuload: Fix wrong idle thread load
...
When the CPU load monitor is started while already running, then the
idle thread last_times[0] is reset to the last 1 second, rather than
since when the CPU load monitor was last started. The remaining threads
are not impacted, since their last_times[i] is reset to zero here.
This results in the idle thread having a lower than real CPU load, with
the remaining CPU time being wrongly attributed as scheduler load.
2024-01-31 07:52:59 +01:00
David Sidrane
76a2acb222
stm32h7:adc Dynamically set clock prescaler & BOOST
...
The ADC peripheral can only support up to
50MHz on rev V silicon and 36MHz on Y silicon.
The existing driver always used no prescaler
and kept boost setting at 0.
2024-01-30 18:07:57 -05:00
David Sidrane
543454f12e
stm32h7:ADC STM32_RCC_D3CCIPR_ADCSEL->STM32_RCC_D3CCIPR_ADCSRC
2024-01-30 18:07:57 -05:00
David Sidrane
85bfba4497
NuttX with h7 adc clock Backports
2024-01-30 18:07:57 -05:00
Matthias Grob
3e183feb49
matrix: Slice templated on const and non-const matrix cases
...
to avoid casting const to non-const with
`const_cast<Matrix<Type, M, N>*>(data)`
2024-01-30 11:46:33 -05:00
Matthias Grob
88102d82db
matrix: return value simplifications
2024-01-30 11:46:33 -05:00
Matthias Grob
44a8c553fb
AxisAngle use Vector3<T> instead of Vector<T, 3>
2024-01-30 11:46:33 -05:00
Matthias Grob
ea4fdfd637
matrix: fix internal include chain
2024-01-30 11:46:33 -05:00
muramura
c5757e0799
gimbal: Change the IF statement to a SWITCH statement
2024-01-30 11:28:20 -05:00
Roman Bapst
380841563f
ina238: set shunt calibration to desired value if readback is incorrect ( #22237 )
...
* refactor driver to dynamically check registers and do reset if register does not match desired value
* have seen various times where shunt calibration was reset in air
---------
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-01-30 11:28:05 -05:00
Konrad
169d2dd286
mission_base: fix validity on abort landing
2024-01-30 11:25:37 -05:00
Konrad
0a153efb9d
mission_base: make sure to always update state on mission topic update
2024-01-30 11:25:37 -05:00
Konrad
97ce599b1f
mavlink_mission: publish mission topic at startup
2024-01-30 11:25:37 -05:00
Konrad
9fd137e88e
mavlink_mission: add alternating storage for geofence and safe points on upload
...
This way the old points are kept on an upload error.
2024-01-30 11:25:37 -05:00
Konrad
50f1abaef1
dataman: extend for double storage geofence and safe points
2024-01-30 11:25:37 -05:00
Konrad
dfa56d474a
mission: renaming dataman_id to mission_dataman_id
2024-01-30 11:25:37 -05:00
Konrad
cac858cb24
dataman: use correct size for dataman compat key
2024-01-30 11:25:37 -05:00
bresch
9c02e384e6
ekf2-agp: follow measurement reset
2024-01-30 11:23:55 -05:00
bresch
5d9081b0dd
ekf2-agp: ensure logging of AGP aid_src topic
2024-01-30 11:23:55 -05:00
bresch
4268759d4a
ekf2-agp: reset to measurement on fusion timeout
2024-01-30 11:23:55 -05:00
muramura
23ae769e46
check: Changing the order of messages and events
2024-01-30 11:20:19 -05:00
muramura
3c444c2f2a
dataman: Move before using variable definitions
2024-01-30 11:19:29 -05:00
alexklimaj
d2a3ca28e1
boards: arkv6x migrate to split versioning
2024-01-30 11:15:03 -05:00
David Sidrane
dc73d5d634
px4_fmu-v5x:Use BOARD_HAS_HW_SPLIT_VERSIONING & common PAB manifest
2024-01-30 11:15:03 -05:00
David Sidrane
4b8b30914a
px4_fmu-v6xrt:Use BOARD_HAS_HW_SPLIT_VERSIONING & common PAB manifest
2024-01-30 11:15:03 -05:00
David Sidrane
150a161efb
nxp Support BOARD_HAS_HW_SPLIT_VERSIONING
2024-01-30 11:15:03 -05:00
David Sidrane
84dddb5f40
px4_fmu-v6x:rc.board_sensors Use BOARD_HAS_HW_SPLIT_VERSIONING
2024-01-30 11:15:03 -05:00
David Sidrane
987d97d600
px4_fmu-v6x:HAVE_PM2 set by PX4_MFT_PM2 in manifest
2024-01-30 11:15:03 -05:00
David Sidrane
3057f7607f
px4_fmu-v6x:Use hwbasecmp
2024-01-30 11:15:03 -05:00
David Sidrane
c4e8faeacb
PX4:ver Add base type compare
2024-01-30 11:15:03 -05:00
David Sidrane
5909dd09f5
ROMFS:netman update - dependent on PX4_MFT_ETHERNET not board type
2024-01-30 11:15:03 -05:00
David Sidrane
5ab92173f2
px4_fmu_v6x:Use common PAB manifest
2024-01-30 11:15:03 -05:00
David Sidrane
84d54c971f
PX4:common add PAB manifest
...
PX4:common add PAB manifest with V5X bases
2024-01-30 11:15:03 -05:00
David Sidrane
46a8eb6335
PX4:Extend manifest types & add CLI query
2024-01-30 11:15:03 -05:00
David Sidrane
8ff4ed8321
px4_fmu-v6x:Use BOARD_HAS_HW_SPLIT_VERSIONING
2024-01-30 11:15:03 -05:00
David Sidrane
dc01c3a08e
stm Support BOARD_HAS_HW_SPLIT_VERSIONING
2024-01-30 11:15:03 -05:00
David Sidrane
136e08652f
PX4:comon Support BOARD_HAS_HW_SPLIT_VERSIONING
2024-01-30 11:15:03 -05:00
David Sidrane
81f3542113
boards:Needing Migration to BOARD_HAS_HW_SPLIT_VERSIONING
2024-01-30 11:15:03 -05:00
Mykhailo Ziatin
6e4f984cea
Add render engine option for gz sim command
2024-01-30 11:12:48 -05:00
cuav-liu1
df8a8af34c
ICP201: increase startup delay with B2 version
2024-01-30 10:06:28 -05:00
Silvan Fuhrer
24debb5ff2
logged_topics: log all instances of torque/thrust setpoints in high rate
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-01-29 20:44:55 -05:00
Silvan Fuhrer
09b7cffca5
logged_topics: add actuator_servos to high rate logging
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-01-29 20:44:55 -05:00
Igor Mišić
23cebd6cf2
temperature_compensation: use set_sensor_id_mag for Mag
2024-01-29 20:44:12 -05:00
bresch
80f20e619c
ekf2: zvup sequential fusion
2024-01-29 12:12:37 -05:00
murata,katsutoshi
e8b3778f81
uuv_att_control: Variable definition in processing ( #22697 )
2024-01-29 17:04:10 +01:00
Roman Bapst
077baeae52
Avoid waypoint following during backtransition which can lead to strong banking ( #22642 )
...
* avoid waypoint following during backtransition
- if vehicle overshoots transition, make controller track the prev/current
waypoint line, this avoids large banking maneuvers that delay the transition further
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* navigator: use SETPOINT_TYPE_LAND as setpoint type for VTOL_LAND waypoints
such that fixed wing position controller can distinguish from other types
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* FixedWingPositionControl: split vtol backtransition logic into separate method
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* review changes
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* prevent loiter when approaching vtol backtransition and invalidate previous waypoint during mission landing
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* removed unused parameter
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* small renaming of transition mode
Signed-off-by: RomanBapst <bapstroman@gmail.com >
---------
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-01-29 09:45:40 +01:00
somebody-once-told-me
f40ede6087
Control Allocation Sequential Desaturation unit tests ( #22612 )
...
* [control_allocation] add unit tests for ControlAllocationSequentialDesaturation
* complete first 2 unit tests
* add yaw test
* add more unit tests
* improve comments
* format
* address review comments
* submodule update
* Update src/modules/control_allocator/ControlAllocation/ControlAllocationSequentialDesaturationTest.cpp
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
* Update src/modules/control_allocator/ControlAllocation/ControlAllocationSequentialDesaturationTest.cpp
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
* Update src/modules/control_allocator/ControlAllocation/ControlAllocationSequentialDesaturationTest.cpp
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
* remove float suffix for logical integers, add missing float suffixes for logical float zeros, and make YAW_MOTORS an int
---------
Co-authored-by: Master Chief <master-chief@the-void.com >
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2024-01-26 15:17:54 +01:00
Daniel Agar
1d70e32551
Update world_magnetic_model to latest Wed Jan 24 11:14:20 UTC 2024
...
Co-authored-by: PX4 BuildBot <bot@px4.io >
2024-01-26 09:08:51 -05:00
enesavcu
74d43c2fee
lib/system_identification/signal_generator: change functions to inline functions for optimization
2024-01-26 09:07:49 -05:00
alexklimaj
deed375579
boards: arkv6x re-enable serial TX DMA
2024-01-26 09:06:37 -05:00
alexklimaj
f29e1e8563
boards: arkv6x uart5 cts enable pulldown
2024-01-26 09:06:37 -05:00
PX4 BuildBot
0edebffcd6
boards: update all NuttX defconfigs
2024-01-24 21:51:05 -05:00
PX4 BuildBot
6f670cdc0b
update all px4board kconfig
2024-01-24 21:50:11 -05:00
Daniel Agar
4e0967889c
ekf2: add verbose print status (moved out of DEBUG_BUILD)
2024-01-24 21:49:26 -05:00
Daniel Agar
bc9ea95359
Update submodule GPSDrivers to latest Thu Jan 25 00:39:33 UTC 2024
...
- GPSDrivers in PX4/Firmware (12af7ff9904b2fdde39513c56a3e084eb23bcc7a): https://github.com/PX4/PX4-GPSDrivers/commit/63990d218ec35ea965d634af6a79d3155561b743
- GPSDrivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/836b24c10e0ccd0067500f367686acac6d34882d
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/63990d218ec35ea965d634af6a79d3155561b743...836b24c10e0ccd0067500f367686acac6d34882d
836b24c 2023-12-11 bedaberner - ubx: fixed wrong mapping of ubx-sat-nav used parameter
Co-authored-by: PX4 BuildBot <bot@px4.io >
2024-01-24 21:48:40 -05:00
PX4 BuildBot
baeef282bc
Update submodule mavlink to latest Thu Jan 25 00:39:42 UTC 2024
...
- mavlink in PX4/Firmware (99cacc55c6d21c2aa87b695e59941b62c599c70b): https://github.com/mavlink/mavlink/commit/5f85bd7d7d6155d2d349bd04ed67544610e8e65b
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/c4a5c497379ca873f73abe691a033641a6a5a817
- Changes: https://github.com/mavlink/mavlink/compare/5f85bd7d7d6155d2d349bd04ed67544610e8e65b...c4a5c497379ca873f73abe691a033641a6a5a817
c4a5c497 2024-01-04 Hamish Willee - Update MAV_TYPE_VTOL_TAILSITTER description to mention existing types (#2068 )
9840105a 2023-12-15 Peter Barker - csAirLink: correct enumeration name (#2066 )
fac54675 2023-12-13 Dmitriy Afanasev - csAirLink.xml: added messages to support peer to peer connections (#2065 )
2024-01-24 21:47:59 -05:00
Daniel Agar
51155f7a29
ekf2: treat inhibited states as "consider states" and remove conservative covariance matrix fixes ( #22597 )
...
When a state stops to be estimated it becomes a "consider state". Its value and variance are frozen but its covariance with other states continue to evolve normally.
- removes conservative accel bias variance limiting
- force symmetry is skipped after fusion of NED vel/pos (a direct measurement)
---------
Co-authored-by: bresch <brescianimathieu@gmail.com >
2024-01-24 14:14:09 -05:00
Daniel Agar
2c81c9fdea
boards: px4/fmu-{v5*,v6*} add dedicated rover board variants (eg px4_fmu-v6x_rover)
2024-01-24 14:06:49 -05:00
bresch
0bf9ccdcc9
sys-id: implement linear and log sine sweeps
2024-01-24 12:18:23 -05:00
Mathieu Bresciani
cb396a6339
ekf2: fix computation of tilt and yaw variances add them to logging
...
Co-authored-by: bresch <bresch@users.noreply.github.com >
2024-01-24 12:14:15 -05:00
bresch
da28d9a7f2
ekf2-grav: rename g-force unit to g0 to avoid confusion with grams
2024-01-24 13:26:25 +01:00
Igor Mišić
8b96cd5372
temperature_compensation: rename TC_A_ENABLE to TC_M_ENABLE for mag.cpp
2024-01-23 21:06:54 +01:00
Igor Mišić
35b0e93387
ROMFS: start magnetometer temperature compensation if enabled
2024-01-23 21:06:54 +01:00
David Sidrane
0df611b115
NuttX with stm32h7:serial make TX DMA busy backport
2024-01-23 11:23:00 -05:00
alexklimaj
d075956c4d
lib: battery allow for 3 instances
2024-01-22 19:29:38 -05:00
Henry Kotzé
736a730bb1
src/drivers: new FT7 series wind/airflow sensor support ( #22471 )
...
- new uorb topic sensor_airflow
- log sensor_airflow optionally
2024-01-22 14:42:38 -05:00
Beat Küng
8be64278be
fix navigator: prevent race condition when receiving multiple commands at once
...
When handling multiple commands, it could happen that the first command
updates _reposition_triplet. Normally this would then get handled after
getting the mode change from commander through vehicle_status.
But if the next command is handled before an update from commander, it
could overwrite the triplet.
This patch ensures that navigator waits for an update from commander (and
therefore process the _reposition_triplet) before handling the next
command.
This happened specifically when pressing 'Pause' from QGC during a mission.
QGC sends VEHICLE_CMD_DO_REPOSITION twice, first for pausing, then changing
the altitude.
The result was that the vehicle would not stop at the current location but
continue to the next mission waypoint and stop there.
2024-01-22 12:45:54 -05:00
Daniel Agar
bf7da6430d
ekf2: consolidate LPOS & GPOS accuracy methods
2024-01-22 12:34:08 -05:00
alexklimaj
3ff1f213a4
uavcan: add RelPosHeading->sensor_gnss_relative
2024-01-22 12:30:24 -05:00
alexklimaj
db60bbc46b
dronecan: gps add noise, jamming, and spoofing data
2024-01-22 12:30:24 -05:00
Bryce Melander
9da1622436
Update cmake-variants.yaml
...
Added the following targets:
- px4_fmu-v6c_bootloader
- px4_fmu-v6c[_default]
- px4_fmu-v6u_bootloader
- px4_fmu-v6u[_default]
2024-01-19 13:22:49 -05:00
bresch
7c7a3c117a
ekf2-gravity: nomalize gravity fusion and proper sequential fusion
2024-01-18 20:39:16 -05:00
bresch
d624fbba07
ekf2-grav: lower gate to reject real acceleration more effectively
2024-01-18 20:39:16 -05:00
bresch
c28972d15e
ekf2-grav: only use filtered accel norm to start/stop the fusion
...
Using the raw data makes the swith too sensitive to noise
2024-01-18 20:39:16 -05:00
Eric Katzfey
2b69a3d290
VOXL2 specific drivers, modules, and miscellaneous support files ( #22588 )
2024-01-18 12:14:17 -05:00
Roman Bapst
b60e73c76f
bad descend quadchute: take altitude reset into account ( #22643 )
...
- apply delta from reset to reference altitude state to avoid false triggering
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-01-18 08:55:28 +01:00
Daniel Agar
ed0d26de8a
ekf2: improve attitude estimation without horizontal aiding
...
- fake_pos only if at rest or tilt variances becomes large
- fake pos: don't run when grav fusion is enabled
- gravity fusion enabled by default
- gravity: only fuse when accel norm and lpf norm are consistent
Co-authored-by: bresch <brescianimathieu@gmail.com >
2024-01-17 10:27:25 -05:00
bresch
8158a14eff
fw: cleanup and make use of Vector3 more intensively
2024-01-17 14:44:11 +01:00
muramura
28380f926b
fmu-v6xrt: Change image size
2024-01-17 06:48:06 -05:00
muramura
2e38fc89b7
fmu-v6xrt: Change the description to the device name in the WIKI
2024-01-16 21:57:35 -05:00
David Sidrane
f1f5934ba2
px4_fmu-v6xrt:SPI1 is icm42686p
2024-01-16 17:09:26 -05:00
David Sidrane
86f96f3b95
px4_fmu-v6xrt:Use multi-PHY
2024-01-16 17:09:26 -05:00
David Sidrane
775b84401f
px4_fmu-v6xrt:Fix Probes
2024-01-16 17:09:26 -05:00
David Sidrane
f2cf8fcb22
px4_fmu-v6xrt:Default to Selecting ACD6V6
2024-01-16 17:09:26 -05:00
David Sidrane
93a256741f
px4_fmu-v6xrt:Use RC_SERIAL_SWAP_USING_SINGLEWIRE
2024-01-16 17:09:26 -05:00
David Sidrane
b556d668f8
RCInput:Add Support for RX-TX SWAP using onewire
...
A board can optionaly define RC_SERIAL_SWAP_USING_SINGLEWIRE
If the board is wired board with TX to the input (Swapped) and
the SoC does not support U[S]ART level RX-TX swapping to allow
useing onewire to do the swap if and only if:
RC_SERIAL_SWAP_USING_SINGLEWIRE is defined
RC_SERIAL_SWAP_RXTX is defined
TIOCSSWAP is defined and retuns !OK
TIOCSSINGLEWIRE is defined
2024-01-16 17:09:26 -05:00
David Sidrane
ab969c71fc
px4_fmuv6xrt::Support base version selection
2024-01-16 17:09:26 -05:00
David Sidrane
9849abcb63
rt1170:spi_hw_description:Support Validation and HW selection
2024-01-16 17:09:26 -05:00
David Sidrane
d33bb59225
NuttX with multi-PHY backports
2024-01-16 17:09:26 -05:00
Alexis Guijarro
63b3a68aa3
github actions compile nuttx add mro_ctrl-zero-classic
2024-01-16 15:00:19 -05:00
Daniel Agar
c3ae7b28c0
matrix: adjust printing for if symmetric (lower triangular only)
2024-01-16 10:20:21 -05:00
Daniel Agar
64f28c4c07
ekf2: delete unused gps error norm field
2024-01-12 10:14:32 -05:00
Silvan Fuhrer
a38abdbf9d
TECS throttle gains default reduction and transition values from previous PX4 version ( #22548 )
...
* TECS: reduce default of FW_T_I_GAIN_THR
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* TECS: reduce default of FW_T_THR_DAMP
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* TECS: improve param descriptions and meta data of some params
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* FW Pos C: rename FW_T_THR_DAMP to FW_T_THR_DAMPING
Rename wihtout param translation as the interpretation of this param has changed
recently (a bug was fixed that caused the damping to have a much lower effect than
it should). We want to avoid that users keep the previously tuned value (with the bug)
and do not update the tuning when using the fixed version (v1.14.0 and later).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* FW Pos C: rename FW_T_I_GAIN_THR to FW_T_THR_INTEG
Rename wihtout param translation as the interpretation of this param has changed
recently (a bug was fixed that caused the damping to have a much lower effect than
it should). We want to avoid that users keep the previously tuned value (with the bug)
and do not update the tuning when using the fixed version (v1.14.0 and later).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-01-12 10:25:53 +01:00
Silvan Fuhrer
12997020a4
MissionFeasibilityChecker: remove below home check ( #22624 )
...
This check gave a warning when one or more mission items were below the
Home altitude. As it is a valid usecase to plan missions below Home,
those warnings were too often seen as a inconvenience and are thus
removed here.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-01-12 09:53:14 +01:00
Silvan Fuhrer
3b54a06567
Tailsitter: use same pitch transition thresholds in all modes
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-01-12 09:51:55 +01:00
Silvan Fuhrer
3e36ab187b
ROMFS: improve SITL tailsitter tuning
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-01-12 09:51:55 +01:00
Silvan Fuhrer
a47bc4cb90
Tailsitter: mini clean up
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-01-12 09:51:55 +01:00
Silvan Fuhrer
e260a92ccb
MC att control: do not update the attitude setpoint directly in transition mode
...
That enables us to update the pitch setpoint in Stabilized mode
in the VTOL controller (pitch ramp for transition).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-01-12 09:51:55 +01:00
Daniel Agar
8a031677d5
ekf2: verbose debug print status include state variances
2024-01-11 11:53:20 -05:00
Daniel Agar
4cb293020a
ekf2: remove sensor sample uORB::Subscription missed perf counters
...
- these served their purpose, but are no longer useful
- still worth keeping the IMU subscription missed perf count to catch any scheduling issues
2024-01-11 11:52:29 -05:00
Daniel Agar
855bf8f0d2
.gitmodules set gz submodule branch
2024-01-11 11:07:33 -05:00
Sihyun
4377e5e319
boards/thepeach: Add uxrce_dds_client
2024-01-11 11:00:29 -05:00
Daniel Agar
8bcba6128a
ekf2: fix resetGlobalPosToExternalObservation whitespace
2024-01-11 10:59:56 -05:00
Anthony Merlino
5c845a58f1
netman: Allow default fallback IP to be set by board config
2024-01-11 10:58:59 -05:00
Silvan Fuhrer
e1ad1b60d0
VTOL: change transition airspeed threshold: only look at VT_ARSP_TRANS ( #22581 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-01-11 13:35:01 +01:00
Roman Bapst
603c3f6636
added support to reset vehicle position based on external position ( #22444 )
...
via command MAV_CMD_EXTERNAL_POSITION_ESTIMATE
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-01-11 13:09:22 +01:00
Daniel Agar
d45c3d3407
ekf2: verbose (DEBUG_BUILD) print status with Matrix improved print
...
* ekf2: verbose print status
* matrix/Matrix improve print output
* bold diagonal elements, print ring buffer entry size
* print in scientific notation when >= 10 to respect max size
---------
Co-authored-by: bresch <brescianimathieu@gmail.com >
2024-01-10 09:46:04 -05:00
dirksavage88
071565a8ad
Fix scaling issue with thoneflow/holybro optical flow pwm3901 UART driver
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2024-01-09 22:08:09 +01:00
alexklimaj
af0eb729c9
boards: arkv6x disable serial tx dma for now to prevent blocked tx
2024-01-09 10:38:01 -05:00
Jaeyoung Lim
c8e041a371
Add Fixedwing path following as a separate controller state ( #21376 )
...
* Separate offboard path setpoints as fixedwing pos control state
This commit separates offboard path following as a separate state inside the FW Poscontrol module.
This is a cleanup on clearly defining fw pos control behaviors
* Update src/modules/fw_pos_control/FixedwingPositionControl.cpp
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
* Fix format
---------
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2024-01-09 16:35:50 +01:00
Julian Oes
88b3316409
sensors/vehicle_imu: fix gyro clipping publication
...
The IMU topic is not zeroed, and the clipping information was not
copied, so this field ended up being garbage.
Signed-off-by: Julian Oes <julian@oes.ch >
2024-01-09 10:20:40 -05:00
Matthias Grob
9156c5c065
ROMFS: remove single trailing zeros
2024-01-09 10:27:39 +01:00
Matthias Grob
b70b19b7eb
ROMFS: keep consistent quad X geometry but in each airframe separately
2024-01-09 10:27:39 +01:00
Matthias Grob
09fa712d37
ROMFS: remove trailing zeroes
2024-01-09 10:27:39 +01:00
Matthias Grob
40f2fc4e77
ROMFS: remove duplicate uuv configuration
2024-01-09 10:27:39 +01:00
Matthias Grob
4b86e174a3
ROMFS: Fix quad + geometry
2024-01-09 10:27:39 +01:00
Federico Ciresola
20129e63fa
ModeCompleted.msg: document nav_state ( #22544 )
2024-01-08 11:32:41 +01:00
somebody-once-told-me
3d5c2ef6c4
[control_allocation] small function comment typo fix ( #22607 )
...
Co-authored-by: Master Chief <master-chief@the-void.com >
2024-01-08 11:12:06 +01:00
Peter van der Perk
cf840ff373
Update NuttX
2024-01-06 04:41:00 -05:00
Peter van der Perk
0df7ee423f
fmu-v6xrt: Tune ITCM function mapping
2024-01-06 04:41:00 -05:00
muramura
b24d9bf009
fmu-v6xrt: Move external BMP388 outside of config parameter determination
2024-01-05 09:10:54 -05:00
Peter van der Perk
e79f6b2ac1
v6x-rt: Add reboot to isp support
2024-01-05 08:41:41 -05:00
David Sidrane
5d7cb99204
px4_fmu-v6xrt:Support PX4 VxX Mini baseboard
2024-01-05 01:38:22 -05:00
muramura
959cb41e3a
mavlink: Add a second barometric sensor message
2024-01-04 11:19:41 -05:00
Daniel Agar
6495f40ee4
delete old top level config files (dot files, CI, etc)
2024-01-04 11:18:56 -05:00
muramura
7b32b735e8
fmu-v6xrt: Delete a parameter setting that does not exist
2024-01-04 11:18:18 -05:00
Peter van der Perk
84093a07a2
reboot: Add reboot to ISP option
2024-01-04 11:17:16 -05:00
Peter van der Perk
8ba18a78af
v6x-rt: move romapi to platform
2024-01-04 05:12:34 -05:00
Silvan Fuhrer
6be8cbe439
Navigator: mission_block: reduce enforce eexit course margin to 105% ( #22511 )
...
With this margin it is made sure that if the loiter is not perfectly tracked,
(vehicle outside of path setpoint) a wp just at the border of the loiter
is still reachable.
It should though be as small as necessary, as otherwise, with good
loiter tracking, waypoints that are close but not right on the loiter
radius are not enforcing the exit course neither.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-21 16:58:22 +01:00
Silvan Fuhrer
7e22b47b85
Navigator/FlightTaskAuto yaw handling improvements/simplifications ( #22532 )
...
* PositionSetpoint: remove yaw_valid field
* Navigator: set yaw setpoint to NAN for Takeoff
Don't set a yaw setpoint for takeoff, as Navigator doesn't handle the yaw reset.
The yaw setpoint generation is handled by FlightTaskAuto.
* PositionSetpoint.msg: remove disable_weather_vane and instead only use the yaw field
Strictly follow the concept that if the position_setpoint.yaw is set, then
follow it the controller, and otherwise let the controller set it as it
thinks it's best.
* Navigator: remove logic that sets yaw to be accepted in TAKEOFF
No longer needed as during Takeoff we anyway don't set a yaw setpoint.
* PositionSetpoint.msg: remove yawspeed_valid
* PositionSetpoint.msg: remove yawspeed
* Navigator: set yaw setpoint to NAN instead of current
In set_takeoff and set_land_item, as well as for VTOL transition.
The flight tasks then set the yaw corresponding to the current yaw.
* Navigator: change get_yaw_acceptance into a bool
* PositionSetpoint.msg: improve comment for yaw
* MissionBlock: remove unnecessary code from set_vtol_transition_item
* Navigator: clean up calculate_breaking_stop(), set yaw to NAN
* Navigator: set yaw to NAN in variouls places where not specifc setpoint is desired
* Navigator: set yaw to NAN in reset_position_setpoint()
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2023-12-21 16:50:13 +01:00
Matthias Grob
d872ef87da
differential_drive_control: don't build by default
...
also add dependency on control allocation parameter CA_R_REV
2023-12-21 16:27:53 +01:00
Matthias Grob
3de5c609a4
Differential Rover: PR fixes
2023-12-21 16:27:53 +01:00
PerFrivik
056e41af8c
Differential Rover: Ported R1 to GZ and introduced new GZ wheel interface
2023-12-21 16:27:53 +01:00
PerFrivik
1e7ce32480
Differential Rover: Added logging and dds topics
2023-12-21 16:27:53 +01:00
PerFrivik
3df71d1837
Differential Rover: Differential drive module & library
2023-12-21 16:27:53 +01:00
PerFrivik
e3359ea884
Differential Rover: Update airframe architecture
2023-12-21 16:27:53 +01:00
Peter van der Perk
19d1941758
px4_fmuv6xrt: Switch to icm42686p on SPI1
...
icm42588p driver don't use a icm42688p when icm42686p is requested
2023-12-21 10:11:20 -05:00
bresch
c1b139dea1
atune: reset param on start
...
This prevents a race condition where autotune cannot start because the param was already set to 1
2023-12-21 13:52:47 +01:00
MaEtUgR
74549e29a5
[AUTO COMMIT] update change indication
2023-12-21 11:42:08 +01:00
Matthias Grob
bcb2b1ad40
matrix: fix slice to slice assignment to do deep copy
...
To fix usage of a.xy() = b.xy() which should copy
the first two elements over into a and not act on a copy of a.
2023-12-21 11:42:08 +01:00
Silvan Fuhrer
2afbd09c63
Commander: AirspeedCheck: increase timeout threshold to 2s
...
1s gives some false positives at boot up, as the airspeed selector only
starts publishing 2s after its startup.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-21 11:34:28 +01:00
Silvan Fuhrer
9d00a3ae4d
AirspeedSelector: remove option to disable airspeed sensor through ASPD_PRIMARY
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-21 11:34:28 +01:00
Silvan Fuhrer
29807a5e50
Replace CBRK_AIRSPD_CHK with SYS_HAS_NUM_ASPD
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-21 11:34:28 +01:00
Silvan Fuhrer
9e0c8fd75e
FW controllers: change param FW_ARSP_MODE to FW_USE_AIRSPD
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-21 11:34:28 +01:00
Silvan Fuhrer
1f2a0bc657
Commander: remove check for FW_ARSP_MODE for airspeed missing reporting
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-21 11:34:28 +01:00
Silvan Fuhrer
5211c358aa
FW Position Controller: change airspeed setpoint init
...
-remove dedicated vtol transition airspeed init logic
-init airspeed setpoint on first usage of tecs
-init to max of current airspeed and min airspeed
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-21 11:34:28 +01:00
Silvan Fuhrer
27957e1f2f
FW Position Controller: set airspeed_valid flag to false if incoming data is not finite
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-21 11:34:28 +01:00
Silvan Fuhrer
123c06f2e6
NPFG: specify in comments that airspeed reference is for true airspeed
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-21 11:34:28 +01:00
Silvan Fuhrer
589f0f1fc7
FW Position Controller: rename _airspeed to _airspeed_eas
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-21 11:34:28 +01:00
bresch
b8c81f6281
gps_blending: fallback to secondary if primary has no fix
2023-12-20 16:35:30 -05:00
bresch
094048ed04
gps_blending: fix selection rapid switching
...
Once a timeout of the primary instance is detected, a fallback is only
allowed until the primary receiver is regained.
2023-12-20 16:35:30 -05:00
Matthias Grob
8da106df6a
px_process_events: fix no base path being a list
...
This make `make extract_events` fail in CI that only runs on the
main branch and hence I wasn't aware of.
2023-12-19 10:04:02 +01:00
Beniamino Pozzan
613564fffa
[rc.simulator] fix PX4_HOME_ALT and cleanup
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2023-12-18 16:08:30 -05:00
bresch
36eb319834
ekf2-yaw_est: split imu and velocity updates
2023-12-18 18:11:20 +01:00
bresch
bba30663cc
update change indicator
...
Caused by the GNSS checks being performed at the delayed-time horizon
2023-12-18 18:11:20 +01:00
bresch
a653073d4f
ekf2: perform GNSS checks at delayed-time horizon
...
- never fuse a measurement that is not passing the checks
- cleanup and simplify GNSS vel/pos control logic
2023-12-18 18:11:20 +01:00
Daniel Agar
b0566cd8aa
posix: cmake INSTALL make new GZ models/worlds optional for now
...
- the entire posix install package needs to be reviewed and tested
2023-12-18 11:49:53 -05:00
Frederik Markus
0aa7af8b66
update submodule to current main branch commit ( #22566 )
...
Signed-off-by: frederik <frederik.anilmarkus@gmail.com >
2023-12-18 15:04:29 +01:00
Frederik Markus
c63214bcae
adds vehicle with monocam ( #22546 )
...
Signed-off-by: frederik <frederik.anilmarkus@gmail.com >
2023-12-18 09:47:57 +01:00
Frederik Markus
65e53286b6
Standalone px4 stable ( #22467 )
...
simulation gazebo: move the gazebo models to submodule, allow for operation with external gazebo instance, independent of startup order. Allows drag an drop of models from gazebo fuel.
* rolled back updates
Signed-off-by: frederik <frederik@auterion.com >
* fixing empy
Signed-off-by: frederik <frederik@auterion.com >
* Update GZBridge.cpp to lower drop position
Dropping from 1m leads to movement in the rc_cessna. Dropping from 0.5m leads to no movement.
* Update STANDALONE env variable.
* Update STANDALONE env_variable on GZBridge
* Update src/modules/simulation/gz_bridge/GZBridge.cpp
Co-authored-by: Daniel Agar <daniel@agar.ca >
* test removal of x500
Signed-off-by: frederik <frederik.anilmarkus@gmail.com >
* removed all models and reworked logic
Signed-off-by: frederik <frederik.anilmarkus@gmail.com >
* remove model path in set_sdf_filename
Signed-off-by: frederik <frederik.anilmarkus@gmail.com >
* filter resource path for world sdf
Signed-off-by: frederik <frederik.anilmarkus@gmail.com >
* updated structure to keep old make px4_sitl
Signed-off-by: frederik <frederik.anilmarkus@gmail.com >
* remove gz tools
Signed-off-by: frederik <frederik.anilmarkus@gmail.com >
* import gz as submodule and reverse rc simulator logic
Signed-off-by: frederik <frederik.anilmarkus@gmail.com >
* [gz-sim]: source GZ_SIM_RESOURCE_PATH only if PX4 starts gz server
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
* Typo fix
---------
Signed-off-by: frederik <frederik@auterion.com >
Signed-off-by: frederik <frederik.anilmarkus@gmail.com >
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
Co-authored-by: Daniel Agar <daniel@agar.ca >
Co-authored-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2023-12-18 09:43:20 +01:00
Matthias Grob
6ffc5a9eae
events: pass relative paths plus base path to source parser script ( #22551 )
...
* events: pass relative paths plus base path to source parser script
to work around maximum Makefile command lenght limits.
* events: correct cmake comment typo
Co-authored-by: Beat Küng <beat-kueng@gmx.net >
---------
Co-authored-by: Beat Küng <beat-kueng@gmx.net >
2023-12-18 09:33:53 +01:00
Silvan Fuhrer
f38fe24a98
FW Position Control: fix setting of _control_mode_current to AUTO in VTOL landing
...
The _control_mode_current wasn't updated otherwise, and only done so by luck
because we already set the current type to SETPOINT_TYPE_POSITION.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-16 16:37:51 -05:00
Daniel Agar
4b25fad862
lib/timesync: relax warnings
...
- double required max consecutive counts
- don't continuously complain about round trip time (RTT) unless
there's been at least one acceptable round trip (latency < 100 ms)
2023-12-16 16:36:36 -05:00
Daniel Agar
7fa6f4e32f
boards: px4/fmu-v6x add dedicated multicopter build
2023-12-16 16:29:52 -05:00
Daniel Agar
808fd67fcb
Tools/setup: macos.sh add python-tk for kconfig gui (boardguiconfig)
2023-12-16 16:29:07 -05:00
Daniel Agar
dba2d76321
systemcmds/i2c_launcher: fix USER_I2C_LAUNCHER kconfig warning
2023-12-16 16:28:11 -05:00
Silvan Fuhrer
8be22f6c75
FW Position Controller: add missing @decimal 1 for FW_LND_THRTC_SC
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-16 09:45:18 +01:00
jamming
b7306f3773
boards: px4/fmu-v6c add BMI088 support
2023-12-15 11:45:37 -05:00
Peter van der Perk
fe4333f4a0
Update NuttX
2023-12-15 10:15:02 -05:00
Peter van der Perk
e2c027405e
px4_fmu-v6xrt: Add dshot support
2023-12-15 10:15:02 -05:00
oystub
24cee81279
gps_blending: output valid time_utc_usec
...
Before this fix, the time_utc_usec output from blending was always 0.
This means that you wouldn't get a valid vehicle_gps_position/time_utc_usec
With this commit, UTC timestamps are blended according to weights for
all GPSes with a nonzero UTC timestamp value.
It would be possible to simply use the first valid UTC timestamp instead
of blending, but since the system timestamps are blended, it seems
suitable to blend UTC timestamps as well.
2023-12-13 11:14:00 -05:00
Niklas Hauser
c769fc7785
SF1xx: optionally disable sensor in forward flight
2023-12-13 09:02:26 +01:00
marcojob
cf62dad28d
sensors/VehicleAngularVelocity: fix force SensorSelectionUpdate
...
- This fixes the force call on SensorSelectionUpdate
- In contrary to the rest of the codebase, this method also takes a timestamp: When you call SensorSelectionUpdate(true), time_now_us is actually set to 1 and force stays false, as this is the default value for in the method.
2023-12-12 20:56:59 -05:00
Kjersti Brynestad
91e3ec5884
mavlink: Handle NAMED_VALUE_INT
2023-12-12 20:50:46 -05:00
GuillaumeLaine
942b6700a1
dds_topics: export estimator_status_flags
2023-12-12 14:43:07 -05:00
Matthias Grob
75bb25a44c
test_vtol_figure_eight: fix altitude check
...
wait_until_altitude() checks for absolute altitude being
close so checking for 1m below the setpoint can fail
if the speedup results in no sample inside the altitude
window being checked.
Ideally the test could check if the takeoff is done directly
instead of comparing altitudes in the first place.
2023-12-12 20:22:23 +01:00
Silvan Fuhrer
91ab09ebd5
TECS: in _calcPitchControlOutput guard against invalid airspeed inputs
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-12 15:16:38 +01:00
Silvan Fuhrer
9db86f7f0a
TECS: fix airspeed filter init in airspeed-less mode
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-12 15:16:38 +01:00
Silvan Fuhrer
60e2c6a5cb
TECS: improve initialization
...
-remove external init, and instead always (but only) init when dt is too large
-init the controller params correctly
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-12 15:16:38 +01:00
Silvan Fuhrer
1f5fc3e849
TECS: init control params to reasonable values
...
The control params (eg min/max pitch) are used before they are
correctly set by TECS::update(). While this is an issue we should fix,
it also doesn't hurt to set them to more reasobale values (eg 30° limit).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-12 15:16:38 +01:00
Silvan Fuhrer
7926107328
TECS: make sure to constrain pitch to current min/max pitch
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-12 15:16:38 +01:00
Silvan Fuhrer
cc743048ba
TECS: set _ratio_underspeed to 0 if airspeed disabled
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-12 15:16:38 +01:00
Matthias Grob
ece60b6165
msp_osd: reuse existing mode name conversion
...
This saves a bit of flash, keeps the mode names up to date and
works like expected.
2023-12-11 17:29:45 +01:00
Silvan Fuhrer
8aab3e8013
Navigator: same logic for VTOL_TAKEOFF as for TAKEOFF ( #22518 )
...
Set the setpoint type to POSITION if already in air, not to TAKEOFF.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-11 14:18:22 +01:00
Matthias Grob
ebae9ae3d7
FlightTaskManualAccelerationSlow: MC_ prefix for parameter names
...
As discussed in the maintainer call we should adhere to the
parameter naming scheme that makes it clear what vehicle type the
configuration is good for.
2023-12-08 21:17:59 +01:00
Matthias Grob
d03030e881
mavlink_receiver: ifdef guard for velocity limits
...
Since this message is defined in development.xml and
not yet common.xml and some targets use
common.xml and the builds then failed.
2023-12-08 21:17:59 +01:00
Matthias Grob
ca6db94e39
Velocity limit: remove duplicate message and if(true)
2023-12-08 21:17:59 +01:00
Matthias Grob
da24811ce1
SickAccelerationXY: fix comment typo brak{e}ing
2023-12-08 21:17:59 +01:00
Marcin
4cf43a68a3
FlightTask: add subscription to VELOCITY_LIMITS msg
2023-12-08 21:17:59 +01:00
Matthias Grob
54ce9813c8
FlightModeManager: Add task for position slow mode
2023-12-08 21:17:59 +01:00
Matthias Grob
ef0926d64b
Commander: add position slow mode
2023-12-08 21:17:59 +01:00
Matthias Grob
dbbf585adb
StickYaw: yaw rate limit interface
2023-12-08 21:17:59 +01:00
Matthias Grob
84220407ea
FlightTaskManualAltitude: vertical velocity limit interface
2023-12-08 21:17:59 +01:00
Matthias Grob
bb617f6c4d
FlightTaskManualAcceleration: horizontal velocity limit interface
2023-12-08 21:17:59 +01:00
Matthias Grob
77c06a9f9e
Sticks: Provide auxiliary analog values from manual_control_setpoint
2023-12-08 21:17:59 +01:00
Matthias Grob
df41bc3d26
StickAccelerationXY: make sure speeds below 1m/s are exactly reached
...
by only applying the sqrt linear drag when brakeing.
It was originally not done this way to avoid discontinuities and
the exact speed bewlo 1m/s didn't matter. With the position slow mode
the exact slow speeds now matter. And the discontinuities are avoided by
reusing the brake boost filter.
2023-12-08 21:17:59 +01:00
Daniel Agar
f703f07399
drivers/distance_sensor: update kconfig common sensors
...
- mappydot is EOL
- LL40LS_PWM is a fairly special case that's not common
2023-12-08 13:32:23 -05:00
Matthias Grob
e35380d6ae
mixer_module_tests: cover output_limit_calc_single()
2023-12-07 21:35:55 -05:00
Matthias Grob
0a78690356
mixer_module: correct output_limit_calc_single calculation
2023-12-07 21:35:55 -05:00
PX4 BuildBot
fb3123e33b
Update world_magnetic_model to latest Thu Dec 7 11:14:08 UTC 2023
2023-12-07 21:34:18 -05:00
David Sidrane
936c18733b
NuttX with NXP Backports
2023-12-07 21:13:40 -05:00
PX4 BuildBot
db1bb94ea4
Update submodule mavlink to latest Thu Dec 7 12:39:06 UTC 2023
...
- mavlink in PX4/Firmware (67cf6bd264055a5d13d5521c6c43bd5b42f374ca): https://github.com/mavlink/mavlink/commit/6cf005e996865d4af749f5f9f0fa95ea7721924e
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/5f85bd7d7d6155d2d349bd04ed67544610e8e65b
- Changes: https://github.com/mavlink/mavlink/compare/6cf005e996865d4af749f5f9f0fa95ea7721924e...5f85bd7d7d6155d2d349bd04ed67544610e8e65b
5f85bd7d 2023-12-07 Hamish Willee - MAV_CMD_DO_SET_HOME - add home position roll/pitch (#1849 )
55ba3887 2023-12-06 Hamish Willee - Fixed deprecation typo for MAV_CMD_SET_MESSAGE_INTERVAL (#2060 )
2023-12-07 17:56:13 -05:00
PX4 BuildBot
3d1ce20c12
boards: update all NuttX defconfigs
2023-12-07 17:55:38 -05:00
Silvan Fuhrer
c61ac784b6
FW attitude controller: remove deprecated ecl_controller
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-07 17:21:09 +01:00
Silvan Fuhrer
b1317daa9c
wheel controller remove from ecl
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-07 17:21:09 +01:00
Silvan Fuhrer
00f5bba5e0
FW att controller: wheel controller: separate from ecl_controller
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-07 17:21:09 +01:00
Silvan Fuhrer
448292c980
FW att controller: yaw controller: separate from ecl_controller
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-07 17:21:09 +01:00
Silvan Fuhrer
d4206195c6
FW att controller: pitch controller: separate from ecl_controller
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-07 17:21:09 +01:00
Silvan Fuhrer
7e467f7121
FW att controller: roll controller: seperate from ecl_controller
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-07 17:21:09 +01:00
Silvan Fuhrer
48782723ab
FW att controller: ecl_controller: move setter/getter implementation to header
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-07 17:21:09 +01:00
David Sidrane
2af21ee0b6
NuttX with No TXDMA semaphore in serial backports
2023-12-06 11:46:47 -05:00
Matthias Grob
d259386987
arch: python requirements fix, jdk comes with ant
2023-12-05 12:06:56 -05:00
Matthias Grob
14c4257a59
ActuatorEffectivenessRotors: Use modern parameter interface for rotor count
...
This lead to a compiler warning with arm-none-eabi-gcc 12+
about the variable count potentially being a dangling pointer.
2023-12-05 12:06:56 -05:00
Matthias Grob
b71c6fb6ea
arch: update to use pacman's arm-none-eabi
...
which is currently GCC 12.2
2023-12-05 12:06:56 -05:00
Matthias Grob
adb22f1407
spi: put brackets such that GCC12 considers it a pointer for sure
...
otherwise you get the warning/error px4_spi_buses can never be NULL
2023-12-05 12:06:56 -05:00
Matthias Grob
0c97b0f4b0
ubuntu: usermod -aG instead of -a -G
...
It's well documented everywhere that this command does and
it's commonly used with exactly these two parameters together
and in that order.
2023-12-05 12:06:56 -05:00
bresch
5ca22df55c
ekf2-pos bias estimator: use enum
2023-12-05 11:22:59 -05:00
bresch
a3515a2474
ekf2: scope HeightSensor enum
2023-12-05 11:22:59 -05:00
bresch
6bd1145006
ekf2: scope RngCtrl enum
2023-12-05 11:22:59 -05:00
bresch
1df52df27d
ekf2: scope GnssCtrl enum
2023-12-05 11:22:59 -05:00
bresch
97423136d1
ekf2-AGP: scope control enum
2023-12-05 11:22:59 -05:00
Beat Küng
c5101c70b3
uorb: enure message definitions don't exceed buffer lengths & increase test buffer
...
There were already checks at runtime, but this ensures the format is not
too long at built-time.
2023-12-05 10:42:23 +01:00
Konrad
df46ad7774
Dcm2: Use std::sin with overloaded types
2023-12-05 10:42:23 +01:00
Konrad
d1b8a2e8d5
fxedwingPositionControl: Add slew rate at the end for all mode instead inside each
2023-12-05 10:42:23 +01:00
Konrad
ae3aee3402
fw param: reduce default COM_VEL_FS_EVH to warn earlier when velocity uncertainty increases
2023-12-05 10:42:23 +01:00
Konrad
1d07697a9e
NPFG: Add fallback for corner cases
2023-12-05 10:42:23 +01:00
Matthias Grob
1c25d65a1e
Add missing newline at the end of files
2023-12-01 13:11:00 -05:00
Matthias Grob
4c0b6dbe86
Remove trailing whitespaces and trailing duplicate newlines
2023-12-01 13:11:00 -05:00
Matthias Grob
d8d2213cab
mavlink streams: add SYSTEM_TIME to onboard low bandwidth
...
It's required with 2Hz by some MAVLink enabled payloads.
2023-12-01 11:02:37 -05:00
Matthias Grob
9184a8f4ef
mavlink streams: add CAMERA_IMAGE_CAPTURED to onboard low bandwidth
2023-12-01 11:02:37 -05:00
Matthias Grob
3ceb932b7c
mavlink streams: increase RC_CHANNELS rate for onboard low bandwidth
...
There are MAVLink enabled gimbals that directly consume RC channel data.
The gimbal controls stutter with this profile when the rate is too low.
2023-12-01 11:02:37 -05:00
Matthias Grob
938be68c69
mavlink streams: add gimbal orientation feedback to normal stream
...
It only publishes when the information is available on uORB
and is useful for the groundstation to show the gimbal's status.
2023-12-01 11:02:37 -05:00
Silvan Fuhrer
b0df7c7ccb
RTL/Land: set gimbal to neutral to reduce change of damage
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-01 13:19:09 +01:00
Silvan Fuhrer
789b3880cf
Mission: set gimbal to neutral on inactivation
...
It is generally preferred to have the camera pointing forward on pause,
e.g. to use the camera for Navigation.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-01 13:19:09 +01:00
Silvan Fuhrer
0d8ba587ca
Mission: set gimbal to neutral before landing item
...
To reduce risk of damage during landing.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-01 13:19:09 +01:00
Silvan Fuhrer
178ea132b6
Navigator: add set_gimbal_neutral() functionality
...
To point the gimbal forward eg during landing to reduce chance of damage.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-01 13:19:09 +01:00
bresch
fe7988672f
ekf2: auxiliary position fusion
...
Co-authored-by: Daniel Agar <daniel@agar.ca >
2023-12-01 11:50:22 +01:00
Silvan Fuhrer
aaefc36cad
airframes: remove 4900_crazyflie
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-01 09:43:41 +01:00
Silvan Fuhrer
6c9af2e0ec
airframes: remove 4040_reaper
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-01 09:43:41 +01:00
Silvan Fuhrer
6b4fca1b9d
px4vision configs: remove params that are just set again to default
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-12-01 09:43:41 +01:00
Matthias Grob
d85aaf4dfd
v5x/v6x: save flash by not compiling analog OSD by default
2023-11-30 17:16:02 +01:00
Matthias Grob
82c422b818
fmu-v5x: don't build roboclaw driver by default
...
it's not used that often and for rovers only.
2023-11-30 17:16:02 +01:00
Matthias Grob
8bb20db7da
GotoControl: Save flash
2023-11-30 17:16:02 +01:00
Matthias Grob
7b4712cb29
sensor_simulator: initialize VelocitySmoothing with desired limits
2023-11-30 17:16:02 +01:00
Matthias Grob
d014d76ca7
HeadingSmoothing: set correct maximum heading
...
The velocity smoothing library constrains the maximum vellocity.
I set the default constraint to 0 to find these exact issues.
The heading smoothing did not initialize the maximum velocity
which in this use case is the maximum heading.
So heading was always constrained to 0 -> north until this change.
2023-11-30 17:16:02 +01:00
Matthias Grob
5a2efc1cb2
GotoControl: remove dependency on PositionControl
...
It was there only to have the empty trajectory setpoint defined.
I rather redefine it for the single use.
2023-11-30 17:16:02 +01:00
Matthias Grob
c853acc2ff
GotoControl: also provide maximum velocity to position smoother
2023-11-30 17:16:02 +01:00
Matthias Grob
d1e8bdbd16
GotoControl: rename yaw rate acceleration parameter
...
such that not only one letter differs to MPC_YAWRAUTO_MAX
2023-11-30 17:16:02 +01:00
Matthias Grob
dc7f9165d1
logged_topics: fix goto_setpoint name
2023-11-30 17:16:02 +01:00
Matthias Grob
3de6fee07f
GotoControl: make interface over uORB
2023-11-30 17:16:02 +01:00
Matthias Grob
96a81c22e3
GotoControl: simplify configuration wrapping
2023-11-30 17:16:02 +01:00
Matthias Grob
439d6c61e0
Revise GotoControl
2023-11-30 17:16:02 +01:00
Matthias Grob
14b8afe972
PositionSmoothingTest: remove duplicate vector comparison
2023-11-30 17:16:02 +01:00
Matthias Grob
591845bb41
HeadingSmoothing: rename, simplify, add cpp
2023-11-30 17:16:02 +01:00
Matthias Grob
be05b3e8d7
helper_functions: include defines for M_PI_PRECISE
...
The defintion of the custom symbol M_PI_PRECISE
was not included in one of the only places it's used.
Looks like a mistake that happened in
34c852255e
possibly because a lot of things are included
almost everywhere and if the include order
ligns up there are no compile errors.
2023-11-30 17:16:02 +01:00
Matthias Grob
efb325d25d
motion_planning: remove deprecated separate test
...
It's functionality probably broke already in
befbb6b106c4c04933222ecb205f001fd77fa85f
and the tests are now covered by
VelocitySmoothingTest.cpp
2023-11-30 17:16:02 +01:00
Matthias Grob
53076b9863
PositionSmoothing: guard division by zero
...
Note that the unit test also passes without
thechange. But the VelocitySmoothing's
local_time would get NAN. This would leads to
wrong trajectory calculations.
2023-11-30 17:16:02 +01:00
Matthias Grob
11cca72ef1
VelocitySmoothing: fix division by zero cases
...
Problem: Zero maximum jerk and/or zero
direction would lead to divisions by zero in
various cases depending on the exact configuration and code path.
Solution: There was already one check for the
direction being zero in one path and I
summarized to check in both
updateDurations...() functions the product
of direction * max_jerk to not be zero
because that's exactly the value calculations
devide by.
2023-11-30 17:16:02 +01:00
Matthias Grob
6f295d91d1
Revert "motion_planning: sanitize inputs to position and velocity smoothing libs"
...
This reverts commit 2951c846ee07e52c2e3d97ea4629185016f3a011.
2023-11-30 17:16:02 +01:00
Matthias Grob
14785eeb47
GotoSetpoint message: reorder flag directly before value
2023-11-30 17:16:02 +01:00
Thomas Stastny
4b920a6628
GotoControl: add go-to control interface to mc position controller
...
goto control class handles smoothing of goto setpoints, outputs trajectory setpoint for mc pos control
some minor encapsulation done in mc pos control for readability
new param MPC_YAWAAUTO_MAX limiting heading accelerations in heading smoother
2023-11-30 17:16:02 +01:00
Thomas Stastny
e47aba8bc9
msg: add go-to setpoint interface
2023-11-30 17:16:02 +01:00
Thomas Stastny
72a811a4b3
motion_planning: add heading smoother lib
...
wraps the velocity smoother, but is intended for generating smooth heading trajectories
handles angle wrap
2023-11-30 17:16:02 +01:00
Thomas Stastny
80dd7e4806
motion_planning: sanitize inputs to position and velocity smoothing libs
2023-11-30 17:16:02 +01:00
Beat Küng
f69636feef
fix msg: add_custom_command needs to depend on files instead of custom_command target name
...
This fixes incremental builds when msg files change.
Introduced with https://github.com/PX4/PX4-Autopilot/pull/21995 .
2023-11-30 10:36:39 -05:00
frederik
3b041ef8d4
empy version fixed to 3.3.4
...
Signed-off-by: frederik <frederik@auterion.com >
2023-11-30 10:07:27 -05:00
Jukka Laitinen
9d465615d1
src/drivers/sw_crypto: Fix buffer lengths for xchacha20 crypto
...
The size input argument for monocypher crypto_xchacha20_ctr should be the
plaintext message length.
The promise of the interface is, that the call to encrypt_data updates the
ciphertext message length after the call succeeds.
The crypto should check that the output buffer length (cipher length) is
large enough to contain the encrypted data.
Fix these issues; these have gone unnoticed for a long time since the interface
has been only used by logger, and passing the same size for both in and out.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-11-29 20:56:00 -05:00
PX4 BuildBot
c2345ac5b3
Update world_magnetic_model to latest Wed Nov 29 11:14:09 UTC 2023
2023-11-29 20:55:05 -05:00
PX4 BuildBot
33a3e568bb
boards: update all NuttX defconfigs
2023-11-29 20:54:34 -05:00
PX4 BuildBot
afe110cca1
update all px4board kconfig
2023-11-29 20:54:10 -05:00
Jacob Dahl
e627fe01dc
UXRCE_DDS_SYNCC default 0
2023-11-29 20:53:01 -05:00
Konrad
42ce9eb692
mavlink_mission: Send MISSION_CURRENT periodically even when no mission is loaded.
2023-11-29 11:10:40 -05:00
Konrad
36f0c0f0bf
mavlink-mission: Add support for opaque ids and replace update counter with it
2023-11-29 11:10:40 -05:00
Konrad
120e7fea8b
mavlink: update submodule including opaque ID
2023-11-29 11:10:40 -05:00
Frederik Markus
f00d97d974
removal of PX4_GZ_MODEL env variable and fix of ground glitching ( #22400 )
...
Removal of PX4_GZ_MODEL env variable and fix of ground glitching
Signed-off-by: frederik <frederik@auterion.com >
Co-authored-by: frederik <frederik@auterion.com >
Co-authored-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2023-11-29 09:08:04 +00:00
alexklimaj
59abab8379
sensors: add parameter to silence imu clipping
2023-11-28 11:57:14 -05:00
Daniel Agar
a9213e3862
Update world_magnetic_model to latest Tue Nov 28 11:14:14 UTC 2023
...
Co-authored-by: PX4 BuildBot <bot@px4.io >
2023-11-28 11:04:02 -05:00
PerFrivik
befbc19a4a
Roboclaw: Updated parameter prefix for roboclaw output module
2023-11-28 16:30:17 +01:00
PerFrivik
c84185af96
Roboclaw: Fixed issue where parameters had different prefixes
2023-11-28 16:30:17 +01:00
PerFrivik
9ce090f2da
Roboclaw: Fix CI pr issue
2023-11-28 16:30:17 +01:00
PerFrivik
7c45093908
Roboclaw: Updated yaml file to support Roboclaw Driver in QGC
2023-11-28 16:30:17 +01:00
PerFrivik
bea00f62c9
Roboclaw: Changes in r1 airframe, removed hardcoded port configurations
2023-11-28 16:30:17 +01:00
PerFrivik
3a7f2f8bce
Roboclaw: Accidentally removed a parameter
2023-11-28 16:30:17 +01:00
PerFrivik
de9074558b
Roboclaw: Updated Airframe and fixed left and right mapping error
2023-11-28 16:30:17 +01:00
PerFrivik
09d30568ab
Roboclaw: Consistent Left & Right naming convertion with Differential Drive class
2023-11-28 16:30:17 +01:00
Matthias Grob
f53edfa440
Roboclaw: major cleanup
2023-11-28 16:30:17 +01:00
Matthias Grob
c27181a154
Rename RoboClaw -> Roboclaw
...
The manufacturer uses both naming schemes, RoboClaw more than Roboclaw
but it's always one word and hence I think it's more consistent to name
it the latter.
2023-11-28 16:30:17 +01:00
Matthias Grob
87683aa790
Roboclaw: move parameters to module.yaml
2023-11-28 16:30:17 +01:00
Matthias Grob
8f4ce28e84
RoboClaw: declutter, make it compile again
2023-11-28 16:30:17 +01:00
Matthias Grob
5b4031356e
RoboClaw: fix style
2023-11-28 16:30:17 +01:00
Per Frivik
9409646a89
Update RoverPositionControl.cpp
2023-11-28 16:30:17 +01:00
Per Frivik
e9810e7be6
Update WheelEncoders.msg
2023-11-28 16:30:17 +01:00
Per Frivik
dd9c1c02d1
Delete msg/ActuatorControls.msg
2023-11-28 16:30:17 +01:00
Per Frivik
a6b2bcd166
Update msg/CMakeLists.txt
...
Remove ActuatorControls.msg
Co-authored-by: Daniel Agar <daniel@agar.ca >
2023-11-28 16:30:17 +01:00
PerFrivik
a40120c332
Roboclaw: Integrated OutputModuleInterface including a large code refactor
2023-11-28 16:30:17 +01:00
PerFrivik
86e5561a64
Roboclaw: Fixed issue when power cylcing the roboclaw where the driver would not connect
2023-11-28 16:30:17 +01:00
PerFrivik
524fa73ad3
Roboclaw: rough refactor, removed repetitive code, simplified and clarified logic and error handeling
2023-11-28 16:30:17 +01:00
PerFrivik
dde7bbb4f6
Roboclaw: Initial cleanup, next commit will be refactor removing the duplicated write and read functions
2023-11-28 16:30:17 +01:00
PerFrivik
fe4d319ba9
Roboclaw: Replaced setDutyCycle with setMotorSpeed to allow for encoder data to get through (added support for encoders)
2023-11-28 16:30:17 +01:00
PerFrivik
c7e780cb6d
Roboclaw: Working temporary version that drives around
2023-11-28 16:30:17 +01:00
PerFrivik
184993daa3
Roboclaw: Added DutyCycle command in Roboclaw destructor to turn off motors
2023-11-28 16:30:17 +01:00
Matthias Grob
a857df88e4
Driving possible
2023-11-28 16:30:17 +01:00
PerFrivik
ab486de430
Roboclaw: Temporary fix, enabling driver to run
2023-11-28 16:30:17 +01:00
PerFrivik
549c6b565c
ported roboclaw driver from older commits into newest develop branch
2023-11-28 16:30:17 +01:00
Peter van der Perk
66544d080a
px4_fmu-v6xrt: Fix TELEM2 always being used for mavlink
2023-11-28 08:00:45 -05:00
Konrad
8a68a66203
figureEight: Rename relative position variable
2023-11-28 10:06:01 +01:00
Konrad
1e06ed2ed5
figureEight: Rework initialization
2023-11-28 10:06:01 +01:00
Konrad
a73409c015
FigureEight: Refactor initialization
2023-11-28 10:06:01 +01:00
Julian Oes
ef20708a98
kakuteh7/7mini/h7v2: Add ICM42686p as alternative
...
This adds the ICM42686p as a possible alternative to the existing IMUs.
Apparently, the ICM20689 was never actually used in these boards.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-11-27 21:31:46 -05:00
Beniamino Pozzan
2363c03bfe
[uxrce_dds_client] wait for Timesync to converge
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2023-11-27 21:10:26 -05:00
Beniamino Pozzan
f01400de81
[uxrce_dds_client] Fix debug string format - use PRId64 and llabs
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2023-11-27 21:10:26 -05:00
Daniel Agar
5af6cf1889
Update submodule GPS Drivers to latest Tue Nov 28 00:39:22 UTC 2023
...
- GPS Drivers in PX4/Firmware (5ef3ae3f1ec5aecea5842306a63aec054eb599a9): https://github.com/PX4/PX4-GPSDrivers/commit/6e452c2c5b6a718dddc1df2a13eba4a7c729d9f2
- GPS Drivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/63990d218ec35ea965d634af6a79d3155561b743
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/6e452c2c5b6a718dddc1df2a13eba4a7c729d9f2...63990d218ec35ea965d634af6a79d3155561b743
63990d2 2023-11-22 Daniel Agar - nmea fix astyle whitespace
Co-authored-by: PX4 BuildBot <bot@px4.io >
2023-11-27 21:05:23 -05:00
PX4 BuildBot
dfbd5c88b1
Update submodule mavlink to latest Tue Nov 28 00:39:31 UTC 2023
...
- mavlink in PX4/Firmware (b8870adb3e2002ee16ebf63bd23342a055ab8628): https://github.com/mavlink/mavlink/commit/70181c42fc63306ba3512666e1a8b7b782416806
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/02f1575d73b3b7eb09b1cc7ca3a03844aec05858
- Changes: https://github.com/mavlink/mavlink/compare/70181c42fc63306ba3512666e1a8b7b782416806...02f1575d73b3b7eb09b1cc7ca3a03844aec05858
02f1575d 2023-11-24 Hamish Willee - MAV_CMD_CONDITION_YAW - shortest direction v2 (#2058 )
bc0d8611 2023-11-22 Roman Bapst - moved MAV_CMD_EXTERNAL_POSITION_ESTIMATE from ardupilotmega to common (#2057 )
b85e0016 2023-11-22 Hamish Willee - development - delete MAV_CMD_SET_FENCE_BREACH_ACTION (#2053 )
2023-11-27 20:40:31 -05:00
PX4 BuildBot
da8692c682
update all px4board kconfig
2023-11-27 20:05:50 -05:00
Silvan Fuhrer
2734c44533
FlightTaskAuto: set state to None if prev and current sp are equal
...
Otherwise if is set to Offtrack, which in turn leads to weird behavior.
E.g. when triggering Land while flying fast forward, the vehcile doesn't
descned to the land point it keeps getting a velocity setpoint from the
smoother that pushes it away from the land point.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-27 18:01:47 +01:00
Konrad
6a34b63b60
mission_base: perform mission_check_valid if mission, geofence ot homeposition have changed
2023-11-24 08:11:41 +01:00
Konrad
5e1f0b73ce
HomePosition: Add an instance counter
2023-11-24 08:11:41 +01:00
Konrad
3ac7ed6afa
mission_base: Do not reset mission on invalid mission upload
2023-11-24 08:11:41 +01:00
Konrad
a92e7a8796
missionResult: remove unnecessary constants and rename instance_count to mission_update_counter
2023-11-24 08:11:41 +01:00
Beat Küng
7afa011741
mavlink_mission: publish mission after updating dataman
...
This avoids a potential race condition when dataman also updates dataman
as a result of the publication.
2023-11-24 08:10:07 +01:00
Beat Küng
93cae5f9d7
mission: fix comparison logic for saving mission state
2023-11-24 08:10:07 +01:00
Matthias Grob
8271faedeb
control_mode: reorder modes according to controller cascade
2023-11-23 20:35:48 +01:00
Matthias Grob
6e31638817
control_mode: add allocation to orbit mode to not crash
2023-11-23 20:35:48 +01:00
Silvan Fuhrer
a99a7d2abd
vtol: always check for EKF2 resets, not just when QC is checked
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-23 13:54:07 +01:00
Silvan Fuhrer
eae939d86c
vtol_type: transition altitude loss quad-chute: handle z resets
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-23 13:54:07 +01:00
Silvan Fuhrer
8a899170bf
VehicleLocalPosition.msg: add comments for heading reset fields
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-23 13:54:07 +01:00
Silvan Fuhrer
7833d2a879
VehicleLocalPosition.msg: add comments for reset fields
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-23 13:54:07 +01:00
Julian Oes
19964d56ed
fmu-6x: Use i2c_launcher by default
...
This switches all SENS_EN_INAXXX params to 0 by default and instead uses
the i2c_launcher command.
However, if any one the SENS_EN_INAXXX param is set, it no longer tries
to auto-configure it.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-11-22 22:19:52 -05:00
Julian Oes
fbc95ff4bd
Add I2C driver launcher
...
This is just a first draft of the launcher part.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-11-22 22:19:52 -05:00
Julian Oes
895ddee16a
i2c_spi_buses: method to count instances per bus
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-11-22 22:19:52 -05:00
Beniamino Pozzan
742d237ae3
[uxrce_dds] add vehicle_thrust_setpoint, vehicle_torque_setpoint
...
actuator_motors and actuator_servos subscribers for offboard control
Being subscribers, this does not increase the computational load
over the uxrce_dds brigde
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2023-11-22 22:14:50 -05:00
Beniamino Pozzan
1c8f31f339
[offboard] add thrust and torque control mode
...
New thrust and torque control mode added which replaces the previous
actuator mode,
in this mode the rate controllers are disables, the control allocator
is enabled and the used externally provices
vehicle_thrust_setpoints and vehicle_torque_setpoints.
New direct_actuator mode
In direct_actuator mode the control allocator module does not publish
actuator_motors and actuator_servos messages which must instead be
provided extrernally by the user.
Removed old direct mode.
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2023-11-22 22:14:50 -05:00
Jacob Dahl
6cc38776c8
src/modules/uxrce_dds_client: set system clock from agent CLOCK_REALTIME ( #22290 )
...
* Added parameter UXRCE_DDS_SYNCC to enable system clock synchronization. Refactored and cleaned up. Only set system time if it's off by more than 5 seconds (same as mavlink and gps).
2023-11-22 22:06:11 -05:00
Frederik Markus
86fbeb8a20
ROMFS/px4fmu_common/init.d-posix/airframes: 4004_gz_standard_vtol deprecated parameter update
...
Signed-off-by: frederik <frederik@auterion.com >
2023-11-22 21:57:58 -05:00
Silvan Fuhrer
e280a6c6e6
Navigator: Geofence: always run geofence_breach_check(), not only only on pos update
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Silvan Fuhrer
ade68aa563
Navigator: Geofence: stay in GF breached mode when in Loiter due to breach
...
Only re-evaluate if no longer in GF when flight mode is changed or
Loiter position was changed (eg through goto).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Silvan Fuhrer
f2aabe968e
Geofence: add checks for custom GF validity when uploading it
...
- check if Home would breach it (we do not want to upload GF that
do not allow to return to Home)
- check if the current vehicle position isn't contained in the GF
if armed (as then it would immediately trigger)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Silvan Fuhrer
2865bbb8ab
Geofence: rework messaging and notification
...
- do reporting of breaching in-air only in geofenceCheck
- remove geofence_violation_reason_t
- replace geofence_breached field in GeofenceResult.msg with 3 fields
(one for each GF type: max dist, max alt, custom geofence)
- the warning message after breaching a GF is only done by Commander,
and it's specific to the GF type failure
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Silvan Fuhrer
3c194d552a
Geofence: rework the way to check all GF at once
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Silvan Fuhrer
a41f24a2e2
geofence_result.msg: rename premove unused field home_required
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Silvan Fuhrer
b178c943a6
GeofenceBreachAvoidance: remove unused variables and methods
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Silvan Fuhrer
c0f26c8fbd
mission_feasibility_checker.h: remove unused Geofence class
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Silvan Fuhrer
563bfbf6e7
Geofence: remove GF_COUNT
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Silvan Fuhrer
fd709e05b0
Geofence: remove GF_ALTMODE
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Silvan Fuhrer
f3eacb4844
Geofence: fix status print
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Silvan Fuhrer
f8f4ea2fee
MissionFeasibilityCheck: rename checkGeofence to checkMissionAgainstGeofence()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-22 21:45:02 -05:00
Daniel Agar
56bfe41f10
drivers/ins/vectornav: publish estimator_status (only in VN_MODE 1)
2023-11-22 21:42:27 -05:00
Beat Küng
19f08b46b0
ci: add test for PX4_EXTRA_NUTTX_CONFIG
2023-11-22 21:41:53 -05:00
Beat Küng
a9c4e5a33f
cmake: allow extra nuttx config options via PX4_EXTRA_NUTTX_CONFIG env var
2023-11-22 21:41:53 -05:00
PX4 BuildBot
c497a25bea
Update submodule libevents to latest Thu Nov 23 00:39:07 UTC 2023
...
- libevents in PX4/Firmware (15667a5c6b927ab177c6912058475eb5fac26c4c): https://github.com/mavlink/libevents/commit/a9a3fc07abb8bd8eb6fbca64c35b479cab91ff35
- libevents current upstream: https://github.com/mavlink/libevents/commit/59f7f5c0ec2e76fadbc1dc40cc0705d614472edc
- Changes: https://github.com/mavlink/libevents/compare/a9a3fc07abb8bd8eb6fbca64c35b479cab91ff35...59f7f5c0ec2e76fadbc1dc40cc0705d614472edc
59f7f5c 2023-09-26 Beat Küng - cpp/parse: avoid using ssize_t as it's not available on Windows
1617b4e 2023-09-26 Beat Küng - cpp: enable Werror, Wall, Wextra, Wconversion, Wpedantic & fix
e2979e6 2023-09-26 Beat Küng - refactor python/parser: some whitespace & formatting updates
e2e8011 2023-09-26 Beat Küng - python/parse: add callback to escape message & description
baa93a4 2023-09-26 Beat Küng - cpp/parse: add callback to escape message & description
d10aecd 2023-09-26 Beat Küng - refactor tests/parser: move tests to method
1aaa597 2023-09-26 Beat Küng - run_ci.sh: ensure cmake uses unix makefiles
9b3c897 2023-09-25 Beat Küng - refactor parser tests: use gtest
2023-11-22 21:40:48 -05:00
PX4 BuildBot
7c1d41aeb8
Update submodule sitl_gazebo-classic to latest Thu Nov 23 00:38:54 UTC 2023
...
- sitl_gazebo-classic in PX4/Firmware (9387de8282 ): https://github.com/PX4/PX4-SITL_gazebo-classic/commit/20ded0757b4f2cb362833538716caf1e938b162a
- sitl_gazebo-classic current upstream: https://github.com/PX4/PX4-SITL_gazebo-classic/commit/33ac87a37676fb597de110e926bbf0a080169ffe
- Changes: https://github.com/PX4/PX4-SITL_gazebo-classic/compare/20ded0757b4f2cb362833538716caf1e938b162a...33ac87a37676fb597de110e926bbf0a080169ffe
33ac87a 2023-11-14 Daniel Honies - Fix opencv aruco version bug (#1017 )
ff6f74e 2023-11-13 jmackay2 - Remove unused props from tailsitter (#1015 )
2023-11-22 21:40:35 -05:00
Julian Oes
976cd67f71
logger: increase default GPS rate
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-11-22 21:30:31 -05:00
Konrad
9387de8282
mavsdk figure 8 test: Increase time of timeout
2023-11-22 16:47:38 -05:00
David Sidrane
eefc6a0027
px4io:Added help text for supported command
2023-11-22 14:29:49 -05:00
Christian Rauch
1cf38e9d76
use Python 3.10 on macOS CI
2023-11-22 11:22:49 -05:00
Daniel Agar
0dbd7b9176
Jenkins compile remove obsolete target nxp_fmurt1062-v1_default
2023-11-22 11:16:22 -05:00
GuillaumeLaine
ab867b963c
dds_topics: Adds missing data reader
2023-11-22 10:42:05 +00:00
GuillaumeLaine
f3e85219a3
dds_topics: Adds handling for empty yaml fields
2023-11-22 10:42:05 +00:00
GuillaumeLaine
85c75aedd1
dds_topics: Adds multi publication to subscribed dds topics
2023-11-22 10:42:05 +00:00
bresch
e568b4a1d7
replay: increase buffer size
...
required to parse larger topics
2023-11-21 21:56:34 -05:00
bresch
6320ca64a9
ekf2-terr: allow range fusion before takeoff
2023-11-21 21:56:34 -05:00
bresch
0f3378e194
ekf2: fix terrain range finder logging
2023-11-21 21:56:34 -05:00
bresch
1c3a1183c8
ekf2-flow: refactor control logic
...
Use flow rates instead of integrals in backend. This allows us to delay
the data to the mitpoint integration time and simplifies the code in
general.
Gyro compensation can still be done in EKF2 if needed, but the
flow module normally already appends the correct gyro data to the flow
message.
2023-11-21 21:56:34 -05:00
alexklimaj
5f8ecd6b40
driver: ina2** allow 3 indexes
2023-11-21 21:44:39 -05:00
Roman Bapst
dd2322d622
Added PerformanceModel for fixed wing ( #22091 )
...
* created a Performance Model for fixed wing vehicle
- added compensation for maximum climbrate, minimum sinkrate, minimum airspeed and trim airspeed based on weight ratio and air density
- added atmosphere lib to standard atmosphere calculations
---------
Signed-off-by: RomanBapst <bapstroman@gmail.com >
Co-authored-by: Thomas Stastny <thomas.stastny@auterion.com >
2023-11-21 17:13:50 +01:00
Silvan Fuhrer
70cd224236
EKF2 params: remove wrong horizontal keyword and gps-->GNSS
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-21 15:23:33 +01:00
bresch
c7672fc68c
ekf2-params: delta vel/ang -> accel/gyro
2023-11-20 20:10:16 -05:00
bresch
f2482d7157
ekf-pdf-report: plot bias using bias msg instead of state vector
2023-11-20 20:10:16 -05:00
Julian Oes
a501262a6b
icm45686: fix dt (and usage command)
...
With the wrong dt, the flight behaviour was really poor and noisy, so
this fix is absolutely required.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-11-21 07:44:00 +13:00
alexklimaj
1b99e7df81
px4io: change not supported message to INFO instead of ERR
2023-11-20 08:54:32 -05:00
David Sidrane
8f02184669
px4io:Add 'supported' command and uses it in rcS
2023-11-20 08:54:32 -05:00
Matthias Grob
9bed8f48c7
Remove LNDMC_ALT_MAX
...
This should be replaced with the maximum geofence
altitude GF_MAX_VER_DIST. I'm not aware anyone is using
this functionality as is.
2023-11-20 14:52:35 +01:00
PX4 BuildBot
fd4d635035
Update submodule mavlink to latest Sun Nov 19 12:39:21 UTC 2023
...
- mavlink in PX4/Firmware (e819620173822548d05b6f309c615b48eda9261c): https://github.com/mavlink/mavlink/commit/81524c2b34aa08768f13091b1d94c421e64f96c3
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/70181c42fc63306ba3512666e1a8b7b782416806
- Changes: https://github.com/mavlink/mavlink/compare/81524c2b34aa08768f13091b1d94c421e64f96c3...70181c42fc63306ba3512666e1a8b7b782416806
70181c42 2023-10-12 Hamish Willee - MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET - set units to deg
f484eaf8 2023-10-11 Hamish Willee - Update test_and_deploy.yml - drop node 12 (#2041 )
44197849 2023-10-11 tom - Cleanup of typos and inconsistencies in common.xml (#2044 )
b295e70e 2023-09-28 Hamish Willee - Update ardupilotmega.xml - delete SPEED_TYPE (#2042 )
e8d796a4 2023-09-27 Hamish Willee - SPEED_TYPE enum for MAV_CMD_DO_CHANGE_SPEED (#2039 )
c313a2f3 2023-09-23 Asif Khan - common: Add camera instance field to MAV_CMD_IMAGE_START/STOP_CAPTURE (#2024 )
cad18c56 2023-09-20 Marcin - Add VELOCITY_LIMITS msg (#2015 )
2023-11-19 11:51:35 -05:00
Daniel Agar
58d6d03da3
Update submodule devices to latest Sun Nov 19 12:39:11 UTC 2023
...
- GPS drivers in PX4/Firmware (0f7a34a64dd69ad074b47726eedeef147fe0f700): https://github.com/PX4/PX4-GPSDrivers/commit/b443b79f57c5e89353430940af9e4511ea8eb0b8
- GPS drivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/6e452c2c5b6a718dddc1df2a13eba4a7c729d9f2
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/b443b79f57c5e89353430940af9e4511ea8eb0b8...6e452c2c5b6a718dddc1df2a13eba4a7c729d9f2
6e452c2 2023-10-27 Robbie Drage - move NO_MKTIME compilation flags - removes dependency on tm struct being defined without MKTIME - removes unnecessary operations
Co-authored-by: PX4 BuildBot <bot@px4.io >
2023-11-19 11:49:39 -05:00
Andrew Brahim
3433a4cbc9
boards/nxp/mr-canhubk3/fmu.px4board: add common sensor sets and uxrce-dds drivers
...
* Add common sensor sets (pressure, distance, mag, optical) and enable uxrce-dds client on mrcanhubk3
---------
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2023-11-19 10:54:14 -05:00
Braden Wagstaff
35e13a908e
DDS Add battery_status publisher
2023-11-18 11:06:02 +00:00
alexklimaj
42d70808e9
uxrce add manual control input subscriber
2023-11-18 11:06:02 +00:00
Bryce Clark
83c461ebb8
cubeorangeplus added to CMake variants to allow debugging CubePilot Cube Orange Plus through VSCode
2023-11-17 19:53:39 -05:00
PX4 BuildBot
ae89c30a18
boards: update all NuttX defconfigs
2023-11-17 09:15:14 -05:00
PX4 BuildBot
047a5a7abf
update all px4board kconfig
2023-11-17 09:14:46 -05:00
Matthias Grob
ead16d0e6c
Commander: add parameter to disallow disarming in manual thrust modes
2023-11-17 09:53:56 +01:00
Matthias Grob
78987f6016
ManualControl: introduce stick gesture for killing
2023-11-17 09:53:56 +01:00
bresch
2110eae25d
atune: initialize filter if not already initialized
2023-11-16 23:14:17 -05:00
Daniel Agar
62027b0965
ekf2: remove EKF2_HGT_MODE VerifyParams() transition helpers
...
- in theory these are helpful to ensure EKF2_HGT_MODE configuration is
consistent with the relevant aid source (GPS, baro, etc), but it can
be a little awkward with users having to fight manual parameter
changes in the right order
2023-11-16 15:02:43 -05:00
Daniel Agar
3b2d766573
ekf2: purge remaining EKF2_AID_MASK references
2023-11-16 09:36:58 +01:00
David Sidrane
e90e8ae0ea
Intial Commit PX4 FMUV6RT
...
nxp/rt117x:Fix Pin IRQ
nxp/rt117x:Support 4 i2c busses
nxp/rt117x:Add px4io_serial support
nxp/imxrt:Expand ToneAlarmInterface to GPT 3 & 4
px4_fmu-6xrt:Using imxrt_flexspi_nor_octal
px4_fmu-6xrt:Entry is start
px4_fmu-6xrt:Add Proper MTD
px4_fmu-6xrt:Set I2C Buses
px4_fmu-6xrt:Proper SPI usage
px4_fmu-6xrt:Adjust memory Map to use the 2 MB
px4_fmu-6xrt:Bring in ROMAPI
px4_fmu-6xrt:Push FLASH to 200Mhz
px4_fmu-6xrt:Use BOARD_I2C_LATEINIT
px4_fmu-6xrt:Clock Config remove unused devices
px4_fmu-6xrt:Remove EVK SDRAM IO
px4_fmu-6xrt:Enable SE550 using HW_VER_REV_DRIVE
px4_fmu-6xrt:Use MTD to mount FRAM on Flex SPI
px4_fmu-6xrt:Manifest
px4_fmu-6xrt:Restore board_peripheral_reset
px4_fmu-6xrt:Set I2C buss Interna/Externa and startup
nxp/rt117x:Set 6 I2C busses
px4_fmu-6xrt:Correct Clock Sources and Freqency Settings
px4_fmu-6xrt:Correct ADC Settings
px4_fmu-6xrt:Tune FlexSPI config and sync header with debug variant Linker prep for rodata ahb partitioning
px4_fmu-6xrt:FlexSPI prefetch partition split .text and .rodata
Current config
1KB Prefetch .rodata
3KB Prefetch .text
px4_fmu-6xrt:Run imxrt_flash_setup_prefetch_partition from ram with barriers
px4_fmu-6xrt:Use All OCTL setting from FLASH g_flash_config SANS lookupTable
px4_fmu-6xrt:Octal spi boot/debug problem bypass
px4_fmu-6xrt:Add PWM test
px4_fmu-6xrt:Fix clockconfig and USB vbus sense
px4_fmu-6xrt: Use TCM
px4_fmu-6xrt: Ethernet bringup
imxrt: use unique_id register for board_identity
px4_fmu-6xrt: update ITCM mapping, todo proper trap on pc hitting 0x0
px4_fmu-6xrt:correct rotation icm42688p onboard imu
rt117x: Add SSARC HP RAM driver for memory dumps
px4_fmu-6xrt: Enable hardfault_log
px4_fmu-6xrt: Enable DMA pool
px4_fmu-6xrt: fix uart mapping
px4_fmu-6xrt: enable SocketCAN & DroneCAN
px4_fmu-6xrt:Command line history TAB completion
px4_fmu-6xrt:Fix pinning duplication
px4_fmu-6xrt:Support conditional PHY address based on selected PHY
px4_fmu-6xrt:Add Pull Downs on CTS, use GPIO for RTS
px4_fmu-6xrt:Set TelemN TX Slew rate and Drive Strenth to max
px4_fmu-6xrt::Set TELEM Buffers add HW HS
px4_fmu-6xrt:Turn off DMA poll
px4_fmu-6xrt:RC_SERIAL_PORT needed to be px4io to disable rc_input using TELEM2!
px4_fmu-6xrt: bootloader (#22228 )
* imxrt:Add bootloader support
* bootloader:imxrt clear BOOT_RTC_SIGNATURE
* px4_fmu-6xrt:Add bootloader
* px4_fmu-6xrt:bootloader removed ADC
* px4_fmu-6xrt:bootloader base bootloader script off of script.ld
* px4_fmu-6xrt:add _bootdelay_signature & change entry from 0x30000000 to 0x30040000
* px4_fmu-6xrt:hw_config Bootloader has to have 12 bytes
px4_fmu-6xrt:Default to use LAN8742A PHY
px4_fmu-v6xrt:VID Set to Drone Code
board_reset:Enable ability to write RTC GP regs
px4_fmu-6xrt:Fix CMP0079 error
rt117x:micro_hal Add a PX4_MAKE_GPIO_PULLED_INPUT
px4_fmu-v6xrt:Set CTS High before VDD_5V applided to ports to avoid radios fro entering bootloaders
fmu-v6xrt: increase 5v down time
fmu-v6xrt:Ready for Release DEBUGASSERTS off and Console 57600,
Bootloder updated.
imxrt:board_hw_rev_ver Rework for 3.893V Ref
px4_fmu-v6xrt:Move ADC to Port3
2023-11-15 11:10:47 -05:00
David Sidrane
e3f8d53718
nxp:imxrt 1060/1170 bifurcation and restructuring
...
imxrt:117x Reuse all but io_timer_hw_description and imxrt_pinirq.c
imxrt:ADC & LPADC bifurcation and restructuring
imxrt:hrt support Up to GPT6
nxp/rt117x:adc Corrected
2023-11-15 11:10:47 -05:00
Peter van der Perk
d2915743cb
px4 hardfault_log: Add SSARC dump backend support
2023-11-15 11:10:47 -05:00
David Sidrane
68354dc760
px4 ADC Use device reference_v and dn_fullcount
2023-11-15 11:10:47 -05:00
David Sidrane
f0bc7d287d
px4 allow up to 6 I2C busses
2023-11-15 11:10:47 -05:00
David Sidrane
51cda9edb0
px4 mtd:Support FlexSPI attached Devices
2023-11-15 11:10:47 -05:00
David Sidrane
35b9205b25
px4_platform_common: Break out I2C init if BOARD_I2C_LATEINIT is used
2023-11-15 11:10:47 -05:00
David Sidrane
fa1a858537
px4/nxp/imxrt:Support VER & REV from EEPROM
2023-11-15 11:10:47 -05:00
David Sidrane
222b95233a
NuttX with NXP TX DMA Sem fix & IOMUXC GPR fix
2023-11-15 11:10:47 -05:00
Beat Küng
0d53bd945e
Jenkinsfile: add 'git fetch' to failsafe target
...
It was failing occationally with:
14:12:43 CMake Error at CMakeLists.txt:129 (list):
14:12:43 list index: 1 out of range (-1, 0)
14:12:43
14:12:43
14:12:43 CMake Error at CMakeLists.txt:131 (list):
14:12:43 list index: 2 out of range (-1, 0)
14:12:43
14:12:43
14:12:43 CMake Error at CMakeLists.txt:132 (string):
14:12:43 string sub-command REPLACE requires at least four arguments.
14:12:43
14:12:43
14:12:43 -- PX4 version: f513c40d62 (f513c40d62..NOTFOUND)
2023-11-15 14:23:06 +01:00
Beat Küng
f513c40d62
ucdr/msg.h.em: static inline the (de-)serialization methods
...
to avoid multiple definitions when using them from different places.
2023-11-15 13:18:58 +01:00
Beat Küng
2f91102808
mixer_module: rename Offboard_Actuator_Set to Peripheral_via_Actuator_Set
...
Offboard is a bit too specifically tied to Offboard mode.
2023-11-15 13:18:58 +01:00
Yannick Fuhrer
d609e41413
flightmodes: flag advanced modes accordingly
2023-11-15 13:18:58 +01:00
Beat Küng
d12a7dd11d
uxrce_dds_client: run session until we do not get data anymore
...
Otherwise there can be significant delay for received data
2023-11-15 13:18:58 +01:00
Beat Küng
36fbd18bdc
px4/fmu-v5x: set mavlink dialect to development for now
...
So dynamic modes are available
2023-11-15 13:18:58 +01:00
Beat Küng
fb7e973dfd
commander: allow external modes to be assigned to RC
...
Stores a hash of the mode name so that the same mode is always assigned
to the same index independent from registration order.
2023-11-15 13:18:58 +01:00
Beat Küng
22acb08406
uorb: add message format compatibility check
...
This can be used by DDS/ROS 2 to check for matching message definitions.
2023-11-15 13:18:58 +01:00
Matthias Grob
0dcecf0666
FlightModeManager: avoid internal flight task running concurrently with external mode
2023-11-15 13:18:58 +01:00
Beat Küng
a72f2517ea
px4events: handle events parsing from ROS2 code
2023-11-15 13:18:58 +01:00
Beat Küng
bb900264e0
commander+mavlink: implement MAVLink standard modes
2023-11-15 13:18:58 +01:00
Beat Küng
b46e1d744b
commander: add config overrides
2023-11-15 13:18:58 +01:00
Beat Küng
889b6a1a78
commander: add VEHICLE_CMD_SET_NAV_STATE internal command
2023-11-15 13:18:58 +01:00
Beat Küng
fbbccf6997
commander: implement external modes and mode executors
2023-11-15 13:18:58 +01:00
Beniamino Pozzan
58d2badf9f
[uxrce_dds_client] add services (repliers) and basic VehicleCommand service
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2023-11-14 11:29:17 -05:00
Beniamino Pozzan
4555c4e5cc
Add srv/ folder and srv/VehicleCommand.srv
...
update CI (github and Jenkins) to push changes of srv/
to PX4/px4_msgs repo
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2023-11-14 11:29:17 -05:00
Mathieu Bresciani
efa12ad224
EKF2 simplify covariance propagation ( #22344 )
...
* ekf2-derivation: optimize before generating cpp code
* update EKF2 change indicator
Slight changes due to simplifications done in the covariance prediction
---------
Co-authored-by: bresch <[brescianimathieu@gmail.com ](mailto:brescianimathieu@gmail.com )>
2023-11-14 11:22:16 -05:00
Peter van der Perk
96e05481b4
ucans32k1: SPLLDIV2 set to 40Mhz
2023-11-14 06:26:00 -05:00
Hamish Willee
50d9d05c10
Escape param metadata to fix broken tags
2023-11-14 09:48:03 +01:00
bresch
00568985c0
yaw_est: use error-state covariance prediction
...
Convergence improvements in high yaw rate conditions
2023-11-13 11:37:27 -05:00
Konrad
32127ca789
loiter: set loiter position to current position setpoint, if it is a loiter item
2023-11-13 12:43:58 +01:00
Michał Barciś
6800a448b0
ThrowLaunch: check ThrowMode parameter to skip takoff in MulticopterPositionControl
...
Signed-off-by: Michał Barciś <mbarcis@mbarcis.net >
2023-11-13 11:57:19 +01:00
Matthias Grob
9d455d5f1f
ThrowLaunch: move into separate class
2023-11-13 11:57:19 +01:00
Michał Barciś
1a48f311ea
ThrowLaunch changes after PR
...
Signed-off-by: Michał Barciś <mbarcis@mbarcis.net >
2023-11-13 11:57:19 +01:00
Michał Barciś
c2b4f051f9
Added Throw Launch feature
...
More details in the PR: https://github.com/PX4/PX4-Autopilot/pull/21170
Signed-off-by: Michał Barciś <mbarcis@mbarcis.net >
2023-11-13 11:57:19 +01:00
Julian Oes
84577ce2c2
battery: skip charge estimation if N cells is 0
...
This triggers the undefined behaviour fuzzer, so let's try to fix it.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-11-13 09:55:39 +01:00
Konrad
44d1003f8e
rtl: Only use approaches for vtols in fixed wing mode
2023-11-12 15:41:28 +01:00
murata
f29c5742be
mavlink: Capitalize the first letter of Landing
2023-11-12 15:33:51 +01:00
Damien SIX
833cd79e67
fix: remove depreciated parameter
2023-11-12 15:33:33 +01:00
Daniel Agar
1592aedc11
gitmodules add heatshrink branch
2023-11-10 17:45:47 -05:00
Julian Oes
10a2e7e44f
SITL: fix parse error on start
...
This fixes the error:
etc/init.d-posix/rcS: 39: [: Illegal number:
Signed-off-by: Julian Oes <julian@oes.ch >
2023-11-11 11:26:20 +13:00
Matthias Grob
4485c7aa11
PositionSmoothing: fix corner altitude bug
...
During a round corner the L1 distance calculation
was only done in 2D and the z-axis coordinate
was directly coming from the next waypoint.
This lead to an unpredictable altitude profile
between two waypoints. Sometimes almost all
altitude difference was already covered during
the turn instead of going diagonally.
2023-11-10 10:02:20 +01:00
Julian Oes
19b681ca1f
Remove SYS_USE_IO param
...
The param is not really required anymore with the actuator
configuration. Also, when it is set to 0, RC doesn't work for some
boards which would be nice to avoid.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-11-10 12:17:23 +13:00
Niklas Hauser
1463f9dec8
stm32h7: Prevent UART from waiting on TXDMA semaphore
...
The UART7 TXDMA services TELEM1 with flow control. If CTS is high, the
transmitting thread will wait on a semaphore, which may block other
threads from acquiring necessary resources to make progress, for
example, preventing MAVLINK instances from transmitting.
This change in NuttX makes the TXDMA acquire the semaphore in a
non-blocking way, preventing this issue.
2023-11-09 07:53:48 -05:00
Frederik Markus
fc5b868138
fixing the turning direction of the Cessna Propeller ( #22276 )
...
Signed-off-by: frederik <frederik@auterion.com >
Co-authored-by: frederik <frederik@auterion.com >
2023-11-09 13:08:54 +01:00
Silvan Fuhrer
5efcde7412
mavsdk_tests: add two new tests for VTOLs
...
- add functionality to specify world name for simulation in case name
- add test for triggering an airspeed invalidation in case of pitot blockage
- add test for high wind (ramped up wind over short period) to NOT invalidate airspeed in this case
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-09 09:42:43 +01:00
Silvan Fuhrer
29714a0fba
AirspeedValidator: make wind estimate more dynamic
...
Increase wind process noise default (ASPD_WIND_NSD) and gate
(ASPD_TAS_GATE) to be able to catch rapid wind increases with
the internal wind estimator of the airspeed validator.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-09 09:42:43 +01:00
Silvan Fuhrer
041e5069cb
ROMFS: update tuning of SITL standard VTOL
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-09 09:42:43 +01:00
Silvan Fuhrer
0d36d54fbe
SimulatorMavlink: add airspeed icing failure (ramp down scale)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-09 09:42:43 +01:00
Silvan Fuhrer
a4b04c3982
SimulatorMavlink: rename _airspeed_blocked to _airspeed_disconnected
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-09 09:42:43 +01:00
Silvan Fuhrer
cf03b99ab4
AirspeedValidator: inrease default of ASPD_BETA_NOISE
...
Trust the beta innovations more compated to the TAS innovations.
That should help with detecting real airspeed failures even with
a dynamic wind estimate (as long as vehicle doesn't fly straight)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-09 09:42:43 +01:00
Silvan Fuhrer
0a271b1982
EKF2: increase default of EKF2_WIND_NSD and EKF2_TAS_GATE
...
Increasing the wind process noise results in a more dynamic
wind estimation, which is capable of catching fast-varying
winds. As wind is used in the lateral guidance it's important
that we don't filter it too much.
Furher the gate of the airspeed fusion is increased, to
reduce the likelihood of airspeed fusion stopping due to
dynamic wind conditions. The airspeed is validated in
the airspeed validator (EKF consumes the validated one).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-09 09:42:43 +01:00
Silvan Fuhrer
ec20f92558
EKF2: sideslip_fusion: remove construced airspeed magnitude check to fuse beta
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-09 09:42:43 +01:00
Konrad
72c6db6b23
vtol_rtl_test: explicitly disable RTL_FORCE_APPROACH for RTL direct Home testcase
2023-11-08 17:48:34 +01:00
Claudio Micheli
457d261278
Add mavlink support for GIMBAL_DEVICE_INFORMATION
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2023-11-08 17:01:32 +01:00
Beat Küng
1ad5a9de08
uorb: compress format definitions
...
Reduces flash usage by ~16KB.
- compress formats at build-time into a single string with all formats
- then at runtime iteratively decompress using
https://github.com/atomicobject/heatshrink
2023-11-08 00:31:26 -05:00
Frederik Markus
142e44c418
Tools/simulation/gz/models/advanced_plane: updated paths
...
Moves paths for advanced plane files from personal directory (frede791) to PX4 directory on fuel.
Signed-off-by: frederik <frederik@auterion.com >
2023-11-07 17:39:26 -05:00
bresch
3acc29410a
failsafe: disarm if battery failure is detected during spoolup
2023-11-07 17:38:06 -05:00
robbie-sps
55fd0bde85
nuttx: fix <new>
2023-11-07 17:36:59 -05:00
Daniel Agar
77baa7c24a
ekf2: EKFGSF yaw estimator always run
...
- if not in air the accel noise is doubled
- if landed don't init unless GPS velocity is non-negligible
- when inactive continue seeding with EKF gyro bias
- reset yaw estimator if GPS fusion is stopped
2023-11-07 15:48:49 -05:00
Silvan Fuhrer
a47b684fd7
tecs_status.msg: directly add underspeed ratio to msg instead of boolean
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-07 12:18:06 -05:00
Silvan Fuhrer
8741a9784d
TECS: remove TECS_MODE enum and instead add descriptive boolean flag to tecs_status
...
New flag: underspeed_mode_enabled.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-07 12:18:06 -05:00
Silvan Fuhrer
a6fcf7b48c
TECS: remove airspeed adaption in case of underspeed
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-07 12:18:06 -05:00
alexklimaj
4dda99c80b
mc_pos_control: MPC_ALT_MODE make terrain hold default
2023-11-07 12:00:14 -05:00
alexklimaj
de0910c767
flight mode manager: fix terrain hold
2023-11-07 12:00:14 -05:00
Sverre Velten Rothmund
94d4dc85f8
ekf2: Make stuck detector optional
2023-11-07 11:57:19 +01:00
Konrad
3d16383bb4
mavlink_tests: fix include directory to point to chosen mavlink dialect
2023-11-07 11:35:23 +01:00
Matthias Grob
c53e0c4799
cpuResourceCheck: use hysteresis class
2023-11-07 11:19:28 +01:00
Silvan Fuhrer
fd009c8be3
CPU resource check: use class member and fix param description
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-07 11:19:28 +01:00
Silvan Fuhrer
c054bc2370
Commander: cpuResourcesCheck: add 2 seconds hysteresis to trigger failure
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-07 11:19:28 +01:00
Matthias Grob
ae888b73d0
battery: report over voltage
2023-11-06 18:17:28 +01:00
Silvan Fuhrer
54d26e084a
Commander: windCheck: add COM_WIND_MAX_ACT param to set high wind failsafe action ( #21373 )
...
Has options *None where the check is disabled, and *Warning, where only a warning is
published (which replaces the high wind warning from the COM_WIND_WARN limit).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-11-06 11:58:21 +01:00
Ramon Roche
a29b07fa73
Security Vulnerability Reporting
2023-11-06 09:32:16 +01:00
Frederik Markus
39fbfd8e0c
Port of Advanced Plane from Gazebo Classic to Gazebo ( #22167 )
...
* started tiltrotor port
* added advanced plane and changed some parameters on the tiltrotor
* added advanced plane
* removed tiltrotor for clean push
* removed standard vtol old model file
* removing the standard vtol changes from this PR, since it is not part of the advanced plane
* removed advanced plane meshes as they are already found in the rc_cessna
* updating and improving airframe parameters
* updated mesh paths
Signed-off-by: frederik <frederik@auterion.com >
---------
Signed-off-by: frederik <frederik@auterion.com >
Co-authored-by: frederik <frederik@auterion.com >
2023-11-06 09:31:04 +01:00
Christian Rauch
22ee90b7d7
add include path for crc32.h on "posix" and "ros2" platform
2023-11-03 11:50:56 -04:00
Christian Rauch
7394a20a58
ignore px4_log on "ros2" platform
2023-11-03 11:50:56 -04:00
alessandro
428e7d7754
mavlink: remove double assignment of battery field
2023-11-03 11:49:25 -04:00
Beat Küng
fd0a311f3c
Makefile: exclude submodules for 'make validate_module_configs'
2023-11-03 11:09:57 -04:00
alexklimaj
51e1a80556
driver: cleanup imu folder
2023-11-03 10:50:27 -04:00
bresch
a989e5338c
ekf2: reset globlal position uncertainty when GNSS is fused
...
There is no reason to keep an uncertainty on the origin as it is then
already contained in the local position estimate when GNSS data is fused
in the filter.
2023-11-02 13:11:40 -04:00
Frederik Markus
d6dbf38a1b
add windy default world ( #22273 )
...
* add windy default world
* Rename windy_default.sdf to windy.sdf
* rename windy.sdf world
---------
Co-authored-by: frederik <frederik@auterion.com >
2023-11-01 09:35:37 +01:00
Konrad
1089079a32
Figure_of_eight: Make configuration dependent on defined mavlink_message_id.
2023-10-31 15:57:59 -04:00
Konrad
e3473a0f90
mavsdk_tests: Add integration tests for figure of 8
2023-10-31 15:57:59 -04:00
Konrad
8edd7ce2c1
kconfig: Add option to enable figure of eight support
2023-10-31 15:57:59 -04:00
Konrad
e5e66370e7
FixedwingPositionControl: Add support for figure 8 loitering.
...
The command is sent by a dedicated mavlink command and forwarded to the fixed wing position controller.
The pattern is defined by the radius of the major axis, the radius of the minor axis and the orientation. The pattern is then defined by:
The upper part of the pattern consist of a clockwise circle with radius defined by the minor axis. The center of the circle is defined by the major axis minus the minor axis away from the pattern center.
The lower part of the pattern consist of a counter-clockwise circle with the same definitions as above.
In between, the circles are connected with straight lines in a cross configuration. The lines are always tangetial to the circles.
The orientation rotates the major axis around the NED down axis.
The loitering logic is defined inside its own class used by the fixed wing position control module. It defines which segment (one of the circles or lines) is active and uses the path controller (npfg or l1-control) to determine the desired roll angle.
A feedback mavlink message is send with the executed pattern parameters.
2023-10-31 15:57:59 -04:00
Mathieu Bresciani
0d6c2c8ce9
EKF2: Error-State Kalman Filter ( #22262 )
...
* ekf derivation: change to error state formulation
* ekf2: update auto-generated code for error-state
* ekf2: adjust ekf2 code for error state formulation
* ekf2_tests: adjust unit tests for error-state EKF
* update change indicator for error-state EKF
* ekf2_derivation: allow disabling mag and wind states
---------
Co-authored-by: bresch <[brescianimathieu@gmail.com ](mailto:brescianimathieu@gmail.com )>
2023-10-31 10:02:18 -04:00
Daniel Agar
d7f388e590
boards: ARK CAN node NuttX flash savings
2023-10-31 09:59:15 -04:00
Peter van der Perk
fee6d250f3
zenoh: fix sitl ci compile warning
2023-10-31 09:55:51 -04:00
Konrad
2e850371c5
test_vtol_rtl: increase time to disarm to make tailsitter CI pass
2023-10-31 14:16:02 +01:00
Konrad
e4e2e6374a
fmu-v6x: enable vtol takeoff again
2023-10-31 14:16:02 +01:00
Konrad
654e885003
mavsdk: Add integration tests for RTL with approaches
2023-10-31 14:16:02 +01:00
Konrad
24f59dd465
autopilot_tester: Add mavlink passthrough to end custom commands
2023-10-31 14:16:02 +01:00
Konrad
a4d05085a7
Navigator: Don't switch to RTL if already in landing phase of mission.
2023-10-31 14:16:02 +01:00
Konrad
c1214c847f
rtl+mission: remove do_need_move_to_land and handleLanding duplicated code to reduce flash
2023-10-31 14:16:02 +01:00
Konrad
698c57c5f8
[RTL] Add VTOL land approach for home with designated loiter points in the RTL mode.
2023-10-31 14:16:02 +01:00
Konrad
e2cbf5be94
[RTL] Update MAVLINK Mission logic to send optional loiter points to mission rally points.
2023-10-31 14:16:02 +01:00
Frederik Markus
26fd4c852c
update default omnicopter pose ( #22218 )
...
Co-authored-by: frederik <frederik@auterion.com >
2023-10-30 14:38:48 +01:00
alexklimaj
794d0d177b
boards: ARKV6X Rev 3 IIM42653 disable CLKIN
2023-10-27 16:29:01 -04:00
alexklimaj
6a849163db
drivers iim42652 and iim42653 disable AFSR
2023-10-27 16:29:01 -04:00
alexklimaj
d882ae05c1
make format fix zenoh
2023-10-27 16:29:01 -04:00
alexklimaj
db765e6cbd
drivers: icm42688p fix AFSR register
2023-10-27 16:29:01 -04:00
alexklimaj
c6287a8a89
boards: arkv6x fix wrong pwm output values
2023-10-27 16:24:41 -04:00
David Sidrane
d3d5b582fc
NuttX with [BACKPORT] LPi2C timeout of 0 fixed
2023-10-27 03:57:35 -04:00
David Sidrane
53655b1e3c
nxp_ucans32k146:Add rgbled_ncp5623b
2023-10-27 03:57:35 -04:00
David Sidrane
b8b150b213
UavcanNode:Fix Breakage from 3d61ab SocketCAN is FD based
...
SocketCAN uses FDs. FD's are per task/thread
Run() is not on the same thread as init().
2023-10-27 03:57:35 -04:00
David Sidrane
01e9418310
s32k14x:canbootloader board_identity Return the same word ordering as s32k1xx/version/board_identity
2023-10-27 03:57:35 -04:00
David Sidrane
a0491bfb9a
nxp_ucans32k146:Provide board_app_shared_read
2023-10-27 03:57:35 -04:00
David Sidrane
1a2a02b7ae
UavcanNode:Support optional board_app_shared_read
2023-10-27 03:57:35 -04:00
David Sidrane
479c1524b1
boot_app_shared:Add optional board_app_shared_read
2023-10-27 03:57:35 -04:00
David Sidrane
85aeedd986
s32k14x:Make use of boot_app_shared shared_[un]lock
2023-10-27 03:57:35 -04:00
David Sidrane
285e0ca519
canbootloader boot_app_shared:Add optional shared_[un]lock
2023-10-27 03:57:35 -04:00
David Sidrane
12bde36dbe
s32k14x canbootloader:Change autobaud to ACK and range high to low
2023-10-27 03:57:35 -04:00
Matthias Grob
12b291b82f
px4_log: comment typo alway{s}
2023-10-25 16:43:06 -04:00
Matthias Grob
2ef807eaa0
sdcardCheck: shorten hardfault log message
...
To make sure it's showing correctly in the output.
2023-10-25 16:43:06 -04:00
bresch
eed2870fd8
ekf2: fix optical_flow_vel publication
...
We should otherwise call this publication before the aid_src publisher
that sets the timestamp. Having it separate avoids this ordering
constraint.
2023-10-25 09:59:56 -05:00
SalimTerryLi
f68f88b97c
driver/pca9685_pwm_output: bugfixs & support outputting in duty-cycle mode ( #21528 )
...
- make it work again
- also supports Kconfig based clk source selection
- adapt to recent changes of default PWM limits
- support outputting in duty-cycle mode
- i2c addr use use hex representation
- revert back to common min/max value & move duty-cycle mode to advanced
2023-10-21 12:39:45 -05:00
Niklas Hauser
63b5c790b7
iotimer: Enable timer when configuring input capture
...
We provide a latency measurement in the input capture handler.
However, since the timer was not enabled, none of the counter were
running therefore all counters were zero, thus latency was also zero.
Since the HRT is used to provide a timestamp, the lack of the running
timer was never noticed. After enabling the timer, latency now correctly
shows 9-10 counts.
2023-10-21 12:28:56 -05:00
Roman Bapst
ecb78ca207
new library for atmosphere calculations
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-10-21 12:25:45 -05:00
Julian Oes
f120ebcdc0
mavlink: properly set mission_type
...
This was defaulted to 0 before which messed with transmitting geofence
and rally items.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-10-19 21:20:14 -05:00
Engin Oksuz
3ad2c641da
README.md spelling mistake corrected
2023-10-19 10:01:47 -04:00
Titus
e31e170438
Tools/setup/ubuntu.sh: fix GCC_VER_STR failure handling ( #22007 )
...
* Fixed an issue where if the GCC_VER_STR would not contain the right NUTTX_GCC_VERSION, the grep -c command would throw a failure, silently exiting the entire ubuntu.sh setup script
2023-10-18 21:01:07 -04:00
Robbie Drage
68bc90bab5
uorb: fix Subscription::ChangeInstance() bug
2023-10-18 20:56:25 -04:00
David Sidrane
96ee73f295
px4_fmu-v6x:Rev 6 Sensors omit starting icm42688p, icm42670p, icm20649, icm20602
2023-10-18 20:55:46 -04:00
Daniel Agar
71b9e31005
drivers/osd/msp_osd: use proper EKF status flags instead of solution status bits
2023-10-18 20:55:12 -04:00
Daniel Agar
27f9b1b65a
ekf2: move zero gyro update to aid source class
2023-10-18 20:23:56 -04:00
Daniel Agar
e79737a38d
ekf2: create simple estimator aid source base class and extract zero velocity update
2023-10-18 20:23:56 -04:00
Frederik Markus
7ac50a20b0
Tools/simulation/gz: initial AVL automation tool ( #22204 )
...
This is a tool that can be used to generate advanced lift drag plugin parameters automatically using AVL. Rather than having to create .avl files yourself, pass them to AVL, read out the correct parameters and place them in the Advanced Lift Drag plugin, this tool will do all that for you and generate a complete advanced_lift_drag plugin sdf containing all necessary parameters for any vehicle. All that is required is to specify what the physical geometries of the vehicle are. The scripts are adaptable enough to support a self-selected number of control surfaces.
---------
Co-authored-by: frederik <frederik@auterion.com >
2023-10-18 15:33:50 -04:00
Peter van der Perk
019d232911
Add Zenoh pico support
2023-10-18 15:30:36 -04:00
Peter van der Perk
5137ca1ccc
cmake: fix kconfig cache when setting to 0 or n
2023-10-18 15:30:36 -04:00
Daniel Agar
408c30de13
ekf2: delete redundant aid src status getters
2023-10-18 15:21:51 -04:00
Daniel Agar
bdaf0acfca
ekf2: fully disable yaw estimator EKFGSF_yaw with CONFIG_EKF2_GNSS ( #22233 )
2023-10-18 13:30:17 -04:00
Julian Oes
fefdad83bf
mavlink: fix MAVLink message forwarding
...
This switches from the horribly intertwined ringbuffer implementation to
the new VariableLengthRingbuffer implementation.
By ditching the previous implementation, we fix MAVLink message
forwarding, which didn't work reliably. The reason it didn't work is
that multiple mavlink messages could be added but only one of them was
sent out because the buffer didn't keep track of the messages properly
and only read the first one.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-10-18 12:26:47 -04:00
Julian Oes
da34e5e2c8
lib: add variable length ringbuffer
...
This adds a reusable class for a FIFO ringbuffer that accepts variable
length packets. It is using the Ringbuffer class internally.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-10-18 12:26:47 -04:00
Julian Oes
7d0a8aa638
lib: add FIFO ringbuffer class
...
This adds a reusable class for a simple FIFO ringbuffer.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-10-18 12:26:47 -04:00
Daniel Agar
3d238b0275
ekf2: add kconfig to disable gravity fusion ( #22231 )
2023-10-18 10:50:51 -04:00
Daniel Agar
6eae9fb371
ekf2: fix barometer kconfig
2023-10-18 09:43:27 -04:00
KonradRudin
988705831d
Check mission climb always on current mission item ( #22230 )
...
* mission_base: reset inactivation index when user set a new mission index, or mission is reset.
* mission_base: check Climb required always on current mission item
2023-10-18 07:59:20 +02:00
Jukka Laitinen
e8a0a0772e
Disable I2C interface in ICM42688P sensor when it is initialized
...
This prevents accidental misconfiguration via I2C if there are
multiple SPI devices on the same bus. The device may hear it's i2c address
and write some register, while there is data transfer ongoing with another
device.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-10-17 11:07:21 -04:00
Ville Juven
d83b9f3c38
WorkItemSingleShot: Disable priority inheritance for signaling semaphore
...
WorkItemSingleShot::_sem is a signaling semaphore, disable PI for it.
Set CONFIG_DEBUG_ASSERTIONS=y and the kernel panics due to the semaphore
having no holder, disabling PI fixes this.
2023-10-17 10:08:25 -04:00
Ville Juven
5578b629a3
blockingqueue.hpp: Disable priority inheritance for signaling semaphores
...
The head/tail semaphores are not used as lock but rather as resource
counters and thus relate more as signaling semaphores. Disable PI for
them.
I run my code with CONFIG_DEBUG_ASSERTIONS=y and the kernel panics due
to the semaphore having no holder, disabling PI fixes this.
2023-10-17 10:08:25 -04:00
Niklas Hauser
f45b960eee
[mavlink] Use separate mutex for event buffer
...
This prevents the mavlink transmit loop from waiting on the module mutex
thus not stopping transmissions when the mutex is already taken.
This can happen when calling `mavlink status` from the mavlink shell,
where `Mavlink::get_status_all_instances()` takes the mutex and then
prints the status via pipes to the mavlink transmit buffer.
If that pipe cannot be emptied a deadlock happens.
Since the MavlinkReceiver thread also waits on the module mutex, both
reception and transmission of Mavlink packets are then prevented thus
disabling communications entirely.
2023-10-17 10:05:46 -04:00
Daniel Agar
48e09a4dea
ekf2: move predict covariance IMU inhibit check to function
2023-10-17 09:58:10 -04:00
Daniel Agar
0b44852094
ekf2: move accel bias check out of fixCovarianceErrors
2023-10-17 09:58:10 -04:00
bresch
1c9373e83b
update baro static pressure compensation tuning script
...
Field name changed in vehicle_gps_position
2023-10-16 09:45:28 -04:00
Andrei Korigodskii
eeb9c5256a
boards: add support for Matek H743 Slim V3
...
IMUs were replaced in V3 with 2x ICM42688P. This configuration should
work with all revisions of Matek F743 Slim board, including V1, V1.5
and interim variant of V3 (ICM42688P + ICM42605).
Signed-off-by: Andrei Korigodskii <akorigod@gmail.com >
2023-10-13 20:59:59 -04:00
Daniel Agar
9676af2fe6
ekf2: predict covariance avoid explicit temporary nextP
2023-10-13 20:57:33 -04:00
Daniel Honies
476b5d5594
fix macos compile issues ( #22173 )
...
* fix macos compile issues
* remove unused variable
2023-10-12 09:13:19 +13:00
Daniel Agar
d2b3e7fe16
ekf2: new kconfig to enable/disable GNSS (enabled by default)
2023-10-11 14:02:34 -04:00
jmackay2
2d78383296
Add the capability to use Gazebo Harmonic if it is installed
2023-10-11 10:21:09 -04:00
vlad-serbanica
af84c2ca7f
mavlink_main: increase raw gps latency
2023-10-11 09:53:59 -04:00
bresch
ec15fe3d90
ekf2-derivation: fix terrain and yaw estimator derivations
...
fix compatibility issues with symforce-0.9.0
2023-10-11 09:49:17 -04:00
bresch
cf1c6a8b84
ekf2-derivation: remove old wind covariance derivation
2023-10-11 09:49:17 -04:00
RomanBapst
176c9a71e6
addressed review comments
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-10-11 12:05:24 +03:00
RomanBapst
b50a23beb0
vtol: make sure transition airpseed is above weight compensated minimum airspeed
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-10-11 12:05:24 +03:00
ZeroOne
6dfede0806
fix lightware_laser_serial: prevent potential heap buffer overflow ( #22202 )
...
In the lightware_parser function, LW_PARSE_STATE2_GOT_DIGIT0 state can be repeated unexpectedly without proper parserbuf_index or state checking. This behavior will trigger a heap buffer overflow vulnerability by allowing to write some data. And the writable size is sizeof(unsigned).
2023-10-11 07:01:09 +02:00
Daniel Agar
5352a64042
ekf2: symforce derivation allow optionally disabling mag and wind states
2023-10-10 17:31:11 -04:00
Daniel Agar
b5f3d089c4
ekf2: mag_fusion remove direct state index usage
2023-10-10 09:18:04 -04:00
Daniel Agar
cf4c565e4a
ekf2: mag_fusion.cpp cleanup includes
2023-10-10 09:18:04 -04:00
Daniel Agar
c85840c4dd
ekf2: mag_fusion only set fault status flags if mag_3D updating all states
...
- other parts of the system are blanket checking for any fault status
flag
2023-10-10 09:18:04 -04:00
Daniel Agar
e58ceba4b1
ekf2: mag_fusion consolidate duplicate error handling
2023-10-10 09:18:04 -04:00
Serkan Mazlum
585687b766
generate_dds_topics.py: simplify repeated code ( #22156 )
2023-10-10 08:12:55 +02:00
bresch
5e986f6997
wind_est: correctly include sideslip in initialization model
2023-10-09 21:03:38 -04:00
bresch
fc32820e19
ekf2: initialize wind covariance using symforce
2023-10-09 21:03:38 -04:00
Daniel Agar
28d58a947f
ekf2: cleanup more optional mag (CONFIG_EKF2_MAGNETOMETER)
2023-10-09 10:18:02 -04:00
Daniel Agar
5f87f3a046
ekf2: drag fusion add aid source status topic
2023-10-09 09:26:28 -04:00
Daniel Agar
028733e1c7
ekf2: add kconfig to disable wind estimation (off by default)
2023-10-09 09:22:29 -04:00
Silvan Fuhrer
c41de22a05
batteryCheck: add new battery threshold for arming (COM_ARM_BAT_MIN)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-10-09 07:40:48 +02:00
Silvan Fuhrer
b7f8ee8ee7
batteryCheck: improve user notification for low battery events
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-10-09 07:40:48 +02:00
Hamish Willee
bc19ccdd1f
Update commander_params.c - RC loss is manual control loss
2023-10-09 07:35:06 +02:00
Beniamino Pozzan
83841d1ad1
[gz-bridge] fix GZ timeout for slow starting simulations
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2023-10-07 12:27:52 -04:00
Mathieu Bresciani
05fd8c5976
EKF2: centralized auto-generated state ( #22183 )
...
* ekf2_derivation: use single source of state definition
The state is defined as an ordered dictionary of group elements and
everything else is generated using that state definition
* ekf2: generated state sample add const reference getter
---------
Co-authored-by: bresch <[brescianimathieu@gmail.com ](mailto:brescianimathieu@gmail.com )>
Co-authored-by: Daniel Agar <daniel@agar.ca >
2023-10-06 10:28:21 -04:00
Beat Küng
2e1d5687f9
fix events: use px4_add_library instead of add_library
...
Fixes `make uorb_graphs`
2023-10-06 10:24:23 -04:00
Julian Oes
aa87b2ef4d
cubepilot: fix 4. Orange+ variant
...
There was a missing then, and missing SPI definitions.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-10-06 08:02:03 +13:00
Mathieu Bresciani
d61743412c
ekf2: fix flow gyro bias corrections ( #22145 )
...
* ekf2-flow: fix flow gyro bias compensation
* ekf2-flow: apply flow gyro bias when used
* ekf2: log optical flow gyro bias
* ekf2: optical flow control always use provided flow gyro (with bias applied)
* ekf2-flow: log flow gyro and gyro reference
* ekf2-flow: support senrors with XY flow gyro
---------
Co-authored-by: Daniel Agar <daniel@agar.ca >
Co-authored-by: bresch <[brescianimathieu@gmail.com ](mailto:brescianimathieu@gmail.com )>
2023-10-05 10:51:30 -04:00
Daniel Mesham
e00b35e142
boards: default to custom participant for uXRCE-DDS client on Skynode
2023-10-05 08:03:21 +02:00
Daniel Mesham
f02c5319bc
uxrce_dds_client: add participant configuration parameter
...
Replaces the localhost-only and custom participant CLI flags
2023-10-05 08:03:21 +02:00
Daniel Mesham
45fd4d2fb6
uxrce_dds_client: reformat status output
...
* Align status values.
* Add indicators for the custom participant and localhost-only flags.
2023-10-05 08:03:21 +02:00
Daniel Mesham
0a5ca3bb75
uxrce_dds_client: update parameter descriptions
2023-10-05 08:03:21 +02:00
Beat Küng
d1fcd39a44
fix crsf_rc: prevent potential buffer overflow for unknown packets
...
The length check for unknown packets did not include PACKET_SIZE_TYPE_SIZE
and CRC_SIZE, and hence working_index could overflow CRSF_MAX_PACKET_LEN,
triggering invalid memory access further down in QueueBuffer_PeekBuffer.
Also the working_segment_size was wrong for unknown packets.
Credits for finding this go to @Pwn9uin.
2023-10-05 08:00:22 +02:00
Silvan Fuhrer
cad595cb5c
ROMFS: rcS: check for updated ext_autostart and rename if existing
...
This allows to inject an updated ext_autostart folder with the name
ext_autostart_new, and then PX4 takes care of renaming it to
ext_autostart during bootup.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-10-04 10:17:20 +02:00
Daniel Agar
745709717e
drivers/imu/analog_devices/adis16507: use bad CRC perf count
2023-10-03 18:06:33 -04:00
bresch
10db6b6eda
ekf2: remove sparse vector optimization
...
The sparse vector template requires to know which states are non-zero in
the observation jacobian. This complicates the modularity of the code
when the state vector or the derivation is changed.
The computation cost difference is almost negligible for this size.
2023-10-02 10:12:53 -04:00
Silvan Fuhrer
abfd00aeb9
mission_base: if FW and takeoff do not enter climb before mission start
...
For FW takeoffs we need to keep the course straight towards the first
waypoint, and not climb in loiter patterns first.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-10-02 15:25:46 +02:00
Silvan Fuhrer
169ff6ccb0
ROMFS: advanced_plane config: remove deprecated settings
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-10-02 15:25:46 +02:00
Silvan Fuhrer
563fd8427a
boards: increase init stack size by 100B
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-10-02 09:37:06 +02:00
Konrad
ee5cfbb01c
px4_fmu-v5_stackcheck: Disable OSD driver to save flash
2023-09-29 14:25:03 +02:00
Konrad
2779a00ac8
VTOL TAKEOFF: Add Config to deactivate, and deactivate on all boards except fmu_v5x and sitl.
...
QGC does not support VTOL takeoff and thus this is used to safe flash space.
2023-09-29 14:25:03 +02:00
Konrad
4227e2b7e7
test_vtol_mission: Increase thresholds for tests to pass. Temporarily disable checks tracks fro reverse mission.
...
Current threshhold has no margins of errors with the set acceptance radius. Increase corridor radius by 5m.
Increase time to disarm for tailsitter test to pass.
Rverse mission needs check tracks test disabled since mavsdk does not really work with mission has reverse order.
2023-09-29 14:25:03 +02:00
Konrad
5c021d8fa4
RTL: Keep only the selected RTL type in memory.
2023-09-29 14:25:03 +02:00
Konrad
d4ea106f9e
RTL: When RTL_TYPE is set to 1 make sure to always use a mission landing/safepoint if available and not in RW mode.
2023-09-29 14:25:03 +02:00
RomanBapst
6fca984c3f
test_vtol_mission: Add additional testing for VTOL RTL and reverse mission RTL
...
mavsdk-test: added a vtol mission without a landing at the end (used for reversed RTL)
math_helpers: added function to compute local position from a raw mission item
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-09-29 14:25:03 +02:00
Konrad
9a48d375ce
mavlink-mission: Calculate land_start and land item directly on mission upload.
2023-09-29 14:25:03 +02:00
Konrad
007ed11bbe
Mission+RTL: Refactoring mission and RTL to keep them separate. RTL does all its mission related computation in its own class.
...
Dataman: Add write function to dataman cache.
RTL and mission have a new common base class mission_base. Both inherit from them and mission, RTL mission, and rtl reverse mission inherit from them and implement their desired functionalities. This simplifies the logic in mission as well as make the logic in rtl mission reverse and mission more readable.
Rtl mission reverse now functional again for VTOL flying back the mission and transitioning to MC at the home position.
Dataman cache has new write functionality to write to dataman while updating write item in its cache if necessary.
Dataman cache is now only updated when the respective module is active. Leads to a higher computation time once on activation, but decreases unnecessary cache updates when inactive.
2023-09-29 14:25:03 +02:00
Silvan Fuhrer
1a7e438099
Param translation: remove all param translations up to 1.14 release
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-29 11:07:46 +02:00
Silvan Fuhrer
913a7ea295
FW Position Control: improve/shorten param descriptions
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-29 11:07:46 +02:00
Silvan Fuhrer
8bc3785345
AirspeedSelector: improve/shorten param descriptions
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-29 11:07:46 +02:00
Silvan Fuhrer
700402a031
EKF2: improve/shorten param descriptions
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-29 11:07:46 +02:00
Silvan Fuhrer
f67b3a8a03
VTOL: improve/shorten param descriptions
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-29 11:07:46 +02:00
Silvan Fuhrer
6b09882758
FW attitude/rate controller: shorten/improve param descriptions
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-29 11:07:46 +02:00
Daniel Agar
b817eb0370
ekf2: collect_gps() don't throttle updates until WMM set initially
2023-09-29 09:37:30 +02:00
Daniel Agar
1e594747ab
ekf2: fix WMM NAN checks
...
- if any of the stored WMM is NAN then it should be updated
2023-09-29 09:37:30 +02:00
Silvan Fuhrer
0df5134156
vfr_hud: fix throttle display for FW and show magnitude for 3D thrust ( #22154 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-28 17:15:26 +02:00
Matthias Grob
8ea04b0f8f
ActuatorEffectivenessHelicopterCoaxial: fix copy paste error in saturation logic
2023-09-28 08:55:06 +02:00
Matthias Grob
8a2d2fb1cd
HelicopterCoaxial: only publish unallocated thrust in the saturation case
2023-09-28 08:55:06 +02:00
Matthias Grob
169a0f580d
HelicopterCoaxial: correct constraining for minimum 2 swash plate servos
2023-09-28 08:55:06 +02:00
Matthias Grob
20f2df4410
HelicopterCoaxial: handle yaw saturation
...
This had to be done for the integrators to work at all.
2023-09-28 08:55:06 +02:00
Matthias Grob
cf40d95ef0
HelicopterCoaxial: adjust for coaxial allocation
2023-09-28 08:55:06 +02:00
Matthias Grob
b3b373e074
control_allocator: add coaxial helicopter effectiveness
...
It's now just a copy of the helicopter such that changes get well
visible in the history.
2023-09-28 08:55:06 +02:00
Matthias Grob
b56e7a036c
control_allocator: allow for only 2 swash plate servos
...
This is required to support fixed pitch propeller helicopters that have
no collective but only cyclic pitch with two degrees of freedom and
hence only two servos.
The amount of thrust in the body z axis is then controlled using the
motor speed which makes particularly sense on coaxial helicopters
that need to control yaw with changing motor speeds already.
2023-09-28 08:55:06 +02:00
Matthias Grob
35b32e8cb0
ActuatorEffectivenessHelicopter: spacing
2023-09-28 08:55:06 +02:00
Matthias Grob
2be687a84c
Helicopter: add collective pitch offset to Actuator UI parameters
2023-09-28 08:55:06 +02:00
Matthias Grob
99e2acf89c
ActuatorEffectivenessHelicopter: explicitly handle unsaturated case
...
This became necessary otherwise
the allocation reports saturation all
the time and the rate integrator doesn't work.
2023-09-28 08:53:35 +02:00
henrykotze
3cee941f64
Kconfig subs and controllers for uavcan
...
small changed to revert back to px4::main
Make kconfig more readble
Combine esc and servo controllers under one option
2023-09-28 07:36:36 +02:00
Matthias Grob
a03af59c5c
battery: show unknown cell count
...
Unkown cell count is the default and
should be possible to select again from the drop down.
2023-09-28 07:32:06 +02:00
Niklas Hauser
43d859313b
px4/fmu-v5/6x: Upstream power manager for FMU
...
Detects and configures it correctly for the Auterion INA226-based power
modules.
2023-09-27 10:39:31 -04:00
alexklimaj
23cf0a7317
workqueue: increase hp_default stack
2023-09-26 15:18:31 -04:00
Daniel Agar
14a967e2ca
ekf2: remove aid src status fusion_enabled flag
2023-09-26 10:30:16 -04:00
bresch
99197919d7
ekf2: access state covariance using helper functions
2023-09-26 06:41:04 +02:00
Daniel Agar
619616b9f0
vscode add Makefile extension to recommended and devcontainer.json
2023-09-25 12:26:29 -04:00
Daniel Agar
aa97ef9d50
EKF: covariance remove extra semicolon
2023-09-25 12:26:12 -04:00
Mathieu Bresciani
b3f460f30c
ekf2: update quaternion covariance at yaw reset( #22123 )
...
- Preserve tilt variance while doing a yaw reset
- Yaw variance is now correctly set instead of increased
---------
Co-authored-by: Dominique <dominique.leblanc@donecle.com >
Co-authored-by: bresch <[brescianimathieu@gmail.com ](mailto:brescianimathieu@gmail.com )>
2023-09-25 09:36:42 -04:00
bresch
514e0330e5
ekf2_terrain: handle height reset
2023-09-25 09:34:14 -04:00
Ville Juven
6cb2c176d5
events: Move implementation of events::send() to lib/events
...
Events have a global, system-wide sequence number, which must be handled
atomically, (fetching and incrementing the sequence AND sending the event
to uORB must be atomic). Currently in FLAT mode, only one instance of this
sequence number exists, so it is OK to have it in px4_platform.
However, in PROTECTED mode px4_platform is instantiated both in kernel-
and user spaces, which makes two instances of this sequence number, which
causes problems in the mavlink event handling logic.
When mavlink receives and handles events, it expects that:
- The sequence numbers arrive in order (seq n is followed by n+1 etc)
- It increments by 1
- There is only one instance of the sequence number
In PROTECTED mode this is violated, as the kernel and user sequence
numbers run freely on their own. This patch fixes the issue by moving
the event backend to the kernel and by providing user access to it via
ioctl.
2023-09-25 09:54:11 +02:00
Vincent Poon
fafec397e8
Fix Default Output Protocol - Airframe 4019_x500_v2
...
Remove "param set-default PWM_MAIN_TIM0 -4"
2023-09-25 09:28:47 +02:00
Daniel Agar
61aee73b91
boards: px4_fmu-v5_stackcheck disable common RC to save flash
2023-09-22 11:19:29 -04:00
bresch
db97a38a9d
ekf2 rng kin: allow check to become true during horizontal motion
...
Even if there is some horizontal motion, a passing check should be
accepted as the terrain can be flat. However, the vehicle must not be
moving horizontally to invalidate the consistency as a change in terrain
can make the kinematic check temporarily fail.
2023-09-22 09:02:35 -04:00
David Sidrane
e920bfb188
px4_fmuv6x:Fit Rev6 Sensors
2023-09-21 16:22:44 -04:00
David Sidrane
9151d582ed
px4_fmu-v6:Add Sensor Set Rev 6
2023-09-21 16:22:44 -04:00
Silvan Fuhrer
5590ab3caa
FW Position Controller: handle IDLE waypoints in FW_POSCTRL_MODE_AUTO, also with NAN setpoints ( #22114 )
...
A setpoint of type IDLE can be published by Navigator without a valid position,
and should be handled in the auto function in FW_POSCTRL_MODE_AUTO. If it wouldn't be
handled there the controller would switch to mode FW_POSCTRL_MODE_OTHER, in which case
no attitude setpoint is published and the lower controllers would be stuck with the
last published value (incl. thrust).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-21 17:27:54 +02:00
Silvan Fuhrer
acec07fb25
Update src/modules/mc_att_control/mc_att_control_main.cpp
...
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2023-09-21 17:25:53 +02:00
Matthias Grob
710f977349
mc_att_control: ramp thrust in after spoolup time
2023-09-21 17:25:53 +02:00
Matthias Grob
4ca366c04f
mc_att_control: respect spoolup time in Stabilized mode
2023-09-21 17:25:53 +02:00
Matthias Grob
24111df176
mc_att_control_main: zero minimal thrust when landed
...
but this time compared to
2fbb70d9ca
the minimum thrust is ramping to not produce a thrust jump.
The better long term solution will be to always have airmode but
with the effect limited to a magnitude of MPC_MANTHR_MIN.
2023-09-21 17:25:53 +02:00
Jari Nippula
7239e8473e
microxrce_client to use px4_poll for uorb subs
...
Subscribe to poll uorbs instead of sleeping px4_usleep to
allow more accurate timing.
2023-09-21 08:30:28 -04:00
bresch
9e962f3efa
ekf2: update more hardcoded indexes
2023-09-21 08:27:52 -04:00
bresch
ebf962bf68
ekf2: remove size in name of state vector and matrix types
...
Then the state vector size can be changes without having to update the
name
2023-09-21 08:27:52 -04:00
RomanBapst
4f1682c3c8
UTM_GLOBAL_POSITION: prevent uint16 overflow
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-09-21 08:21:56 -04:00
Matthias Grob
be56f74c1d
mc_acro_params: beginner/tuning friendly defaults
...
high rates and (super) expo are necessary for
- acrobatic flying
- fpv
- racing
but they are not useful for:
- a typical vehicle's rate control tuning
- beginners
The defaults that I set in #8036 were put with the assumption Acro mode
is mainly used on racing drones for acrobatic manouvers but instead
users including me use it most of the time to tune any drone.
When tuning the rates are lowered and expo disabled.
My suggested strategy is to make the beginner friendly rates without
expo which are good for tuning the default and document more clearly
how this can be raised for acrobatic flying in documentation and later
on hopefully also directly in the ground station UI
on an Acro mode specific page.
2023-09-20 17:45:07 -04:00
Matthias Grob
77c2df2e04
mc_acro_params: separate parameter group
2023-09-20 17:45:07 -04:00
Matthias Grob
189fa6831a
mc_acro_params: more readable descriptions
2023-09-20 17:45:07 -04:00
Matthias Grob
df3a0de734
mc_rate_control: move acro parameter to separate file
2023-09-20 17:45:07 -04:00
Igor Mišić
c1dbe177b8
boards: move FRAM emulated sector size to the 32-byte granularity ( #21204 )
2023-09-20 16:50:36 -04:00
Silvan Fuhrer
ec7db4b30d
FW Positon Controller: set references to 0 if not provided by local_position ( #22101 )
...
* FW Positon Controller: set altitude_ref to 0 if not provided by GPS
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* FW Positon Controller: set lat/lon reference to 0 if not provided in local_position
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-20 15:45:32 +02:00
AlexKlimaj
7ff00db9c5
Update AFBR to 1.4.4. Remove changing measurement modes. Add parameters. Default to Long range mode"
2023-09-19 19:15:02 -04:00
RomanBapst
6d71224cdb
vtol_takeoff: use global position for takeoff location instead of home position.
...
- home position and takeoff position don't necessarily need to match
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-09-19 20:00:54 +03:00
bresch
dac337efc4
ekf2: auto-generate state vector size constant
2023-09-19 09:37:50 -04:00
Daniel Agar
8a9a303354
ekf2: update include guards
2023-09-19 09:37:50 -04:00
bresch
51dbd8ee4c
ekf2: simplify state var constraint
2023-09-19 09:37:50 -04:00
bresch
779ea3f4d1
ekf2: access state covariance using enum
2023-09-19 09:37:50 -04:00
bresch
9c41c06325
square matrix: add function to uncorrelate part of the matrix
2023-09-19 09:37:50 -04:00
bresch
b612467593
square matrix: add partial trace computation
...
This is useful when we need the sum of some variances in a large
covariance matrix
2023-09-19 09:37:50 -04:00
Silvan Fuhrer
1cbaa78eba
Takeoff: don't use Home altitude but current altitude
...
If no altitude setpoint is specified then takeoff to the default
altitude above the current global position, not above Home.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-19 10:04:30 +02:00
Silvan Fuhrer
de5b769093
Navigator: Use MIS_TAKEOFF_ALT only as default, not as min
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-19 10:04:30 +02:00
Silvan Fuhrer
71f8f47f62
Navigator: remove deprecated calculate_takeoff_altitude()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-19 10:04:30 +02:00
Silvan Fuhrer
48acf98fd5
Navigator: remove deprecated _can_loiter_at_sp and _need_takeoff
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-19 10:04:30 +02:00
Silvan Fuhrer
bb212ea6ec
Navigator: refactor logic that aligns altitude prior to starting mission
...
New: always climb to altitude of active waypoint if mission is started/resumed.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-19 10:04:30 +02:00
Silvan Fuhrer
5fa8985477
ROMFS: SITL config iris_opt_flow: fix disabling of GPS fusion
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-19 10:04:30 +02:00
Silvan Fuhrer
93dbf17eab
Navigator: rename WORK_ITEM_TYPE_TAKEOFF to WORK_ITEM_TYPE_CLIMB
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-19 10:04:30 +02:00
Silvan Fuhrer
15641f62d2
Navigator: rename WORK_ITEM_TYPE_ALIGN to WORK_ITEM_TYPE_ALIGN_HEADING
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-19 10:04:30 +02:00
Maciej Małecki
18e47f9b65
Landing Target Estimator: fix param group casing consistency
...
`target` -> `Target`. Useful to users of machine-readable documentation.
2023-09-19 09:12:40 +02:00
Daniel Agar
d351f16d04
drivers/optical_flow/paa3905: backup scheduling to fetch 0 flow
...
- this sensor provides a MOTION interrupt used for default scheduling, but we also need to publish
zero flow information
2023-09-18 12:46:39 -04:00
Daniel Agar
efbed3bfc1
sensors/vehicle_optical_flow: don't publish interval lower than configured rate
2023-09-18 12:46:39 -04:00
Daniel Agar
380a42fcbf
drivers/optical_flow/paw3902: backup scheduling to fetch 0 flow
...
- this sensor provides a MOTION interrupt used for default scheduling, but we also need to publish
zero flow information
2023-09-18 12:46:39 -04:00
Daniel Mesham
15036c1761
Allow changing parameters during replay ( #22071 )
...
* replay: add scheduled parameter changes
* replay: store scheduled parameter change events as structs
2023-09-18 18:38:09 +02:00
Daniel Agar
6bd13c5514
boards/cubepilot: cubeorange and cubeorangeplus include VectorNav INS
2023-09-15 16:32:40 -04:00
Daniel Agar
b2f258f7a4
drivers/ins/vectornav: add new VN_MODE parameter for full INS support
2023-09-15 16:32:40 -04:00
Daniel Agar
153f7bbced
ekf2: update all copyright headers
2023-09-15 10:02:09 -04:00
Daniel Agar
1e9f0ad2c6
ekf2: add kconfig for barometer support (enabled by default)
2023-09-15 10:02:09 -04:00
Daniel Agar
f0224c5104
boards: bitcraze crazyflie21 disable ekf2 magnetometer support
2023-09-15 10:02:09 -04:00
Daniel Agar
7589ee00e8
boards: holybro kakutef7 switch to ekf2
2023-09-15 10:02:09 -04:00
Daniel Agar
10b54d08fc
ekf2: add dedicated EKF2_CONFIG_TERRAIN in kconfig
...
- new estimator_aid_src_terrain_range_finder for HAGL RNG
2023-09-15 10:02:09 -04:00
Daniel Agar
845b01a00d
ekf2: add kconfig for magnetometer support (enabled by default)
2023-09-15 10:02:09 -04:00
Beat Küng
d1266c856f
rc_input: prevent error output during boot on boards with px4io
...
output:
INFO [rc_input] valid device required
ERROR [rc_input] Task start failed (-1)
2023-09-14 10:40:54 -04:00
Matthias Grob
f8d729147b
Craziflie configs: remove default 100% thrust parameter
2023-09-14 09:50:21 -04:00
PX4 BuildBot
3107860a89
Update submodule mavlink to latest Wed Sep 13 20:14:21 UTC 2023
...
- mavlink in PX4/Firmware (06b8477f853bf0234d0a894dcf6af4718597989f): https://github.com/mavlink/mavlink/commit/58435f6a83b7ba8b1be67d87264f19534a67857e
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/81524c2b34aa08768f13091b1d94c421e64f96c3
- Changes: https://github.com/mavlink/mavlink/compare/58435f6a83b7ba8b1be67d87264f19534a67857e...81524c2b34aa08768f13091b1d94c421e64f96c3
81524c2b 2023-09-13 Hamish Willee - Update pymavlink - for fixed wireshark (#2038 )
fe14d798 2023-08-31 Matthias Grob - common: extend MANUAL_CONTROL with auxiliary continuous inputs (#2031 )
546edec2 2023-08-30 Peter Barker - common.xml: display GIMBAL_MANAGER_STATUS.flags as bitmask (#2035 )
16754498 2023-08-28 Richard Allen - fix RC_CHANNELS_SCALED inactive channel (#2032 )
a31bf384 2023-08-24 Hamish Willee - Fix c_library_vX build order (#2026 )
5887a6af 2023-08-17 auturgy - reserve range in all.xml (#2030 )
2023-09-13 18:31:37 -04:00
Thomas Stastny
28fe15d829
FixedwingPositionControl: initialize the airspeed slew rate controller with trim airspeed in the constructor
2023-09-13 16:18:16 -04:00
Thomas Stastny
a1cd4fd5df
Commander: make sure unsupported do reposition command result is published
...
todo: need to consolidate the command ack strategy in this function
2023-09-13 15:29:31 -04:00
Thomas Stastny
bec0d83cf4
Commander: dont accept reposition commands without the mode switch bit
...
avoids erroneous (unexpected) position setpoints when switching into hold from another mode
2023-09-13 15:29:31 -04:00
Thomas Stastny
2d80291b43
loiter: only accept reposition setpoint if commanded within last 0.5 sec
...
guards against left over reposition commands (potentially set via geofence) from previous flights
2023-09-13 15:29:31 -04:00
David Sidrane
e5f4a6b074
NuttX backports acculated prio to V1.14 release
...
c23b72dffe [BACKPORT] sched/semaphore: Remove restriction to use nxsem_trywait from ISR
fd47cd20a2 [BACKPORT] imxrt:Serial Preserve all but W1C bit in SR
c55f0fd3ac [BACKPORT] imxrt: lpspi dma invalidate cache after exchange
198c7caecb [BACKPORT] imxrt:lpi2c fix status handeling & race
cbd2e44c10 [BACKPORT] s32k3xx: lpspi dma invalidate cache after exchange
e71618d60e [BACKPORT] s32k3xx:lpi2c fix status handeling & race
6f59cc3659 [BACKPORT] s32k1xx:lpi2c fix status handeling & race
1e316d7e32 [BACKPORT] imxrt: flexcan use hpwork for receiving frames
67c1c59865 [BACKPORT] net/can can_readahead_timestamp always free iob
8be831a4ff [BACKPORT] imxrt: fix txdeadline add ecc/fd support
00a68b7668 [BACKPORT] fs/cromfs: Fix faulty DEBUGASSERT() check
d5cf545d6e [BACKPORT] S32K3XX EMAC MCAST support Fix compile warning when ioctl is not enabled
4265c830fa [BACKPORT] imxrt:edma {s|d}last needs to be total xfer size
24b4d44896 [BACKPORT] s32k3xx:edma {s|d}last needs to be total xfer size
eed0482f64 [BACKPORT] s32k1xx:edma {s|d}last needs to be total xfer size
36aab4146a [BACKPORT] kinetis:edma {s|d}last needs to be total xfer size
a0faf31f6f [BACKPORT] arch/stm32f7: fixes for pinmap
eb8255121d [BACKPORT] stm32h7:sdmmc It is not an error if no wait was needed
062044fe41 [BACKPORT] board nucleo-h743zi:Rework board.h not use CONFIG_STM32_USE_LEGACY_PINMAP
e03f9d3917 [BACKPORT] board olimexino-stm32:Rework board.h not use CONFIG_STM32_USE_LEGACY_PINMAP
4c3a467415 [BACKPORT] stm32l5:pinmap Add suffix to all pins and add legacy pinmap
153069ed40 [BACKPORT] stm32wb:pinmap Add suffix to all pins and add legacy pinmap
d84d737f89 [BACKPORT] stm32f0l0g0:stm32f0{3|5|7|9}x_pinmap & stm32g0_pinmap Remove GPIO_SPEED_xxx and add legacy pinmap
5fc7071ac1 [BACKPORT] stm32l4:stm32l4x{3|4|5|6|r}xx_pinmap pinmap Remove GPIO_SPEED_xxx and add legacy pinmap
20061c2aab [BACKPORT] stm32:stm32f10{0|2|3{c|r|v|z}|5{r|v}|7v}_pinmap refactor
4d1f83d484 [BACKPORT] stm32:stm32l15xxx pinmap Remove GPIO_SPEED_xxx and add legacy pinmap
2dfa3f2601 [BACKPORT] stm32:stm32g4xx{c|k|r|m|v|q} pinmap Remove GPIO_SPEED_xxx and add legacy pinmap
d206327809 [BACKPORT] stm32:stm32f3{0|3|7}xxx pinmap Remove GPIO_SPEED_xxx and add legacy pinmap
95e66ab508 [BACKPORT] stm32:stm32f20xxx pinmap Remove GPIO_SPEED_xxx and add legacy pinmap
d2fd9178ad [BACKPORT] stm32:f4/f412 pinmap Remove GPIO_SPEED_xxx and add legacy pinmap
a9df45166d [BACKPORT] stm32f7:pinmap Remove GPIO_SPEED_xxx and add legacy pinmap
07dd2b424e [BACKPORT] stm32h7:pinmap Remove GPIO_SPEED_xxx and add legacy pinmap
1e3065344f [BACKPORT] stm32u5:stm32u585xx_pinmap Fix typo
0a05365a90 [BACKPORT] stm32wl5:pinmap Fix typo
e3834138dc [BACKPORT] tools:Add STM32 Pin migration tool
df851a8768 [BACKPORT] stm32h7/rcc: make VOS0 configurable from board.h also for stm32h7x7xx
d75dfcf1e9 [BACKPORT] stm32h7/rcc: make VOS0 configurable from board.h
963f35f4fc [BACKPORT] {stm32,stm32f7,stm32h7,stm32l4,efm32}/otg: rasie an assertion if IN request is not possible to transfer
de2fcc6668 [BACKPORT] {stm32f7,stm32h7,stm32l4}/sdmmc: callback support requires HPWORK
6929144fc2 [BACKPORT] stm32h7/otgdev: FS transceiver must be enabled if OTGFS enabled
a2078afaea [BACKPORT] stm32h7/otg: add support for external ULPI
26e1246c86 [BACKPORT] stm32h7/rcc: OTGHS ULPI works only in VOS0
cd6daa185e [BACKPORT] stm32h7: update ULPI pins
c73c261ae3 [BACKPORT] arch/boards: fix stm32f411-mininum:nsh compilation failure after enabling IRQMONITOR
8078f134ef [BACKPORT] arch/stm32/stm32.h: do not include stm32_usbdev.h if not supported
60e884fa92 [BACKPORT] {stm32,stm32l4,stm32f0l0g0}/otg: move STM32_NENDPOINTS definitions to header files
dda297cb78 [BACKPORT] arch/arm/src/stm32/hardware: Fix register define
362b976b0e [BACKPORT] arch/arm/src/stm32/hardware: Add stm32g4 rcc apb1 timer enable compatibility
434fd71f2c [BACKPORT] {stm32/stm32l4/stm32f7/stm32h7/efm32}/otgdev: remove invalid use of the priv field for EP
2476d24e8c [BACKPORT] {stm32f7,stm32h7}/otg: fix compilation for USBDEV when USB_DEBUG=y
eb43c582ea [BACKPORT] drivers/mtd/ramtron: change nsectors size to uint32
20f61ff0d5 [BACKPORT] fs/littlefs: add full support for LittleFS block device cfg in Kconfig
60471fbf8c [BACKPORT] drivers/mtd: add Kconfig options for RAMTRON emulated page & sector size
2023-09-13 13:14:18 -04:00
Daniel Agar
36010a9a7c
ROMFS: rc.fw_defaults set more conservative range finder requirements
...
- for FW the primary range finder usage is estimating the distance to
the ground (terrain estimate) to guide the landing approach and initiate flare
- increase EKF2_RNG_QLTY_T default 1->3 seconds
2023-09-13 12:14:13 -04:00
Konrad
679a532e61
failsafe: When rtl_time_estimate failsafe is triggered, only disable it when the user changes the mode, or it is disarmed.
2023-09-13 16:19:08 +02:00
Niklas Hauser
98a35971af
camera_capture: disable timer callback on stop
...
Otherwise the capture_trampoline is called while g_camera_capture is a
nullptr, which leads to a hardfault since the this pointer is invalid.
2023-09-13 10:16:08 -04:00
Daniel Agar
016db84d69
ekf2: covariance update use IMU sample dt ( #22032 )
...
- usually the delta angle and delta velocity dt is the same, but they can be slightly different
2023-09-13 09:58:56 -04:00
Jukka Laitinen
9bcfd1a7f7
cmake/kconfig.cmake: Don't populate config_kernel_list in nuttx flat builds
...
This passes __KERNEL__ compilation flag to all modules, which may break some NuttX headers
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-09-13 21:00:07 +12:00
Thomas Stastny
4ec4ce5fa9
FixedwingPositionControl: rework airspeed slew controller handling
...
- force initialize takeoff airspeed setpoint at start of takeoff modes
- force set airspeed constraints if slewed value is out of bounds
- always slew airspeed setpoints as long as inside constraints
- move target airspeed setpoint calculation into mode specific logic regions (hand vs runway)
2023-09-13 09:50:41 +02:00
Silvan Fuhrer
78ddf41aa2
ROMFS: SITL plane_catapult: reduce FW_LAUN_AC_THLD to 10m/s/s to detect every throw
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-13 09:50:41 +02:00
Silvan Fuhrer
f1b47b14b8
FW Pos Control: add in_takeoff_situation argument to adapt_airspeed_setpoint()
...
when we're in a takeoff situation, we only want to adapt the airspeed to
avoid accelerated stall due to load factor changes. Disable othre logic
like minimum ground speed, wind based adaption and airspeed slew rating.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-09-13 09:50:41 +02:00
bresch
78eb0cdb72
opt flow: fix msg naming
...
optical_flow got replaced by sensor_optical_flow and vehicle_optical_flow
2023-09-11 10:12:16 -04:00
Julian Oes
f2bb548b27
6x: fix internal mag rotation
...
From looking at the history the BMM150 rotation was initially 0. Then,
this was changed to 6 when the intent was to only change it for Skynode.
A bit later, the rotation was changed back to 0, but only for Skynode.
This tells me that rotation 0 was correct for all 6X including Skynode
all along.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-09-11 15:03:33 +12:00
Fermi-4
9fe8bd698b
Update ina228.h comment typo ( #22018 )
...
Update comment wording to "Charge Result" from "Energy Result" as this is reading from the charge register
2023-09-10 01:12:57 +02:00
duartecdias
efe0db5725
uavcan_drivers: stm32h7_can fix filter memory initialization bug
...
Co-authored-by: Duarte Dias <duarte@uaventure.com >
2023-09-08 15:29:41 -04:00
Daniel Agar
7d497d4959
msg: set all ORB_QUEUE_LENGTH to actual rounded value
2023-09-08 15:28:16 -04:00
Daniel Agar
892d507ca7
integrationtests: MAVROS mission_test.py relax yaw estimate STD check for now ( #22061 )
...
- ekf2 heading first initializes to 0 degrees, then immediately resets to mag heading once a few samples are accumulated
- the yaw standard deviation check could be adjusted to exclude this brief (<1s) initial period
2023-09-08 15:27:39 -04:00
Daniel Agar
3476831246
dataman: explicitly check file existence to init
...
- on NuttX if the SD card was just cleared (quick format) it's possible for the newly created uninitialized dataman file to still have the previous compatibility key, which causes the initialization to be skipped
2023-09-08 10:16:24 -04:00
Thomas Stastny
def4ce6ba8
FixedwingPositionControl: slightly simplify manual position control (use navigateLine() to be sure no turnaround)
...
make notes on odd things that are likely still wrong
2023-09-08 16:08:38 +02:00
Thomas Stastny
16bd0a2ba0
FixedwingPositionControl: revise navigateLine(), navigateBearing() and naivgatePathTangent() briefs
2023-09-08 16:08:38 +02:00
Thomas Stastny
7b7d762582
FixedwingPositionControl: forgot to rename input args in navigateWaypoints() declaration
2023-09-08 16:08:38 +02:00
Thomas Stastny
e71804d976
FixedwingPositionControl: reuse line() and waypoint() methods in navigateWaypoints() method
2023-09-08 16:08:38 +02:00
Thomas Stastny
ad9e3d72d9
FixedwingPositionControl: split out single waypoint following method
...
makes more clearly defined interfaces and behaviors. also cleaned up the controlAutoPosition() method
2023-09-08 16:08:38 +02:00
Thomas Stastny
c3012a551f
FixedwingPositionControl: track single point when no prev point exists for waypoint following
...
make sure correct local position setpoint output is logged
2023-09-08 16:08:38 +02:00
Thomas Stastny
f90783547f
FixedwingPositionControl: correct navigation method param description typos
2023-09-08 16:08:38 +02:00
Thomas Stastny
3047cad05d
FixedwingPositionControl: follow (infinite) lines instead of waypoints during takeoff and landing
2023-09-08 16:08:38 +02:00
Thomas Stastny
3ffb57bcce
FixedwingPositionControl: handle degenerate tangent setpoint in navigatePathTangent()
2023-09-08 16:08:38 +02:00
Thomas Stastny
413f66549d
npfg: update signed track error state
2023-09-08 16:08:38 +02:00
Thomas Stastny
b11ff06798
FixedwingPositionControl: fix / clarify navigate waypoint logic
2023-09-08 16:08:38 +02:00
Daniel Agar
14ef376721
drivers/uwb/uwb_sr150: don't enable by default
2023-09-08 09:20:01 -04:00
Daniel Agar
de9dfb6b74
.vscode: settings.json default ros.distro
2023-09-07 18:57:37 -04:00
Niklas Hauser
ad1d72df6f
uORB: fix hardfault in uORB calloc implementation
...
When running out-of-memory, the malloc returns NULL and the memset then tries to write to address 0 which results in a hardfault.
2023-09-07 14:22:58 -04:00
Julian Oes
35c1d5d9b1
asp5033: fix K value
...
As QioTek told me via email.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-09-06 10:25:48 -04:00
Matthias Grob
38b0de94c1
system_params: improve distance sensor check description
2023-09-05 13:11:20 -04:00
alexklimaj
10ac10cb33
ARK CANnode disable OPT_WAIT_FOR_GETNODEINFO_JUMPER_GPIO
2023-09-05 13:10:23 -04:00
Jukka Laitinen
2d4d824a98
src/drivers/adc/ads1115: Change adc_report type to PublicationMulti
...
To support several ads1115 modules publishing to different adc_report instances
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-09-05 13:09:26 -04:00
Julian Oes
70b48dd41c
cubepilot: Add support for 4. variant of Orange+
...
This adds support for the 4. hardware variant of the CubeOrange+
featuring 3 ICM45686.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-09-05 11:07:09 -04:00
Denislav Petrov
ece338ceef
Adding a new differential pressure sensor ASP5033 ( #21568 )
...
* added a new driver ASP5033 for measuring the differential pressure and airspeed
---------
Co-authored-by: nano <nanobotzhe@abv.bg >
Co-authored-by: Denislav Petrov <you@example.com >
2023-09-05 10:21:05 +12:00
Julian Oes
fb30b4d288
control_allocator: Clarify position description
...
I'm assuming that the rotor positions are given relative to the center
of gravity (CG).
Signed-off-by: Julian Oes <julian@oes.ch >
2023-09-04 08:02:15 +02:00
Matthias Grob
d2819ca754
FunctionsMotors: include motors instead of servos topic
2023-08-31 16:56:08 -04:00
Matthias Grob
2b78431566
PositionControl: use float literals for sqrtf sign check
2023-08-31 16:56:08 -04:00
alexklimaj
3d61ab84c4
Cannode add ability to get node ID after boot. Fix ARK CAN OPT_WAIT_FOR_GETNODEINFO_JUMPER_GPIO_INVERT
2023-08-30 11:40:01 -04:00
bresch
23b31cc5fd
manual_yaw: compensate for yaw estimate convergence
...
When the yaw estimate is converging, the controller makes the drone yaw
in order to follow the current setpoint. This is unintuitive for the
pilot and it is preferable if the drone continues to fly towards the
same physical direction.
2023-08-30 09:56:19 +02:00
bresch
0aa4afdbce
ekf2: add unaided_yaw for more resilient yaw control
...
This estimate doesn't converge to the true yaw but can be used as a
more consistent but drifting heading source.
It can be used by a setpoint generator to adjust its heading setpoint
while the true yaw estimate is converging in order to keep a constant
course over ground.
2023-08-30 09:56:19 +02:00
Julian Oes
329a2d0e98
gps: request Unicore HEADINGA message
...
This updates the gps/devices submodule which includes a fix that
requests the Unicore HEADINGA message in case the message is not enabled
by default.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-08-30 11:31:22 +12:00
comla-x
b47fa81633
boards: added SIYI N7 flight controller config
2023-08-29 11:31:33 -04:00
bresch
52bcf1e0c2
update change indicator
...
The yaw variance is now initially zero
2023-08-29 10:57:49 -04:00
bresch
71f12b2c4d
ekf2: do not initially increase yaw variance
...
Yaw variance is automatically increased as soon as a yaw aiding source
is activated
2023-08-29 10:57:49 -04:00
bresch
78d75ada3e
update change indicator
...
The result is slightly different because we now only set the tilt
covariance (before, tilt variance was applied to all axes)
2023-08-29 10:57:49 -04:00
bresch
0282f85cd4
ekf2: compute quat tilt variance using SymForce
2023-08-29 10:57:49 -04:00
Niklas Hauser
af40d5befd
nsh: check nsh_consolemain return value
...
Starting a new console allocates memory dynamically, which can fail.
2023-08-29 10:55:01 -04:00
Julian Oes
cde47e8fc0
mavlink: improve readability
...
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2023-08-29 13:23:55 +02:00
Julian Oes
448454a317
mavlink: Support voltages > 65v in battery status
...
If the measured voltage is more than 65v we need to split the voltage
over multiple cells in order to avoid overflowing the uint16. This is
according to the MAVLink spec.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-08-29 13:23:55 +02:00
Julian Oes
74b4902e50
mavlink: fix BATTERY_STATUS extension
...
The extension fields need to be 0 by default according to the MAVLink
spec. This is because extensions are 0 by default and need to be 0 when
unknown/unused for backwards compatibility.
The patch also simplifies the flow slightly in that it doesn't create a
temporary array but just fills in the cell voltages directly.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-08-29 13:23:55 +02:00
Daniel Agar
0f260fc26c
ekf2: gravity fusion don't use any accel samples that are clipping
2023-08-28 14:35:13 -04:00
Daniel Agar
2c76109a94
ekf2: drag fusion don't use any accel samples that are clipping
2023-08-28 14:35:13 -04:00
Beat Küng
b485b1a12a
drv_hrt: remove whitespace for operator ""
...
Fixes the clang error:
/__w/PX4-Autopilot/PX4-Autopilot/src/drivers/drv_hrt.h:297:35: fatal error: identifier '_s' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
297 | constexpr hrt_abstime operator "" _s(unsigned long long seconds)
2023-08-28 17:48:20 +02:00
Julian Oes
ecbc5b83a0
kakute: disable some EKF2 features
...
To save flash.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-08-28 13:20:00 +02:00
Julian Oes
9d97c7c5cb
kakuteh7: use EKF2 by default
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-08-28 13:20:00 +02:00
Mathieu Bresciani
6a58f6c7dc
Enable arbitrary euler angle for Mag rotation CAL_MAGx_{ROLL,PITCH,YAW}
...
- Enable arbitrary euler angle for Mag rotation
- new CUSTOM rotation enum out of the normal enum range
- mag_rot: automatically change to custom if euler rot is set
- sensor_calibration: Magnetometer save custom rotation parameters
- mag_cal: cross mention rotation parameters
- This allows the user to see the RPY options when searching for the rotation parameter
---------
Co-authored-by: Junwoo Hwang <junwoo@auterion.com >
Co-authored-by: bresch <[brescianimathieu@gmail.com ](mailto:brescianimathieu@gmail.com )>
Co-authored-by: Daniel Agar <daniel@agar.ca >
2023-08-26 14:52:39 -04:00
bresch
9551c1b614
ekf2: send global position if origin is set manually
...
Even if the aiding is local only, a valid global estimate can be sent as
long as we know the EKF's origin.
2023-08-26 14:48:49 -04:00
Silvan Fuhrer
f1b5b4f524
TiltrotorEffectiveness: limit thrust axis tilt to z effectiveness scaling ( #21990 )
...
During transition to FF, only allow update thrust axis up to 45° as with a high tilt angle
the effectiveness of the thrust axis in z is apporaching 0, and by that is increasing
the motor output to max.
Transition to HF: disable thrust axis tilting, and assume motors are vertical. This is to avoid
a thrust spike when the transition is initiated (as then the tilt is fully forward).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-08-25 14:45:14 +02:00
alexklimaj
6faec7ab15
ARKV6X update rev 2 heater default temp id
2023-08-24 13:23:47 -04:00
Silvan Fuhrer
410206aa5d
Control Allocation: fixes in yaw saturation detection for vehicles with tilt-for-yaw ( #21994 )
...
* ActuatorEffectiveness: base yaw saturation on tilt actuator limits (VTOL Tiltrotor)
* ActuatorEffectiveness: add custom yaw saturation for MC Tilt
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-08-24 13:58:58 +02:00
Silvan Fuhrer
0eb276f273
Tiltrotor: move spin up tilt to control allocation ( #21991 )
...
EffectivenessTiltrotor: link time when to tilt motors to MC position to COM_SPOOLUP_TIME
- remove VT_TILT_SPINUP and special spin up tilt handling form the VTOL module
- now handle the spoolup in the allocation, directly linked to COM_SPOOLUP_TIME
- leave tilts at disarmed value during spoolup
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-08-24 13:57:24 +02:00
Daniel Mesham
86822171b9
Add SITL targets for Iris models with depth cameras
2023-08-22 11:50:29 -04:00
Beat Küng
d4c7ea74ef
refactor uxrce_dds_client: reduce amount of generated code for SendTopicsSubs
...
Reduces flash usage by ~4KB for current set of topics.
2023-08-21 20:56:08 -04:00
Beat Küng
8e1dd710a6
parameters: remove indentation from json output
...
Reduces parameters.json.xz by ~3KB on v5x.
2023-08-21 20:55:09 -04:00
Beat Küng
03365658d5
VehicleControlMode: add flag_control_allocation_enabled
...
Allows (external) modes to directly publish actuator_{motors,servos}.
2023-08-21 20:53:51 -04:00
Matthias Grob
22e613a24a
commander_params: more precise COM_FAIL_ACT_T description
...
regarding RC stick override
2023-08-21 16:39:10 +02:00
Matthias Grob
0200ef9a60
Tools/auterion: add Skynode upload scripts ( #21842 )
2023-08-21 08:03:07 +02:00
Peter van der Perk
068b1494fc
ucans32K146: fix pwm startup
2023-08-18 12:38:50 -04:00
bresch
dbebe7d168
fw-atune: use same attitude P rule as for multirotors
...
The current rule was producing too high gains. Also constrain the value
using the prameter's limits.
2023-08-18 11:48:08 -04:00
bresch
759f91ba52
fw-atune: limit max test signal
...
Whe the P gain is high, the test signal is large too. However, it should
not exceed what is allowed from the max rate parameter.
2023-08-18 11:48:08 -04:00
Mathieu Bresciani
74a54b3b12
EKF2: improve resilience against incorrect mag data
...
- when GNSS is used require low mag heading innovations during
horizontal acceleration (yaw observable) to validate the mag
- only fuse mag heading just enough to constrain the yaw estimate
variance to a sane value. Leave enough uncertainty to allow for a
correction when the yaw is observable through GNSS fusion
2023-08-17 09:55:15 -04:00
Silvan Fuhrer
eaad11bb74
ActuatorEffectiveness: add comment for 2% magic number to stop motors
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-08-17 13:28:09 +02:00
Alex Klimaj
0914e7feaa
new TDK IIM42653 IMU driver and ARKV6X Rev 2
2023-08-16 16:20:14 -04:00
Ludovic Vanasse
3a166247c1
Add condition for Iridium mode to not send params change after a time
...
In the mavlink_receiver code, after a while it will try to resend some
parameter update through the MAVLink instance. But for Iridium links
those are not a good idea. So this adds a condition that prevent the
sending if the MAVLink instance is in Iridium mode.
Related to issue #21496
2023-08-16 11:28:36 -04:00
Sverre Velten Rothmund
b21ad6af14
multiple: Fix abs(int) usage on float values
2023-08-15 10:18:32 +02:00
alexklimaj
5f9443add4
ARK Jetson Carrier support 3rd power module
2023-08-14 10:41:44 -04:00
PX4 BuildBot
4fce159a2a
Update submodule mavlink to latest Fri Aug 11 12:38:42 UTC 2023
...
- mavlink in PX4/Firmware (594d7743bab98001866a2f34e1cc835d5795fb3a): https://github.com/mavlink/mavlink/commit/e04677782ab086974be52104e27860fc760eff36
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/58435f6a83b7ba8b1be67d87264f19534a67857e
- Changes: https://github.com/mavlink/mavlink/compare/e04677782ab086974be52104e27860fc760eff36...58435f6a83b7ba8b1be67d87264f19534a67857e
58435f6a 2023-08-09 Hamish Willee - development.xml - remove mission_checksum (#2010 )
048237b4 2023-08-02 Hamish Willee - Update Pymavlink - for Ava etc (#2025 )
2023-08-11 09:48:45 -04:00
PX4 BuildBot
cd015d30c8
update all px4board kconfig
2023-08-11 08:59:37 -04:00
PX4 BuildBot
28a34ef56c
Update world_magnetic_model to latest Fri Aug 11 11:14:05 UTC 2023
2023-08-11 08:58:57 -04:00
Ville Juven
0cae33bf47
blockingqueue.hpp: Fix sem_wait not blocking if task is signaled
...
sem_wait() can be interrupted if the task receives a signal, however
the blockinglist implementation depends on blocking until the semaphore
can be obtained.
2023-08-11 07:44:10 +02:00
Jukka Laitinen
c0084ab24d
Fix maximum rotation value in GetBoardRotation()
...
Fix a memory overflow in case SENS_BOARD_ROT is set to Rotation::ROTATION_MAX (41) which is not a valid value
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-08-10 07:54:53 +02:00
Beat Küng
ae70f9c640
attitude_estimator_q: disable ATT_ACC_COMP by default
...
Improves tracking in the CI test, and I always disabled it on my vehicles
as well.
2023-08-08 12:28:52 -04:00
Beat Küng
57297234e2
autopilot_tester: slower descend for fly_forward_in_offboard_attitude
...
As CI was sometimes failing
2023-08-08 12:28:52 -04:00
bresch
1f02d55103
ekf2: update change indicator
...
change caused by fixing the yaw variance increase calculation
2023-08-08 12:09:56 -04:00
bresch
39a83ab138
ekf2_test: test yaw variance after reset
2023-08-08 12:09:56 -04:00
bresch
b6fb95247b
ekf2_derivation: fix typo
2023-08-08 12:09:56 -04:00
bresch
de702a2e63
ekf2: fix function to increase yaw variance
2023-08-08 12:09:56 -04:00
bresch
01fc4c3cf1
SquareMatrix: add functions to copy upper and lower triangle
2023-08-08 12:09:56 -04:00
Silvan Fuhrer
56dd1dc930
Navigator: Resume mission with last flight speed ( #21714 )
...
* Navigator: DO_CHANGE_SPEED: only store sinlge cruising_speed_current_mode
This stored cruising speed setpoint is reset on mode change and
after a VTOL transition.
* Navigator Mission: replay DO_CHANGE_SPEED items when resuming mission
* Navigator: remove cruising_speed_sp_update()
Speed changes in a mission are handled directly in the position controllers,
and no longer in Navigator.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-08-08 13:22:05 +02:00
Beat Küng
02a6640000
fix uxrce_dds_client: apparently we cannot use the upper 4 bits for ID's
2023-08-08 10:59:34 +02:00
hskrieg
64c21ad428
uorb: allow for more than 255 uORB messages
...
Increased size for ORB_ID from uint8_t to uint16_t
Created a type: orb_id_size_t = uint16_t.
There are still a couple of places where the size
of the ORB_ID is assumed to be less than 16-bits.
The places that I have found are commented regarding
this and can be found with a search on orb_id_size_t.
2023-08-08 10:59:34 +02:00
Christian Rauch
e9fbb9a3ab
pca9685_pwm_out: add parameter PCA9685_RATE to set update frequency
2023-08-07 20:44:07 -04:00
Christian Rauch
dce7149363
remove unused debug.h
2023-08-07 20:42:58 -04:00
Christian Rauch
cab78593b4
BMI0xx: remove unused board_dma_alloc.h
2023-08-07 20:42:58 -04:00
Christian Rauch
638b18dd07
ADIS16497: replace NuttX specific up_udelay with HAL version px4_udelay
2023-08-07 20:42:58 -04:00
Christian Rauch
b689082d97
enable common barometer, IMU and magnetometer
2023-08-07 20:42:58 -04:00
Christian Rauch
a128517897
skip SSH key check for simpler builds in the Docker container
2023-08-07 20:42:58 -04:00
Dusan Zivkovic
29f352d49d
px4-rc.simulator: set Gazebo coordinate frame reference (SIM_GZ_HOME_* params) from PX4_HOME_* env variables
2023-08-07 14:41:35 -04:00
bresch
cd77d52dc1
ekf2: calcRotVecVariances using SymForce
2023-08-07 14:28:06 -04:00
Beat Küng
2d09ad55e3
omnibus/f4sd: disable urxce_dds_client and enable tools & load_mon
2023-08-04 11:27:31 -04:00
Beat Küng
0277a6486f
mavsdk_tests: add offboard attitude test & run with Q estimator
2023-08-04 11:27:31 -04:00
Daniel Agar
d75bb62a65
ekf2: separate mag and mag heading control logic ( #21212 )
...
- split mag_3d into new standalone mag fusion and mag fusion allowed to update all states (full mag_3d)
- new dedicated control logic for mag/mag_3d fusion and standalone mag heading fusion
- if WMM available use for mag_I and mag_B init
- mag states reset if external yaw reset (yaw estimator, GPS yaw, etc)
- mag reset if declination changed (eliminate _mag_yaw_reset_req)
- mag fusion (but not mag_hdg or mag_3d) can be active during gps_yaw or ev_yaw (if yaw aligned north)
Co-authored-by: bresch <brescianimathieu@gmail.com >
2023-08-04 10:39:16 -04:00
alexklimaj
7db667558e
ARK RTK GPS support baro on I2C bus 1 instead of 2
2023-08-03 20:48:01 -04:00
Roman Dvorak
1feb79f27f
update gps submodule
2023-08-03 10:27:34 -04:00
Daniel Agar
95b3005679
lib/world_magnetic_model: add constants for min/max/mean/median field strength
...
- add geo_magnetic_tables.hpp comments for blackout zone warnings
- reduce unnecessary precision in generated tests (should reduce future update noise)
- update copyright year
2023-07-28 17:14:25 -04:00
Daniel Agar
88e7452492
commander: collapse ArmStateMachine and simplify
...
- simplify vehicle_status.arming_state down to just armed and disarmed
- ARMING_STATE_INIT doesn't matter
- ARMING_STATE_STANDBY is effectively pre_flight_checks_pass
- ARMING_STATE_STANDBY_ERROR not needed
- ARMING_STATE_SHUTDOWN effectively not used (all the poweroff/shutdown calls loop forever in place)
- ARMING_STATE_IN_AIR_RESTORE doesn't exist anymore
- collapse ArmStateMachine into commander
- all requests already go through Commander::arm() and Commander::dismarm()
- other minor changes
- VEHICLE_CMD_DO_FLIGHTTERMINATION undocumented (unused?) test command (param1 > 1.5f) removed
- switching to NAVIGATION_STATE_TERMINATION triggers parachute command centrally (only if armed)
---------
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2023-07-28 17:12:01 -04:00
Daniel Agar
84b6b472b4
ekf2: change delta angle and delta velocity bias states to accel and gyro bias ( #21901 )
...
* ekf2-test: remove outdated codegen comparison
The definition of states changed so the comparison with the old
derivation cannot work anymore.
---------
Co-authored-by: bresch <brescianimathieu@gmail.com >
2023-07-28 09:31:44 -04:00
Daniel Agar
444e5d2d4a
boards: px4_fmu-v5_debug readd systemcmds/sd_stress
2023-07-27 14:48:41 -04:00
Silvan Fuhrer
c0d9e2ac7a
commander: add warning for imminent navigation failure
...
Some system are able to dead-reckon for a while after losing GPS or
other sources providing positional feedback. If the estimated position
error grows above the failsafe threshold, the system enters a failsafe
mode. As the position error estimate is growing linerly over time, and
it is recommended to take action before entering the failsafe, we here
warn the user about the imminent failsafe and propose to take manual
control.
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-07-27 14:12:04 -04:00
PX4 BuildBot
5f94eb1493
Update submodule sitl_gazebo-classic to latest Thu Jul 27 12:39:07 UTC 2023
...
- sitl_gazebo-classic in PX4/Firmware (1c1f8da7d9 ): https://github.com/PX4/PX4-SITL_gazebo-classic/commit/c8ac7ff39b694832a3eee6ab568058c145f42c6f
- sitl_gazebo-classic current upstream: https://github.com/PX4/PX4-SITL_gazebo-classic/commit/20ded0757b4f2cb362833538716caf1e938b162a
- Changes: https://github.com/PX4/PX4-SITL_gazebo-classic/compare/c8ac7ff39b694832a3eee6ab568058c145f42c6f...20ded0757b4f2cb362833538716caf1e938b162a
20ded07 2023-07-21 Silvan Fuhrer - wind pluging: fix wind ramp (#998 )
6620a6b 2023-07-20 Silvan Fuhrer - wind plugin: add option to simulate a constant wind change with ramp up (#996 )
2023-07-27 12:58:59 -04:00
Julian Oes
42bdfe0fb2
boards: px4/fmu-v5 move some test commands to test config
...
I would expect anyone using these test commands can just use the test config instead.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-07-27 10:36:03 -04:00
Daniel Agar
e468798e91
Update world_magnetic_model to latest Thu Jul 27 11:14:06 UTC 2023
...
Co-authored-by: PX4 BuildBot <bot@px4.io >
2023-07-27 10:34:11 -04:00
Daniel Agar
d928a3a8d0
Update submodule GPSDrivers to latest Thu Jul 27 12:39:18 UTC 2023 ( #21897 )
...
- GPSDrivers in PX4/Firmware (9762316d8a0a84b5cb8563ab4c289416421d2801): https://github.com/PX4/PX4-GPSDrivers/commit/261480cb78a3ba60cdda2dcc95b874ebc2c9312c
- GPSDrivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/b94378bcbbf3339670bda1f97820d6335f6937f5
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/261480cb78a3ba60cdda2dcc95b874ebc2c9312c...b94378bcbbf3339670bda1f97820d6335f6937f5
b94378b 2023-07-26 Eric Katzfey - Fixing UBlox M10 support
Co-authored-by: PX4 BuildBot <bot@px4.io >
2023-07-27 10:33:22 -04:00
PX4 BuildBot
37a6ac5c93
Update submodule mavlink to latest Thu Jul 27 12:39:22 UTC 2023
...
- mavlink in PX4/Firmware (3476e500bf5baa837314e09ff29deeabb719071b): https://github.com/mavlink/mavlink/commit/e47dfbb4b7e37696971e45f8ae91ed3a8986ff13
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/e04677782ab086974be52104e27860fc760eff36
- Changes: https://github.com/mavlink/mavlink/compare/e47dfbb4b7e37696971e45f8ae91ed3a8986ff13...e04677782ab086974be52104e27860fc760eff36
e0467778 2023-07-27 JaeyoungLim - Clarify SET_ATTITUDE_TARGET quaternion field (#2020 )
2023-07-27 10:32:27 -04:00
PX4 BuildBot
a3a19da651
update all px4board kconfig
2023-07-27 10:24:10 -04:00
Beat Küng
351a9050c3
commander: update param description for COM_MOT_TEST_EN
2023-07-27 09:39:24 -04:00
Ayham Alharbat
1c1f8da7d9
add a gz-omnicopter model ( #21818 )
...
* [not-working] add a gz-omnicopter model
* Fix axis directions on omnicopter model
The omnicopter joint axis directions had to be adapted for sdf 1.9 as it has different conventions for joint axis definitions.
* include model from gz-fuel & remove mesh files
* Fix omnicopter model using fuel
---------
Co-authored-by: Jaeyoung Lim <jalim@ethz.ch >
2023-07-27 11:34:27 +02:00
Konrad
e4111a03bf
mavlink-mission: Initialize the safepoint and mission counter from the dataman state.
...
If at the last powercycle one mission was uploaded, the counter in dataman was 1. On the next powercycle the mavlink mission counter was reset to zero and on first mission upload updated to 1 again. Other modules check, if the mission was changed based on the counter, like the mission.cpp loaded the mission counter from the dataman. On a new mission, the comparison of the counters failed, because both were the same value even if the mission was completely different.
2023-07-27 07:21:29 +02:00
Konrad
aa2c47a56b
mission: On an updated mission, don't assume per default that the mission is not valid, use the state from the last mission validation.
2023-07-27 07:21:29 +02:00
Daniel Agar
82962acd5c
sensors/vehicle_magnetometer: add mag calibration PX4_DEBUG output
2023-07-26 12:42:51 -04:00
Daniel Agar
d65ddbf810
simulation/sensor_gps_sim: lower GPS velocity variance
...
- for a multicopter EKF2 default required GPS speed accuracy is 0.5 m/s
2023-07-26 12:42:18 -04:00
Beniamino Pozzan
b9667e955d
[uxrce-dds-client]: add parameter to disable time synchronization between Agent and Client
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-07-26 09:16:29 -04:00
Daniel Agar
56b59dc155
Revert "jenkins ci: listener topic list update"
...
This reverts commit 190371c6ee .
2023-07-25 18:39:28 -04:00
bresch
30d8df7001
mag_check: fix param type
2023-07-25 11:21:05 -04:00
bresch
99309625e8
preflt-chk: report strength and inclination failure values
2023-07-25 11:21:05 -04:00
Daniel Agar
19d6e69b0b
ekf2: allow yaw estimator to perform yaw alignment
...
This can be useful if using a full EV + GNSS setup and you start indoors, then fly outside. Once GPS is good and the only missing requirement is yaw alignment the yaw estimator reset is performed and EV yaw will automatically stop itself.
2023-07-25 10:58:45 -04:00
Daniel Agar
6d4ec4e623
Jenkinsfile-compile increase timeout
2023-07-25 10:56:45 -04:00
bresch
beb5fc5eb6
ekf-checks: set min and max values for required/failsafe eph
2023-07-24 15:10:07 -04:00
bresch
30bfe0d379
ekf2: remove artificial constraint on position uncertainty growth
...
There is no reason to contrsain the position uncertainty, estpecially
when flying with velocitiy aiding only.
Note that all the variances are already contrained to sane values at the
end of the covariance prediction
2023-07-24 15:10:07 -04:00
Daniel Agar
1ef9ee7622
ekf2: simplify fuseYaw() signature and use consistently
...
- make it safe to call for other aid sources, no EKF state is changed unless fusion_enabled
2023-07-24 10:34:00 -04:00
Daniel Agar
01bcc47fb1
ekf2: apply yaw reset to vision attitude error filter
...
- set vision attitude error filter uninitialized if vision data stops
- ev error filter is only compiled when ev config is selected
Co-authored-by: bresch <brescianimathieu@gmail.com >
2023-07-24 10:32:33 -04:00
bazooka Joe
190371c6ee
jenkins ci: listener topic list update
2023-07-24 10:27:48 -04:00
Junwoo Hwang
e626f8666c
Geofence: Disable pre-emptive geofence predictor by default ( #21657 )
...
Co-authored-by: Hamish Willee <hamishwillee@gmail.com >
2023-07-24 10:25:31 -04:00
bresch
a95c11d48a
ekf2-test: add test for inclination of mag earth field
2023-07-24 10:16:37 -04:00
bresch
72be724b86
ekf2: log mag inclination and strength for tuning
2023-07-24 10:16:37 -04:00
bresch
357bf024f6
ekf2-mag: add inclination check
2023-07-24 10:16:37 -04:00
bresch
e4a16bfc80
ekf2-mag: rework mag strength check
2023-07-24 10:16:37 -04:00
Daniel Agar
e878d0c0ef
Jenkinsfile-compile fix invalid boards
2023-07-24 09:50:54 -04:00
Beat Küng
8e8b35dadf
px4/fmu-v6x: disable batt_smbus for now to reduce flash
2023-07-24 13:10:31 +02:00
Beat Küng
133aeb10a6
mision: only run mission feasibility checks when mission updated
...
Instead of also when geofence/safe points updated.
This prevents reporting multiple times.
2023-07-24 13:10:31 +02:00
Beat Küng
72955221cb
fix dataman: treat 0 as valid return for read & ensure to init buffer
...
This can happen e.g. when the item is cleared.
2023-07-24 13:10:31 +02:00
Beat Küng
9aa355a08c
HIL: add --ignore-stdout-errors to run_nsh_cmd.py and use for 'tests dataman'
...
As this test is expected to contain errors.
2023-07-24 13:10:31 +02:00
Beat Küng
5c73d24765
boards/px4/fmu-v5/test: disable modules to reduce flash
2023-07-24 13:10:31 +02:00
Beat Küng
05a5bbe120
boards/diatone/mamba-f405-mk2: disable modules to reduce flash
2023-07-24 13:10:31 +02:00
Beat Küng
ebd64bfab6
navigator: defer saving mission until disarmed
...
Avoids unnecessary dataman accesses
2023-07-24 13:10:31 +02:00
Beat Küng
16a144c00f
navigator: use mission topic to notify about geofence & safe point changes
...
This avoids the need to regularly access dataman for checking.
2023-07-24 13:10:31 +02:00
Igor Mišić
de598f3e7e
ci: allow tests dataman to pass
...
tests dataman will trigger errors and run_nsh_cmd.py
is not written to detect only when a test fails. This is properly tested with run_tests.py
2023-07-24 13:10:31 +02:00
Igor Mišić
3d6c376b47
dataman: add guards for max item value
2023-07-24 13:10:31 +02:00
Igor Mišić
904f18f409
boards: remove camera capture and trigger from test builds
2023-07-24 13:10:31 +02:00
Igor Mišić
b6b32c5a94
dataman: update compat version
...
A version update is needed since the dataman is showing errors if data doesn't exist or if it is wrongly stored. This will force default data to be initialized.
2023-07-24 13:10:31 +02:00
Igor Mišić
92fc13d928
GeofenceBreachAvoidanceTest: bug fix
2023-07-24 13:10:31 +02:00
Igor Mišić
57f11c8149
dataman: add perf_counter
2023-07-24 13:10:31 +02:00
Igor Mišić
c40a38bd88
dataman: remove locking mechanism
2023-07-24 13:10:31 +02:00
Igor Mišić
3143f6bd0a
mavlink_mission & mission: move dataman update to mission
2023-07-24 13:10:31 +02:00
Igor Mišić
55d8adb35b
mavlink_mission: remove locking mechanism
2023-07-24 13:10:31 +02:00
Igor Mišić
d5ecfe0efe
dataman_client: increase px4_poll timeout to 100_ms
2023-07-24 13:10:31 +02:00
Igor Mišić
d1b660b104
rtl: integrate dataman cache
2023-07-24 13:10:31 +02:00
Igor Mišić
4038eeec3e
geofence: integrate dataman cache
2023-07-24 13:10:31 +02:00
Igor Mišić
e14216c6c7
dataman_client: prevent loading duplicates in the cache
2023-07-24 13:10:31 +02:00
Igor Mišić
80409672b1
mission: integrate dataman cache
2023-07-24 13:10:31 +02:00
Igor Mišić
6453a1c311
datamanClient: add Doxygen documentation for the API.
2023-07-24 13:10:31 +02:00
Igor Mišić
1e49eb419d
datamanClient: add DatamanCache class
2023-07-24 13:10:31 +02:00
Igor Mišić
e6cc3d0118
datamanClient: add async functions
2023-07-24 13:10:31 +02:00
Igor Mišić
208552fdab
dataman: add DatamanClient with sync functions
...
Rework of dataman
2023-07-24 13:10:31 +02:00
Igor Mišić
c67af1479f
dataman: refactoring _file_initialize
...
clear dataman file and init initial value on creation
2023-07-24 13:10:31 +02:00
Igor Mišić
7563ddd91f
navigator: increase stack size by 208 bytes
2023-07-24 13:10:31 +02:00
Igor Mišić
05f5ab7988
simulator_sih: increase stack size by 310 bytes
2023-07-24 13:10:31 +02:00
bresch
eb9bcb0c28
update EKF2 change indicator
...
There is some actual changes because the earth mag field states are now
reset using the WMM when available. In the replay log, the measured mag
field does not match the WMM and this is why there is a large diff. It
is however more correct now than before.
2023-07-24 09:52:52 +02:00
bresch
99824c445c
ekf2: add unit test for earth mag field reset to WMM
2023-07-24 09:52:52 +02:00
Daniel Agar
c8738e3a0d
ekf2: mag control cleanup mag reset
2023-07-24 09:52:52 +02:00
Daniel Agar
57b3c26ab0
Tools/simulation/gz: load ApplyLinkWrench plugin by default ( #21874 )
...
- this can be useful for applying arbitrary forces via ignition transport like hand launching a vehicle by throwing it in the air
2023-07-23 11:05:51 -04:00
bresch
1d96de5cf6
ekf2: add more unit tests for GNSS stopping control logic
2023-07-21 14:53:58 -04:00
Theotime Balaguer
e195a3c0c6
fix issue #21727
2023-07-21 13:13:56 +02:00
Jukka Laitinen
485ec14246
px4_init.cpp: Properly check the return value of mounting procfs
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-07-21 07:30:15 +02:00
Matthias Grob
6889443bd7
temperature_compensation: use snprintf instead of sprintf
...
because sprintf is deprecated on MacOS
and CI fails with warning -> error:
'sprintf' is deprecated: This function is
provided for compatibility reasons only.
Due to security concerns inherent in the
design of sprintf(3), it is highly
recommended that you use snprintf(3) instead.
2023-07-20 13:18:45 +02:00
Junwoo Hwang
a37e3e7b06
Compile Targets Actions: Buildalso on stable, beta, release branches ( #21866 )
2023-07-19 19:17:04 +02:00
Matthias Grob
ce8dd2ba48
deploy_all: add git ownership workaround
...
See
a6d2c2cf5e
2023-07-19 19:09:13 +02:00
Matthias Grob
0c2a8266bc
CI: use the same container versions consistently
...
I updated all versions to the newest one that's used anywhere.
Then at least the straing can be found with full text search.
It's another step towards understanding and unifying the CI environment.
2023-07-19 07:46:45 -07:00
Matthias Grob
39ab1f5809
generate_board_targets: use current version of each container
...
to consistently use container versions and fix the beaglebone build
in metadata deployment CI.
2023-07-19 07:46:45 -07:00
Matthias Grob
013856fac1
generate_board_targets: explicitly specify build containers
...
in order to have the right container version for each toolchain
currently for the metadata deployment GitHub actions build.
2023-07-19 07:46:45 -07:00
Daniel Agar
ec9dce2e89
Update world_magnetic_model to latest Tue Jul 18 11:14:09 UTC 2023
...
* Update world_magnetic_model to latest Tue Jul 18 11:14:09 UTC 2023
* [AUTO COMMIT] update change indication
Co-authored-by: PX4 BuildBot <bot@px4.io >
2023-07-18 14:29:08 -04:00
PX4 BuildBot
70826c5af4
update all px4board kconfig
2023-07-18 14:28:21 -04:00
PX4 BuildBot
db591f25a6
boards: update all NuttX defconfigs
2023-07-18 14:27:37 -04:00
PX4 BuildBot
3f1740cb46
Update submodule sitl_gazebo-classic to latest Tue Jul 18 17:04:39 UTC 2023
...
- sitl_gazebo-classic in PX4/Firmware (a3f398943e ): https://github.com/PX4/PX4-SITL_gazebo-classic/commit/0d53638452e6da4371c12599e1a649608361811e
- sitl_gazebo-classic current upstream: https://github.com/PX4/PX4-SITL_gazebo-classic/commit/c8ac7ff39b694832a3eee6ab568058c145f42c6f
- Changes: https://github.com/PX4/PX4-SITL_gazebo-classic/compare/0d53638452e6da4371c12599e1a649608361811e...c8ac7ff39b694832a3eee6ab568058c145f42c6f
c8ac7ff 2023-07-18 Martina Rivizzigno - Add gimbal device id to mavlink messages DeviceAttitudeStatus and DeviceInformation (#994 )
2023-07-18 14:26:35 -04:00
Daniel Agar
b4687c27fe
Jenkinsfile-compile board updates
2023-07-18 13:53:32 -04:00
Ramon Roche
a3f398943e
ci: update macos runner
2023-07-18 11:45:41 -04:00
Martina Rivizzigno
7f78ae449a
update submodule mavlink to latest Thu Jul 6 10:14:36 2023
...
* remove MAV_PROTOCOL_CAPABILITY_SET_ACTUATOR_TARGET because removed from message def Auterion/mavlink@1c9949e
2023-07-18 11:37:32 -04:00
Beat Küng
8b780f2a96
airframes/x500_v2: move motors from AUX to MAIN
2023-07-18 11:13:16 -04:00
henrykotze
b405a1aa49
advertise esc_status where is publishes
...
- esc_status is an optional logging topic resulting in it not being
logged if it doesn't get advertise -> Add advertise where applicable
2023-07-18 09:23:36 +02:00
Daniel Agar
45968c614e
airspeed_selector: fix aspd typos
2023-07-17 20:37:46 -04:00
Daniel Agar
c0a56ce268
airspeed_selector: fix groundspeed typos
2023-07-17 20:37:46 -04:00
bresch
f5fd369ce8
[AUTO COMMIT] update change indication
2023-07-17 13:43:18 +02:00
bresch
1128ada90a
ekf2: use correct AlphaFilter for 3D rotations
2023-07-17 13:43:18 +02:00
bresch
15bb8c0f2e
AlphaFilter: add unit tests for Rot3 filtering
2023-07-17 13:43:18 +02:00
bresch
c6aa82441f
AlphaFilter: add quaternion specialization
...
Filtering 3D rotations require special care as they live on a curved space.
2023-07-17 13:43:18 +02:00
Silvan Fuhrer
88c5565a29
Commander: remove COM_ARM_ARSP_EN
...
Since we changed the threshold for allowing arming from TRIM/2 to AIRSPEED_MAX
is is very unlikely that one needs to disable this check.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-07-17 10:35:02 +02:00
Silvan Fuhrer
decf1ac0a8
Commander/Nav params: clean up descriptions
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-07-17 10:35:02 +02:00
Silvan Fuhrer
351f2a8287
VTOL: remove VT_B_DEC_FF
...
Experience from tuning different VTOL backtransitions showed only having a
I controller is beneficial over a combined FF/I breaking controller.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-07-17 10:35:02 +02:00
Silvan Fuhrer
8fe5ce4f65
VTOL: param description clean up
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-07-17 10:35:02 +02:00
Beat Küng
327b7e611e
boards/px4/fmu-v5/test: disable modules to reduce flash
2023-07-14 07:51:01 +02:00
Beat Küng
4a18baa4bd
boards/mamba-f405-mk2: disable ekf components to reduce flash
2023-07-14 07:51:01 +02:00
Matthias Grob
83b832fdce
ManualControl: fix case where mode switches unintentionally in air
...
Case: A vehicle is already operating but has no stick input or another
source than RC. When RC stick input is switched to either because it gets
first time available or as a fallback to joystick then the mode was
immediately changed to the switch position. This can lead to loss of
control e.g. when the vehicle is flying far away and the
mode switch of the RC is in some fully manual piloted mode.
I added tests to cover the cases where RC mode initialization is expected
and also unexpceted because the vehicle is already armed.
2023-07-13 12:00:35 +02:00
Matthias Grob
2235c40e28
ManualControl: add functional test for switch behavior
...
Using the established interface processInput() function.
2023-07-13 12:00:35 +02:00
Matthias Grob
877f37d79e
ManualControlSelector: add parentheses in condition for clarity
2023-07-13 12:00:35 +02:00
Matthias Grob
b19b0d0163
ManualControl: separate switches logic function + reset fix
...
Fix the previous switches initialized flag getting reset when no RC was
present or in use. This was found during functional testing.
2023-07-13 12:00:35 +02:00
Matthias Grob
3b2b60adde
ManualControl: put input processing in separate testable function
2023-07-13 12:00:35 +02:00
Matthias Grob
8dc73c4621
ManualControl: correct manual control input subscription name
2023-07-13 12:00:35 +02:00
Matthias Grob
258fc786dc
ManualControl: put parameter update into separate function
2023-07-13 12:00:35 +02:00
Matthias Grob
17535c288c
ManualControl: correct CMake module definition
...
modules__ instead of module__ prefix
The module depends on the hysteresis library and probably because
it compiles with the still prevalent global includes the dependency
is not declared.
2023-07-13 12:00:35 +02:00
Matthias Grob
632596c1ea
FlightTask: correct header comments
2023-07-13 12:00:35 +02:00
Matthias Grob
618724b409
Functional gtests: remove unnecessary subscription updates
...
A new subscription is updated on instanciation and no additional
update needs to be called for processing the first sample.
2023-07-13 12:00:35 +02:00
Sergei Grichine
f000238987
SensorGps.msg: switch to double precision for lat/lon/alt
...
To match https://github.com/PX4/PX4-GPSDrivers/pull/132 - adding high precision RTK lat/lon/alt components
2023-07-13 07:50:09 +02:00
henrykotze
f82785a322
CAN Filters for STM32H7 & bus-off handling
2023-07-12 11:56:37 -04:00
Loic Fernau
f8c9be087b
drivers: rework NXP UWB driver ( #21124 )
...
* UWB driver rework that uses 2 UWB MKBoards - 1 as Controller (Initiator), one as Controllee (Anchor)
Co-authored-by: NXPBrianna <108274268+NXPBrianna@users.noreply.github.com >
2023-07-12 11:44:23 -04:00
Matthias Grob
715a1ff701
Jenkins, docker_run.sh: use Debian 11 armhf container
...
also for the other linux target builds. It's a follow up to
e5503480e3
I wasn't aware that there are multiple different
container versions used for almost the same build.
2023-07-11 17:49:36 +02:00
bresch
9ebfed010f
mag_cal: increase uncertainty of calibration parameters
...
in air bias estimation is usually really accurate and should be weighted
more heavily compared to the calibration parameters that are often
more approximate given the worse magnetic environment near the ground.
2023-07-11 11:33:53 -04:00
bresch
9e2e888f5e
ekf2-bias_cal: reduce required stability period
...
For the mag, 30s of bias learning is a lot, given that it is only active
during turns and that it usually converges in < 5 seconds
2023-07-11 11:33:53 -04:00
bresch
2f52926972
mag_cal: fix mag bias estimate to mag cal
...
- since last_us is set to 0 every time the bias is not observable, the
total time was also reset -> needed 30 consecutive seconds in mag 3D
to be declared "stable"
- after landing, the mag_aligned_in_flight flag is reset. Using this for
bias validity makes it invalid before we have a chance to save it to
the calibration.
2023-07-11 11:33:53 -04:00
alexklimaj
69aa8689c0
Revert "rover_pos_control: thrust normalization for joystick input ( #20885 )"
...
This reverts commit 22f7d913bd .
2023-07-11 08:25:50 -07:00
bresch
f5edff2647
ekf2 - preflt checks: scale flow innovation checks
...
Opt flow raw innovations can be really large on ground due to the small
distance to the ground (vel = flow / dist). To make the pre-flight check
more meaningful, scale it with the current distance.
2023-07-11 08:18:32 -07:00
bresch
672b29d555
ekf2: report dist bottom also when using flow for terrain
...
Terrain height can be estimated using a range finder and/or optical flow
2023-07-11 08:18:32 -07:00
alexklimaj
03528a6200
Add EKF2_OF_QMIN_GND to handle 0 optical flow quality when on ground
2023-07-11 08:18:06 -07:00
alexklimaj
bca0be47bc
Apply code review changes from @dagar
2023-07-11 08:18:06 -07:00
Eric Katzfey
9511248514
Removed the huge HAGL fuse timeout increase
2023-07-11 08:18:06 -07:00
Eric Katzfey
f5d9ac4526
Cleaned up some comments and debug code
2023-07-11 08:18:06 -07:00
mjturi-mai
56c794108d
actual fixes for velocity estimate errors and bad rng fusion
2023-07-11 08:18:06 -07:00
Matthias Grob
2dcb525cd9
RCUpdateTest: RC switch correct corner case test value
...
Co-authored-by: Junwoo Hwang <junwoo091400@gmail.com >
2023-07-11 15:58:48 +02:00
Matthias Grob
42fa41e601
rc_update: fix on-off-switch with negative threshold values
2023-07-11 15:58:48 +02:00
Matthias Grob
1fa5136e30
RCUpdateTest: add unit test for return switch
2023-07-11 15:58:48 +02:00
Matthias Grob
392d445783
RCUpdateTest: fix unit test parameters + restoring state after test
...
Channel values stay over one unit test but some tests assumed they are
reset each time. Reset the channel after these mode button tests.
Parameters survive between unit tests presumably as long as
the bianry runs. Reset them if a test requires that.
2023-07-11 15:58:48 +02:00
Matthias Grob
e127ada07b
rc_update: extend ModuleParams::updateParams() for local parameter updates
2023-07-11 15:58:48 +02:00
Matthias Grob
87c697a0d6
rc_update: switch back to protected scope and use fixture for testing
2023-07-11 15:58:48 +02:00
Silvan Fuhrer
81764c43a1
EKF2: use timestamp from argument of PublishEvPosBias() ( #21822 )
...
* EKF2: use timestamp from argument of PublishEvPosBias()
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* Update src/modules/ekf2/EKF2.cpp
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2023-07-11 11:07:39 +02:00
Matthias Grob
02ab5e0704
drv_pwm_output: remove unused PWM_ defines
2023-07-10 18:58:37 +02:00
Matthias Grob
e776aca9ef
UUV: stop motors when commanding zero speed
2023-07-10 18:58:37 +02:00
Matthias Grob
6b7aed3d44
Boats: stop motors when commanding zero speed
2023-07-10 18:58:37 +02:00
Matthias Grob
95a35c972d
Rovers: stop motors when commanding zero speed
2023-07-10 18:58:37 +02:00
Matthias Grob
0be6069b83
TiltrotorVTOL: allow stopping front tilted motors in fast forward flight
2023-07-10 18:58:37 +02:00
Matthias Grob
66b451e61f
TailsitterVTOL: allow explicitly stop forward motor with zero thrust
2023-07-10 18:58:37 +02:00
Matthias Grob
5568afbb12
StandardVTOL: explicitly stop forward motor with zero thrust
2023-07-10 18:58:37 +02:00
Matthias Grob
6b7b34a71a
FixedWing: explicitly stop forward motor with zero thrust
...
This allows PWM and all other output methods to configure
stopped, idling and full thrust points and use them consistently.
The fact that a fixed wing motor can be stopped when zero thrust
is demanded is explicit and could in principle even be disabled.
The mechanism is the same as for a standard VTOL stopping the
multicopter motors in the fixed wing flight phase.
2023-07-10 18:58:37 +02:00
Matthias Grob
2a077181d9
ActuatorEffectiveness: add function to delectively stop motors with zero thrust
2023-07-10 18:58:37 +02:00
Matthias Grob
a8bf47e606
Set default minimum and maximum PWM for motors
...
This allows to consistently define:
Motor stopped - disarmed PWM
Motor idling - minimum PWM
Motor at full thrust - maximum PWM
Any allocation can then distinctly decide if
a motor should be running or not depending
on the context and also explicitly command that.
2023-07-10 18:58:37 +02:00
xianglunkai
646f711b1a
fake_magnetometer: add dpends=fake_magnetometer
2023-07-06 22:43:13 -04:00
Beat Küng
0d6cb46c83
lightware_laser_i2c: add SF30/D
2023-07-06 22:42:39 -04:00
bresch
afa085da7f
geofence: fix altitude change fence check
...
When asking for an altitude change only, the current position needs to
be used, otherwise the geofence check is be skipped
2023-07-06 22:39:39 -04:00
Julian Oes
745fa3720e
fmu-v6x: build battery status
...
This is required to process data from the ADS1115 ADC and enables the
params BATx_I_CHANNEL and BATx_V_CHANNEL.
Testing is required whether this actually works on Pixhawk 6X though.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-07-07 13:40:58 +12:00
Vincent Poon
e18da100ed
Add ADC_ADS1115 Parameter to FMUv6x Default Build
...
Adding ADC_ADS1115 Parameter to FMUv6x Default Build to allow FMUv6X user to use ADS1115 with Analog Power Modules.
2023-07-07 13:40:58 +12:00
Antonio Sanjurjo C
c1cb48c2ea
EKF2 cleanup. Use MAX_NUM_x constants instead of hard-coded numbers
...
Signed-off-by: Antonio Sanjurjo C <74329840+antonio-sc66@users.noreply.github.com >
2023-07-06 09:36:27 +02:00
Patrick José Pereira
39e04d9712
lib: matrix: SquareMatrix: Deal with the special case of M=1
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2023-07-06 08:24:33 +02:00
Patrick José Pereira
724f5a97a9
platform: posix: px4: Add missing ctsdint include for uint8_t
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2023-07-06 08:24:33 +02:00
Julian Oes
a6502c9f2b
ROMFS: auto try RGBLED is31fl3195
...
This is required to auto-start the is31fl3195 driver if connected.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-07-05 20:49:39 +12:00
Thomas Stastny
dccfcb85c1
(Mission) FeasibilityChecker: remove duplicate line
2023-07-04 11:17:23 +02:00
Silvan Fuhrer
a617e9c54b
Navigator RTL: run find_RTL_destination() only on_inactive
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-07-04 09:36:22 +02:00
Silvan Fuhrer
f275085e84
Navigator: Loiter: always establish new Loiter with center at current pos
...
When switching into Hold mode establish a Loiter around current position,
even if we were before already loitering (eg in Mission mode).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-07-04 09:35:40 +02:00
Mathieu Bresciani
288e3ae74a
EKF2: vision attitude error filter ( #21791 )
...
* ekf2-ev: filter q_error for frame correction
* ekf2: filter EV attitude error centrally
2023-07-03 11:13:59 -04:00
Andrew Brahim
24665f10f2
VL53L1X: fix scheduling ( #21787 )
...
* should be 50 Hz instead of 50,000 Hz
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2023-07-03 10:49:53 -04:00
Matthias Grob
a36c922fc0
ActuatorEffectivenessHelicopterTest: adapt to new constructor
2023-07-03 16:21:27 +02:00
Beat Küng
77d6c722a7
helicopter: add tail servo support
...
as a separate CA_AIRFRAME, as the UI cannot switch between servo/motor.
2023-07-03 16:21:27 +02:00
Beat Küng
bae413a332
v6x: start mavlink on TELEM2 for skynode
...
Equivalent to v5x
2023-07-03 16:20:41 +02:00
Igor Mišić
abe0ca1307
boards/holybro/kakutef7: enable gps, osd, top, dmesg. Disable uxrce_dds
2023-07-03 11:22:33 +02:00
Igor Mišić
f5193bb155
boards/holybro/kakutef7: enable rc serial singlewire
2023-07-03 11:22:33 +02:00
Igor Mišić
2307d4aa22
boards/holybro/kakutef7: remove px4_platform_config
...
kakutef7 doesn't use manifest
2023-07-03 11:22:33 +02:00
Harrison Gieraltowski
018ec97c41
mavlink_log_handler: handle _next_entry ( #21784 )
2023-07-03 10:30:07 +02:00
Igor Mišić
bfa72a1bee
rc.board_arch_defaults: add the silent flag for EKF2_MULTI_IMU
2023-07-03 10:08:26 +02:00
Matthias Grob
b7e2a9c320
FlightTaskAltitude: remove duplicate, deprecated yaw stick handling
2023-07-03 09:52:47 +02:00
Matthias Grob
4d465533b5
FlightTaskManualAcceleration: remove duplicate yaw stick handling
...
It's already instanciated and ran by FlightTaskManualAltitude
which FlightTaskManualAcceleration inherits from.
2023-07-03 09:52:47 +02:00
Matthias Grob
03183ccacf
mc_pos_control_params: remove forgotten trailing zeroes
2023-07-03 09:52:47 +02:00
Junwoo Hwang
0196241c10
stale action: Configure again ( #21785 )
...
Having newline between I think didn't apply the PR stale days setting of
30 properly (it was using 45)
And it seemd that unless I set the days-before-close to -1
intentionally, it would still close the Issue/PRs, as the default value
is 7 already.
Also updated version of the stale action to v8
2023-06-30 19:12:16 +02:00
Junwoo Hwang
3557644010
Stale action re-configure (still just debug mode) ( #21783 )
...
* Remove old stale bot yaml file
* Remove slack svg file (unused)
* Stale action: Only apply stale label, and no other actions
Respecting the opinion on
https://github.com/PX4/PX4-Autopilot/commit/fa9ac6ecf651232f3105ca124a2d2c54ab8620d0 ,
it seems reasonable to disable commenting feature, and just keep the
action only applying the `stale` label. This will reduce the noise /
email spams / ping pong fight with the stale bot (Action)
2023-06-30 17:18:43 +02:00
Junwoo Hwang
46b09acf0b
Update Issue templates ( #21779 )
...
- Remove unnecessary text rendering, which made clicking log links
harder
- Re adjust markdown elements to make it easier to read / intuitive when
creating an issue
2023-06-30 16:45:05 +02:00
Silvan Fuhrer
4348dcce2a
Navigator: loiter: remove unnecessary _loiter_pos_set ( #21776 )
...
* Navigator: loiter: remove unnecessary _loiter_pos_set
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* Navigator: loiter: remove commented line
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2023-06-30 15:40:20 +02:00
Matthias Grob
a6d2c2cf5e
Github Actions: add workaround for dubious ownership errors
...
until I figure out what a better solution
would look like.
See
https://github.com/actions/runner/issues/2033
2023-06-27 17:17:31 +02:00
Matthias Grob
e5503480e3
GitHub Actions: use Debian 11 to build linux targets
...
This solves the CI problem related to the required cmake version
described here:
https://github.com/PX4/PX4-Autopilot/pull/21737#pullrequestreview-1489844308
See https://github.com/PX4/PX4-containers/pull/332
for the container changes.
2023-06-27 17:17:31 +02:00
Peter van der Perk
e739afe362
MR-CANHUBK3 ADAP board support, add ADC support
2023-06-27 07:24:07 -04:00
Silvan Fuhrer
e34993969b
tiltrotor: expose tilting duration of backtransition in param
...
Instead of hard-coding the tilting duration (from FW to MC tilt),
expose it as a parameter (VT_BT_TILT_DUR). The default is the same
as the hard-coded value previously (1s).
Slower tilting mechanisms need a higher value here, while for smaller
ones a too high value results in unnecessary delays till the motors
are in hover configuration.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-27 10:11:41 +02:00
Silvan Fuhrer
05489f9ecf
tiltrotor: reduce BACKTRANS_THROTTLE_UPRAMP_DUR_S to 0.5s
...
This reduces the motor ramp up time after a transitions is declared over.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-27 10:11:41 +02:00
Silvan Fuhrer
c26b699f8a
tiltrotor: reduce BACKTRANS_THROTTLE_DOWNRAMP_DUR_S from 1 to 0.5s
...
This affects how soon after a backtransition the vehicle has the
full hover controller running again. Specifically it reduces the
duration of the ramp down of the motors prior to tilting them.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-27 10:11:41 +02:00
Ramon Roche
98d8935034
drivers/barometer/invensense/icp201xx: increase delay after configuration ( #21765 )
...
- fixes wrong altitude reporting
2023-06-26 14:16:06 -04:00
bresch
8d1b0e45fa
opt-requirements: bump SymForce version
2023-06-26 14:10:54 -04:00
bresch
eb70c9f6f3
ekf2: update auto-generated code to SymForce 0.9.0
2023-06-26 14:10:54 -04:00
bresch
fdf7867a3e
ekf2: update derivation to SymForce 0.9.0
2023-06-26 14:10:54 -04:00
bresch
c99f56f010
wind_estimator: update generated code to Symforce 0.9.0
2023-06-26 14:10:54 -04:00
bresch
73e5ff109c
wind_estimator: update derivation to use SymForce 0.9.0
2023-06-26 14:10:54 -04:00
Matthias Grob
7e79d65aa4
mc_pos_control_params: clarify maximum vertical velocity parameters
2023-06-26 17:01:20 +02:00
Matthias Grob
439670444f
mc_pos_control_params: more gain & velocity decimals, more clear wording
2023-06-26 17:01:20 +02:00
Matthias Grob
a6a913bf25
mc_pos_control: remove trailing zeroes
2023-06-26 17:01:20 +02:00
Matthias Grob
54a351639c
mc_pos_control: improve parameter metadata
...
- Adapted descriptions to be more clear
- Adjusted some limits and decimals
2023-06-26 17:01:20 +02:00
Matthias Grob
d00ad1b815
mc_pos_control: separate parameter metadata into multiple files
...
because the original file was almost 1k lines and
the order of parameters more historical than after topic.
2023-06-26 17:01:20 +02:00
Matthias Grob
20d0661e87
HealthAndArmingChecks: disallow arming via parameter
...
COM_ARMABLE is set to "Disabled" will prevent arming.
This allows to set the parameter when ground demoing a drone or
if it's in maintenance for safety reasons.
2023-06-22 13:17:47 +02:00
Matthias Grob
173407581b
HealthAndArmingChecks: reorder CMakeLists alphabetically
2023-06-22 13:17:47 +02:00
Sean Murphy
7ed90c6d0c
ekf2: process_logdata_ekf.py fix reject_mag* and imu_coning* key errors
2023-06-21 21:08:43 -04:00
Josh Henderson
a07d10704b
ROMFS : POSIX Airframes reserve space for custom models
2023-06-21 21:06:07 -04:00
Matthias Grob
18d89e4bc1
lightware_lase_serial: fix pointer for enabling serial mode
...
const char *data = "www\r\n";
Defines a cstring of 6 bytes: 'w', 'w', 'w', '\r', '\n', '\0'
type of data: char const*
type of &data: char const**
So when we call
write(_fd, &data, strlen(data));
then strlen(data) == 5
and we send the 4 byte memory address of data
+ some additional random byte.
Correct is
write(_fd, data, strlen(data));
where char const* gets casted to const void * and we pass
the pointer to the content of data.
The fundamental problem here is write() not being typesafe.
2023-06-21 15:59:12 +02:00
Thomas Debrunner
fd267fb9a5
param save: Add a blocking API for param saves to be used from shell.
2023-06-21 08:19:52 +02:00
Silvan Fuhrer
18f0311161
Navigator: Mission: improve survey mission resume
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-20 14:38:03 +02:00
Silvan Fuhrer
24b1ef93b2
Mission: reset mission on landing only if last item was reached
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-20 14:38:03 +02:00
Silvan Fuhrer
c6870006c7
Navigator: move disable camera trigger on mission inactivation to seperate function
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-20 14:38:03 +02:00
Daniel Agar
d9ae2ed7ac
ekf2: regenerate yaw estimator symforce
...
- remove underscore uppercase variable naming that can be problematic
2023-06-19 21:00:25 -04:00
Silvan Fuhrer
2a48c1cb18
boards: disable gyro fft module for v4 to safe flash
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-19 16:22:42 -04:00
Beat Küng
65ad6afb08
Micro-XRCE-DDS-Client: update submodule
...
Go get https://github.com/eProsima/Micro-XRCE-DDS-Client/pull/359 .
2023-06-19 16:05:36 -04:00
Silvan Fuhrer
4632fbd600
FWRateController: use param find for VT_DIFTHR_EN as pure FW build doesn't have VTOL module built
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-19 10:59:20 +02:00
Matthias Grob
69aebe650b
FixedwingRateControl: rework VTOL differential thrust saturation
...
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-19 10:59:20 +02:00
Matthias Grob
53b9e66c66
RateControl: allow setting individual saturation flags
...
This helps for more complicated cases where certain axes are controlled
through and get feedback from a different allocator.
2023-06-19 10:59:20 +02:00
Beniamino Pozzan
957a06a780
Fix enum for COM_RC_IN_MODE in failsafe
...
add enum RcInMode
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-06-19 08:04:43 +02:00
Niklas Hauser
8fe65c6722
Driver: Refactor MCP23009 GPIO expander into uORB driver
2023-06-19 07:58:21 +02:00
Konrad
3303323971
mavlink stream: Heartbeat system status should neglect the actuator_armed.lockdown flag in HIL, since this is always enabled for HIL.
2023-06-16 14:21:32 +02:00
Matthias Grob
053d3020b0
esc_calibration: handle timeout wraps better
...
Co-authored-by: Beat Küng <beat-kueng@gmx.net >
2023-06-16 12:05:47 +02:00
Matthias Grob
cfb24869e9
esc_calibration: allow to calibrate ESCs without battery detection
...
Before this the ESC calibration aborts if battery detection doesn't work.
The problem is if the user still connects the battery as he gets instructed
and the calibration aborts then the ESCs are in calibration mode and
after abortion calibrate to the wrong value.
Also I realized there's no additional safety by aborting the calibration
if the battery cannot be detected during the timeout because a pixhawk
board without power module will report a battery status from the
ADC driverand in it that no battery is connected which is the best
it can do. In this situation the motors will still spin if the
ESCs are powered.
2023-06-16 12:05:47 +02:00
Matthias Grob
4396b6e9f6
esc_calibration: adjust timing to work with all tested ESCs
...
Some ESCs e.g. Gaui enter the menu relatively quickly if the
signal is high for too long. To solve that it's kept high shorter.
Also all tested ESCs detect the low signal within a shorter time
so no need to wait longer.
2023-06-16 12:05:47 +02:00
Matthias Grob
6929493134
esc_calibration: Improve readability and robustness
...
- Change timings for a more reliable calibration.
- Make sure there's an error message when battery measurement is not
available also when it gets disabled after system boot in the power
just above the calibration button.
- Safety check if measured electrical current goes up after issuing the
high calibration value for the case the user did not unplug power
and the detection either fails or is not enforced.
2023-06-16 12:05:47 +02:00
Matthias Grob
a28ad8e845
mixer_module: consistent PWM/oneshot calibration range
2023-06-16 12:05:47 +02:00
Matthias Grob
1ceca8f2cf
actuator_test: condition order refactoring
2023-06-16 12:05:47 +02:00
Matthias Grob
ffe0ec27e6
Unify MixingOutput constructor calls
...
to make them easy to search for and check the arguments.
2023-06-16 12:05:47 +02:00
Silvan Fuhrer
fc357921fd
navigator: send commands to anyone listening
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-12 09:41:28 +02:00
Junwoo Hwang
9b95330efc
Github Issue: Replace Bug report to YAML
2023-06-09 21:18:28 -04:00
Junwoo Hwang
6b1f805b15
Issue Template: Move Feature request to YAML
2023-06-09 21:18:28 -04:00
Junwoo Hwang
89e8ba0b53
Issue Template: Switch to YAML for direct links
2023-06-09 21:18:28 -04:00
PX4 BuildBot
bbc6ed43bd
Update submodule sitl_gazebo-classic to latest Sat Jun 10 00:39:02 UTC 2023
...
- sitl_gazebo-classic in PX4/Firmware (f9510557a6 ): https://github.com/PX4/PX4-SITL_gazebo-classic/commit/2e3ed9bfb04d8865e59380afa575dd37b0d6c8e0
- sitl_gazebo-classic current upstream: https://github.com/PX4/PX4-SITL_gazebo-classic/commit/0d53638452e6da4371c12599e1a649608361811e
- Changes: https://github.com/PX4/PX4-SITL_gazebo-classic/compare/2e3ed9bfb04d8865e59380afa575dd37b0d6c8e0...0d53638452e6da4371c12599e1a649608361811e
0d53638 2023-05-23 JaeyoungLim - Fix force visualization feature (#985 )
9bfecb6 2023-05-22 JaeyoungLim - Fix readme displayed in github (#984 )
2023-06-09 21:17:46 -04:00
alexklimaj
51a4eafe0c
ARKV6X sync with FMUV6X
2023-06-09 21:17:12 -04:00
Matthias Grob
94d2140a4f
mixer_module: remove unnecessary init state
...
That state only delayed the first arming by 50 miliseconds.
Was presumably a workaround for some issue very very early on.
See cc452834c0
2023-06-09 21:15:08 -04:00
Matthias Grob
0f256718d3
mixer_module: correct pwm ramp
...
Before:
When the mixed throttle for the motor was exactly zero the ramp went
from the disarmed PWM value to the minimum PWM value.
When the throttle was even just slightly different from zero the ramp
made a jump up to the commanded throttle scaled between
disarmed PWM and maximum PWM, then ramped between
disarmed PWM and minimum PWM and at the end jumped up again to
the commanded throttle scaled between minimum PWM and maximum PWM.
After:
The ramp goes from disarmed PWM value to the the
commanded throttle scaled between minimum PWM and maximum PWM.
If the commanded throttle changes during the ramp then the scale and
hence also end value of the ramp changes.
2023-06-09 21:15:08 -04:00
Mathieu Bresciani
24de623989
EKF2: Zero gyro update ( #21691 )
...
When at rest, directly fuse the gyro data as an observation of its bias.
This allows to strongly observe the gyro biases without having to fuse a
constant heading that makes the ekf too confident about its heading.
2023-06-09 21:13:18 -04:00
Beat Küng
c95539e8ce
boards: increase init stack size by 150B
...
External airframes need a bit more stack due to nested configs.
2023-06-09 21:11:11 -04:00
Beat Küng
7230a6dd8e
commander: add option to exclude mag to param SYS_FAC_CAL_MODE
2023-06-09 21:05:40 -04:00
bresch
8b67fa91a1
factory cal: exclude _PRIO params
2023-06-09 21:05:40 -04:00
alessandro
f9510557a6
always trigger all cameras
2023-06-09 13:17:45 +02:00
Morten Fyhn Amundsen
135f02679a
ekf2: Fix description of EKF2_HDG_GATE
2023-06-09 11:52:55 +02:00
alexklimaj
c3db4f57df
Subscribe to all intances of gps_inject_data and mirror uavcan rtcm pub mirror gps driver
2023-06-09 14:51:28 +12:00
alexklimaj
5b8ae69f47
uavcan rtcm set max num injections
2023-06-09 14:51:28 +12:00
alexklimaj
acd19a0520
Ublox add UBX-RXM-RTCM for RTCM input status
2023-06-09 14:51:28 +12:00
Beat Küng
f119cca3b3
logger: restart on file write error
...
This can also happen if the maximum file size is reached.
2023-06-08 09:52:49 +02:00
Hamish Willee
ea61d74c17
ADS1115: update docs ( #21638 )
2023-06-08 08:55:31 +02:00
mcsauder
1707805ed2
Remove the simulator SIH module from fmu-v5x test build and the fixedwing autotune module from the fmu-v5 test build to meet flash constraints.
2023-06-07 12:07:29 -04:00
mcsauder
af44da25f0
Use accel of the same instance or primary baro for gyro instances that do not have valid temperature readings in temperature calibration data, use primary baro for magnetometers without valid temperature.
2023-06-07 12:07:29 -04:00
mcsauder
b8ad9bdbe5
Add magnetometer thermal compensation.
2023-06-07 12:07:29 -04:00
oneWayOut
6ee2d796ea
delete unused ECL_LIB_GIT_VERSION
...
Since 'ecl' is nomore a git submodule, code lines related to
'ECL_LIB_GIT_VERSION' could be deleted
2023-06-06 11:24:49 -04:00
Matthias Grob
f4de43a10b
PULL_REQUEST_TEMPLATE: fix typo
2023-06-06 17:22:33 +02:00
Matthias Grob
b625e43566
rc_update: throttle trim centering fix for reverse channel
...
The entire logic did not work for the case when the throttle channel is
reversed because then QGC sets trim = max for that channel and
the result is only half the throttle range.
2023-06-06 17:22:33 +02:00
Julian Oes
cd485b3a13
lights: Add LP5562 RGBLED driver
...
This adds support for the TI LP5562 RGB LED driver.
Things to note:
- The driver is initialized in simple PWM mode using its internal clock,
for R,G,B, but not for W(hite).
- The chip doesn't have a WHO_AM_I or DEVICE_ID register to check.
Instead we read the W_CURRENT register that we're generally not using
and therefore doesn't get changed.
- The current is left at the default 17.5 mA but could be changed using
the command line argument.
Datasheet:
https://www.ti.com/lit/ds/symlink/lp5562.pdf
Signed-off-by: Julian Oes <julian@oes.ch >
2023-06-06 13:12:44 +12:00
Eric Katzfey
c468266b27
boards: Update modalai fcv2 board support ( #21653 )
...
* Removed obsolete voxl2-io directory
* Updated support for ModalAI FC v2 board
* Added UAVCAN back in and removed local position estimator and attitude estimator Q that are no longer supported.
* Removed unneeded IMU drivers
2023-06-05 12:42:46 -04:00
bresch
5233b33242
update change indicator
2023-06-05 11:58:42 -04:00
bresch
403a6310c4
gnss yaw: compare auto-generated Jacobian against autodiff
2023-06-05 11:58:42 -04:00
bresch
c6b259d5f6
yaw_fusion: compare auto-generated Jacobian against autodiff
2023-06-05 11:58:42 -04:00
bresch
d4528dc53a
sideslip: compare auto-generated Jacobian against autodiff
2023-06-05 11:58:42 -04:00
bresch
e7c4a22be8
mag_3d: compare auto-generated Jacobian against autodiff
2023-06-05 11:58:42 -04:00
bresch
c6f1a63659
opt_flow: compare auto-generated Jacobian against autodiff
2023-06-05 11:58:42 -04:00
bresch
d03f242c04
DCM: use simplified conversion from unit quaternion
...
This is exactly equivalent for a unit quaternion (and only unit
quaternions should be used to encode a rotation)
2023-06-05 11:58:42 -04:00
bresch
9d7abf2552
ekf2: symforce - use builtin Rot3 and Quaternion operations
2023-06-05 11:58:42 -04:00
Julian Oes
ea8b985a2f
netman: fix line too long
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-06-05 12:01:07 +12:00
Ramon Roche
2f448e9d9f
netman: update module description ( #21664 )
...
Co-authored-by: David Sidrane <David.Sidrane@Nscdg.com >
Co-authored-by: Hamish Willee <hamishwillee@gmail.com >
2023-06-02 09:33:18 -07:00
Giacomo Bertelli
99f6d4190c
Update sitl_multiple_run.sh ( #21538 )
...
Edited line to account for the fact that the file has been moved one level deeper in the folder tree (the same edit should be made in the documentation https://docs.px4.io/main/en/simulation/multi_vehicle_jmavsim.html )
2023-06-02 10:28:49 +02:00
Silvan Fuhrer
a52c0fd9f5
FW TECS: reduce default for FW_T_I_GAIN_THR to more appropriate 0.05
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-02 10:23:46 +02:00
Silvan Fuhrer
1c7320b9e3
VTOL: params: add missing @decimal and @increment
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-02 10:23:46 +02:00
Silvan Fuhrer
ac811450e5
Tiltrotor params: set default for VT_TILT_TRANS to 0.4
...
0.4 tilt is more reasobale to get nice transitions than
the previous 0.3.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-02 10:23:46 +02:00
Silvan Fuhrer
8f64c79b4c
FWAttitudeController: params: increases parameter ranges
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-02 10:23:46 +02:00
Silvan Fuhrer
459f9c5331
Commander: open up limits on TRIM_ROLL/PITCH/YAW to +/- 50%
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-02 10:23:46 +02:00
Silvan Fuhrer
ad778b37f5
FWRateController: fix @group, all should be in FW Rate Control group
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-02 10:23:46 +02:00
Silvan Fuhrer
f41ad10275
FW Rate Controller: relax param ranges
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-02 10:23:46 +02:00
Silvan Fuhrer
a1167d6c98
Navigator: make sure to reset mission.item fields touched by set_vtol_transition_item ( #21641 )
...
set_vtol_transition_item sets the params of the mission item directly
to values that make sense for NAV_CMD_DO_VTOL_TRANSITION, but don't
for other NAV_CMDs. So make sure that whenever we use it, we then in
the next step reset the touched mission_item fields.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-06-02 10:21:23 +02:00
Niklas Hauser
ebe152fc22
fmu-v6x: Increase Mavlink UART buffers
...
Our serial_test showed only ~84kB/s with the default 256 RX buffer size
with significant ~2.5ms periods of the flow control RTS pin being
asserted. Increasing size to 600 (same as FMU-v5x) brings the throughput
only to ~190kB/s, while a size of >1500 achieves ~350kB/s. Larger RX
buffers do not increase throughput anymore, while the theoretical
maximum is 375kB/s.
Transmit buffer size is increased to 10kB same as on FMUv5x to prevent
any future differences in queue behavior and throughput. serial_test
showed ~350kB/s throughput at 3kB TX buffer size, so this is just a
precaution.
2023-06-01 07:55:21 +02:00
Eric Katzfey
d2011e99b2
commander: add Open Drone ID arming check ( #21652 )
2023-06-01 07:52:52 +02:00
Silvan Fuhrer
4b5e14aeec
Navigator: MissionFeasibilityCheck: check if items fit to the current vehicle type ( #21602 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-31 19:27:27 +02:00
Roman Bapst
d6413a6a90
Refactor uncommanded descend Quad-Chute ( #21598 )
...
* refactored uncommanded descend quadchute
- use fixed altitude error threshold
- compute error relative to higest altitude the vehicle has achieved
since it has flown below the altitude reference (setpoint)
* disabled altitude loss quadchute by default
* altitude loss quadchute: added protection against invalid local z
---------
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-05-31 17:57:50 +02:00
henrykotze
fab58ee2bc
cannode prearm by default enable on ArmingStatus
...
- ArmingStatus DroneCAN message STATUS field is only set to true based on
arming_status.armed
- Cannode prearm state is set to true always when ArmingStatus DroneCan
message is received
2023-05-31 11:20:31 -04:00
Beat Küng
db18a94382
refactor param: reduce flash usage
...
Reduces usage by ~1.5KB
2023-05-31 07:45:20 +02:00
Beat Küng
1bfca24fa9
refactor param: move autosave to px4::wq_configurations::lp_default work queue
...
Changes initialization order as param_init now depends on wq manager
2023-05-31 07:45:20 +02:00
Beat Küng
e65a0a01d6
fix WorkQueueManager: wait until running to prevent race conditions
2023-05-31 07:45:20 +02:00
Thomas Debrunner
f0dd9fa445
param: Add contained-params-bitset export interface to the param layers
...
Allows for efficient looping over the contained data
2023-05-31 07:45:20 +02:00
Thomas Debrunner
bc872822bc
params: Overhaul param system to use a layered approach without locking
...
- Instead we disable interrups on Nuttx where needed
- No lock is held during param export. Params can be changed
concurrently and we rely on the fact that another export will be
triggered in that case.
2023-05-31 07:45:20 +02:00
alexklimaj
70178b66d8
Cannode add OSD drivers
2023-05-29 14:07:38 +02:00
Silvan Fuhrer
f0b476bcba
ROMFS: set default for VT_B_TRANS_DUR for all tailsitter configs to 5s
...
5s is a more reasobale time for tailsitters, which rely differently on this param
than other VTOL types. Tailsitters will ramp the pitch up withing this time,
while for other VTOLS types its only the max transitiont time.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-29 12:25:20 +02:00
Silvan Fuhrer
ee19ec4670
ROMFS: tailsitter SITL config: improve tuning after model changes
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-29 12:25:20 +02:00
Silvan Fuhrer
f96073f442
ROMFS: quadtailsitter SITL config: improve tuning
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-29 12:25:20 +02:00
Julian Oes
6977fd9956
ROMFS: initial quadtailsitter tuning
...
This is now using the advanced lift drag plugin.
The important step was to enable airmode for yaw, otherwise yaw gets
saturated at low throttle and we can barely roll.
The other trick was to raise airspeed a little bit to avoid operating
too much at the lower end of throttle where control authority is low.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-05-29 12:25:20 +02:00
JaeyoungLim
e3aea937c3
Support quadtailsitter in SITL
2023-05-29 12:25:20 +02:00
Daniel Agar
6535cc758e
ekf2: fuse mag update last heading fuse time if updating all states
...
- handle synthetic z special case
2023-05-26 08:48:08 -06:00
Silvan Fuhrer
bd182ecf70
FWPositionControl: navigateWaypoints: fix logic if already past waypoint and need to turn back ( #21635 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-26 15:12:42 +02:00
Silvan Fuhrer
ad769db8d6
FW Rate Controller: allow to enable/disable yaw axis in Acro ( #21566 )
...
* RateControl: rename setGains to setPidGains to be more precise
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* FW Rate controller: only allow to disable Yaw in Acro, not roll and pitch
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-26 15:09:29 +02:00
Alex Klimaj
ee96d209d7
drivers/uavcannode: add GNSS Auxiliary publisher
2023-05-24 21:27:50 -04:00
Junwoo Hwang
822d784335
Create stale bot (Github actions) ( #21630 )
2023-05-24 10:13:40 +09:00
Loïc Dubois
1b9d90e7c4
mavlink: fix mismatch between header macros and class used
2023-05-23 20:44:32 -04:00
alexklimaj
dc99a875c3
Mavlink receiver unadvertise all
...
uorb multi pubs in destructor
2023-05-23 18:40:06 -06:00
Matthias Grob
c903288f4c
ManualControlSelectorTest: adapt to using input validity flag
2023-05-23 17:24:17 +02:00
Matthias Grob
7b6f45079b
ManualControl: use input validity flag to check for RC calibration
2023-05-23 17:24:17 +02:00
Matthias Grob
7d0596d244
RCInput: follow topic name convention
2023-05-23 17:24:17 +02:00
Patrick José Pereira
8feb662557
systemcmds: Use snprintf over sprintf
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2023-05-22 07:46:54 +02:00
Patrick José Pereira
09f282b282
temperature_compensation: Use snprintf over sprintf
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2023-05-22 07:46:54 +02:00
Patrick José Pereira
5fff0526cf
rc_update: Use snprintf over sprintf
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2023-05-22 07:46:54 +02:00
Patrick José Pereira
837847f3ad
mavlink: Use snprintf over sprintf
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2023-05-22 07:46:54 +02:00
Patrick José Pereira
ca1d32a29d
HealthAndArmingChecks: Use snprintf over sprintf
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2023-05-22 07:46:54 +02:00
Patrick José Pereira
cee21bd703
sensor_calibration: Use snprintf over sprintf
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2023-05-22 07:46:54 +02:00
Patrick José Pereira
643d89f54b
uORB: Use snprintf over sprintf
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2023-05-22 07:46:54 +02:00
Patrick José Pereira
dc2428a348
px4_log: Use snprintf over sprintf
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com >
2023-05-22 07:46:54 +02:00
Daniel Agar
bb0f2875a9
ekf2: disable multi-EKF across mags by default (H7 & SITL) for now
...
- re-enable once the estimator selector respects configured mag
priority (at least initially) or is otherwise able to automatically
prefer an external mag over internal
- for SITL disabled because the full matrix of esitmator instances
(IMUs X mags) was too many topics for logger currently
2023-05-19 18:35:57 -06:00
PX4 BuildBot
74105907c9
Update submodule mavlink to latest Fri May 19 12:38:47 UTC 2023
...
- mavlink in PX4/Firmware (0ff9816579d1c5a4086ec7b9d05fe7a79c410df2): https://github.com/mavlink/mavlink/commit/3ee5382d0c96134b0e1c250d8c2d54bfed0166fa
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/18955a04c7c7467e00ea42b704addb4a9c12b53a
- Changes: https://github.com/mavlink/mavlink/compare/3ee5382d0c96134b0e1c250d8c2d54bfed0166fa...18955a04c7c7467e00ea42b704addb4a9c12b53a
18955a04 2023-05-11 Nick Exton - common.xml: Add MAV_RESULT_COMMAND_LONG_ONLY and MAV_RESULT_COMMAND_INT_ONLY to MAV_RESULT (#1982 )
b92321ba 2023-03-30 Hamish Willee - Update message_definitions/v1.0/common.xml
58ff70f4 2023-03-30 Hamish Willee - COMMAND_ACK progress/result_param2 clarification
31b4aebb 2023-05-11 Julian Oes - cmake: locally install pip dependencies (#1984 )
e9bf6a61 2023-05-10 Hamish Willee - Gimbal manager messages - remove WIP tagging (#1980 )
0416967f 2023-05-10 Beat Küng - development: changes to standard flight modes (#1915 )
ce00667f 2023-05-04 Jonas Vautherin - New cmakelists (#1977 )
fdef5cc0 2023-05-03 Nick Exton - common.xml: Prefer COMMAND_INT when command includes altitude field (#1983 )
89676d1d 2023-05-03 Nick Exton - common.xml: Add ZOOM_TYPE_HORIZONTAL_FOV to CAMERA_ZOOM_TYPE enum (#1979 )
2023-05-19 08:41:38 -06:00
PX4 BuildBot
6c9dcd535c
Update submodule devices to latest Fri May 19 12:38:42 UTC 2023
...
- devices in PX4/Firmware (6a645f244654695f3b178b576f7f8972f87ad774): https://github.com/PX4/PX4-GPSDrivers/commit/7d19f689f0781ef4fcaa624b318fac3fe744e59b
- devices current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/99f5960eca66150e33dc277e71a4c99187c27ddc
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/7d19f689f0781ef4fcaa624b318fac3fe744e59b...99f5960eca66150e33dc277e71a4c99187c27ddc
99f5960 2023-05-02 Eric Katzfey - sbf: fixed compile errors for Qurt platform (#129 )
2023-05-19 08:41:21 -06:00
PX4 BuildBot
8ae7720569
Update submodule sitl_gazebo-classic to latest Fri May 19 12:38:32 UTC 2023
...
- sitl_gazebo-classic in PX4/Firmware (599a66c8a5 ): https://github.com/PX4/PX4-SITL_gazebo-classic/commit/3f2b9678af781bccb621dde5b75bb2b59419dcc7
- sitl_gazebo-classic current upstream: https://github.com/PX4/PX4-SITL_gazebo-classic/commit/2e3ed9bfb04d8865e59380afa575dd37b0d6c8e0
- Changes: https://github.com/PX4/PX4-SITL_gazebo-classic/compare/3f2b9678af781bccb621dde5b75bb2b59419dcc7...2e3ed9bfb04d8865e59380afa575dd37b0d6c8e0
2e3ed9b 2023-05-14 JaeyoungLim - Add Quadtailsitter model based on the swan K1 (#982 )
670d4d2 2023-05-12 Julian Oes - airspeed: rotate tube so it faces forward (#981 )
803254d 2023-05-11 Julian Oes - tailsitter: add valid inertia, fix CG (#980 )
6fd1d17 2023-05-09 JaeyoungLim - Fix advanced plane model (#979 )
506f10c 2023-05-05 Julian Oes - iris: move IMU and GPS where they are (#978 )
2023-05-19 08:41:03 -06:00
Peter van der Perk
9a17fddc31
Hardfault_log progmem always clear when re-arming
2023-05-19 08:40:07 -06:00
Daniel Agar
bcf87b4b35
Tools/HIL/test_airframes.sh remove gps stop (not present everywhere)
2023-05-19 10:35:26 -04:00
Silvan Fuhrer
599a66c8a5
Tailsitter: make pitch angle thresholds for transition in Stabilized depending on max manual pitch
...
Transitions in Stabilized mode are done manually, the pilot controls the pitch angle
and if it's above the threshold the transition is declared finished (plus airspeed
check for front transition). Thus we can't have fixed thresholds but need to link
them to the actual max pitch angle in Stabilized mode.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-16 10:12:24 +02:00
Silvan Fuhrer
1ddacec36b
FW Att/Rate controller: move max attitude params to Att Controller params
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-15 14:35:34 +02:00
Silvan Fuhrer
bf25d8b180
FW Position Controller: increase default of FW_T_SPD_DEV_STD to 0.2
...
We currently fuse 0 as airspeed rate measurement, and thus simply low-pass
filter the airspeed measurements. Testing has shown that the current default
on the airspeed rate measurement noise is set to low, and thus the airspeed
mesurement is filtered too much.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-15 13:54:11 +02:00
Silvan Fuhrer
77d09785f3
TECS: init _velocity_control_traj_generator properly
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-15 13:53:32 +02:00
bresch
616a71a959
MC_auto: avoid yaw step if previous setpoint is NAN
...
A VTOL plane in MC mode has no yaw setpoint during takeoff because of
weather-vane. To align for the front transition, the yaw target jumps
and caused a step in the controller, making it reach saturation.
With this commit, the previous yaw setpoint is set to the current yaw
when no yaw setpoint is sent in order to create a smooth yaw trajectory
starting at the current orientation when yaw target is suddenly finite.
The yawspeed filter also now contains the yaw speed instead of dyaw in
order to prevent chattering due to dt jitter.
2023-05-12 13:42:09 +02:00
Silvan Fuhrer
f19b81880f
VTOL: adapt VT_QC_T_ALT_LOSS param
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-12 11:10:43 +02:00
Silvan Fuhrer
06713cb655
VTOL: only run front transition alt loss QC if altitude is controlled
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-12 11:10:43 +02:00
Silvan Fuhrer
c1d94c7f05
VTOL: extend front transition QC to first 5s after completing transition
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-12 11:10:43 +02:00
Silvan Fuhrer
0d156f84e6
VTOL: fix transition quadchute below home
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-12 11:10:43 +02:00
Silvan Fuhrer
233d901934
VTOL: align setting of _tecs_running_ts on all VTOL types
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-12 11:10:43 +02:00
Alejandro Hernández Cordero
be03b7f098
Allow to modify uxrce_dds_client port with a env var
...
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
2023-05-10 08:17:56 -07:00
JaeyoungLim
47e802ef92
Fix tailsitter control frames ( #21573 )
2023-05-10 22:33:53 +09:00
Silvan Fuhrer
951f89c8a8
FWPosControl: constrain min pitch to FW_TKO_PITCH_MIN in takeoff state
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-10 14:23:12 +02:00
Silvan Fuhrer
9c42dcbb0b
ROMFS: plane_catapult: enable launch detection and set IDLE to 0.1 to detect arming
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-10 14:23:12 +02:00
Silvan Fuhrer
87c8f170ae
ROMFS: FW simulations: remove re-declaration of params to vehicle default
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-10 14:23:12 +02:00
Silvan Fuhrer
6fb55a8ad8
ROMFS: remove param RWTO_TKOFF from configs where only set to default again
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-10 14:23:12 +02:00
Silvan Fuhrer
cad61fcb84
ROMFS: remove outdated param FW_LND_AIRSPD_SC from all simulation configs
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-10 14:23:12 +02:00
Silvan Fuhrer
ab71ef4447
FW Rate Controller: fix manual tailsitter (only transform to body frame once) ( #21565 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-10 09:29:02 +02:00
Daniel Agar
8222cbca2c
ekf2: last range sensor simple timestamp protection
...
- sanity check againist potential timestamp issues with incoming
distance_sensor data
2023-05-09 12:02:42 -04:00
Morten Fyhn Amundsen
04c5d70588
matrix: Describe emult, edivide functions
2023-05-09 16:14:55 +02:00
Silvan Fuhrer
4cd078409d
AirspeedValidator: disable innovation checks if lpos invalid
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-08 21:46:45 -04:00
Mathieu Bresciani
1e4fcfc614
mc_pos_control: fix potential thrust spike on hover thrust change
...
Co-authored-by: Josh Henderson <hendjoshsr71@gmail.com >
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2023-05-08 21:42:25 -04:00
Thomas Debrunner
da14650aa2
ads1115: Probe for reset value before init, do not spam console on device lost
2023-05-08 16:47:34 +02:00
PX4 BuildBot
38505c80be
update all px4board kconfig
2023-05-08 08:48:48 -04:00
Julian Oes
636c3c069f
gimbal: make device ID a clear out argument
...
The API is cleaner if the control_data is const reference and the device
compid is an explicit output argument.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-05-08 07:06:37 +02:00
muramura
3c45b184d3
gps: Improve the FALSE setting of the ALREADY_COPIED variable
2023-05-08 07:04:11 +02:00
Julian Oes
ddfc2986dc
mavlink: flow control param needs reboot
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-05-07 21:48:27 -04:00
alexklimaj
000a3c10e2
Add ADIS16507 params
2023-05-06 17:11:42 -04:00
alexklimaj
b12f5c4e31
adis16507 group delay should be subtracted from timestamp_sample
2023-05-06 17:11:42 -04:00
alexklimaj
2cef8a03d4
ARKV6X add ADIS16507
2023-05-06 17:11:42 -04:00
Silvan Fuhrer
d2ca763d23
Navigator: set cruise_speed to default on entering new mode ( #21503 )
...
The resets in the modes (eg Loiter mode) are not active yet, so manually
set rep->current.cruising_speed = -1.f if not already in the same flight mode.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-05-05 15:53:17 +02:00
Julian Oes
40324b03f4
fmu-v6x: pulldown on RTS not required
...
On CTS with DMA, we need the pulldown but not on RTS.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-05-05 02:49:25 -04:00
Julian Oes
3cc940cb06
fmu-v6c: fix Telem1, Telem2 without flow control
...
When flow control is used together with DMA, we need to add a pulldown
to CTS. Without it, it assumes flow control and gets stuck when
CTS is not connected.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-05-05 08:02:58 +12:00
Beniamino Pozzan
9e5420bbbd
microdds_client: rename to uxrce_dds_client
...
| | old version | new version (second proposal) |
|-|-|-|
| module name | `microdds_client` | **`uxrce_dds_client`** |
| strings / comments about the module | non consistent | **UXRCE-DDS Client** |
| menuconfig option | `MODULES_MICRODDS_CLIENT` | **`MODULES_UXRCE_DDS_CLIENT`** |
| module parameters group name | `Micro XRCE-DDS` | **UXRCE-DDS Client** |
| module parameters name prefix | `XRCE_DDS_` | `UXRCE_DDS_` |
| module class name | `MicroddsClient` | **`UxrceddsClient`** |
|`init.d/rcS` whenever the module is mentioned | `microdds` | **`uxrce_dds`** |
| main doc page name | XRCE-DDS (PX4-FastDDS Bridge) | **uXRCE-DDS (PX4-micro XRCE-DDS Bridge)**|
| environment variable to have custom namespace in simulation | PX4_MICRODDS_NS | **PX4_UXRCE_DDS_NS** |
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-05-03 11:51:53 -07:00
Julian Oes
1d4b66fcbc
gps: use all injection data
...
When we fall back to another link, we are already doing a uORB copy when
checking the data. Therefore, we should further down use/send that data
instead of overwriting it immediately.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-05-03 07:47:51 +02:00
Julian Oes
2fd3de8f45
gps: retry switching RTCM injection more often
...
I don't think it makes sense to slow down switching RTCM injection to
once every 5 seconds. If we don't have corrections, we should check and
use whatever we get as soon as possible.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-05-03 07:47:51 +02:00
Julian Oes
6108b31e6a
gps: reset RTCM instance
...
We need to reset the instance after looping through all instances.
Otherwise, we are left with the last instance if none is valid but have
not updated the _selected_rtcm_instance which is what is logged.
Therefore, this change fixes the logged RTCM instance.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-05-03 07:47:51 +02:00
David Sidrane
b6f19d5e9b
Added is31fl3195 LED Driver
2023-05-02 10:50:24 -04:00
David Sidrane
409c1bbf7a
PX4 icm42688p:Add Support for the ICM42686
...
icm42688p:Fix colission on custom1 from rebase
2023-05-02 10:50:24 -04:00
SalimTerryLi
9c467198be
module_config: support custom actuators_metadata backed by module-level params
2023-05-02 10:09:52 +02:00
SalimTerryLi
7eb6535273
driver/rc/crsf: fix print format for Linux platform
2023-05-01 17:36:26 -04:00
PX4 BuildBot
2a93875a5f
Update submodule libevents to latest Mon May 1 12:39:12 UTC 2023
...
- libevents in PX4/Firmware (406dc9b62627aec0c14df2d1e6d09b849f12487f): https://github.com/mavlink/libevents/commit/48911e7be752a908a15d945b796ed8d8282b7b02
- libevents current upstream: https://github.com/mavlink/libevents/commit/a9a3fc07abb8bd8eb6fbca64c35b479cab91ff35
- Changes: https://github.com/mavlink/libevents/compare/48911e7be752a908a15d945b796ed8d8282b7b02...a9a3fc07abb8bd8eb6fbca64c35b479cab91ff35
a9a3fc0 2023-03-31 Beat Küng - README: update link to initial design doc
fb630b3 2023-03-30 Beat Küng - pylint: fix 'Raising too general exception' errors
72108eb 2023-03-29 flickering-light - Unused content variable fix
2023-05-01 13:40:00 -04:00
PX4 BuildBot
e8d12e26c2
Update submodule mavlink to latest Mon May 1 12:39:14 UTC 2023
...
- mavlink in PX4/Firmware (487c2b03cae972f42a9fe7c397f6949fed63ca3d): https://github.com/mavlink/mavlink/commit/d6d86d3f0c90a67c275d6833931f7c712b858dba
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/3ee5382d0c96134b0e1c250d8c2d54bfed0166fa
- Changes: https://github.com/mavlink/mavlink/compare/d6d86d3f0c90a67c275d6833931f7c712b858dba...3ee5382d0c96134b0e1c250d8c2d54bfed0166fa
3ee5382d 2023-04-20 Peter Barker - common.xml: exclude any stored home location from MISSION_CURRENT.total (#1976 )
e0f59ae2 2023-04-13 Hamish Willee - Remove WIP from gimbal device messages/commands (#1973 )
181346b5 2023-04-12 Peter Barker - common.xml: remove MAV_CMD_ACK (#1972 )
2023-05-01 11:11:15 -04:00
PX4 BuildBot
432ce45ef0
Update submodule sitl_gazebo-classic to latest Mon May 1 12:38:59 UTC 2023
...
- sitl_gazebo-classic in PX4/Firmware (4bb4bc185b ): https://github.com/PX4/PX4-SITL_gazebo-classic/commit/1c5818e56c2f54ca16f465fbf43580b1b6f3ece0
- sitl_gazebo-classic current upstream: https://github.com/PX4/PX4-SITL_gazebo-classic/commit/3f2b9678af781bccb621dde5b75bb2b59419dcc7
- Changes: https://github.com/PX4/PX4-SITL_gazebo-classic/compare/1c5818e56c2f54ca16f465fbf43580b1b6f3ece0...3f2b9678af781bccb621dde5b75bb2b59419dcc7
3f2b967 2023-04-11 JaeyoungLim - Ignore sdf validation for land_pad (#977 )
a91e4fd 2023-04-11 Jonas Perolini - Add support for camera and new land pad in irlock simulation (#950 )
8fcd3cf 2023-04-10 JaeyoungLim - Remove bionic related tests (#974 )
2023-05-01 11:10:37 -04:00
Julian Oes
3f13a6e787
gimbal: implement gimbal_device_id
...
It turns out that I had omitted implementing the gimbal_device_id which
is the component ID of the gimbal device that the gimbal manager (in
this case PX4) is responsible for.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-05-01 09:02:25 -04:00
muramura
b23eee40f0
bmi088: Do not use invalid values
2023-05-01 09:02:04 -04:00
Daniel Agar
f0bea542d5
Update world_magnetic_model to latest ( #21533 )
...
* Update world_magnetic_model to latest Mon May 1 11:14:06 UTC 2023
* [AUTO COMMIT] update change indication
Co-authored-by: PX4BuildBot <PX4BuildBot@users.noreply.github.com >
2023-05-01 08:59:55 -04:00
PX4 BuildBot
b74e929877
update all px4board kconfig
2023-05-01 08:59:08 -04:00
murata,katsutoshi
4bb4bc185b
commander: level calibration delete unused SENS_BOARD_ROT param access
2023-04-30 21:36:43 -04:00
bresch
521abecbbf
ekf2: remove all remaining uses of EKF2_AID_MASK
2023-04-28 22:31:17 -04:00
bresch
98a8d080b6
ekf2 params: fix my bad english
2023-04-28 22:31:17 -04:00
bresch
2a2e43b620
ekf2: move flow fusion activation from AID_MASK to OF_CTRL
2023-04-28 22:31:17 -04:00
bresch
39c2f95669
ekf2: move drag fusion activation from AID_MASK to DRAG_CTRL
2023-04-28 22:31:17 -04:00
Roman Dvořák
8b4566b6bb
drivers/hygrometer/sht3x: extend alert range ( #21521 )
2023-04-28 10:33:06 -04:00
AlexKlimaj
eb8342b477
ARK Cannode fix empty rc.serial
2023-04-28 09:31:31 -04:00
Daniel Agar
b8b80e409f
boards: px4_fmu-v5x_test remove drivers/telemetry to save flash
2023-04-27 20:14:26 +02:00
Daniel Agar
5b0b46ff55
boards: px4_fmu-v5x_default disable LPE and ATTQ to save flash
2023-04-27 20:14:26 +02:00
Andrew Wilkins
cdc717be53
Speed reset when switching flight modes ( #21414 )
...
* speed reset between flight modes
* no whitespace
2023-04-27 17:32:43 +02:00
Silvan Fuhrer
bfc1e36f45
Standard: fill att_sp.thrust[0] with _pusher_thr value during transition to FW ( #21520 )
...
Once passed the transition and in FW mode, it takes some ms unitl the FW att sp is updated
by the FW att controller. During this time the last published attitude sp is kept bein used,
which is the one that was published during transition. So let's fill the thrust[0] of it.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-27 17:30:36 +02:00
Yannick Fuhrer
f76399be5e
vtol_type: scale VT_TRANS_TIMEOUT with air density ( #21509 )
2023-04-27 09:22:04 +02:00
Julian Oes
0afd93a9e9
gimbal: add control setter and status
...
This adds the ability to manually set who has primary control over a
gimbal and also adds printing it as part of the status.
This is helpful, especially while working on the QGC gimbal v2
implementation.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-04-26 08:20:34 +02:00
Eric Katzfey
36877b9efc
Added crosshairs to MSP OSD driver
2023-04-25 13:49:42 -04:00
SalimTerryLi
a46ef72fff
Makefile: validate_module_configs skips src/lib/events/libevents/*
2023-04-25 07:51:25 +02:00
Silvan Fuhrer
08782a0837
reset vroi when resetting misson on landing and run set_current_mission_item()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-21 07:47:58 +02:00
Silvan Fuhrer
55faa8cb2d
mission: only run update_mission() if mission is updated, not when we want to reset
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-21 07:47:58 +02:00
Christian Rauch
e76c2b6a43
delete unused mavlink_px4.py & fix typos in VehicleCommand ( #21332 )
...
This file is not used anywhere neither in PX4-Autopilot, nor in the docs.
---------
Co-authored-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-04-20 07:50:58 +02:00
Hamish Willee
51f71909d4
Update ekf2_params.c - typo EKF2 aid mask
2023-04-19 17:11:47 -07:00
Eric Katzfey
0934d3bf24
VOXL2 snapdragon spektrum rc refactor ( #21427 )
...
* Replaced outdated snapdragon_spektrum_rc and spektrum_rc drivers with VOXL2 board specific spektrum_rc driver
2023-04-19 11:22:43 -04:00
Eric Katzfey
018ca6b49d
VOXL2 board support updates ( #21426 )
2023-04-19 11:21:02 -04:00
Thomas Stastny
cb66c48876
drivers/gps: increase stack to handle gps dump config for RTCM output (PPK)
2023-04-19 17:08:15 +02:00
Silvan Fuhrer
b874eaf5f9
VTOL: remove deprecated VT_B_TRANS_THR
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-19 10:22:10 +02:00
Silvan Fuhrer
db379c9049
airframe configs: remove params set to default in custom config from configs
...
Removes duplication.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-19 10:22:10 +02:00
Silvan Fuhrer
9975db2d2f
airframe configs: disable airspeed CBRK in rover and UUV defaults
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-19 10:22:10 +02:00
Silvan Fuhrer
88bf18a2fe
airframe configs: remove custom tuning if close to param default and not required due to hardware
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-19 10:22:10 +02:00
Silvan Fuhrer
cbbd514c1b
VTOL: increase default of VT_B_TRANS_DUR to 10s
...
A default of 10s makes more sense compared to the old 4s, as this is only the
max time of a back transition and it's also decleared completed if the
speed drops below the hover cruising speed (MPC_XY_CRUISE).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-19 10:22:10 +02:00
Silvan Fuhrer
f2c392e187
VTOL configs: reset TECS gains to default
...
There have been substantial TECS changes lately, and the config files
for custom VTOLs have not been updated since a long time. I would thus
rather use the default TECS gains for lightly maintained configs.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-19 10:22:10 +02:00
Silvan Fuhrer
885bb7659b
navigator_main: orbit in FW: get_cruising_speed() ( #21484 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-18 16:01:24 +02:00
Julian Oes
09d86085bd
kakute f7/h7/h7mini/h7v2: enable airspeed
...
Without this airspeed sensors are not working which is not intuitive.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-04-18 07:45:52 +02:00
Eric Katzfey
73db1a02ca
modal_io: add rpm unit to parameters ( #21473 )
2023-04-18 07:41:45 +02:00
Beniamino Pozzan
89a00f9505
rcS-posix: use ROS_DOMAIN_ID to set XRCE_DDS_DOM_ID
...
set XRCE_DDS_KEY to MAV_SYS_ID to avoid collisions
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-04-17 20:21:05 -04:00
Daniel Agar
a11cced4b2
drivers/ins/vectornav: fix attitude (quaternion) and GPS packet extract
2023-04-17 11:18:00 -04:00
Matthias Grob
5c1e0ddd96
FlightTaskTransition: use new 2D rotation
2023-04-15 21:57:40 +02:00
Matthias Grob
7ebd6cc74f
FlightTaskManualPosition: use existing stick library rotation
2023-04-15 21:57:40 +02:00
Matthias Grob
7b850a91b4
Sicks: use new 2D rotation
2023-04-15 21:57:40 +02:00
Matthias Grob
43850c24a1
AttitudeControl: remove unnecessary scope operator
2023-04-15 21:57:40 +02:00
Matthias Grob
37d3218d11
matrix: add 2d rotation matrix
2023-04-15 21:57:40 +02:00
Matthias Grob
c74322fc15
Pull request template: add changelog entry
2023-04-15 16:47:30 +02:00
Matthias Grob
1e94ad19c0
FlightModeManager: rework task starting
...
with the goal to make it more clear and the error only appear when
armed but every time the running task doesn't actually match
the mapping inside the start_flight_task() function.
2023-04-15 16:45:32 +02:00
JaeyoungLim
b02a785033
microdds: add the position_sp_triplet to the dds topics ( #21449 )
...
- Position setpoint triplets can be useful for offboard processes to understand the intention of navigator
2023-04-14 13:37:45 -04:00
Silvan Fuhrer
da519573d4
FWPositionControl: trim throttle calc: guard against min/max=trim airspeed ( #21469 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-14 11:55:23 +02:00
Silvan Fuhrer
bc560ddddb
RTL: fix Mission RTL vs normal RTL ( #21464 )
...
* Navigator: on_mission_landing() only can return true if currently in mission mode
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* RTL: reset RTL state when not in RTL nav_state
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* Navigator: fix mission vs. normal RTL
- remove extra state _should_engange_mission_for_landing from rtl and have
this logic outside of RTL where Navigator decides on running mission RTL or normal RTL
- fix logic in Navigator to decide mission RTL vs normal RTL
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* Mission: land_start(): fix decision if already on mission landing
Simply checking landing() is not enough, as that is not reset until
set_current_mission_index(get_land_start_index()) later in the function.
Instead ask Naviator about it (on_mission_landing()).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* Navigator: only update _shouldEngangeMissionForLanding once, to not set it to false after VTOL backtansition
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-14 09:49:47 +02:00
alexklimaj
752e3b450d
Update GPS submodule
2023-04-14 07:35:43 +02:00
Thomas Stastny
82fd2987c9
fw pos control: revert name until we delineate this module a bit more ( #21442 )
2023-04-13 17:00:04 +02:00
Beat Küng
a2ce73d39d
px4/fmu-v6x: increase BL baudrate for flashing via uart to 1500000
2023-04-13 07:46:49 +02:00
Beat Küng
989d9243b7
fix control_allocator: correct PRINT_MODULE_USAGE_NAME
2023-04-13 07:46:09 +02:00
Seppe Geuens
7e0f929ad1
gps: add sbf with heading ( #19374 )
...
Co-authored-by: Seppe Geuens <seppe.geuens@tii.ae >
2023-04-13 07:44:35 +02:00
Beniamino Pozzan
98026a3e10
gz_bridge: fix missing orientation and frames in odometryCallback ( #21348 )
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-04-12 22:46:16 +02:00
TheotimeBlg
67d03461d1
Port px4vision airframe to gz environment ( #21409 )
...
* Port of the PX4 Vision gazebo-classic model to Gazebo. With Gazebo Garden, everything seems functionnal.
* Port of the PX4 Vision gazebo-classic model to Gazebo.
With Gazebo Garden, everything seems functionnal.
* Added airframe for command make px4_sitl gz_px4vision
* revert author field
* Import model from Ignition Fuel instead of defining it directly in the .sdf
2023-04-12 18:46:49 +02:00
Daniel Agar
1234aae3df
gimbal: output RC fix actuator_controls_2 -> gimbal_controls regression ( #21460 )
...
- small typo introduced in https://github.com/PX4/PX4-Autopilot/pull/20837
2023-04-11 22:03:42 +02:00
Damien SIX
958c202137
fix timesync source for DDS protocol
2023-04-11 09:13:48 +02:00
Shaun C
ab1e0caae9
Add NAV_CMD_DO_SET_ACTUATOR to mission commands
2023-04-11 08:12:18 +02:00
Claudio Micheli
9821513a0a
sensors module: add 3 decimals to all the type:float params
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2023-04-11 08:11:04 +02:00
Jaeyoung Lim
cbe611ce66
Update mavlink submodule to latest
2023-04-11 07:44:10 +02:00
Jacob Dahl
7f251d0935
fixed incorrect string-from-error function usage causing build failure
2023-04-11 10:04:43 +12:00
Julian Oes
0cfe135028
cubeorangeplus: enable bl_update
...
This way the bootloader can be updated.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-04-10 15:19:25 +12:00
Julian Oes
728367a1dc
cubeorange: enable bl_update
...
This way the bootloader can be updated.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-04-10 15:19:25 +12:00
bresch
17806a9608
ekf2: robustify wind init using airspeed
...
Tests showed that sideslip fusion often starts just before airspeed
fusion, resetting the wind states to 0 instead of using the airspeed
data. A quick look at the wind uncertainty allows to know if the current
wind estimate is meaningful or if we should rather reset it using the
airspeed data.
2023-04-08 14:12:21 +02:00
Silvan Fuhrer
8f520ab019
tecs: fix throttle prediction ( #21444 )
...
* tecs: fix throttle prediction
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: Thomas Stastny <thomas.stastny@auterion.com >
2023-04-06 20:13:32 +02:00
Silvan Fuhrer
460956fd33
TECS: revert altitude controller to old logic
...
- if the height rate input into TECS is finite, use that one to
update a velocity reference generator
- if the velocity reference generator reports position locked or
height rate input is not finite, then run altidue reference generator
- run altitude controller only if altitue is controlled
if height_rate_setpoint is set, only use that one to update altitdue trajectory
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-06 20:12:52 +02:00
Silvan Fuhrer
dde656f4b1
TECS status: rename tecs_status.altitude_filtered to altitude_reference
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-06 20:12:52 +02:00
Silvan Fuhrer
f06150bf0c
FWController: write out tecs_status
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-06 20:12:52 +02:00
Silvan Fuhrer
60cd20c19c
TECS: make more readable
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-06 20:12:52 +02:00
Silvan Fuhrer
2d01cf63ce
TECS: rename _reference_model to _altitude_reference_model
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-06 20:12:52 +02:00
Silvan Fuhrer
beeae1f673
TECS: rename TECSReferenceModel to TECSAltitudeReferenceModel
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-06 20:12:52 +02:00
Daniel Agar
0fa0e2f583
drivers/ins/vectornav: comment out redefined and remove -Wno-error
2023-04-06 14:06:57 -04:00
Daniel Agar
cbc067f235
boards: include INS drivers by default on PX4 FMU (eg VectorNav VN-100, VN-200, VN-300)
2023-04-06 14:06:57 -04:00
Silvan Fuhrer
1f5046f165
FWPositionControl: trim throttle prediction improvements ( #21345 )
...
* FWPositionController: add linear airspeed-to-trim-throttle mapping
Scale trim throttle in a linear way with airspeed.
Different gradients above/below trim airspeed.
The airspeed- and airs density-corrected trim throttle is required for an accurate
throttle prediction in TECS, while the default trim throttle is still needed
as well, as the throttle delta from height rate setpoint delta is linked to it.
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-06 11:56:54 +02:00
Silvan Fuhrer
94fb334d8f
Navigator: fix logic around when to switch to mission landing for RTL ( #21390 )
...
* Navigator: change way of telling logic if RLT was started just now
* Navigator: change logic around when to engage Mission mode for RTL
To find out if we're currently on a mission landing, check if we either are
past the land start marker OR currently land start marker is current WP
and vehicle is already in LOITER mode.
* Navigator: do not engage RTL at all if already on mission landing
* Navigator: consider to be on mission landing if the LOITER_TO_ALT and dist small
To find out if we're currently on a mission landing, check if we either are
past the land start marker OR currently land start marker is current WP,
the type is LOITER_TO_ALT and the vehicle is inside loiter.
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-04-05 10:11:14 +02:00
bresch
fb3b4a3151
ekf2: remove duplicate buffer push of system flags
2023-04-04 15:56:09 -04:00
numan
831b0d9b11
uavcan: minor fix regarding log output ( #21415 )
...
Error message for "UavcanServers init" returns error code from UavcanServers->init instead of _sensor_bridges->init
2023-04-04 07:17:31 +02:00
Thomas Stastny
f4681f01b6
drivers/gps: increase stack
2023-04-04 07:16:21 +02:00
Beat Küng
aa5b9ae638
fix failsafe: correctly handle Hold RC loss action
...
Otherwise the additional mode check triggers an RTL which takes precedence
over Hold.
Introduced in 132e9d2439
2023-04-04 07:03:42 +02:00
Beniamino Pozzan
f7ed553f57
holibro qav250 airframe: fix PWM_MAIN_TIM0
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-04-03 07:29:53 +02:00
Daniel Agar
13487c654d
ROMFS: add SITL generic iris airframe (SYS_AUTOSTART 10016) for backwards compatibility (airsim, etc) ( #21410 )
2023-04-01 20:41:33 +02:00
Julian Oes
19752a7670
fmu-v2/v3: fix HW detection on CubeBlack
...
This fixes the case where the hardware detection fails on CubeBlack when
a CAN device is connected to CAN1 and talking, and therefore preventing
the check from getting a clear result.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-04-01 10:34:24 -07:00
Julian Oes
50f8c30f10
fmu-v2/v3: refactor detection function
...
This consolidates the version/revision detection function.
This should allow for actual changes in a follow up commit.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-04-01 10:34:24 -07:00
Beniamino Pozzan
448b915694
gazebo airframes: cleanup and fix missing parameters ( #21411 )
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-03-31 23:01:29 -07:00
bresch
89bb4622ef
gazebo_tailsitter: disable multi-EKF for replayable logs
2023-03-31 15:22:38 -04:00
bresch
50b084cf17
MC auto: allow yawing during hold
2023-03-31 17:32:33 +02:00
bresch
62770c43f9
[AUTO COMMIT] update change indication
2023-03-31 10:15:12 +02:00
bresch
ed7c4bc5d7
ekf2: init tilt using quaternion from gravity vector
2023-03-31 10:15:12 +02:00
Julian Oes
93ba7de0c3
gps: fix protocol param max
...
This seemed wrong.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-30 07:43:06 +02:00
SungTae Moon
178b31b6ff
jmavsim_run.sh: fix the wrong flags expression in getopt ( #20162 )
2023-03-30 07:22:31 +02:00
Beat Küng
932b743e13
ROMFS: add motor assignment to holybro x500
2023-03-28 08:18:26 -07:00
Ramon Roche
319f3db5e1
tools: ip converter remove verbose output
2023-03-27 10:28:43 -07:00
Beniamino Pozzan
51dd6b783c
microdds_client: Mark parameter as used only if truly used
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-03-27 10:28:43 -07:00
Beniamino Pozzan
c7f67a3328
microdds_client: remove multi-instances supports, add agent IP as PX4 parameter
...
- multi-instances support is removed from the parameter definitions.
- XRCE_DDS_AG_IP allows to define the agent IP when udp transport is used.
The parameter is used by default if the module is started without the -h argument.
- XRCE_DDS_PRT allows to define the agent listning udp port when the
udp transport is uded. The parameter is used by default if the module is started
without the -p argument.
- Tools/convert_ip.py assists in converting ips in decimal dot notation into int32
notation.
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-03-27 10:28:43 -07:00
Daniel Mesham
6fddbea3e4
microdds_client: fix check for length of participant XML ( #21374 )
2023-03-27 10:03:09 -07:00
Silvan Fuhrer
ba17a137e1
Navigator: MissionFeasibiltyCheck first WP: check only to current vehicle position
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-27 17:43:33 +02:00
Silvan Fuhrer
465ddddbfd
Navigator: take min of vehicle position or Home distance for first WP check
...
To prevent mission rejections when vehicle is currently far away from Mission start,
but planned home is close to it.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-27 17:43:33 +02:00
Silvan Fuhrer
d8ed35c422
Navigator: take vehicle position for first-WP-distance-check
...
And only use Home position if current vehicle position is unknown.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-27 17:43:33 +02:00
Silvan Fuhrer
4d2a31afe3
Navigator: remove max distance between WP mission feasibility check (MIS_DIST_WPS)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-27 17:43:33 +02:00
Junwoo Hwang
9c001f2e40
Fix SITL Test failure: Place PX4 instance runner after Gazebo server runner ( #21230 )
...
* MAVSDK_Test_Runner: Place PX4 instance runner after Gazebo server runner
- This was a nasty bug where starting PX4 instance first, then starting
Gazebo server was causing PX4 instance' EKF to freak out, probably
because it doesn't like getting data a while after it is started
- Detailed breakdown is given here: https://github.com/PX4/PX4-Autopilot/issues/21229#issuecomment-1450761542
- This now guarantees that such edge case won't occur and MAVSDK test
will run as it should
* MAVSDK Test Runner: Retain comment within 79 character limit
- To pass flake8 python style check
* Update test/mavsdk_tests/mavsdk_test_runner.py
Co-authored-by: Julian Oes <julian@oes.ch >
---------
Co-authored-by: Julian Oes <julian@oes.ch >
2023-03-26 11:27:01 +09:00
PX4 BuildBot
58a5aa26a0
Update submodule mavlink to latest Sat Mar 25 00:39:09 UTC 2023
...
- mavlink in PX4/Firmware (73104cab2e49118903cf32bdf11f6ea917fa394e): https://github.com/mavlink/mavlink/commit/2bdcab78b53d1e349079b43c9d726036abe0617c
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/e1e68da5e6f2e44c3126cafc0780f6fee2c2b4f2
- Changes: https://github.com/mavlink/mavlink/compare/2bdcab78b53d1e349079b43c9d726036abe0617c...e1e68da5e6f2e44c3126cafc0780f6fee2c2b4f2
e1e68da5 2023-03-08 Hamish Willee - Add quickstart to the README (#1960 )
9b92bf2e 2023-03-08 Hamish Willee - Fix enum value for payload battery (#1959 )
81e9fcd5 2023-03-08 Hamish Willee - Allocate range for ras-a and indicate next free range (#1957 )
abbda253 2023-03-02 Hamish Willee - Indicate preference for COMMAND_INT (#1955 )
d3a8e4b8 2023-02-08 Julian Oes - development: add command to configure SiK radio
2023-03-24 21:43:59 -04:00
PX4 BuildBot
8306fb96ea
boards: update all NuttX defconfigs
2023-03-24 10:03:14 -04:00
PX4 BuildBot
efab9be488
update all px4board kconfig
2023-03-24 10:01:58 -04:00
Daniel Agar
4d9369dc67
Update world_magnetic_model to latest Fri Mar 24 11:14:06 UTC 2023
2023-03-24 09:39:26 -04:00
Silvan Fuhrer
e8a8e7c677
VTOL: increase deafult of VT_QC_T_ALT_LOSS from 10 to 20m
...
Testing has shown that 10m is a bit too tight, most of all as this check is also run in not height-controlled
flight modes (eg Stabilized), and there 10m altitude loss during transitions can happen easily.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-24 13:33:52 +01:00
Silvan Fuhrer
e58d33284a
vtol: correct/improve quad-chute param description
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-24 13:33:52 +01:00
Matthias Grob
937d27f8ee
Helicopter: add offset for yaw compensation based on collective pitch
2023-03-24 07:16:36 +01:00
Beniamino Pozzan
eeb90ac70a
gazebo-classic/sitl_mutliple_run.sh: start spawning drones from index 1 ( #21183 )
...
Fix microdds key session collision when drones
with index 0 and 1 are used together
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-03-24 05:58:26 +01:00
Antonio Sanjurjo C
1ea993880c
Fix typo in WORK_ITEM_TYPE ( #21311 )
...
Signed-off-by: Antonio Sanjurjo C <74329840+antonio-sc66@users.noreply.github.com >
2023-03-24 05:49:14 +01:00
Julian Oes
09a0089c80
README: add Cube Orange+ ( #21361 )
...
This adds the Cube Orange+ to the list, and also changes the Hex naming
to CubePilot as that is how it is sold/marketed now.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-24 05:21:43 +01:00
Daniel Agar
cc2b367c0b
drivers/uavcannode: fix typo (hydrometer->hygrometer)
2023-03-23 22:06:55 -04:00
Silvan Fuhrer
5b6d1e9290
TECS: change default for FW_T_I_GAIN_THR from 0.3 to more appropriate 0.1
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-23 15:00:36 +01:00
Silvan Fuhrer
ac6c9c857a
Gimbal: remove shutter and retraction handling
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-23 06:59:02 +01:00
Frederic Taillandier
18898f1876
updating sitl-gazebo classic ( #21352 )
...
Co-authored-by: root <root@DESKTOP-OINCOKE>
2023-03-22 14:04:02 +01:00
Silvan Fuhrer
d532578ecc
EKF2: only check for EKF2_BETA_FUSION when corresponding kconfig option is set
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-22 10:05:32 +01:00
Silvan Fuhrer
98d07ad1f3
disable side slip fusion for tailsitters
...
The attitude frame is wrong for tailsitters doing side slip fusion for wind estimation.
It doesn't take into account that the frames is 90deg tilted in FW flight.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-22 10:05:32 +01:00
Silvan Fuhrer
07531d29b7
FailureDetector: fix attitude check for tailsitter
...
-set roll/pitch used for failure detection during transition to 0
-rotate estimated attitude 90° in FW flight
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-22 10:05:32 +01:00
Silvan Fuhrer
edc570adff
AirspeedSelector: fix attitude rotation for tailsitter
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-22 10:05:32 +01:00
bresch
6bee0893de
add circle intersection unit tests
2023-03-22 10:03:48 +01:00
bresch
af345c88e9
TrajMath: use fmaxf instead of max
2023-03-22 10:03:48 +01:00
bresch
c7bddda1db
MC auto: add maximum RC assist distance during landing
2023-03-22 10:03:48 +01:00
bresch
d6fa42fefd
mc att: add unit tests for AttitudeControlMath helper
2023-03-22 10:01:27 +01:00
bresch
edaf5bf0cd
mc att: extract tilt yaw error compensation to lib
2023-03-22 10:01:27 +01:00
bresch
f65daf7259
mc att: do not pass by euler angles to generate att sp from sticks
2023-03-22 10:01:27 +01:00
bresch
3e3307c0d0
ekf2: fix mag declination innovation angle wrapping
2023-03-21 21:07:28 -04:00
David Sidrane
64e90b91aa
px4_fmu-v6c:Add Mini & fix Rev 1 ( #21226 )
2023-03-21 09:16:35 -07:00
Daniel Agar
32a5bd32ad
ekf2: add kconfig option to enable/disable range finder fusion (and terrain estimator)
2023-03-21 11:25:34 -04:00
Daniel Agar
0784901a66
ekf2: add kconfig option to enable/disable optical flow fusion
2023-03-21 11:25:34 -04:00
Matthias Grob
9f8fa99d70
matrix: use stack allocation for debug output string
2023-03-21 15:01:26 +01:00
Matthias Grob
b1435c6e34
matrix: use output stream function template
...
to enable proper automatic output in gtest unit tests
that compare two `Matrix`, `Vector` or two `Dual` objects.
Credits to @jwidauer for showing me this trick.
2023-03-21 15:01:26 +01:00
Matthias Grob
b0189d95af
Use new Vector4 class
2023-03-21 15:01:26 +01:00
Matthias Grob
08d6465ce5
matrix: add explicit Vector4 type
2023-03-21 15:01:26 +01:00
Matthias Grob
da0e40c72b
googletest: switch to latest version 1.12.1 -> 1.13
2023-03-21 15:01:26 +01:00
bresch
91364ba901
mc land detect: use z_deriv and vz for vert movement check
...
z_deriv is less prone to bias errors
2023-03-21 09:22:58 -04:00
Beat Küng
22c94f805a
component information: add translation support
2023-03-20 21:57:25 -04:00
Jukka Laitinen
631046b962
src/drivers/sw_crypto: Correct RSA lengths in the example sw crypto backend driver
...
Maximum plaintext length was wrong, it is just k - 2 * hLen -2, where k is RSA key modulus length and hLen is hash length
Also minimum block that can be encrypted didn't make sense for RSA-OAEP, it is just 1 byte, the rest will be padded.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-03-20 21:54:40 -04:00
Jukka Laitinen
b26669b085
Add crypto_deinit function for crypto_backend module
...
Bootloader needs to have a mechanism to de-initialize crypto, in case some HW accelerator
is being used. This adds the needed function for it
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-03-20 21:54:40 -04:00
Beat Küng
8497d3388f
fix mavlink_ulog: use hrt_abstime instead of float
...
The float inaccuracy was leading to problems on SITL with large timestamps.
2023-03-20 21:47:41 -04:00
Daniel Agar
1524bd39b5
.gitignore: ignore generate top level log/ folder (colcon)
2023-03-20 11:06:12 -04:00
Daniel Agar
4363b09421
ekf2: add kconfig option to enable/disable external vision fusion
2023-03-20 10:12:17 -04:00
Daniel Agar
d47f96f1a5
ekf2: add kconfig option to enable/disable AUX velocity fusion
2023-03-20 10:12:17 -04:00
Daniel Agar
4270a303ab
ekf2: add kconfig option to enable/disable airspeed and sideslip fusion
2023-03-20 10:12:17 -04:00
Daniel Agar
98ff1afc19
ekf2: add kconfig option to enable/disable GNSS yaw
2023-03-20 10:12:17 -04:00
Daniel Agar
8b2205810b
ekf2: add kconfig option to enable/disable baro compensation
2023-03-20 10:12:17 -04:00
Daniel Agar
fe0e3acf09
ekf2: add kconfig option to enable/disable drag fusion
2023-03-20 10:12:17 -04:00
frederic@auterion.com
9a56b0a70d
refactoring jinja-gen call in a cleaner way
2023-03-20 14:50:56 +01:00
numan
ed174d54e9
fix typo in LeddarOne.cpp
...
added missing "~"
2023-03-20 07:51:00 +01:00
alexklimaj
e2de62e38b
GPS only warn if jamming state is critical
2023-03-17 21:38:28 -04:00
Silvan Fuhrer
0afda910d1
VTOL: make sure that all virtual topics are updated
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-17 19:43:01 +01:00
Andrew Brahim
71c746b9bf
drivers/distance_sensor/lightware_sf45_serial: fix path to crc lib (no longer in systemlib)
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2023-03-17 09:35:46 -04:00
alexklimaj
0ae296bfe2
ARK CANnode fix params
2023-03-16 14:32:36 -04:00
Silvan Fuhrer
c7d4d1f45c
FWPositionControl: HOTFIX: zero airspeed rate estimation input to TECS
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-16 16:58:08 +01:00
Silvan Fuhrer
b33a8686f7
FWPositionController: only store acceleration and velocity in x
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-16 16:58:08 +01:00
Silvan Fuhrer
28db47480d
TECS: remove ununsed getSteRate()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-16 16:58:08 +01:00
Daniel Agar
6ec2b902cc
ROMFS: only copy bootloader binary if systemcmds/bl_update included
2023-03-16 09:43:56 -04:00
Silvan Fuhrer
d5e1f0fdaa
uorb_graph: remove handling for actuator_controls topic
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-16 11:55:45 +01:00
Silvan Fuhrer
17cd65a239
Navigator: remove support for DO_SET_SERVO
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-16 11:55:45 +01:00
Silvan Fuhrer
a1812dbde0
gimbal: move gimbal controls to new dedicated topic
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-16 11:55:45 +01:00
Silvan Fuhrer
1218d9b2fc
mavlink_mission: remove support for DO_SET_CAMERA_ZOOM
...
Camera controls should not happen through the flight controller, and
the control allocation has no means of controlling the camera zoom.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-16 11:55:45 +01:00
Silvan Fuhrer
27658354da
MavlinkReceiver: remove support for SET_ACTUATOR_CONTROL_TARGET
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-16 11:55:45 +01:00
Silvan Fuhrer
b16f16598b
VTOL: remove virtual actuator_controls and instead use virtual torque/thrust topics
...
MC/FW rate controller and auto tuner: remove actuator_controls
AirshipAttControl: remove actuator_controls
MulticopterLandDetector: remove actuator_controls
mavlink streams vfr_hud and high_latency2: remove actuator_controls
RoverPositionController: remove actuator_controls
UUVAttitudeController: remove actuator_controls
battery: use length of thrust_setpoint for throttle compensation
VehicleMagnetometer: use length of thrust_setpoint for throttle compensation
Signed-off-by: Silvan Fuhrer
2023-03-16 11:55:45 +01:00
akkawimo
bcd6e7adee
comment out fake_traffic to prevent flash overflow
2023-03-16 07:32:43 +01:00
Mohamad Akkawi
9de52bb5ec
[navigator] Tone Down traffic warnings
...
- add unit tests for adsb conflict detection
- move adsb conflict detection to lib/adsb and adsb conflict class
- use containers/Array.hpp for buffer array
- expand fake_traffic
2023-03-16 07:32:43 +01:00
Julian Oes
89548e4f9e
gps: Support for Unicore HEADINGA sentence in NMEA
...
This adds a parser for Unicore sentences sent in-between NMEA sentences.
This brings support for the Unicore UM982 module which publishes heading
information based on the two antennas.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-15 21:55:15 -04:00
Alex Klimaj
ea97a38b2b
Initial Cannode PWM Support ( #19748 )
...
* Add uavcannode esc/servo pwm control pipeline
* Remove cannode rc.interface with mixer purge
* Cannode add Kconfig options to reduce flash usage
2023-03-15 11:20:07 -04:00
Daniel Agar
f0a95f9572
ekf2: add new kconfig option for multi-EKF
...
- disabled if flash constrained or memory constrained
2023-03-15 09:32:47 -04:00
Daniel Agar
19a2b4ec31
ekf2: GNSS yaw only reset test ratio for new samples
...
- otherwise external test ratio monitoring could trigger a false positive
2023-03-14 21:49:24 -04:00
AlexKlimaj
e375e02974
Add GPS spoofing state
2023-03-14 20:28:32 -04:00
Julian Oes
2605562a69
cubeorangeplus: add I2C4, start AK09918
...
CubeOrange+ which have the ICM45686, also have the AK09918 connected
on the internal I2C4.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-14 08:34:28 -04:00
Julian Oes
695d48d6c9
AK09916: add support for AK09918
...
The AK09918 seems to only differ in the WHO_AM_I ID.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-14 08:34:28 -04:00
Julian Oes
7be3279675
cubeorangeplus: add check for SMPS support
...
If NuttX is built without support for SMPS it can brick the hardware.
Therefore, I suggest that we add this additional compile-time check.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-13 22:54:41 -04:00
Julian Oes
36f430e385
cubeorangeplus: save some flash space
...
We need to make space for drivers.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-13 22:53:56 -04:00
Julian Oes
bee4fe9470
boards: sensor config for CubeOrange+
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-13 22:53:56 -04:00
Julian Oes
63dc6b5bc9
ICM45686: fix clipping due to rotation
...
It turns out that when you rotate by 45 degrees, as required on the
CubeOrange+, then you can easily get into clipping because the vector
components are constrained after the rotation. In order to avoid that,
we have to avoid getting close to the int16 range and switch from 20 bit
resolution to 16bit resolution earlier.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-13 22:53:56 -04:00
Julian Oes
f4b48e685f
drivers: add ICM45686
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-13 22:53:56 -04:00
Beniamino Pozzan
82dce9353c
gz models: fix deprecated warnings ( #21285 )
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-03-13 12:28:20 -07:00
bresch
fd33e60f78
ekf: fix GNSS yaw fusion wrapping
2023-03-13 10:46:34 +01:00
akkawimo
3bae99267b
fix(precland): Improved log messages ( #21289 )
2023-03-13 08:39:31 +01:00
Daniel Agar
9be8f81d75
flight_mode_manager: StickAccelerationXY protect from NAN velocity reset
...
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2023-03-10 08:17:20 -05:00
Daniel Agar
435c799f57
uORB: print more decimal places for float32 and float64
2023-03-10 07:39:34 +01:00
Frederic Taillandier
91f6ab865c
ROMFS: fix shellcheck error in px4-rc.simulator ( #21282 )
2023-03-10 07:37:45 +01:00
Matthias Grob
bd5838faf0
FlightTask: don't instaniate unused parameters
2023-03-09 17:40:55 +01:00
Tony Samaritano
eb4da990c3
init.d-posix/px4-rc.simulator: adds non-default LAT and LON as optional environment variables
2023-03-09 09:40:35 -05:00
Daniel Agar
b3cc945a5a
ekf2: merge runOnGroundYawReset() + runInAirYawReset() into unified magReset()
2023-03-09 09:08:27 -05:00
Daniel Agar
c1f244a6fd
ekf2: decrease EKF2_MAG_YAWLIM default 0.25 -> 0.2 rad/s ( #21264 )
2023-03-09 09:07:54 -05:00
Daniel Agar
60b85c2e1a
mavlink: add kconfig option to disable UAVCAN parameter bridge
...
- depends on DRIVERS_UAVCAN
2023-03-08 19:30:06 -05:00
frederictaillandier
eb86cb85b7
removing MOUNT_ORIENTATION on udp_gcs_port_local from typhoon
2023-03-09 12:43:47 +13:00
Daniel Agar
4dda5a97d8
ekf2: mag_3d check mag bias variance before allowed to update all states (orientation)
2023-03-08 15:12:48 -05:00
Julian Oes
ea20217c1b
kakuteh7v2/mini: EKF2 is already the default
2023-03-08 10:48:31 -05:00
Julian Oes
593b3d250d
kakuteh7mini: remove duplicate param defaults
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-08 10:48:31 -05:00
Julian Oes
ed49ed3903
kakuteh7v2/mini: use EKF2 without mag by default
...
This switches from attitude_estimator_q to EKF2 which should now work
without mag when the params are set to SYS_HAS_MAG = 0 and
EKF2_IMU_CTRL = 7 to enable gravity fusion.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-03-08 10:48:31 -05:00
Matthias Grob
132e9d2439
modeCheck: add warning when RC enabled but not present
2023-03-08 09:32:56 +01:00
Matthias Grob
898c0ae5a8
mode_requirements: refactor order of setting flags
2023-03-08 09:32:56 +01:00
Matthias Grob
7fa8dfe2d2
rcAndDataLinkCheck: always update manual control availability
...
and remove duplicate manual control check
possibly it needs to be readded to give warning
about RC enabled but not present.
2023-03-08 09:32:56 +01:00
Matthias Grob
f498b90c41
mode_requirements: add manual control for manual modes
2023-03-08 09:32:56 +01:00
Beniamino Pozzan
636dfdec6a
VScode: fix tasks.json and launch_sitl.json after ign -> gazebo renaming
...
PX4_SIM model need the simulator (gz_) prefix
Fix post debug task
Add x500_depth, rc_cessna, standard_vtol
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-03-07 21:28:39 -05:00
Daniel Agar
d45aeae1de
ekf2: add and share centralized method to clear inhibited state Kalman gains
2023-03-07 13:27:57 -05:00
Konrad
7098970a38
Tools: extend documentation parser:
...
- Add the possibility in the parser to replace the defines made in the current file with their argument (includes are not supported)
- Add the possibility for the parser to parse int argument with bitwise shift operators
2023-03-06 18:34:01 -05:00
PX4 BuildBot
603d4b999b
Update submodule sitl_gazebo-classic to latest Mon Mar 6 12:38:18 UTC 2023
...
- sitl_gazebo-classic in PX4/Firmware (7edce94b93 ): https://github.com/PX4/PX4-SITL_gazebo-classic/commit/9343aaf4e275db48fce02dd25c5bd8273c2d583a
- sitl_gazebo-classic current upstream: https://github.com/PX4/PX4-SITL_gazebo-classic/commit/e3722bf9132567e8dd08b7ed6df2986e21a6ec18
- Changes: https://github.com/PX4/PX4-SITL_gazebo-classic/compare/9343aaf4e275db48fce02dd25c5bd8273c2d583a...e3722bf9132567e8dd08b7ed6df2986e21a6ec18
e3722bf 2023-02-24 Frederic Taillandier - Allowing to override sniffer's modules ip (#963 )
2221c95 2023-02-24 Frederic Taillandier - removing macos 1015 github actions (#962 )
48e9b17 2023-02-24 frederic@auterion.com - removing debug
265198d 2023-02-24 frederic@auterion.com - fixing indentation
de9bf14 2023-02-24 frederic@auterion.com - try fix build by updating the path to the right gazebo
ec8641d 2022-08-24 Konrad - Revert "Enable multi IMU capability in gazebo mavlink interface"
487a789 2023-02-21 Jaeyoung Lim - Revert "Add multi magnetometer capability. Magnetometer plugin now derived from sensorplugin. Magnetometer topic dervied from naming. Updated all models with magnetometer submodel"
2023-03-06 18:33:00 -05:00
Silvan Fuhrer
2d92bd627a
FWRateController: always update manual_control_setpoint if in manual and FW
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 22:43:41 +01:00
Silvan Fuhrer
caee131e6a
FW Position Controller: mini fw_control_yaw_wheel refactoring
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 22:43:41 +01:00
Silvan Fuhrer
1e56d9c219
Rework flaps/spoilers logic
...
- remove deprecated actuator_controls[INDEX_FLAPS/SPOILERS/AIRBRAKES]
- use new topic normalized_unsigned_setpoint.msg (with instances flaps_setpoint
and spoilers_setpoint) to pass into control allocation
- remove flaps/spoiler related fields from attitude_setpoint topic
- CA: add possibility to map flaps/spoilers to any control surface
- move flaps/spoiler pitch trimming to CA (previously called DTRIM_FLAPS/SPOILER)
- move manual flaps/spoiler handling from rate to attitude controller
FW Position controller: change how negative switch readings are intepreted
for flaps/spoilers (considered negative as 0).
VTOL: Rework spoiler publishing in hover
- pushlish spoiler_setpoint.msg in the VTOL module if in hover
- also set spoilers to land configuration if in Descend mode
Allocation: add slew rate limit of 0.5 to flaps/spoilers configuration change
Instead of doing the flaps/spoilers slew rate limiting in the FW Position Controller
(which then only is applied in Auto flight), do it consistently over all flight
modes, so also for manual modes.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 22:43:41 +01:00
Silvan Fuhrer
16594bffa9
Rework landing gear logic
...
- remove deprecated actuator_controls[INDEX_LANDING_GEAR]
- remove dead code in mc rate controller that used to prevent it from being retracted
on the ground (anyway had no effect as it only affected the actuator_control[LANDING_GEAR]
which wasn't sent to the control allocation)
- for VTOLs handle deployment/retraction of landing gear in AUTO as a MC (retract if
more than 2m above ground, deploy if WP is a landing WP), plus additionally when transition
flight task is called (ALTITUDE mode and higher)
- for FW in AUTO: add logic in FW Position Controller, depending on waypoint type mainly
- manual landing gear settings always come through (a manual command overrides a previous
auto command, and vice-versa)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 22:43:41 +01:00
Silvan Fuhrer
3e884116c4
logged_topics: make landing_gear_wheel optional and increase interval to 100ms
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 22:43:41 +01:00
Silvan Fuhrer
4b54ddfe61
Remove INDEX_COLLECTIVE_TILT from actuator_controls and instead use new topic tiltrotor_extra_controls
...
Tiltrotor_extra_controls also contains collective thrust beside collective tilt, as passing a 3D
thrust setpoint vector beside the tilt is not feasible.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 22:43:41 +01:00
Eric Katzfey
21c7f8ad74
posix server: changed the method of checking and setting the server file lock ( #21243 )
...
* Changed the method of checking and setting the server file lock on Posix to avoid conditions where the server can indicate that it is running but still hasn't finished it's initialization
2023-03-06 09:55:57 -05:00
Eric Katzfey
5cade89499
Improve logging for Modal IO ESC ( #21188 )
...
- always publish esc_status
- when enabled via MODAL_IO_VLOG param, enable actuator debug output
- for modal_io commands, use ESC HW ID values instead of motor number for easier use
- publish esc_status message for command line commands
- Uncommented the code that fills in the cmdcount and power fields in the esc_status topic
---------
Co-authored-by: Travis Bottalico <travis@modalai.com >
2023-03-06 09:51:22 -05:00
Eric Katzfey
daa302cdbe
Changes to allow the commander module to be built and run on Qurt ( #21186 )
...
* Changed exclusion to rely on the definition of PX4_STORAGEDIR
2023-03-06 09:49:07 -05:00
Silvan Fuhrer
dc4926dc4d
remove WheelEncoders.msg
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 09:43:01 -05:00
Silvan Fuhrer
0633d0d826
drivers: remove RoboClaw
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 09:43:01 -05:00
Jaeyoung Lim
e5d5fcd315
Subscribe to vehicle odometry in GZ Bridge
...
This PR subscribes to the vehicle odometry in gz bridge / Add x500_vision model
Fix transforms
F
2023-03-06 09:27:35 -05:00
Tahsincan Köse
8737099a33
commander: failsafe framework fix missing return in actionStr function ( #21245 )
...
- there needs to be a default statement for the compiler to work when this function is called.
2023-03-06 09:21:20 -05:00
Beniamino Pozzan
b79578fa55
efk2: Force external vision vertical position if EKF2_HGT_REF=VISION
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-03-06 09:19:49 -05:00
Daniel Agar
3fac85369e
ekf2: gps control use adjusted velocity and position for reset
2023-03-06 09:03:39 -05:00
Silvan Fuhrer
95754876ed
Apply small suggestions from code review
...
Further param description improvements.
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2023-03-06 14:00:02 +01:00
Silvan Fuhrer
ec38ec660c
FW controllers: make param description more concise
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 14:00:02 +01:00
Silvan Fuhrer
4be74befd2
VTOL: remove pusher reverse feature
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 14:00:02 +01:00
Silvan Fuhrer
c09bf66639
VTOL: make param descripion more concise
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 14:00:02 +01:00
Silvan Fuhrer
9a038281c5
RoverPositionController: remove some unused stuff
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 14:00:02 +01:00
Silvan Fuhrer
feec8b2036
L1: remove some functions that Rover doesn't need
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-06 14:00:02 +01:00
Silvan Fuhrer
7edce94b93
v2_default: disable hover thrust estimator to safe flash
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-02 12:22:18 -05:00
Daniel Agar
74130d7f71
ucdr msg template add timestamp protections
...
- if timestamp (or timestamp_sample) unpopulated fill it with current hrt_absolute_time()
- if using provided timestamp don't allow it to exceed current hrt_absolute_time()
2023-03-02 09:52:53 -05:00
Matthias Grob
0770478dc7
FlightTaskDescend: Enable nudging by sticks when it's enabled
...
and stick input is available.
2023-03-02 12:06:40 +01:00
Matthias Grob
728570828f
FlightTaskManualAltitude: use StickTiltXY for horizontal stick mapping
2023-03-02 12:06:40 +01:00
Matthias Grob
21d580293a
StickYaw: use consistently for all flight tasks
...
- Switching to the first order filter that was previously
only in FlightTaskManualAltitude.
- Moving the scaling of full stick deflection to
radians per second into the class.
2023-03-02 12:06:40 +01:00
Matthias Grob
0c1f340154
StickAccelerationXY: improve comments
2023-03-02 12:06:40 +01:00
Matthias Grob
a29d02fd62
MulticopterRateControl: don't instaciate unused parameter
2023-03-02 12:06:40 +01:00
Matthias Grob
da4644c20a
Sticks: only use stick input if flagged valid
...
and add a function for just pitch roll stick input
2023-03-02 12:06:40 +01:00
Matthias Grob
1dada5daf4
Add StickTiltXY utility class to FLightTasks
...
to map stick input to vehicle tilt consistently and reliably across modes.
2023-03-02 12:06:40 +01:00
Silvan Fuhrer
0c4b288973
RTL: only do calculations in is-inactive if global position is recent ( #21208 )
...
* RTL: only do calculations in is-inactive if global position is recent
* RTL: refactor calcRtlTimeEstimate to only calc and not pub
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-02 11:09:32 +01:00
Beniamino Pozzan
458c351585
setup/ubuntu.sh: Only install Gazebo Garden for Ubuntu 22.04 ( #21173 )
...
* Tools/setup/ubuntu.sh: Only install Gazebo Garden on Ubuntu 22.04
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
* Apply suggestions from code review
---------
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
Co-authored-by: Hamish Willee <hamishwillee@gmail.com >
2023-03-02 10:51:29 +11:00
Andrew Brahim
184c7fe79d
drivers/distance_sensor: Lightware Lidar SF45/B rotating sensor serial driver ( #19891 )
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2023-03-01 16:16:25 -05:00
Daniel Agar
bde194fb12
simulation/gz_bridge: local_position_groundtruth include heading ( #21224 )
2023-03-01 18:44:31 +01:00
Beat Küng
e129534a58
fix ROMFS: add rc.autostart_ext to cmake
2023-03-01 08:53:17 -05:00
Daniel Mesham
fe48de6240
Check position subscriber before force-send flag when sending GPS global origin stream
2023-03-01 08:52:41 -05:00
DanielePettenuzzo
539f874325
mavlink main - enable gps global origin stream also on mavlink low bw mode and change all rates to 1Hz
2023-03-01 08:52:41 -05:00
DanielePettenuzzo
6bf19ebe23
gps global origin stream - make sure we can always send out the message at least once on request
...
When requesting a message from a stream that is not active we start the
stream with interval=0 and call the request method once. For all streams
this works fine except the gps_global_origin. For this one the request method
is actually overidden to throttle down the rate and not just send out the message.
This will cause this message to never being sent on request if the stream
is not active by default.
2023-03-01 08:52:41 -05:00
Silvan Fuhrer
76116d79f9
TECS: remove umcommanded_descent flag
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-01 10:39:09 +01:00
Silvan Fuhrer
527225357b
TECS: remove unused TECS_MODE_CLIMBOUT
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-01 10:39:09 +01:00
Tony Samaritano
2b73b6df70
commander: fixes valid mag count in HIL
2023-03-01 08:05:23 +01:00
Junwoo Hwang
d6b523b574
Update README: Maintainers, Boards, Roadmap ( #21030 )
...
* Update README: Maintainers, Boards, Roadmap
- First step after the community coordination call from January 30th
* README: Fromat list & remove discontinued boards & add others
- Addressed comments
* README: Add Simulation, remove QGC
- Only leave the PX4 specific categories (QGC is not)
* Add Beniamino as ROS2 maintainer
* README: Add note that README is main source of truth for maintainers
- We need to have a source of truth, we can use Github README for that.
2023-02-28 19:06:09 +01:00
Marco Räth
bdb0fe77d0
v6x: fix mag orientation for V6X009010 and V6X010010 ( #21194 )
2023-02-28 11:01:16 +01:00
João Neto
58000ff61c
Tools/setup/ubuntu.sh: remove comment from continued line ( #21191 )
...
Comment broke script
2023-02-28 08:12:20 +01:00
Daniel Agar
b5a6d6db0d
ekf2: fix controlEvYawFusion() yaw reset
2023-02-24 16:59:59 -05:00
Daniel Agar
a06a635da3
drivers/inv/vectornav: fix official vectornav library NuttX support
...
- vectornav library (libvnc) fixed for NuttX
- open serial port O_NONBLOCK (like __APPLE__)
- set serial port baud rate with cfsetspeed (like __APPLE__)
- vectornav backend thread increase stack and run at higher priority (SCHED_FIFO)
2023-02-24 16:59:38 -05:00
Silvan Fuhrer
837095b9a8
tecs: use FW_T_SINK_MIN for STE_rate_min ( #21190 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-24 15:46:41 +01:00
Roman Bapst
33b54f7c57
vtol_att_control: Consolidate logic for front transiton completion ( #21107 )
...
* vtol_att_control: consolidate logic for front transiton completion
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* addressed review comments
Signed-off-by: RomanBapst <bapstroman@gmail.com >
---------
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-24 15:52:27 +03:00
Silvan Fuhrer
4259b5adac
Commander: copy sensor_gps in HomePosition::update() and store relevant fields in separate variables
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-24 13:32:38 +01:00
Silvan Fuhrer
006321e278
Commander: remove unused param COM_POS_FS_EPV
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-24 13:32:38 +01:00
Silvan Fuhrer
526e066d9a
Commander: rework GPS invalid warning to use estimator feedback instead of separate GPS quality thresholds
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-24 13:32:38 +01:00
Silvan Fuhrer
e6af8b9aa6
Commander: Home Position: move gps checks on when to allow setting home pos inside HomePosition class
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-24 13:32:38 +01:00
Igor Mišić
352f773ec4
systemcmds/mtd: fix rwtest - force data to/from the device
...
Block Device driver uses a buffer so we need to ensure data is written or read to the device and not to the buffer so we can be sure if the device works properly
2023-02-24 08:08:19 +01:00
Dmitry Ponomarev
a1efafc42b
drivers/cyphal: incremental fixes for fmu-v5 ( #20671 )
...
* Cyphal: fix comparing floating-point issue
* Cyphal: fix setpoint serialization
* Cyphal: fix bug with wrong comparasion of param name and pub/sub name: remove prefix from UavcanPublisher::updateParam and UavcanDynamicPortSubscriber::updateParam and PublicationManager::updateDynamicPublications
* Cyphal: integrate UavcanEscController with PublicationManager, remove second instance of UavcanEscController from CyphalNode
* Cyphal: publish readiness with minimal frequency because according to UDRAL The drive shall enter STANDBY state automatically if the readiness subject is not updated for CONTROL_TIMEOUT
* Cyphal: increase setpoint publish rate from ~75 to 200 by removing PX4_INFO (it really significantly react on the the output rate) and changing the mixing output rate and the shedule interval
* Cyphal: restore prefix because we need it for uorb over uavcan/cyphal and add udral prefix for non uorb pub/sub
* Cyphal: fix DynamicPortSubscriber subscription: if it has multiple subscribers, it should call subscription only after updating of all port subscribers port identifiers
* Cyphal: fix SubscriptionManager: we should take care about prefix
* Cyphal: fix readiness for test motor mode
* [Cyphal] Fix dynamicsubscription, improve printinfo, enable MR-CANHUBK3 config
---------
Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com >
2023-02-23 10:57:50 -05:00
Matthias Grob
013365d6c8
ubuntu.sh: source the .profile after changing it
...
such that the arm toolchain is available in that terminal without
relogin for convenience.
2023-02-23 09:58:10 +01:00
Matthias Grob
22030c1b8c
ubuntu.sh: add libfuse2 to general packages
...
to allow running QGroundControl app image out of the box.
2023-02-23 09:58:10 +01:00
Matthias Grob
dabf33759b
ubuntu.sh: only add gazebo source once on 22.04
2023-02-23 09:58:10 +01:00
Hamish Willee
76aac7a5e5
VehicleCommandAck typo on module docs
2023-02-23 08:19:11 +01:00
Hamish Willee
4daa63afc2
Sensors.cpp - case the uorb topics like SensorGyro
2023-02-23 08:18:39 +01:00
Alejandro Hernández Cordero
ea6814d258
Simulation Gazebo: Use Gazebo Airpressure sensor ( #21176 )
...
* Simulation Gazebo: Use Gazebo Airpressure sensor
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
* Fixed build
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
* Added feedback
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
* make linters happy
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
---------
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
2023-02-22 19:32:25 +01:00
Beat Küng
06dfd1726f
microdds_client: fix -l flag and add -c for custom participant configuration
...
Allows to use a custom FastDDS configuration on the Agent side.
2023-02-22 11:15:29 -05:00
Daniel Agar
98263de17b
ekf2: move aux vel helpers to auxvel_fusion.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
a199df78cc
ekf2: move mag control helpers to mag_control.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
c20e4e4421
ekf2: move stopFlowFusion() to optical_flow_control.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
3a317ec18c
ekf2: move gps helpers to gps_control.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
9ec3f30ae1
ekf2: move gps buffer pop to controlGpsFusion()
...
- controlGpsFusion() now owns yaw estimator update
2023-02-22 09:08:33 -05:00
Daniel Agar
a867bb7d88
ekf2: let controlAirDataFusion() update yaw estimator TAS
2023-02-22 09:08:33 -05:00
Daniel Agar
60856ebe62
ekf2: move range buffer pop to controlRangeHeightFusion()
2023-02-22 09:08:33 -05:00
Daniel Agar
08f111f694
ekf2: consolidate airspeed fusion logic and helpers
...
- pass new airspeed sample around when available
- can't completely eliminate _airspeed_sample_delayed until resetWind()
called from sideslip fusion is updated
2023-02-22 09:08:33 -05:00
Daniel Agar
241cee2bb7
ekf2: move airspeed buffer pop to controlAirDataFusion
2023-02-22 09:08:33 -05:00
Daniel Agar
0711a34d0e
ekf2: move flow buffer pop to controlOpticalFlowFusion
2023-02-22 09:08:33 -05:00
Daniel Agar
ed8cef6cf0
ekf2: move controlAuxVelFusion control.cpp -> auxvel_fusion.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
b4e845d7c0
ekf2: move controlDragFusion control.cpp -> drag_fusion.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
c08a387c5a
ekf2: move controlBetaFusion control.cpp -> sideslip_fusion.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
d61b8c21b2
ekf2: move controlAirDataFusion() control.cpp -> airspeed_fusion.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
d840f7f39f
ekf2: move controlGpsYawFusion() control.cpp -> gps_control.cpp
2023-02-22 09:08:33 -05:00
Hamish Willee
b66e15c4b9
generate_msg_docs.py - fix path to messages
2023-02-22 09:32:05 +01:00
Matthias Grob
f887ad6ebf
mc_att_control: allow commanding a yaw rate with zero throttle
...
Still avoiding to build up absolute yaw error in that case.
2023-02-21 19:33:28 +01:00
Matthias Grob
2b0f7879bc
mc_att_control_main: separate yaw rate setpoint generation from absolute yaw reset
2023-02-21 19:33:28 +01:00
Matthias Grob
ce5cff55b7
mac_att_control: heading lock in stabilized only after ekf final yaw alignment
2023-02-21 19:33:28 +01:00
Silvan Fuhrer
f0571de731
MCAttitudeController: remove reset of yaw_sp when landed
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-21 19:33:28 +01:00
Beat Küng
fe3c1d0a92
logger: do not try to wait for mavlink ack when writing watchdog data
...
As it might block for 2.5s (if mavlink is blocked) and therefore would not
write to file before restoring the priorities.
2023-02-21 11:32:30 -05:00
Beat Küng
66b0f6eb35
log_writer_file: call fsync after reliable transfer
...
ensures watchdog data is flushed immediately
2023-02-21 11:32:30 -05:00
Beat Küng
e4cef9f303
logger: update watchdog
...
- reduce boost priority to PX4_WQ_HP_BASE - 6
- add cli command 'trigger_watchdog' to manually trigger watchdog
- add perf counters when triggering watchdog
- reduce top measurement to 300ms
- restore priorities after 1.5s
There are precautions in case the SD card code itself has a busy-loop.
2023-02-21 11:32:30 -05:00
Beat Küng
015ba62727
log_writer_file: do not call close() with mutex held
...
Generally not an issue, but if close() takes long, or even busy-loops due
to an underlying bug in the OS, it will block the main thread too.
2023-02-21 11:32:30 -05:00
Jaeyoung Lim
5676cc32bc
Optionally enable sensor simulations
2023-02-21 11:16:25 -05:00
Leonardo Garcia
3bdb42b6a7
mro/pixracerpro: add missing px4_platform_configure() call ( #21158 )
2023-02-21 09:30:39 +01:00
MAD-CRAZY-MAN
3ab34fe5b1
ci: build thepeach FCC-K1 & FCC-R1
2023-02-20 21:56:08 -05:00
Silvan Fuhrer
94be17af8f
FWPositionControllre: only check acceptance radius to swich to loiter to reach WP alt
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 21:55:27 -05:00
Julian Oes
9ec6a4b1d7
icm42688p: fix comment about gyro and accel bits
...
This really confused me.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-20 21:47:11 -05:00
Silvan Fuhrer
2008a447c3
FW PositionController: circular landing: publish orbit status
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
485785d81d
FW PositionController: circular landing: enable automatic landing aborts
...
Enable automatic landing abort on timed out distance sensor reading also for
the circular landing. Do not enable the no-terrain timeout check, as, opposed
to the straight landing, we here don't know when to expect the distance sensor
to get valid.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
37b6dccda9
Land: use MIS_LND_ABRT_ALT also in non-mission Land
...
As we don't know the landing point altitude in non-mission landings, assume
the worst case (abort right before touchdown) and thus always climb
MIS_LND_ABRT_ALT on triggering an abort.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
c47210fc77
FWPositionController: add support for circular landings
...
Add method for circular landing, that is used instead of the straight fixed-wing
landings in case the landing is not part of a mission landing.
Use straight landing if previous WP is valid, and the ciruclar otherwise.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
50d75c537e
FWPositionController: auto_landing(): move non-position handling to top
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
b94ed34406
FW Position Control: initializeAutoLanding(): pass only alt value of pos_sp_curr
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
805de8a6d9
Navigator: set position setpoint to current location instead of to NAN
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
eaa4180920
Navigator: remove ununsed argument from set_land_item()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
David Sidrane
1fb6b003fc
NuttX with backport ioexpander/gpio:Add gpio_pin_register_byname
2023-02-20 04:14:01 -08:00
Silvan Fuhrer
167e58abba
AirspeedSelector: remove unused variable
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 11:35:24 +01:00
Silvan Fuhrer
1acb07c600
Navigator: set _land_start_index to first item with a position after the marker
...
_land_start_index is used to to start the mission from this item index, and to
avoid to publish a triplet.current.type=IDLE, we need to fill it with the actual
position setpoint that the vehicle should go to at the start of a mission landing.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 06:50:53 +01:00
bresch
fafcdbf4ed
tests: empty parentheses were disambiguated as a function declaration
2023-02-17 21:10:44 -05:00
bresch
8ebf47edb1
ekf2: stop mag fusion when there is no data anymore
2023-02-17 08:51:55 -05:00
Silvan Fuhrer
deabe9a38d
Navigator: accept yaw immedietaly if the flag heading_good_for_control is not set
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-17 13:34:30 +01:00
David Sidrane
d291207b9f
NuttX with mmcsd backports to prevent system hang on error
2023-02-17 10:16:15 +01:00
RomanBapst
b00efcd966
cleanup
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
7ef2bff0a2
FeasibilityChecker: Fixed bug and added unit test for it
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
2e50277695
improved function naming
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
8ecb550331
cleanup
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
00b1968a5c
more clang tidy stuff
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
b8d0a8821a
fixed clang tidy
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
c09263d53c
use correct type
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
11fd3ef71a
use legacy parameter system and cleaned up vehicle type
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
741fbb931d
fixed land requirement for VTOL
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
6e07af959f
fixed bug in Matrix library
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
925ad97ff3
added unit tests
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
11143def82
tried to add functional unit test
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
ceb8f6e1d5
started with feasibility checks
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
Christian Rauch
d6bb19e11b
drivers/linux_pwm_out: link mixer_module
2023-02-15 16:04:31 -05:00
Jaeyoung Lim
0e1e1afcf9
Correct dates in the license headers
2023-02-15 01:37:32 +09:00
Jaeyoung Lim
0b3f4dd385
Inject failure for airspeed sim
2023-02-15 01:37:32 +09:00
Jaeyoung Lim
3f50bd051f
Optionally enable airspeed sensor sim
...
Enable and disable sensor sim module with parameter
2023-02-15 01:37:32 +09:00
PX4 BuildBot
192764387d
Update submodule mavlink to latest Tue Feb 14 12:38:55 UTC 2023
...
- mavlink in PX4/Firmware (e7a5dedf48f967465d1f9e6c96a9bf304e1a74b1): https://github.com/mavlink/mavlink/commit/e3b8756e37cd2cd01ba658461bb4dbffb2fdf914
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/2bdcab78b53d1e349079b43c9d726036abe0617c
- Changes: https://github.com/mavlink/mavlink/compare/e3b8756e37cd2cd01ba658461bb4dbffb2fdf914...2bdcab78b53d1e349079b43c9d726036abe0617c
2bdcab78 2023-02-09 Hamish Willee - undo last commit
9c60f17a 2023-02-09 Hamish Willee - param_id char[] description
841b7683 2023-02-08 Alessandro Ros - remove invalid enum reference from storm32.xml (#1947 )
8d4e50ee 2023-02-08 Julian Oes - scripts: install npm dependencies first
72a9b2c3 2023-02-08 Julian Oes - pymavlink: update submodule
2023-02-14 09:53:11 -05:00
Knut Hjorth
db539d15bd
mavlink: fix bug when opening /dev/null as default stdin/stdout/stderr
...
Prior commit added opening of /dev/null as 0, 1 and/or 2 file
descriptors, if they where not present. However, if the temporary
file descriptor used to open /dev/null matched the target file
descriptor, it would be immediately closed again. This commit fixes that,
and does not duplicate and close the temporary file descriptor if it is
already at the correct number.
2023-02-14 08:18:01 +01:00
Christian Rauch
5880fe4153
remove deprecated check for CONFIG_STM32_STM32F4XXX in STM32F1 micro_hal.h
2023-02-14 08:08:24 +01:00
Daniel Agar
b3eb563db4
boards: cubepilot_cubeorange_test restore sd_bench (used on test rack)
2023-02-13 23:53:54 -05:00
Julian Oes
5803f692b9
boards: update CubePilot+ test defconfig
...
This is tracking upstream changes and making it build.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-13 22:36:22 -05:00
Julian Oes
01a9563955
cubeorangeplus: remove some modules to save flash
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-13 22:36:22 -05:00
Julian Oes
9d8fa38793
cubeorange: remove some modules to save flash
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-13 22:36:22 -05:00
Julian Oes
69cb1da3cc
workflows: add CubeOrange+ to CI build
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-13 22:36:22 -05:00
alexklimaj
e5a957ae63
boards: arkv6x add pulldowns to GPIO pins UART7 RTS and UART7 CTS
2023-02-13 22:35:23 -05:00
Daniel Agar
2ea25804a1
ekf2: allow filter init with only IMU ( #21041 )
...
- if mag enabled heading init is now pushed to controlMagFusion()
2023-02-13 22:07:15 -05:00
Julian Oes
d69d99b191
kakuteh7v2/mini: switch on VTX+
...
This just always switches the VTX+ power on.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-13 22:00:49 -05:00
Alex Klimaj
3ed1c688bf
drivers: icm42688p and iim42652 enable notch and AAF
2023-02-13 21:08:37 -05:00
Daniel Agar
a18e07e525
drivers/imu/bosch/bmi088: add more time between configure and FIFO_READ
...
- new FIFO_RESET state used to give the sensor more time after successful configuration before sampling begins
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2023-02-13 21:01:50 -05:00
Daniel Agar
1134d5338f
boards: sky-drones_smartap-airlink_default disable modules to save flash
2023-02-13 20:58:17 -05:00
Daniel Agar
4d95150e18
boards: px4_fmu-v4pro_test disable gyro_fft to save flash
2023-02-13 20:56:19 -05:00
Daniel Agar
299cb32aa8
boards: nxp_fmuk66-v3_test disable gyro_fft to save flash
2023-02-13 20:55:06 -05:00
Daniel Agar
bc5f4f8377
boards: mro ctrl-zero-h7 and pixracer disable modules to save flash
2023-02-13 20:53:52 -05:00
Daniel Agar
70a7edbcd0
boards: cubepilot_cubeorange_default disable SIH simulator to save flash
2023-02-13 20:47:26 -05:00
Daniel Agar
b14e0c21b6
boards: px4_fmu-v2_default disable sensors/vehicle_airspeed and sensors/vehicle_optical_flow to save flash
2023-02-13 20:45:28 -05:00
Beniamino Pozzan
ea91dbb0f5
gazebo-classic_iris_vision: fix airframe include and default parameters
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-02-14 03:26:56 +09:00
Jaeyoung Lim
3efc42cb14
Add standard vtol model
...
Add standard vtol model sdf
2023-02-13 13:00:39 -05:00
Jaeyoung Lim
65c287781f
Set prearm mode
2023-02-13 13:00:39 -05:00
Jaeyoung Lim
df4083265f
Add standard vtol airframe configs
2023-02-13 13:00:39 -05:00
Jaeyoung Lim
d5ddb44241
Add sensor airspeed sim
...
This commit adds the airspeed sensor sim to simulate airspeed sensors
2023-02-13 13:00:39 -05:00
Matthias Grob
6f4d903f45
Battery: address two comments from #2242
...
- use a constant instead of magic number
- fix code comment typo
2023-02-13 13:27:08 +01:00
Hamish Willee
edb6c635d5
EKF2_MAG_TYPE - fix typos ( #20808 )
2023-02-10 14:39:57 +01:00
Konrad
b9f9f25b48
parameter_translation: Add parameter translation for renamed L1 parameters
2023-02-09 17:51:55 +01:00
Konrad
92277ebb96
FixedwingPositionControl: Explicitly set wind to zero when it is not valid.
2023-02-09 17:51:55 +01:00
Konrad
de4b139540
FwPosControl: Update behavior of navigating to a waypoint when the previous waypoint is not valid. Go along the line of the current aircraft position to the desired waypoint.
2023-02-09 17:51:55 +01:00
Konrad
d5025810b4
FixedWingPositionControl: remove get_nav_speed_2d function as npfg can handle this internally.
2023-02-09 17:51:55 +01:00
Konrad
6bdeb43e0d
fw_path_navigation: Remove explicit L1 mentioning.
2023-02-09 17:51:55 +01:00
Konrad
3e200bca0d
fw_pos_control_l1: renaming to fw_path_navigation, l1 control is not used anymore, use a more generic naming.
2023-02-09 17:51:55 +01:00
Konrad
aa3af7f707
fw_pos_control: purge L1 controller
2023-02-09 17:51:55 +01:00
Knut Hjorth
fbc80c9bf5
RTL fixes and improvements for VTOL vehicles ( #21011 )
...
* rtl: remove unconditional transition to land after descent
This was a bug, as it renders the above code lines useless.
This would cause a undesired FW landing for VTOL vehicles if
RTL_LAND_DELAY is above 0.
* rtl: head to center after loiter in VTOL FW
To get the same behavior for RTL with and without loiter before land for
VTOL drones.
* rtl: always go to descend state after return
Previously, the state would change directly to land if in MR and
RTL_LAND_DELAY was 0.0, but we will still wish to descent to
RTL_DESCEND_ALT at descent speed, instead of using landing speeds.
* rtl: mark head to center state as part of vtol transition
The next step in the sequence is transition to MC. By setting
vtol_back_transition we ensure that the acceptance radius is adapted to
the expected transition distance.
2023-02-08 11:07:39 +01:00
Knut Hjorth
99cf1cfdfe
mavlink: use /dev/null as default stdin, stdout and stderr
...
If 0, 1 and/or 2 file descriptors are not open when mavlink module
starts (as might be the case for USB auto-start), use default /dev/null
so that these numbers are not used by other other files.
2023-02-08 10:38:20 +01:00
Knut Hjorth
6c7ae3d845
mavlink: generate new log list for request start index 0
...
Instead of interpret a request for "more logs than currently exists" as
a new request, use a request for index 0, which is more likely to be
the first request.
2023-02-08 10:38:20 +01:00
KonradRudin
c5d041a2f7
Rearrange npfg use path input ( #21071 )
...
* [npfg]: Remove the guideToPoint function and replace with guideToPath
* [npfg]: remove unused navigateXXX functions
* [npfg]: Move navigateXXX Function into FWPoscontrol
* [FixedwingPositionControl]: Set default flaps and spoilers in attitude setpoint topic, and only change if necessary.
2023-02-08 08:54:00 +01:00
jonasbouchraiet
9ac27c9413
Update rtl_params.c
2023-02-07 22:37:19 -05:00
Beat Küng
83c8c79af5
commander failsafe: add API to defer failsafes
2023-02-07 19:27:51 -05:00
Beat Küng
a727bddc19
microdds_client: set queue depth for incoming topics according to msg definition
...
Otherwise the FMU might miss publications from 2 different publishers at
the same time.
2023-02-07 19:12:10 -05:00
Beat Küng
3f2336af32
navigator: add ModeCompleted signalling topic
2023-02-07 19:11:52 -05:00
Beat Küng
f05e8a699e
ROMFS: enable COM_LOW_BAT_ACT by default for SITL
2023-02-07 19:11:29 -05:00
Beat Küng
ebc1d7544e
battery_simulator: add support for failure injection
...
For failsafe triggering in automated tests
2023-02-07 19:11:08 -05:00
Eric Katzfey
ddd1527305
Qurt PX4_INFO_RAW send to apps for display ( #21080 )
2023-02-07 17:22:09 -05:00
Eric Katzfey
db24c2b233
Qshell static subscription ( #21081 )
...
* Changed QShell uorb subscription to be static to avoid the duplicate sequence number error
2023-02-07 17:18:01 -05:00
Daniel Agar
7b3befded5
ekf2: disable new gravity fusion by default
2023-02-07 13:57:10 -05:00
Daniel Sahu
fa6fda6cce
ekf2: new gravity observation ( #21038 )
...
Signed-off-by: Daniel M. Sahu <danielmohansahu@gmail.com >
2023-02-07 13:28:58 -05:00
alessandro
3e149ee6c5
FlightTaskAuto: landing position updates for precision landing ( #20951 )
...
- precision landing works incorrectly, target position is not updated during the descent above target
- _prepareLandSetpoints needs to update _land_position continuously
Co-authored-by: kapacheuski <kapacheuski@gmail.com >
2023-02-07 12:07:26 -05:00
Jukka Laitinen
deb6053d56
Update status leds every time when prearm check status changes
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-02-07 08:02:32 +01:00
Christian Rauch
ef5761c223
add SPI to stm32f1
2023-02-07 07:54:38 +01:00
Christian Rauch
2f21c590b0
remove some vscode settings
2023-02-06 17:25:36 -05:00
JaeyoungLim
01c5b3934e
Tune GZ plane (rc_cessna) to fly nicely ( #21077 )
...
* Increase control surface joint controller gains
* Enable prearm mode and disable airpspeed checks for gz plane
2023-02-06 16:24:01 -05:00
Daniel Agar
661eb2adb4
lib/sensor_calibration: BiasCorrectedSensorOffset() don't incorporate thermal offsets
...
- the thermal offsets are an optional correction applied to the raw data, so when updating an existing calibration offset with new learned bias we don't want this incorporated
2023-02-06 15:09:07 -05:00
Silvan Fuhrer
e153d1defc
ROMFS: fix PY asymmetry (motor 1 was wrongly placed twice as far from the CG as 0)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-04 16:08:40 +01:00
Daniel Agar
04d3e549f5
ekf2: resetQuatStateYaw() set _time_last_heading_fuse
2023-02-03 10:03:09 -05:00
Daniel Agar
66ad7fd06c
ekf2: include 0 timestamp checks in helpers (isTimedOut(), isRecent(), etc)
...
- EKF isTimedOut(), isRecent(), and isNewestSampleRecent() need to handle the case where the timestamp has never been set
- reset() more thoroughly reset fields (mainly impacts unit tests)
2023-02-03 10:00:51 -05:00
Daniel Agar
264a99fb77
ekf2: new EKF2_IMU_CTRL parameter and gyro bias inhibit mechanism
...
- EKF2_AID_MASK accel bias inhibit moves to EKF2_IMU_CTRL
2023-02-03 09:52:24 -05:00
Daniel Agar
f668ea5aa6
ekf2: RingBuffer add reset method
2023-02-03 08:49:44 -05:00
Daniel Agar
e3d73cd837
ekf2: mag control reset mag_lpf on first sample
2023-02-02 16:12:09 -05:00
Michał Barciś
c2f13dbccf
setup/ubuntu.sh modified to correctly install all required dependencies for gazebo
...
Signed-off-by: Michał Barciś <michal.barcis@tii.ae >
2023-02-02 10:02:47 -05:00
ShiauweiZhao
35080504f7
drivers/drv_sensor.h fix device type duplicate definition
2023-02-02 09:54:47 -05:00
Vincent Poon
a90bae9e50
ci: build and deploy kakuteh7v2 & Kakuteh7mini
...
Adds Holybro kakuteh7v2 & Kakuteh7mini to Travis CI for building and deployment to S3 for QGC
2023-02-02 09:51:53 -05:00
Hamish Willee
2938db1c60
Apply suggestions from code review
2023-02-02 15:20:34 +01:00
Hamish Willee
7cea384404
Update src/modules/fw_autotune_attitude_control/fw_autotune_attitude_control_params.c
2023-02-02 15:20:34 +01:00
Hamish Willee
d65e5969e1
FW_AT_MAN_AUX - define what an Aux input is
2023-02-02 15:20:34 +01:00
Silvan Fuhrer
ba1d02ee75
MPC: improve description of MPC_LAND_RC_HELP
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-02 14:31:22 +01:00
小光
849fbabc47
px4_mtd: the address of 'instances' will never be NULL ( #21039 )
...
Signed-off-by: AuroraRAS <chplee@gmail.com >
2023-02-02 08:06:00 +01:00
Silvan Fuhrer
d9a4d1d5c4
Commander: use FW_AIRSPD_MAX as threshold for airspeed preflight checks
...
Check fails if airspeed reading is above FW_AIRSPD_MAX.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 20:43:38 -05:00
Robbie Drage
cb4235887f
vscode: change cubeorange build target
...
- Fixes typo in Cube Orange build target config
Fixes issue #17745
2023-02-01 18:17:45 -05:00
Silvan Fuhrer
32cab66c44
Commander: hide hint to param in low position accuracy event for end users
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 16:47:11 +01:00
Silvan Fuhrer
9b3a28dff5
Commander: add local_position_accuracy_low flag, incl. warning and RTL
...
Set this flag to true if local position is valid but accuracy low, such that
the operator can be warned before system switches to position-failure failsafe.
Additionally, switch to RTL if currently in Mission or Loiter to try to reach home
or fly out of GNSS-denied area.
Set low accuracy threshold to 50m by default for FW and VTOL.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 16:47:11 +01:00
Silvan Fuhrer
3ca126cc46
Commander: improve description of COM_FS EPH, EPV, VEL_EVH params and increase FW and VTOL defaults
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 16:47:11 +01:00
Silvan Fuhrer
cbc4c35bcf
Commander params: improve meta data for max flight time and wind
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 08:48:09 +01:00
Silvan Fuhrer
6d84da5cf1
Commander: add max flight time warning (starting at 90%)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 08:48:09 +01:00
Beat Küng
b1709743f7
commander: add wind or flight time limit exceeded mode requirement
...
This prevents switching into any of these modes once the condition is set.
2023-02-01 08:48:09 +01:00
Beat Küng
a8628c9d9c
fix commander: clear takeoff_time only on disarm
...
Otherwise the flight time restriction flag gets cleared too early, before
disarming (which puts the vehicle into the previous mode and it might
take off again).
2023-02-01 08:48:09 +01:00
Beat Küng
8e4c5884ec
fix commander: need to check for valid mode change even if already the same
...
Fixes the following case:
- user intention set to X
- failsafe triggers, mode = Y
- can_run for X becomes false
- user tries to switch to X
-> need to re-evaluate can_run
2023-02-01 08:48:09 +01:00
Beat Küng
7988491e37
failsafe simulator: improve spacing for multi-line checkboxes
...
Reduces line-height to 100% in that case.
2023-02-01 08:48:09 +01:00
ShiauweiZhao
931f602995
drivers/imu/invensense: new IAM-20680HP IMU driver ( #21025 )
2023-01-31 09:33:26 -05:00
Daniel Agar
2be701f902
platforms/nuttx: cmake debug pass GDB path and set RTOS plugin file extension
2023-01-30 20:19:38 -05:00
Eric Katzfey
a4aa76f0ac
VOXL2 board updates and new Kconfig option for ROOTFSDIR
...
- also includes a couple of miscellaneous changes to VOXL2 support to show Qurt messages on px4 console and put logs in the proper spot
2023-01-30 12:03:40 -05:00
Julian Oes
b1fc0ca0d0
mavlink: always forward messages to/from USB
...
Previously, it was not possible to enable forwarding of messages to/from
teh USB instance because it does not have a param for it, like the
serial instances have.
With this commit, we change the default to always set forwarding on for
the USB instance as that is likely desired.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-30 10:46:14 -05:00
Julian Oes
0446292c75
mavlink: always use public method
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-30 10:46:14 -05:00
Julian Oes
7b8cf4913e
mavlink: show forwarding status
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-30 10:46:14 -05:00
Daniel Agar
47215bb625
lib/wind_estimator: symforce codegen remove reserved identifier naming
...
- from the C standard, "All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use"
2023-01-30 09:24:32 -05:00
Daniel Agar
efe1d43550
ekf2: symforce codegen remove reserved identifier naming
...
- from the C standard, "All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use"
2023-01-30 09:24:32 -05:00
Beat Küng
0687fd2689
lockstep_scheduler: avoid pthread_cond_destroy on at_exit
...
The static object is destroyed on at_exit while threads might still be
inside a CS. This can lead to a hanging process.
Cleaner would be to gracefully stop the threads.
According to https://linux.die.net/man/3/pthread_cond_destroy :
Attempting to destroy a condition variable upon which other threads are
currently blocked results in undefined behavior.
2023-01-30 11:45:02 +01:00
Hamish Willee
f25abbc80a
Fix magnetometer typo
2023-01-30 10:24:16 +01:00
Daniel Agar
8da993c30e
Update world_magnetic_model to latest Sat Jan 28 11:14:05 UTC 2023
...
Co-authored-by: PX4 BuildBot <bot@px4.io >
2023-01-28 11:41:03 -05:00
PX4 BuildBot
88038717dc
update all px4board kconfig
2023-01-28 11:39:51 -05:00
Roman Bapst
4646762f9d
Use multiplication instead of division
2023-01-28 10:31:17 -05:00
Silvan Fuhrer
0c735dea2e
AirspeedSelector: use scientific notation for small param
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-28 10:31:17 -05:00
Silvan Fuhrer
d32f400851
WindEstimator: use isAllFinite()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-28 10:31:17 -05:00
Silvan Fuhrer
a6d14796e4
WindEstimator: add consts, fix float comparison to 0 and use consistently floats in division
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-28 10:31:17 -05:00
Silvan Fuhrer
15335b194a
WindEstimator: use state indexing enum consistently
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-28 10:31:17 -05:00
PX4 BuildBot
21ddb04856
Update submodule mavlink to latest Sat Jan 28 00:39:00 UTC 2023
...
- mavlink in PX4/Firmware (fa65292bb7542cb1f2a4cdaac10738fa17777a6d): https://github.com/mavlink/mavlink/commit/74dee05f0cd121ae27e021d011a04b161c9d0440
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/e3b8756e37cd2cd01ba658461bb4dbffb2fdf914
- Changes: https://github.com/mavlink/mavlink/compare/74dee05f0cd121ae27e021d011a04b161c9d0440...e3b8756e37cd2cd01ba658461bb4dbffb2fdf914
e3b8756e 2023-01-25 olliw42 - update storm32.xml (#1941 )
2023-01-27 21:14:07 -05:00
Silvan Fuhrer
48f2b42e12
FWPositionController: remove factor of 2 for switching to LOITER if altitude is not reached
...
Instead check if system has previously switched into LOITER to acheive the current
WP of type POSITION, and in that case stay in LOITER until altitude is reached.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-27 16:51:30 +03:00
Eric Katzfey
e862fde084
ver: use PX4_INFO_RAW and add vendor version ( #21008 )
2023-01-27 07:13:37 +01:00
Silvan Fuhrer
d53d200aa5
Update msg/TecsStatus.msg
...
Co-authored-by: KonradRudin <98741601+KonradRudin@users.noreply.github.com >
2023-01-26 17:04:43 +01:00
Silvan Fuhrer
88ec117e59
TECS: rename tecs_status.altitude_filtered to altitude_sp_ref
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-26 17:04:43 +01:00
Silvan Fuhrer
06f4195663
PositionControllerStatus.msg: add comments
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-26 17:04:43 +01:00
Silvan Fuhrer
fc1c5da92c
tecs_status.msg: add comments to states
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-26 17:04:43 +01:00
Silvan Fuhrer
5099a91f87
TECS: keep _pitch_integ_state in radians
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-26 17:04:43 +01:00
Silvan Fuhrer
e16f98c2b6
FW Position controller: remove unused climbout arguments
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-26 17:04:43 +01:00
Eric Katzfey
aae431e4d5
Removed unused variables in LED driver that were causing fatal build errors on Qurt platform ( #21007 )
2023-01-25 16:35:56 -08:00
PX4 BuildBot
d6d41af9a4
Update submodule nuttx to latest Wed Jan 25 12:38:18 UTC 2023
...
- nuttx in PX4/Firmware (d3b7112dd9 ): https://github.com/PX4/NuttX/commit/f80785664fcd99e36835dcb7e9b9b97cd5e9cf8d
- nuttx current upstream: https://github.com/PX4/NuttX/commit/35997053c5f61039e542c01440feb10baba5049d
- Changes: https://github.com/PX4/NuttX/compare/f80785664fcd99e36835dcb7e9b9b97cd5e9cf8d...35997053c5f61039e542c01440feb10baba5049d
35997053c5 2023-01-23 David Sidrane - [BACKPORT] s32k1xx:serial Do not use TC use TDRE & TIE
2023-01-25 14:48:22 -05:00
PX4 BuildBot
cc5509381a
boards: update all NuttX defconfigs
2023-01-25 14:47:48 -05:00
PX4 BuildBot
03f681ebf8
update all px4board kconfig
2023-01-25 12:57:17 -05:00
Silvan Fuhrer
a210c96aa9
Commander: ssimplify error messages for LOITER rejection
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-25 16:40:27 +01:00
Silvan Fuhrer
148ffe4e25
add support for DO_CHANGE_ALTITUDE
...
Do the same as DO_REPOSITION wit only the altitude field populated
and MAV_DO_REPOSITION_FLAGS set, which means:
- switch to Loiter mode if not already in it
- set the current altitude to what is specified in the altitdue field,
keep current altitude setpoint otherwise
- keep current position setpoint
- fall back to current estimated position in case a position setpoint
is not finite
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-25 16:40:27 +01:00
Daniel Agar
0bdec5bcc0
cmake: nuttx fix jlink-nuttx dependency
2023-01-25 09:06:35 -05:00
KonradRudin
d3b7112dd9
[TECS]: If in airspeedless mode, add the throttle integrator term to the throttle setpoint, if the integrator term is positive. This should avoid reducing airspeed when switching to airspeedless mode. ( #20987 )
2023-01-25 09:16:11 +01:00
modaltb
20b7a8c9f6
drivers/actuators/modalai_esc --> modal_io and rename UART_ESC prefix to MODAL_IO ( #20995 )
2023-01-24 20:24:58 -05:00
Benjamin Perseghetti
60de5b3ea4
simulation/gz_bridge: remove proceeding px4_ from servos in gazebo model ( #20998 )
...
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com >
2023-01-24 19:56:11 -05:00
Benjamin Perseghetti
684b4a4b8a
simulation/gz_bridge: rc_cessna plane model working, Gazebo Garden updates, and prepare for proper airspeed ( #20989 )
...
Co-authored-by: Benjamin Perseghetti <bperseghetti@rudislabs.com >
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
2023-01-24 19:01:45 -05:00
modaltb
fbd2e111d0
boards/modalai/fc-v1: revert DMA changes on FCv1 for now (from #20956 )
2023-01-24 14:50:05 -05:00
alexklimaj
0776c47d88
Enable ARK CANnode pwm outputs 7 and 8
2023-01-24 14:49:21 -05:00
alexklimaj
ac7dc030c3
Add ARK CANnode ver command
2023-01-24 14:49:21 -05:00
Daniel Agar
64c2ec5eea
simulation/gz_bridge: remove cmake CONFIGURE_DEPENDS
...
- PX4 build system simulation targets are optional and no longer
strictly required
2023-01-24 13:58:30 -05:00
Daniel Agar
9cb6de8010
simulation: relax jmavsim java requirements (finding vecmath.jar)
2023-01-24 13:56:24 -05:00
Daniel Agar
3b543c7700
mavlink: serialize mavlink generation to prevent broken output
...
- let uAvionix generation fully complete before generating CONFIG_MAVLINK_DIALECT
2023-01-24 13:49:28 -05:00
JaeyoungLim
644aeb9153
support fixed-wing in new Gazebo (gz or ignition gazebo) ( #20939 )
...
* Add gz plane airframe config
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
Co-authored-by: Benjamin Perseghetti <bperseghetti@rudislabs.com >
2023-01-24 09:22:53 -05:00
Jiangxuan Chen
c31867f104
support for KakuteH7v2, KakuteH7mini, and BMI270 IMU driver ( #20545 )
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-22 19:41:39 -05:00
Daniel Agar
7c9dcd1985
drivers/uavcan: silence noisy libuavcan cmake version deprecation warning for now
...
- keep drivers/uavcannode cmake in sync with drivers/uavcan
2023-01-22 14:48:43 -05:00
Daniel Agar
1b46028fd3
mavlink: generate mavlink quiet by default (stdout redirected to log file)
2023-01-22 14:45:41 -05:00
bresch
6e30f8f5cb
ekf2: use dedicated aid_src message for flow for terrain aiding
2023-01-21 15:31:19 -05:00
bresch
b4b48cae75
ekf2: terrain flow - migrate to Symforce
2023-01-21 15:31:19 -05:00
Daniel Agar
3f842f01a0
simulator/gz_bridge: split actuator outputs for ESCs and servos ( #20979 )
...
- existing SIM_GZ outputs -> SIM_GZ_EC (ESCs)
- new SIM_GZ_SV for servos (not fully implemented)
2023-01-21 14:44:09 -05:00
berkercanatar
9ac6b3d3c5
Update current year in LICENSE
...
Update year to match with the current year 2023 in LICENSE file.
2023-01-21 12:57:27 -05:00
modaltb
c0e8508b01
actuators/modalai_esc/modalai_esc: fix ESC ID to Motor remap regression ( #20977 )
2023-01-21 12:57:02 -05:00
Daniel Agar
a93ef657d1
HIL/test_airframes.sh allow 'gps' and 'mavlink' status to fail
...
- we're only looking for debug info if/when things go wrong later
2023-01-21 11:38:39 -05:00
Daniel Agar
fb000e874f
boards: px4_fmu-v5_debug quiet RTC debug errors
...
- test rack CUAV v5 plus is producing false positives (in this particular situation) that are failing the overall testing
2023-01-21 11:14:28 -05:00
Daniel Agar
6b13fb8b86
HIL/test_airframes.sh check mavlink and gps status before stopping all
...
- occasionally these fail on the test rack (cube orange), so try to
gather more information
2023-01-21 11:06:23 -05:00
FriedrichTuttas
1830195d30
boards: px4_fmu-v6x add pulldowns to GPIO pins UART7 RTS and UART7 CTS ( #20974 )
...
- https://github.com/PX4/PX4-Autopilot/issues/20762
Co-authored-by: David Sidrane <David.Sidrane@Nscdg.com >
2023-01-21 10:19:57 -05:00
Daniel Agar
1aa8ec4537
drivers: initial VectorNav (VN-100, VN-200, VN-300) support
2023-01-20 19:09:30 -05:00
Daniel Agar
bd9d09663f
commander: avoid uint64 timestamp implicit float conversions
...
- 64 bit time in microseconds stored in a 32 bit float quickly becomes problematic
- fixes https://github.com/PX4/PX4-Autopilot/issues/20944
2023-01-19 17:48:40 -05:00
Daniel Agar
3822ef1519
boards: update all in tree bootloaders
2023-01-19 17:25:39 -05:00
PX4 BuildBot
c4127813b3
Update submodule sitl_gazebo-classic to latest Thu Jan 19 12:38:59 UTC 2023
...
- sitl_gazebo-classic in PX4/Firmware (f3cdf70732 ): https://github.com/PX4/PX4-SITL_gazebo-classic/commit/1a725dd858a3a7c15e79e8e40aa91f4fad9128e5
- sitl_gazebo-classic current upstream: https://github.com/PX4/PX4-SITL_gazebo-classic/commit/9343aaf4e275db48fce02dd25c5bd8273c2d583a
- Changes: https://github.com/PX4/PX4-SITL_gazebo-classic/compare/1a725dd858a3a7c15e79e8e40aa91f4fad9128e5...9343aaf4e275db48fce02dd25c5bd8273c2d583a
9343aaf 2023-01-15 JaeyoungLim - Fix model prefix for user camera plugin (#948 )
e5836d3 2023-01-13 Simone - Added robot namespace to the model (#941 )
2023-01-19 12:33:53 -05:00
PX4 BuildBot
d2240c0c48
Update submodule nuttx to latest Thu Jan 19 12:39:05 UTC 2023
...
- nuttx in PX4/Firmware (0e2eed62f9a9b44cefc9765fd21aac1a368e4314): https://github.com/PX4/NuttX/commit/d43edd7879fb398de9abcc9d58e8a65c9ed254db
- nuttx current upstream: https://github.com/PX4/NuttX/commit/f80785664fcd99e36835dcb7e9b9b97cd5e9cf8d
- Changes: https://github.com/PX4/NuttX/compare/d43edd7879fb398de9abcc9d58e8a65c9ed254db...f80785664fcd99e36835dcb7e9b9b97cd5e9cf8d
f80785664f 2023-01-16 Julian Oes - [FIX] Add missing define condition
1751c2c7cb 2023-01-16 Julian Oes - [BACKPORT] stm32h7: add SMPS PWR option for STM32H7X7
2023-01-19 12:33:27 -05:00
PX4 BuildBot
8d6a336b2c
boards: update all NuttX defconfigs
2023-01-19 12:32:57 -05:00
PX4 BuildBot
898dbb96b4
update all px4board kconfig
2023-01-19 12:32:09 -05:00
Silvan Fuhrer
f3cdf70732
VTOL: Quad-chute: rework loss of altitude condition
...
Previously the condition was based on hard coded height rate estimate and
setpoint values and an altitude error threshold. That showed to be leading
to false positives when the vehicle doesn't tightly follow the altitdue
ramp given by TECS to achieve a new altitude setpoint, and has become
completely infeasibly with the latest TECS rework that leads to non-ramped
altitude setpoint changes in the tecs_status message.
The new check no longer checks the altitude error but only the height rate
instead. It begins to integrate the height rate error once it detects an
uncommanded descend condition (height rate negative while setpoint is
positive). Integral threshold can be tuned by user (VT_QC_HR_ERROR_I).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-19 09:36:09 +01:00
Silvan Fuhrer
36dc75bedf
VTOL: introduce new quad-chute check for altitude loss during front transition
...
By default the threshold is set to 10m.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-19 09:36:09 +01:00
Beat Küng
98705ced2f
lightware_laser_i2c: fix unreliable startup detection
...
In rare occasions asking for the protocol values after setting it returned
[0, 0]. I did not see any documentation for having to wait, but adding a
short wait period fixes it.
2023-01-18 23:02:56 -05:00
modaltb
05d828642d
boards/modalai: FCv1 DMA optimiziation for 2Mbit UART ( #20956 )
...
- disable unused SPI3 DMA
- enable USART2 RX/TX, UART5/6 TX, UART4 RX
2023-01-18 23:01:57 -05:00
Daniel Agar
9d7c4b8273
boards: ark_can-flow_default disable sensors/vehicle_acceleration to save flash
2023-01-18 22:58:19 -05:00
Daniel Agar
ffa9d61065
boards: px4_sitl_default include gz_bridge by default
2023-01-18 22:56:17 -05:00
Daniel Agar
2b5722786b
cmake: fix and update packaging
2023-01-18 22:51:12 -05:00
alexklimaj
5eb13e4448
ARKV6X bootloader init all pwm outputs as input pulldown
2023-01-18 21:52:11 -05:00
alexklimaj
7c2da8d1ef
Enable ARKV6X SPIX SYNC, enable icm426889 and iim42652 CLKIN
2023-01-18 21:52:11 -05:00
Daniel Agar
967c37ac17
boards: mro_pixracerpro_default disable examples/fake_gps to save flash
2023-01-18 21:44:09 -05:00
Daniel Agar
6a64e74ef3
icm42688p: fix register bank selection
...
* icm42688p: clear INT_CONFIG1 INT_ASYNC_RESET for proper INT1/INT2 pin operation
2023-01-18 11:08:03 -05:00
Daniel Agar
95300d5637
ekf2: refactor output predictor to class
...
- refactor all EKF backend output predictor pieces into new OutputPredictor class
- output states are now calculated immediately with new high rate IMU rather than after EKF update
- IMU delayed sample is passed as around as control data to avoid storing an extra copy and make the requirement clear
2023-01-18 10:59:34 -05:00
murata
c054ca20cc
logger: Add arm to shutdown
2023-01-18 07:47:36 +01:00
Julian Oes
35d6b734f5
perf: avoid leaks in dtor
...
From what address sanitizer tells me, we need to tell delete what type
it is deleting.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-17 21:20:51 -05:00
modaltb
8123090571
boards: modalai FCv2 BSP updates ( #20958 )
...
- FCv2 MR1
- configure TELEM2 for VOXL use case by default
- use ICP201XX baro by default
2023-01-17 21:20:16 -05:00
Siddharth Bharat Purohit
1c63d5666b
boards: add support for CubeOrange+ ( #20304 )
...
Co-authored-by: Julian Oes <julian@oes.ch >
2023-01-17 20:55:57 -05:00
Daniel Agar
71d916dbcd
ekf2: PreFlightChecker fix vel_ne_innov_lpf index
2023-01-17 13:03:38 -05:00
modaltb
6f718cd48d
drivers/actuators/modalai_esc: update to use mixer module and control allocator properly
...
- update motor mapping to use new UART_ESC_FUNC* auto generated params
- add support for actuator_test msg to support Actuator Testing in QGC
- modalai_fc-vX targets start driver if configured
- keep track of ESC spin direction in own param
- set ramp up param in MixerOutput to false
2023-01-16 21:46:37 -05:00
Beniamino Pozzan
2a64145dcd
microdds_client: add _subs reset method to allow reconnections
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-01-16 21:43:49 -05:00
Alex Klimaj
00bfd5436a
ekf2: increase optical flow preflight check innovation limit ( #20940 )
2023-01-15 17:52:12 -05:00
Daniel Agar
6991ac014c
rename 'gazebo' simulation to 'gazebo-classic' ( #20936 )
...
- use `gazebo-classic` everywhere consistently referring to the original Gazebo (eg version 9,10,11)
- additional `gazebo_*` helper targets added for compatibility, but warn about deprecation and tell you the new target naming
- use `gz` everywhere when referring to Gazebo (aka Ignition Gazebo or new Gazebo)
2023-01-15 11:36:12 -05:00
Daniel Agar
6605378d0d
boards: px4_fmu-v6c_default disable systemcmds/serial_test to save flash
2023-01-14 19:24:47 -05:00
Daniel Agar
30a240a7a4
boards: modalai_fc-v2_default disable examples/fake_gps to save flash
2023-01-14 19:23:19 -05:00
Daniel Agar
52b9b9ba2f
simulation: restore 'gazebo' alias for 'gazebo_iris'
...
- only create helper targets if Gazebo 11 found on system
2023-01-14 17:03:18 -05:00
murata
82ecbccd85
distance_sensor: Add TF02 Pro I2C
2023-01-14 09:28:33 -05:00
Jukka Laitinen
2985b5b9c2
msg/ActuatorTest.msg: Use default queue size the same as MAX_NUM_MOTORS
...
For the esc_calibration code, the actuator test is published for each motor
in a row. If the orb queue size is too small, messages are lost and not
received in mixer_module.
Set the default orb queue size of ActuatorTest high enough to keep the commands
for all motors in the queue.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-01-14 09:19:10 -05:00
Daniel Agar
45912066d2
fix copyright header year range
2023-01-14 09:16:16 -05:00
Daniel Agar
674a59e48f
ekf2: new gyro bias limit parameter EKF2_GYR_B_LIM
...
- default is now a more conservative 0.15 rad/s (~8.6 deg/s) instead of the previous hardcoded 20 deg/s
2023-01-14 09:15:46 -05:00
Andrew Wilkins
22f7d913bd
rover_pos_control: thrust normalization for joystick input ( #20885 )
2023-01-13 20:11:39 -05:00
Peter van der Perk
7d92d4893e
VSCode C/C++ include path and config hints
2023-01-13 20:03:53 -05:00
Daniel Agar
c97381c97f
mavlink: streams SCALED_IMU fix gyro dt
2023-01-13 20:01:41 -05:00
Daniel Agar
5942194c66
iridiumsbd: advertise status topic immediately and log by default
2023-01-13 20:01:03 -05:00
Eric Katzfey
ac80dcd7a8
Voxl2: add qurt i2c driver support and first i2c driver voxlpm
2023-01-13 19:59:41 -05:00
Julian Oes
1e93ae3148
jsbsim: take FG_BINARY env var into account
...
This is just to match the docs.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-13 17:07:20 -05:00
Silvan Fuhrer
7c766692c4
FW Att and Rate Controller, Tailsitter: fix tailsitter frame transformations
...
Strictly follow the following convention for tailsitter:
FW Attitude and FW rate controller always operate in the FW frame, meaning that roll is
roll in FW, which for tailsitter means around the yaw axis in the body frame. The interfaces
between modules is though always in body frame.
That enables us to do the axis transformations for tailsitter, that are currently distributed
all over the controller (attitude, rate, vtol module), only at the input and output data of modules.
Side effect is that the FW rate control tuning gains meanings change: while before the roll gains
where meant for the body axis, they are now always applied for the FW roll axis (also in hover). So
the naming now is correct for FW, while before it was for Hover.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 18:18:11 +01:00
Silvan Fuhrer
edb59a9000
VTOL: improve QC parameter meta data
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
Silvan Fuhrer
544be72503
VTOL: improve messaging for quad-chute triggered error messages
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
Silvan Fuhrer
623c1418bb
Commander: improve messaging for vtol fixed-wing system failure arming check
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
Silvan Fuhrer
303b879748
VTOL/Commander: rename transition_failsafe to vtol_fixed_wing_system_failure
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
Silvan Fuhrer
2d4be68e00
VTOL: reset quad-chute failsafe flag when user triggeres a new transition to FW
...
This failsafe flag is currently used for not allowing to re-transition to FW, as well
as disabling pusher assist in hover. Till now it was only possible to reset it with
a commanded transition to MC, which many ground station interfaces didn't allow
as the system, after a quad-chute, already was in MC mode.
Hereby it is changed to reset when a new transition to FW is triggered (either via
RC switch or MAVLink command). It is the users responsibility to assess the situation
after a quad-chute happened to try to transition to FW again, manually proceed/land
the vehicle in MC, or let it finish the defined behavior after a quad-chute.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
Silvan Fuhrer
8a680a3153
VTOL: fix quad-chute max altitude limit
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
bresch
3d50a7ce44
CAL_MAG_SIDES: do not save with factory cal
2023-01-13 10:48:01 -05:00
bresch
3d73e273e6
MAG_SIDES: don't spam user to not change parameter
...
otherwise this will always show up on every boot if factory calibration
was done in an earlier release
2023-01-13 10:48:01 -05:00
Tanja Baumann
0099523710
v6x: fix IMU rotations for V6X009010 and V6X010010 ( #20901 )
...
And add V6X000010 (pixhawk base board)
2023-01-13 14:09:35 +01:00
bresch
ced41febb7
hide legacy read-only parameter under Developer category
2023-01-13 11:40:56 +01:00
Matthias Grob
a7c03de434
StickAccelerationXY: apply jerk limit after drag
2023-01-13 10:19:43 +01:00
Eric Katzfey
2a315f86ca
Qurt specific drivers for testing and some updates to the startup process ( #20917 )
...
* Added a couple of Qurt specific drivers for testing and some updates to Qurt startup code
2023-01-12 20:17:30 -05:00
Mathieu Bresciani
767fcb2774
sensors: prefix mag config param SENS instead of CAL ( #20723 )
...
* sensors: prefix mag config param SENS instead of CAL
* mag sides: keep CAL_MAG_SIDES required by QGC
2023-01-12 09:42:36 -05:00
Daniel Agar
635daeed8a
NuttX push jlink-nuttx into cmake and enable CONFIG_DEBUG_TCBINFO by default
2023-01-12 09:05:26 -05:00
Daniel Agar
5453630a6d
Jenkins: hardware test rack ignore irrelevant sensor timeouts
2023-01-11 16:56:19 -05:00
Peter van der Perk
8b5f35b3fe
Add S32K3 vscode support add Jlink rtos vscode support
2023-01-11 16:15:13 -05:00
Jaeyoung Lim
16d6e699bb
Update sitl_gazebo submodule
2023-01-11 14:39:05 -05:00
Daniel Agar
0f9bc351f1
ekf2: fix global_pos alt_reset_counter publish ( #20906 )
...
- fixes #20900
2023-01-11 14:15:07 -05:00
SiHyun Noh
714b3d82fb
thepeach: update px4board kconfig to fix missing fw_rate_control module ( #20898 )
2023-01-11 10:02:46 -05:00
Eric Katzfey
89180ac0f9
Fixed Kconfig and px4board files for voxl2
2023-01-11 09:53:18 -05:00
Julian Oes
72d36fc874
sensors: Add param for VL53L0X to startup
...
It turns out there was no param to enable starting the VL53L0X at
startup.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-11 09:52:27 -05:00
David Jablonski
c6239ce8c2
replay: fix replay msg ids larger than 128 ( #20865 )
2023-01-11 09:13:53 -05:00
Silvan Fuhrer
bc9abf8c36
Commander: always update parameters, not just if disarmed
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-11 10:01:08 +01:00
alexklimaj
e19c7ca18b
Add reboot command to ark flow
2023-01-11 08:11:18 +01:00
Beniamino Pozzan
af336719e6
gz_bridge: fix world selector environment variable
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-01-08 00:15:35 -05:00
PX4 BuildBot
e6c4416250
update all px4board kconfig
2023-01-07 21:53:01 -05:00
Daniel Agar
618288cca9
SITL Gazebo classic make airframes simulator specific
2023-01-07 17:00:35 -05:00
Daniel Agar
97c8a60d67
SITL gz make airframes simulator specific
2023-01-07 17:00:35 -05:00
Daniel Agar
ae4cb24100
SITL flightgear make airframes simulator specific
2023-01-07 17:00:35 -05:00
Daniel Agar
1abe35c220
SITL jsbsim make airframes simulator specific
2023-01-07 17:00:35 -05:00
Daniel Agar
75125da34c
SITL sihsim make airframes simulator specific
2023-01-07 17:00:35 -05:00
Daniel Agar
95a6eba36c
SITL jmavsim make airframes simulator specific
...
-cleanup and simplify jmavsim SITL launch and debug
2023-01-07 17:00:35 -05:00
Daniel Agar
760fff7d89
Kconfig: fix missing SERIAL_EXT2 (fmu-v5x/v6x)
2023-01-07 12:10:52 -05:00
Daniel Agar
dc5ce9b0ce
boards: NuttX increase default CONFIG_ARCH_INTERRUPTSTACK 512->768 bytes
...
- during casual testing on default configs the stack was penetration was reaching ~90% which is a bit too close for comfort
- increasing by 50% to be conservative
2023-01-07 12:07:35 -05:00
Daniel Agar
7f7dfea998
drivers/imu/analog_devices: experimental support for new ADIS16507 IMU (untested)
2023-01-07 10:56:30 -05:00
Daniel Agar
f520d4b3be
Update submodule mavlink to latest Sat Jan 7 12:38:21 UTC 2023
...
- mavlink in PX4/Firmware (8bc88ed526044a864427a4b65135c3baffabb2ef): https://github.com/mavlink/mavlink/commit/0c7792edfeee7cf08e531cb4ce5b4f01854e5724
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/74dee05f0cd121ae27e021d011a04b161c9d0440
- Changes: https://github.com/mavlink/mavlink/compare/0c7792edfeee7cf08e531cb4ce5b4f01854e5724...74dee05f0cd121ae27e021d011a04b161c9d0440
74dee05f 2023-01-04 Beat Küng - component_metadata: add translation schema (#1934 )
0267c4cf 2023-01-04 Bob Long - common.xml: add fuel_pressure ext. to EFI_STATUS (#1938 )
c64818e8 2023-01-04 Mathieu Mirmont - common.xml: fix typos in AIS_TYPE enumerate (#1939 )
2306bf79 2023-01-04 Hamish Willee - Update pymavlink (#1940 )
0077129b 2022-10-06 Peter Hall - Development: update airspeed message
fbf84c64 2022-10-05 Peter Hall - gitignore: add /.vscode
817c44d8 2022-12-15 Mathieu Mirmont - Add the MAV_TYPE_VTOL_TILTWING aircraft type (#1933 )
Co-authored-by: PX4 BuildBot <bot@px4.io >
2023-01-07 10:55:05 -05:00
Julian Oes
243caac44a
mavlink: filter command_acks by target
...
When we receive a command_long or command_int message to
answer, it arrives with a source sysid/compid, so this means we can send
the command_ack back on the appropriate MAVLink instances instead of all
of them.
This commit filters outgoing command_ack messages, so they are only sent
on the MAVLink instances where the sysid/compid has been seen in the
past.
This means that a command_ack is likely still sent on multiple links for
a setup with redundant links.
This should also prevent command_acks from being blasted on Iridium links
when it's not required.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-07 10:39:08 -05:00
Matthias Grob
19cee04f3a
ubuntu.sh: always install "Gazebo" next to "Gazebo classic" on 22.04
2023-01-07 10:37:02 -05:00
Marcin
91e97eded9
setup ubuntu.sh; fix legacy gazebo for ubuntu22.04
2023-01-07 10:37:02 -05:00
murata,katsutoshi
d821404e4f
commander: failsafe define enums for actions ( #20880 )
2023-01-07 10:10:57 -05:00
bresch
49f8bcfc69
ekf2: purge old ekf2 derivation
2023-01-06 18:35:19 -05:00
Peter van der Perk
d1b95a21e4
Fixes MR-CANHUBK3 FMU build and adds it to the CI targets
2023-01-06 18:02:45 -05:00
Hamish Willee
1551e2f15c
MIS_TKO_LAND_REQ - improve English for value 4
2023-01-06 09:43:16 +01:00
Julian Oes
7e3dcd7be4
sensors: fix overlapping ifdef
...
This fixes the case where vehicle_angular_rate is no longer started when
airspeed is not enabled.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-05 21:09:14 -05:00
bresch
26122886ae
ekf2: drag fusion - improve parameter description
...
The user should refer to the online documentation for tuning guidelines
and not the parameter description.
2023-01-05 12:03:24 -05:00
bresch
06ef39d05e
ekf2: MC drag fusion - interpolate between X an Y "b" coefficients
...
Use the current sideslip angle to generate a drag coefficient that is a
mixture of X and Y coefficients, creating an elliptic distribution.
2023-01-05 12:03:24 -05:00
bresch
420f5ef2b7
ekf2: migrate drag fusion derivation to SymForce
2023-01-05 12:03:24 -05:00
bresch
04f76c932e
ekf2: decompose drag vector into x-y components
...
The drag force is a vector.
drag_x = drag.norm() * vx / v.norm()
2023-01-05 12:03:24 -05:00
Paul Riseborough
1a9c358858
ekf2: Add unit tests for drag fusion
2023-01-05 12:03:24 -05:00
bresch
0509f612dd
ekf2: fix drag data downsampling
...
setDragData needs the imu data at full speed to downsample it without
skipping samples.
2023-01-05 12:03:24 -05:00
Daniel Agar
34c57cc5b5
px4-rc.simulator shellcheck fixes
2023-01-04 17:35:41 -05:00
bresch
14bf04b9a4
SIH: add to px4_fmu-v5_default and auto start GPS sim driver
...
- add simulator kconfig dependencies
- exclude SIH (+deps) where sufficient flash isn't available
2023-01-04 16:26:15 -05:00
Peter van der Perk
fa87375d0c
Add hardfault log progmem flash backend
2023-01-04 12:52:01 -05:00
Daniel Agar
ca9ae80b10
px4-rc.simulator support launching new Gazebo Garden vs Fortress ( #20864 )
...
- "ign gazebo" command is now "gz sim" as of Gazebo Garden
2023-01-04 12:39:06 -05:00
JaeyoungLim
21e88f64b4
Add new fixed wing rate control module (fw_rate_control)
...
* Fixedwing rate control into a separate module
* Start fw_rate_control for vtol
* Move over airspeed related parameters to fw_rate_control
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-04 11:14:00 -05:00
Peter van der Perk
4c2c06060d
PX4Board kconfig add dependency chain for QURT & POSIX modules
2023-01-04 09:40:17 -05:00
Peter van der Perk
ddaa3c24eb
Fix MR-CANHUBK3
2023-01-04 05:52:58 -05:00
frederictaillandier
315c075e5c
updating the sitl-gazebo-sniffer to allow a vehicle name in the serialized object
2023-01-03 17:00:48 +01:00
bresch
28d664aed5
EKF2: purge outdated matlab scripts
...
Those files are no longer maintained and will just confuse new users
2022-12-30 13:01:58 -05:00
Daniel Agar
cc1b043e18
cmake/kconfig.cmake: fix whitespace
2022-12-30 13:01:30 -05:00
dagar
618ce9a865
[AUTO COMMIT] update change indication
2022-12-29 16:37:34 -05:00
Daniel Agar
20a1c73cf0
ekf2: reinit baro height on sensor or calibration change
...
- handle reset on delayed time horizon
2022-12-29 16:37:34 -05:00
Silvan Fuhrer
0e2df5a152
remove drivers/pca9685
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-12-29 12:57:41 -05:00
Silvan Fuhrer
348dcf11c8
remove examples/hwtest
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-12-29 12:57:11 -05:00
bresch
3e4e5c991c
ekf2: add mag unit tests
2022-12-29 12:56:36 -05:00
bresch
657bd6cf72
ekf2: stop mag fusion when inhibited for too long
...
Also do not try to run anything if mag is inhibited
2022-12-29 12:56:36 -05:00
bresch
c75a9058a5
EKF2: only fuse zero innovation if yaw var is large
2022-12-29 12:56:36 -05:00
Daniel Agar
40e3503c39
boards: fix all NuttX configs (CONFIG_SMALL NuttX upgrade migration)
2022-12-29 12:50:37 -05:00
Daniel Agar
0fbb6db6d4
boards: update all NuttX defconfig (make all_olddefconfig)
2022-12-29 12:50:37 -05:00
Daniel Agar
c2f15f5957
boards: update all px4boards (make all_px4_savedefconfig)
2022-12-29 12:50:37 -05:00
Daniel Agar
0204a55354
Makefile: add all_olddefconfig and all_px4_savedefconfig helpers for updating all boards
2022-12-29 12:50:37 -05:00
Daniel Agar
f37eb55e19
platforms/nuttx: FATAL error if NSH enabled and SET disabled
2022-12-29 12:50:37 -05:00
Peter van der Perk
964e9dd8c4
Fix MRO NuttX defconfig
2022-12-28 17:00:58 -05:00
Peter van der Perk
f7c183edd3
Update NuttX kernel for K3 changes
2022-12-28 10:21:58 -05:00
Peter van der Perk
5e3165af70
S32K3 Enable dflash progmem
2022-12-28 10:21:58 -05:00
Peter van der Perk
2fde13c07d
S32K3 EMAC TJA1103 Support
2022-12-28 10:21:58 -05:00
Peter van der Perk
2f1a165d85
S32K3 Enable IRQ stack
2022-12-28 10:21:58 -05:00
Benjamin Perseghetti
c3174b5dec
Tools/setup/ubuntu.sh: Fixes install for 22.04 gazebo ( #20833 )
...
Fixes ubuntu installation script for 22.04 to only install gazebo.
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com >
2022-12-28 10:16:43 -05:00
Peter van der Perk
beabe56253
S32K3XX call functional reset on board_reset
2022-12-27 08:33:24 -05:00
Yannick Fuhrer
98529a5b49
Battery: delay initialization of SoC ( #20729 )
...
* Battery: delay initialization of SoC
* battery: rework of battery initialization delay
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2022-12-26 18:44:22 +01:00
PX4 BuildBot
54d825730e
Update submodule libcanard to latest Sat Dec 24 00:39:03 UTC 2022
...
- libcanard in PX4/Firmware (280ef8935565d4a13e0780c926e1707fa5a90118): https://github.com/opencyphal/libcanard/commit/2e3b11f6b8325080c160d38521b169b0bbb6b1c7
- libcanard current upstream: https://github.com/opencyphal/libcanard/commit/5c69d451ab0787a81dcb615692d707f2a286f5e5
- Changes: https://github.com/opencyphal/libcanard/compare/2e3b11f6b8325080c160d38521b169b0bbb6b1c7...5c69d451ab0787a81dcb615692d707f2a286f5e5
5c69d45 2022-11-03 John Vishnefske - Add sanitizers to unit test cmake build (#205 )
989124d 2022-10-30 Pavel Kirienko - Fix 203 (#204 )
f85103b 2022-10-13 joshvazquez-amzn - Fix warnings in test helpers (#202 )
2022-12-23 22:36:09 -05:00
PX4 BuildBot
b6eb5ba790
Update submodule sitl_gazebo to latest Sat Dec 24 00:39:01 UTC 2022
...
- sitl_gazebo in PX4/Firmware (bb591c6c29 ): https://github.com/PX4/PX4-SITL_gazebo/commit/049b667d5e86fa71bd47c41dd10e911a0e2681b0
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/d44ce17f4368ab961f87fcc59845647fb629033f
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/049b667d5e86fa71bd47c41dd10e911a0e2681b0...d44ce17f4368ab961f87fcc59845647fb629033f
d44ce17 2022-12-19 Frederic Taillandier - fixing macos test build (#935 )
7f9239c 2022-12-19 Daniel Mesham - Add safe landing world (#932 )
61b1fc1 2022-12-19 Daniel Mesham - Update depth camera to match the RealSense D455 (#933 )
2022-12-23 22:34:32 -05:00
Julian Oes
bb591c6c29
mavlink_shell: fix stall on CubeOrange
...
On CubeOrange where no console is configured by default, starting
MAVLink shell just stalls, and doesn't work.
Also, logfile download has been reported not to work, and again, seems
to work with this change.
Signed-off-by: Julian Oes <julian@oes.ch >
2022-12-23 11:00:20 -05:00
bresch
86a3d2459a
ekf2: remove old yaw estimator generated code
2022-12-23 10:28:19 -05:00
bresch
0388c161e7
ekf2: compare yaw estimator sympy vs symforce
2022-12-23 10:28:19 -05:00
bresch
7c33019510
EKF2: move yaw estimator to symforce
2022-12-23 10:28:19 -05:00
alexklimaj
2f1b3142a6
Decrease PAW3902 and PAA3905 backup schedule to 200ms
2022-12-22 20:46:19 -05:00
Eric Katzfey
c3e70b03aa
Add more to Voxl2 build and fix associated build errors ( #20821 )
...
- Do not pull in PWM parameters when DISABLE_PARAMS_MODULE_SCOPING is TRUE since VOXL2 has no PWM nor any of the required timer_config files that go along with that
- Replace non-standard M_PI constants with PX4 defined M_PI_F constants
- Include missing header file for function hrt_absolute_time declaration
- Add new PX4_SOC_ARCH_ID for the VOXL2 board
2022-12-22 15:44:19 -05:00
alexklimaj
35a9dba6e6
Enable ARKV6X heater
2022-12-22 15:12:32 -05:00
Daniel Agar
03c0808ae6
vscode/settings.json: add .sdf and Jenkinsfile associations
2022-12-21 16:46:25 -05:00
Silvan Fuhrer
aff3f2e77f
boards: disable gyro fft module for v5 and v5x to safe flash
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-12-21 10:17:59 -05:00
Daniel Agar
f2cd7667dc
systemcmds/bsondump: new command line utility (extracted from parameters)
2022-12-21 10:14:00 -05:00
Konrad
f5524fa605
TECS: Combine both airspeed and airspeed derivative filters in TECS into one MIMO filter using a steady state Kalman filter.
2022-12-21 09:04:19 +01:00
Konrad
08c36612b3
TECS: Updated throttle control for airspeed sensorless vehicles. It includes the P gain controller instead of feedforward only. I term is still disabled.
2022-12-21 09:04:19 +01:00
Konrad
77539d4dac
TECS: Rearrange setpoint input. If an altitude rate is given, use this as a feedforward term in the altitude control. If an altitude setpoint is given use a reference model to get a smooth altitude setpoint.
2022-12-21 09:04:19 +01:00
Konrad
8c6dfc840b
TECS: Fix bug to reset airspeed derivative and energy rate low pass filters at every time step.
2022-12-21 09:04:19 +01:00
Konrad
7a3e0f53c2
TECS: Replaced old tecs by cleaned up version.
2022-12-21 09:04:19 +01:00
Konrad
991689d3cd
TECS: Add new tecs library in parallel to old tecs in the position control library for comparison.
2022-12-21 09:04:19 +01:00
Konrad
c64e111d8e
TECS: Rearranged the TECS library into submodules.
2022-12-21 09:04:19 +01:00
Daniel Agar
54a32eb2f7
ekf2: EV overhaul yaw and position fusion ( #20501 )
...
- move EV yaw and EV position to new state machines
- EV yaw and EV pos now configured via EKF2_EV_CTRL (migrated from EKF2_AID_MASK)
- new EV position offset estimator to enable EV position while GPS position is active (no more EV pos delta fusion)
- yaw_align now strictly means north (no more rotate external vision aid mask)
- automatic switching between EV yaw, and yaw align north based on GPS quality
2022-12-20 10:23:56 -05:00
Silvan Fuhrer
20342216e2
Airspeed Selector: use better density source and only save scale parameter if valid ( #20764 )
...
* AirspeedSelector: use vehicle_air_data.rho for calculating groundspeed-wind CAS
Previously the vehicle_air_data.temperature and pressure was used, instead of the
density field directly.
Only makes a difference if there is an airspeed sensor connected to provide
the air temperature.
* AirspeedSelector: only safe estimated scale in param if airspeed is valid
* AirspeedSelector: remove 0.01 cliff for saving learned scale to param
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-12-20 15:52:54 +01:00
David Sidrane
efbb2cf2e3
nxp_ucans32k146:Add LPSPI DMA
...
nxp_ucans32k146:Add Dready
2022-12-20 09:31:05 -05:00
David Sidrane
b7ea31ceed
s32k1xx:Add gpiosetevent
2022-12-20 09:31:05 -05:00
David Sidrane
da536b3a82
nxp_ucans32k146:Add PROBEs for debugging
2022-12-20 09:29:07 -05:00
David Sidrane
e8aa54e7bb
nxp_ucans32k146:Use GPIO based RTS (Buffer not character)
2022-12-20 09:29:07 -05:00
David Sidrane
fe7d761a11
nxp_ucans32k146:Use serial DMA
2022-12-20 09:29:07 -05:00
David Sidrane
39822ef5a1
nxp_mr-canhubk:lpuart0 use Serial HW flow control
2022-12-20 09:27:40 -05:00
David Sidrane
6a7f5a339b
nxp_mr-canhubk3:fmu use Serial DMA
2022-12-20 09:27:40 -05:00
David Sidrane
022e941ebe
NuttX with s32k3 Serial DMA
2022-12-20 09:27:40 -05:00
Igor Misic
52275923ad
adsb: add support for callsign
2022-12-20 08:18:09 +01:00
Eric Katzfey
678607117a
Qurt UART ESC driver support ( #20784 )
2022-12-20 01:25:12 -05:00
PX4 BuildBot
da7d52e302
Update submodule libevents to latest Tue Dec 20 00:39:10 UTC 2022
...
- libevents in PX4/Firmware (26f3fea7ebb328ef58d4d592dae0559c91f13c1c): https://github.com/mavlink/libevents/commit/0c8bc543db2f8c78f59214d5bcf959bdadd96677
- libevents current upstream: https://github.com/mavlink/libevents/commit/8d9c5551273a52e22253ea6abf28d9e4b05e0ab7
- Changes: https://github.com/mavlink/libevents/compare/0c8bc543db2f8c78f59214d5bcf959bdadd96677...8d9c5551273a52e22253ea6abf28d9e4b05e0ab7
8d9c555 2022-12-13 Beat Küng - README: clarify use of component ID
2022-12-20 01:24:15 -05:00
Peter van der Perk
b8e07cc52c
Fix Ethernet Socket Defaults
2022-12-19 13:24:55 -05:00
Silvan Fuhrer
9c66f1b14a
AirspeedValidator: Remvoe airspeed variance after boot check ( #20678 )
...
This checks was introduced to catch the (unlikely) case of the driver publishing
a stale value that is not actually from a current measurement right after boot.
This was done by declaring it invalid if there is no update of the measurement
within the first 10s after boot.
Practice though has shown that around 0, many airspeed sensors have such a low
resolution that the reported airspeed value is often at the exact same value
for longer periods of time on totally healthy sensors, and thus we trigger
some false positive failure detections.
Given that this failure mode (driver publishing stale data) is quite rare (if
it doesn't receive new data it should stop publishing), I remove this check
here again.
When in aerodynamic flight mode and armed, there is still the data stuck
check that can trigger if there is no update for 2s.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-12-19 11:36:48 +01:00
Igor Misic
df441ac202
drivers/gps: add param for enabling protocols at i2c interface
2022-12-19 08:52:36 +01:00
tanja
e5255b173a
v6x: use param SENS_INT_BARO_EN to start internal bmp388
2022-12-19 08:50:31 +01:00
tanja
987de56af2
v6x: rev10 has second PM
2022-12-19 08:50:31 +01:00
tanja
09039faf0a
v6x: change bootloader UART7 to UART5
2022-12-19 08:50:31 +01:00
Eric Katzfey
b0580d88e1
Added muorb aggregator from DSP to Apps direction
2022-12-16 19:43:00 -05:00
Peter van der Perk
d945e87e4f
S32K3 DRDY less ambigious
2022-12-16 12:02:44 -05:00
Peter van der Perk
05dd43a8de
S32K3 Correct pinirq pinset for external interrupt
2022-12-16 12:02:44 -05:00
RomanBapst
ffdf186598
vtol_att_control: reset transition timer states when starting a transition
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-12-16 11:36:00 +03:00
frederictaillandier
84c5ce3a53
removing catkin sitl_gazebo submodule tests as it has also been removed in PX4-Autopilot
...
Updating the submodule
https://github.com/PX4/PX4-SITL_gazebo/pull/934
2022-12-16 08:11:28 +01:00
JaeyoungLim
9db133b13d
Remove angular velocity controller module
2022-12-16 07:52:20 +01:00
Peter van der Perk
52c0cba24b
NuttX with TXAVAL merged
...
nxp_ucans32k146:Use txavail NuttX
Fix Stack Size
Expose some K1 debug features
2022-12-15 08:29:10 -05:00
RomanBapst
48e8477799
vtol_att_control: disable maximum height for quadchute by default
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-12-15 15:40:53 +03:00
RomanBapst
9ed51ba8ed
quadchute: introduced parameter to specify maximum height
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-12-15 15:40:53 +03:00
Peter van der Perk
f3fe10f63e
S32K Dynamic periphclocks
2022-12-14 10:44:42 -05:00
Marcell Rausch
6c7702b906
mavlink: Keep sending GPS_RAW_INT/GPS2_RAW.hpp streams on GPS failure
...
* GPS_RAW_INT: Only send no gps messages if gps has ever been present
* GPS2_RAW: Keep in sync with GPS_RAW_INT
Signed-off-by: Marcell Rausch <marcell@auterion.com >
2022-12-14 09:12:39 -05:00
David Sidrane
96362bfb52
nxp_mr-canhubk3 Add PROBEs for Debugging
2022-12-14 07:34:23 -05:00
Beat Küng
5217bedd4b
commander: make SYS_HAS_MAG a count param and ensure system has N calibrated + enabled mags
2022-12-14 07:55:04 +01:00
Tanja Baumann
d75e61eef6
v6x: fix rc.board_sensors ver command ( #20763 )
2022-12-14 07:53:12 +01:00
Daniel Agar
4d318ebd30
mavlink: add initial mavlink OPEN_DRONE_ID_SYSTEM stream
2022-12-13 19:39:27 -05:00
Daniel Agar
696eeb9a49
ekf2: update EV height state machine (small piece of EV overhaul)
...
- respect new EKF2_EV_CTRL parameter for VPOS usage
- EV hgt rotate EV position before usage (there's often a small offset in frames)
- EV hgt reset use proper EV velocity body frame
- try to keep EV hgt and EV vel state machines consistent
- small incremental piece of https://github.com/PX4/PX4-Autopilot/pull/19128
2022-12-13 13:29:18 -05:00
Daniel Agar
805ffa9d0b
ekf2: push mag cal reset to delayed time horizon
2022-12-13 10:24:02 -05:00
David Sidrane
57b82af3a0
Hard fault on Port E config (CAN0) due to not sizing the table correctly
...
@PetervdPerk-NXP bit by the non-auto sizing table bug again!
Symptom: Hard fault on Port E config (CAN0)
2022-12-13 10:09:40 -05:00
PX4 BuildBot
8b02b6b661
Update submodule mavlink to latest Tue Dec 13 12:38:57 UTC 2022
...
- mavlink in PX4/Firmware (8e1e5c4faa7749f6bc16650c7452af249a7dcc3a): https://github.com/mavlink/mavlink/commit/081120844300d68e90c8c4d40ab4662cb3eb604c
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/0c7792edfeee7cf08e531cb4ce5b4f01854e5724
- Changes: https://github.com/mavlink/mavlink/compare/081120844300d68e90c8c4d40ab4662cb3eb604c...0c7792edfeee7cf08e531cb4ce5b4f01854e5724
0c7792ed 2022-12-08 olliw42 - Gimbal Device: Adding more invalid and bitmask attributes (II) (#1927 )
771926e6 2022-12-07 olliw42 - gimbal manager cap flags: resolve duplication mistake
2bc32222 2022-12-07 olliw42 - add gimbal device flags to low word of gimbal manager flags (#1928 )
2022-12-13 09:06:14 -05:00
Beat Küng
685d5cb473
fix kconfig: rename LINUX to LINUX_TARGET
...
LINUX is defined by cmake >= 3.25:
https://cmake.org/cmake/help/latest/variable/LINUX.html
2022-12-13 09:05:18 -05:00
Roman Bapst
257d4e473b
fixed tailsitter transitions ( #20756 )
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-12-13 10:38:38 +01:00
tanja
aba11ce920
rename all instances of serial PPB to EXT2
2022-12-13 08:09:15 +01:00
tanja
ba344231d2
v6x: configure SPI busses for board 0x010
2022-12-13 08:09:15 +01:00
tanja
ed0f602ce8
v6x: Adapt sensor set for board 0x010 upstream
2022-12-13 08:09:15 +01:00
tanja
aec4b93527
v6x: Add EXT2 instance on ttyS3
2022-12-13 08:09:15 +01:00
Eric Katzfey
e17ddcc0e5
Qurt platform custom icm42688p IMU driver ( #20753 )
...
- first version of IMU driver for the VOXL 2 platform (Qurt)
- this is a customized version of the Invensense ICM42688P driver, it is currently in the VOXL 2 board directory
2022-12-12 22:02:23 -05:00
Peter van der Perk
33e39d68f7
DroneCAN SocketCAN driver add FMU support
2022-12-12 20:06:13 -05:00
Eric Katzfey
9b3feee6ee
worker and HRT threads for Qurt platform ( #20739 )
...
* Getting work manager and hrt threads ready for Qurt platform
2022-12-12 14:25:28 -05:00
Daniel Agar
dc0823062e
github actions: disable vtol_standard address sanitizer test
...
- unfortunately this is often too slow for github actions
2022-12-12 14:23:13 -05:00
bresch
41abf695a8
ekf2: use more efficient covariance update computation
...
KSK' is faster to compute than KHP and is mathematically equivalent
2022-12-12 12:31:54 -05:00
Daniel Agar
61fa28c0d6
Tools/generate_board_targets_json.py exclude px4_ros2_default for now
2022-12-12 11:46:36 -05:00
dirksavage88
5b667cf4ba
Uavcannode hygrometer support: temp and humidity
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2022-12-12 10:54:08 -05:00
Eric Katzfey
a5e4295029
lib/drivers: device drivers library for Qurt platform ( #20741 )
2022-12-10 19:31:06 -05:00
Noah Bliss
d8bfee517a
boards: beaglebone blue point to a newer version of librobotcontrol ( #20740 )
...
- Fixes PRU path issues found in old versions of the library.
2022-12-10 17:27:32 -05:00
alexklimaj
29ade6c472
Increase SPI stacks by 16 bytes
2022-12-10 10:54:20 -05:00
Zachary Lowell
e4f641e9b5
Qurt qshell implementation ( #20736 )
2022-12-09 16:49:41 -05:00
Daniel Agar
8cf13d50a8
ekf2: EKFGSF_yaw minor cleanup ( #20510 )
...
- don't store unnecessary IMU copy in class, pass it through where required
- remove custom pi constants
- remove unused fields from ahrs_ekf_gsf (vel_NE, fuse_gps, accel_dt)
- explicitly initialize everything in header
- apply PX4 code style
- set GPS velocity before yaw estimator update, not after
2022-12-09 13:24:00 -05:00
Zachary Lowell
643eed51cb
Qurt lightweight parameter implementation ( #20735 )
2022-12-09 09:55:49 -08:00
Daniel Agar
f3884d5835
Update world_magnetic_model to latest Fri Dec 9 11:14:09 UTC 2022
...
Co-authored-by: PX4 BuildBot <bot@px4.io >
2022-12-09 11:40:30 -05:00
Daniel Agar
41fa53605c
boards: rebuild STM32H7 bootloaders and px4-io-v2
2022-12-09 11:02:21 -05:00
Peter van der Perk
5b7a2230fc
Update NuttX kernel
2022-12-09 06:36:40 -05:00
Peter van der Perk
3b5f0e21bc
Add Sysview support in conjunction with PX4 cpuload note driver
2022-12-09 06:36:40 -05:00
Beat Küng
a502146d73
board_hw_rev_ver: fix hex printf
2022-12-09 07:52:50 +01:00
Beat Küng
8bde2a7a28
board_hw_rev_ver.c: check for 'rv == OK' before reading the revision
...
Otherwise a potential failure reading the hw version can get overwritten.
2022-12-09 07:52:50 +01:00
Daniel Agar
8114aad983
initial minimal PX4_ROS2 platform and px4_ros2_default build ( #20689 )
...
- new ROS2 platform in PX4 intended for creating configs that build and run entirely in ROS2
- PX4_CONFIG defaults to px4_ros2_default if no config specified and in a colcon workspace with ROS_VERSION=2
- currently doesn't do much other than allow you to build px4 msgs interface package
2022-12-08 23:03:44 -05:00
Roman Bapst
cfb670fbb3
Refactor quadchute logic ( #20704 )
...
* moved computation of _time_since_trans_start into base class
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* refactor quadchute logic
- move entired logic into VtolType class
- split into smaller functions
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* Update src/modules/vtol_att_control/vtol_type.h
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
Signed-off-by: RomanBapst <bapstroman@gmail.com >
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2022-12-08 11:56:20 +03:00
Daniel Agar
2b1d8c1d8e
mavlink switch to common dialect by default and update to latest
2022-12-07 15:46:04 -05:00
Daniel Agar
72cb4bee01
SITL gz fixes and init cleanup ( #20725 )
...
- remove broken gz version handling and remove x500-legacy
- fix all shellcheck warnings
- prepare for Gazebo Garden compatibility (needs more work)
2022-12-07 15:41:13 -05:00
Beniamino Pozzan
f2c71a8874
microdds_client: added environment variable for defining namespace
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2022-12-07 14:36:23 -05:00
Beniamino Pozzan
5a2e41c4e4
microdds_client: add XRCE_DDS_KEY parameter
...
Multiple agents can connect to the same client
For sitl builds, if the intance number is different from zero,
XRCE_DDS_KEY is set to the instance number and
the microdds_client is automatically started
with namespace
px4_"instance_number"
and udp port 8888
If the instance number is equal to zero
XRCE_DDS_KEY is left untouched and
the microdds_client is automatically started
without namespace
and udp port 8888
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2022-12-07 14:36:23 -05:00
Beniamino Pozzan
a92897fb58
microdds_client: add namespace to partecipant name
...
The partecipant name is modified into
"client_namespace"/px4_micro_xrce_dds
For sitl builds the microdds_client is automatically started
with namespace
px4_"instance_number"
and udp port
8888+"intance_number"
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2022-12-07 14:36:23 -05:00
Daniel Agar
8eb2a0a3ec
ekf2: delete orientation_covariances_euler()
...
- usage replaced with now public calcRotVecVariances()
2022-12-07 12:41:27 -05:00
Mathieu Bresciani
a187bb3b80
ekf2: predict covariance before predicting state ( #20715 )
...
* To predict the covariance, the jacobian from the previous to the current state is required.
2022-12-07 09:34:19 -05:00
Daniel Agar
c12d9124bd
Update submodule GPS drivers to latest Wed Dec 7 12:38:31 UTC 2022
...
- GPS drivers in PX4/Firmware (4eb0a0598048df07c213659944b2720ee42e1cc2): https://github.com/PX4/PX4-GPSDrivers/commit/b49a6c257371abae6e26e0a3e0fc04b963b2f13d
- GPS drivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/b76fc1df45952abbc76c7eb9f5a5ab3ae994bef2
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/b49a6c257371abae6e26e0a3e0fc04b963b2f13d...b76fc1df45952abbc76c7eb9f5a5ab3ae994bef2
b76fc1d 2022-11-21 qst0528 - ashtech: fix position accuracy loss caused by misplaced integer cast (#118 )
Co-authored-by: PX4 BuildBot <bot@px4.io >
2022-12-07 09:16:31 -05:00
PX4 BuildBot
db791fa317
Update submodule sitl_gazebo to latest Wed Dec 7 12:38:25 UTC 2022
...
- sitl_gazebo in PX4/Firmware (b3cebc6686 ): https://github.com/PX4/PX4-SITL_gazebo/commit/b38e701ec4230a6105ace872447c0f63bc181d41
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/1b56329b73f68f1480e58b1137b3e5169c7453d1
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/b38e701ec4230a6105ace872447c0f63bc181d41...1b56329b73f68f1480e58b1137b3e5169c7453d1
1b56329 2022-11-22 Frederic Taillandier - adding a gazebo position sniffer to get position at a high rate from another program (#928 )
2022-12-07 09:16:00 -05:00
PX4 BuildBot
b3cebc6686
Update submodule libevents to latest Wed Dec 7 00:39:06 UTC 2022
...
- libevents in PX4/Firmware (ff161d5eca5ee3e605840dc05642984985fcbf5a): https://github.com/mavlink/libevents/commit/179f86a8fc7fd74cb80630e77b1b9435d3c5b748
- libevents current upstream: https://github.com/mavlink/libevents/commit/0c8bc543db2f8c78f59214d5bcf959bdadd96677
- Changes: https://github.com/mavlink/libevents/compare/179f86a8fc7fd74cb80630e77b1b9435d3c5b748...0c8bc543db2f8c78f59214d5bcf959bdadd96677
0c8bc54 2022-11-07 Beat Küng - README: fix typo
ca1cce0 2022-11-04 Beat Küng - README: add note for usage of UNIT's
2022-12-06 19:39:37 -05:00
PX4 BuildBot
9c8bf0b4e0
Update submodule apps to latest Tue Dec 6 23:41:48 UTC 2022
...
- apps in PX4/Firmware (351bd1768a4a862f81b2a262225e945c0e4fe4fa): https://github.com/PX4/NuttX-apps/commit/e04333c986a47ec03ccb83e985f520fe30e3f1b6
- apps current upstream: https://github.com/PX4/NuttX-apps/commit/a489381b49835ecba6f3b873b5071d882a18152f
- Changes: https://github.com/PX4/NuttX-apps/compare/e04333c986a47ec03ccb83e985f520fe30e3f1b6...a489381b49835ecba6f3b873b5071d882a18152f
a489381b4 2022-10-17 Peter van der Perk - [REJECTED] Backport 0d06c1c netinit:Network Monitor add a polled option
7b7cd332e 2022-09-12 Peter van der Perk - [REJECTED] Backport dbcb783671cee8a8c97b5909d9eb818c3864ca93 FAT DMA fix
2022-12-06 19:37:39 -05:00
Daniel Agar
c1c4c96c88
boards: flywoo_gn-f405 NuttX upgrade fixes
2022-12-06 19:35:30 -05:00
Daniel Agar
4f99ac209c
gitmodules update NuttX to 10.3.0+
2022-12-06 18:40:58 -05:00
Silvan Fuhrer
2b8295e30f
FW Position control: switch from L1 to NPFG guidance by default
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-12-06 12:54:58 -05:00
Daniel Agar
f12dbb3ff7
boards: px4_fmu-v5_test disable common distance sensors to save flash
2022-12-06 11:39:25 -05:00
Daniel Agar
91a43c3bce
boards: px4_fmu-v5_uavcanv0periph disable camera_feedback to save flash
2022-12-06 10:48:56 -05:00
Daniel Agar
9b20228ffb
boards: modalai_voxl2-io NuttX upgrade fixes and sync with px4-io-v2
2022-12-06 10:45:30 -05:00
Daniel Agar
a191509b27
boards: raspberrypi_pico NuttX upgrade fixes
2022-12-06 10:40:27 -05:00
Zachary Lowell
91acd494a3
Qurt uORB communicator fixes ( #20705 )
...
- there was an issue sending a message from slpi to apps. Seems the code was stuck in an loop and crashed when the message was sent from slpi to apps
2022-12-06 10:33:19 -05:00
Beat Küng
1ea026961e
jmavsim_run.sh: add module exports to avoid access errors
...
With openjdk 17.0.5 2022-10-18, jmavsim fails to start due to missing
exports. This was previously a warning and turned into an error now.
Caught AppContextInfo(Bug 1004) InaccessibleObjectException: Unable to make public static sun.awt.AppContext sun.awt.AppContext.getAppContext() accessible: module java.desktop does not "exports sun.awt" to unnamed module @2c767a52 on thread J3D-Renderer-1
[0]: java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
[1]: java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
[2]: java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
[3]: java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
[4]: com.jogamp.nativewindow.awt.AppContextInfo$1$1.run(AppContextInfo.java:40)
[5]: com.jogamp.common.util.UnsafeUtil.doWithoutIllegalAccessLogger(UnsafeUtil.java:219)
[6]: com.jogamp.nativewindow.awt.AppContextInfo$1.run(AppContextInfo.java:34)
[7]: java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
[8]: com.jogamp.nativewindow.awt.AppContextInfo.<clinit>(AppContextInfo.java:31)
[9]: com.jogamp.nativewindow.awt.JAWTWindow.<init>(JAWTWindow.java:128)
[10]: jogamp.nativewindow.jawt.x11.X11JAWTWindow.<init>(X11JAWTWindow.java:60)
[11]: java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[12]: java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
[13]: java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[14]: java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[15]: java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
[16]: jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:105)
[17]: jogamp.nativewindow.NativeWindowFactoryImpl.getNativeWindowImpl(NativeWindowFactoryImpl.java:66)
[18]: com.jogamp.nativewindow.NativeWindowFactory.getNativeWindow(NativeWindowFactory.java:654)
[19]: javax.media.j3d.JoglPipeline$QueryCanvas.addNotify(JoglPipeline.java:8604)
[20]: java.desktop/java.awt.Container.addNotify(Container.java:2804)
[21]: java.desktop/java.awt.Window.addNotify(Window.java:791)
[22]: java.desktop/java.awt.Frame.addNotify(Frame.java:495)
[23]: java.desktop/java.awt.Window.show(Window.java:1053)
[24]: java.desktop/java.awt.Component.show(Component.java:1728)
[25]: java.desktop/java.awt.Component.setVisible(Component.java:1675)
[26]: java.desktop/java.awt.Window.setVisible(Window.java:1036)
[27]: javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8379)
[28]: javax.media.j3d.Renderer.doWork(Renderer.java:496)
[29]: javax.media.j3d.J3dThread.run(J3dThread.java:271)
Caught AppContextInfo(Bug 1004) IllegalAccessException: class com.jogamp.nativewindow.awt.AppContextInfo cannot access class sun.awt.AppContext (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @2c767a52 on thread J3D-Renderer-1
[0]: java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
[1]: java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
[2]: java.base/java.lang.reflect.Method.invoke(Method.java:560)
[3]: com.jogamp.nativewindow.awt.AppContextInfo.fetchAppContext(AppContextInfo.java:191)
[4]: com.jogamp.nativewindow.awt.AppContextInfo.update(AppContextInfo.java:135)
[5]: com.jogamp.nativewindow.awt.AppContextInfo.<init>(AppContextInfo.java:50)
[6]: com.jogamp.nativewindow.awt.JAWTWindow.<init>(JAWTWindow.java:128)
[7]: jogamp.nativewindow.jawt.x11.X11JAWTWindow.<init>(X11JAWTWindow.java:60)
[8]: java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[9]: java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
[10]: java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[11]: java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[12]: java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
[13]: jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:105)
[14]: jogamp.nativewindow.NativeWindowFactoryImpl.getNativeWindowImpl(NativeWindowFactoryImpl.java:66)
[15]: com.jogamp.nativewindow.NativeWindowFactory.getNativeWindow(NativeWindowFactory.java:654)
[16]: javax.media.j3d.JoglPipeline$QueryCanvas.addNotify(JoglPipeline.java:8604)
[17]: java.desktop/java.awt.Container.addNotify(Container.java:2804)
[18]: java.desktop/java.awt.Window.addNotify(Window.java:791)
[19]: java.desktop/java.awt.Frame.addNotify(Frame.java:495)
[20]: java.desktop/java.awt.Window.show(Window.java:1053)
[21]: java.desktop/java.awt.Component.show(Component.java:1728)
[22]: java.desktop/java.awt.Component.setVisible(Component.java:1675)
[23]: java.desktop/java.awt.Window.setVisible(Window.java:1036)
[24]: javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8379)
[25]: javax.media.j3d.Renderer.doWork(Renderer.java:496)
[26]: javax.media.j3d.J3dThread.run(J3dThread.java:271)
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)
Caused by: java.lang.RuntimeException: java.lang.IllegalAccessException: class javax.media.j3d.JoglPipeline cannot access class sun.awt.X11GraphicsDevice (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @2c767a52
at javax.media.j3d.JoglPipeline.getScreen(JoglPipeline.java:8553)
at javax.media.j3d.Screen3D.<init>(Screen3D.java:354)
at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1124)
at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1026)
at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:990)
at me.drton.jmavsim.Visualizer3D$CustomCanvas3D.<init>(Visualizer3D.java:909)
at me.drton.jmavsim.Visualizer3D.<init>(Visualizer3D.java:196)
at me.drton.jmavsim.Simulator.<init>(Simulator.java:193)
at me.drton.jmavsim.Simulator.main(Simulator.java:944)
... 5 more
Caused by: java.lang.IllegalAccessException: class javax.media.j3d.JoglPipeline cannot access class sun.awt.X11GraphicsDevice (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @2c767a52
at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
at java.base/java.lang.reflect.Method.invoke(Method.java:560)
at javax.media.j3d.JoglPipeline.getScreen(JoglPipeline.java:8551)
... 13 more
2022-12-06 09:00:05 -05:00
Thomas Stastny
2da10183f3
welford mean: remove old comments
2022-12-06 08:59:12 -05:00
Silvan Fuhrer
ac28c6b7e2
VTOL: take home_position into account for ground clearance ( #20683 )
...
* VTOL: take home_position into account for ground clearance
For approximating distance to ground in case there is no valid distance sensor
data, subtract the home position altitude from the local position altitude.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2022-12-06 13:19:35 +01:00
Peter van der Perk
f1ff47c088
nxp_ucans32k146:Use DMA on I2C
2022-12-06 06:50:46 -05:00
Peter van der Perk
45244e610f
NXP MR-CANHUBK3 Support
2022-12-06 06:49:28 -05:00
MAD-CRAZY-MAN
7f01e3962f
thepeach_k1/r1: Copyright Amendment, Rename HW comment Correctly.
2022-12-06 06:43:46 -05:00
MAD-CRAZY-MAN
5fc10971ff
update by NuttX 10.3+
2022-12-06 06:43:46 -05:00
MAD-CRAZY-MAN
21093b829b
boards: Add ThePeach K1/R1
2022-12-06 06:43:46 -05:00
bresch
8e3517fae0
DataValidator: fix unexpected failover
...
Instead of always starting with instance 0 (potentially an internal
mag), first take the current sensor as reference to compare the other
ones against it.
The issue is that otherwise we can end up in a
situation where a switch occurs because the currently used sensor isn't
much better than a sensor with a lower index: because the selected one
isn't much better, we cannot "fail-over" to it and get stuck on another
sensor, triggering a fail-over.
2022-12-06 08:16:23 +01:00
Thomas Stastny
c5dc1221b6
failure detector: use multiplication instead of division
...
Co-authored-by: Daniel Agar <daniel@agar.ca >
2022-11-30 14:51:07 -05:00
Thomas Stastny
4e8381e8cf
failure detector: negative guard sqrt in std dev calc
2022-11-30 14:51:07 -05:00
Thomas Stastny
eb80e0410c
failure detector: fix imbalanced prop metric time interval
2022-11-30 14:51:07 -05:00
Daniel Agar
89b81b0bd6
create Welford mean Vector with covariance and improve precision with Kahan summation ( #20676 )
...
- WelfordMeanVector now computes covariance
- use Kahan summation for Welford mean (but continue using float32 for actual mean, etc)
- WelfordMean and WelfordMeanVector handle initial value and count roll over
- Welford mean count rollover at 16 bit max to prevent numerical issues and shift weight to newer samples
- sensors/vehicle_imu: update Welford mean usage (now simplified with resets removed)
- fix vehicle_imu_status accel var, now properly rotated with full covariance matrix
- gyro_calibration: update Welford mean usage
2022-11-30 14:50:13 -05:00
bresch
5155346d60
ekf2: do not use gnss data when no lock
2022-11-30 08:50:34 -05:00
Jaeyoung Lim
65577a4f89
Fix invalid offboard setpoints for fw pos control
...
This commit fixes a regression that disables offboard control
2022-11-30 09:14:57 +01:00
bresch
5d7faefa84
ekf2: don't add invalid GNSS samples to the buffer
2022-11-30 00:22:15 -05:00
Silvan Fuhrer
0c923bda4e
FW Attitude Control: fix integral resetting
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-29 18:36:15 +01:00
alexklimaj
b78b896498
Adjust min and max can bootloader timing for ardupilot compatibility
2022-11-29 10:21:28 -05:00
Matthias Grob
9e776741d9
battery: allow for external state of charge injection
2022-11-29 09:27:50 +01:00
Matthias Grob
babe93c3bf
rc_update: adapt throttle trim calibration for [-1,1]
...
This is fully backwards compatible: If the throttle trim is set to
the minimum then it's the legacy calibration and gets
interpreted such that there is no trim and behavior remains as before.
If the trim is set to a different value than the minimum then it gets
used like with all other channels which was unsupported before.
2022-11-28 19:25:55 +01:00
Matthias Grob
331cb21dee
manual_control_setpoint: change stick axes naming
...
In review it was requested to have a different name for
manual_control_setpoint.z because of the adjusted range.
I started to investigate what naming is most intuitive and found
that most people recognize the stick axes as roll, pitch, yaw, throttle.
It comes at no surprise because other autopilots
and APIs seem to share this convention.
While changing the code I realized that even within the code base
the axes are usually assigned to a variable with that name or
have comments next to the assignment clarifying the axes
using these names.
2022-11-28 19:25:55 +01:00
Matthias Grob
83246c84cf
Switch manual_control_setpoint.z scaling from [0,1] to [-1,1]
...
To be consistent with all other axes of stick input and avoid future
rescaling confusion.
Note: for the MAVLink message 69 MANUAL_CONTROL it's using the full range
according to the message specs now [-1000,1000].
2022-11-28 19:25:55 +01:00
Matthias Grob
5579e319ff
mavlink_receiver: refactor forgotten manual_control_setpoint naming
2022-11-28 19:25:55 +01:00
Peter van der Perk
f16286f3eb
Add jlink-nuttx build command for gdb helper for multi-task debugging
2022-11-28 06:29:18 -05:00
Matthias Grob
aac05d7bcd
Remove unmaintained rover_steering_control example
2022-11-28 10:02:04 +01:00
Matthias Grob
a953167a6a
Remove unmaintained uuv_example_app
2022-11-28 10:02:04 +01:00
Silvan Fuhrer
79c55614d8
FW PositionController: remove mavlink_log_pub, and only use events
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
bd176241f8
param translation: remove old param translations (more than 1 release back)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
3f773809c4
LaunchDetection: fix code style (name class members with trailing underscore)
...
And also align parameter handle name to real parameter name.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
1d75138659
LaunchDetector: fix counter logic
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
1400f81874
FW Pos C: rename LAUN_* param to FW_LAUN_* to be more explicit
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
5587a47471
Launch Detection: reduce user notification to info from warning
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
5a1adab6fb
FW Position controller params: flaring params slight meta data adjustments
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
7fb70c55df
FW Position controller: runway takeoff: track initial takeoff yaw if not in Mission Takeoff
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
1b89f26691
FW PosC: remove hack to force _landed to false if (not)launch_detected, as it is now handles in land detector
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
df1cd4f147
LaunchDetection: code style changes and fix info message.
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
e6e2c889e0
FW Position controller: rename LAUN_ALL_ON to LAUN_DECTN_ON
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
c8129fd902
Launch Detection: add briefs
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
59e5c68cb0
FW Position control: use yaw at launch detection as bearing setpoint during hand launch takeoff
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
b2f21b956c
FW Position control: move LAUN_ALL_ON param to FW Positon Control main params
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
7691e3ff32
FW Land Detector: force to landed if currently landed and in launch process
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
90e1f98c57
FW Launch Detection: refactor state machine and pubish launch_detection_status message
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
35da7f9bc4
Launch Detection: consolidate in single class (use the only existing method, catapult)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
b05878690d
Launch Detector: remove LAUN_CAT_PMAX
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
5161165d85
FW land detector: expose trigger time in parameter (LNDFW_TRIG_TIME)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
Silvan Fuhrer
71835f57c9
FW land detector: reduce default for LNDFW_VEL_Z_MAX to 1m/s
...
And remove 0.7 factor for airspeed-less flying for the vertical speed threshold.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-25 18:45:36 +01:00
benjinne
85e9c17a5e
drivers/power_monitor: add TI INA220 driver ( #20504 )
2022-11-23 15:11:29 -05:00
bresch
7888cc8cfd
GyroCalibration: update sensor correction before using it
...
Otherwise, the thermal offset value can be outdated
2022-11-23 13:24:43 -05:00
bresch
dae37803da
TC: erase current calibration when temp cal is completed
2022-11-23 13:24:43 -05:00
Matthias Grob
d81ca65c6f
rc_update: replace RC scaling with interpolate function use
2022-11-23 11:06:44 -05:00
Matthias Grob
9de3af1cbc
Functions: interpolate brackets and spacing
2022-11-23 11:06:44 -05:00
alexklimaj
c7a8589afc
Add ARK PAB Carrier
...
Add ARK_FMU_V6X to RCS netman
Remove arkv6x rc single wire
Fix arkv6x mtd
arkv6x bootloader init all pins to prevent power cycling peripherals on boot
arkv6x don't power cycle sd card on boot
arkv6x add UART4 Telem 4
2022-11-22 18:14:50 -05:00
Daniel Agar
28e1f6790f
Jenkinsfile-hardware: don't run logger on stack check build
...
- stackcheck build is so slow it will trigger the logger watchdog (error fails Jenkins)
2022-11-22 16:07:22 -05:00
David Sidrane
9faa8e23e8
NuttX Upgrade CONFIG_LIB_BOARDCTL->CONFIG_BOARDCTL
2022-11-22 14:30:08 -05:00
David Sidrane
6e78cbe746
NuttX Upgrade CONFIG_LIB_USRWORK->CONFIG_LIBC_USRWORK
2022-11-22 14:30:08 -05:00
Silvan Fuhrer
9cd3eae0aa
Navigator: re-introduce min loiter alt, but only apply it for Loiters w/o a specified altitude setpoint
...
Also applies to Loiters that are started due to the previous mode being over (Takeoff,
VTOL_Takeoff, Mission).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-22 13:46:25 -05:00
Thomas Stastny
8157d83bfc
ROMFS: remove deprecated runway takeoff param sets
2022-11-22 13:46:25 -05:00
Thomas Stastny
263a1884b1
fixed-wing: explicitly define landing airspeed
...
landing airspeed was previously defined by a scale factor multiplied by minimum airspeed. this commit changes this parameter to an explicit speed, and when unspecified, defaults to the minimum airspeed
2022-11-22 13:46:25 -05:00
Silvan Fuhrer
9bdf09a300
Mission: fix float to double conversion when setting lat/lon to NAN
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-22 13:46:25 -05:00
Silvan Fuhrer
49c363674a
FW Position Control: only prevent automatic aborts if already flaring, but allow manual aborts
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-22 13:46:25 -05:00
Silvan Fuhrer
94d44c40a7
FW Position control: remove param FW_CLMBOUT_DIFF and instead use hardcoded 10m for clearing aborted flag
...
Use kClearanceAltitudeBuffer for it, which is also used to ensure that during takeoff an
altitude setpoint above the clearance altitdue is set.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-22 13:46:25 -05:00
Silvan Fuhrer
0941ae7579
Navigator: remove MIS_LTRMIN_ALT param, and use new param MIS_LND_ABRT_ALT for landing abort
...
MIS_LTRMIN_ALt was used to limit the go-to altitude of a LOITER_TO_ALT (not the exit altitude,
but the altitude that the vehicle went to to fly to WP), and during landing abort to climb to
at least this altitude. The min entry altitude of LOITER_TO_ALT I remove with this commit, while
for the min alt during abort I added the new parameter MIS_LND_ABRT_ALT.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-22 13:46:25 -05:00
Thomas Stastny
ed39eb4672
mission landing abort: take min loiter alt above land point or current vehicle alt (remove arbitrary +20m)
2022-11-22 13:46:25 -05:00
Thomas Stastny
0fc35ef082
fixed-wing landing abort: disable early landing config during a landing abort
...
previously, the next position setpoint in the triplet was left unchanged during an abort, which meant that the abort loiter current point combined with land next point triggered the early landing config logic. this commit is only a hack to make things work temporarily.. this needs to be handled better.
2022-11-22 13:46:25 -05:00
Thomas Stastny
08ba5d762f
fixed-wing takeoff: sync launch logic with newer runway takeoff modifications
...
- explicitly defined takeoff airspeed setpoint
- dont use climbout mode
- allow max climb on takeoff
- dont handle post clearance altitude case (navigator will switch anyway)
2022-11-22 13:46:25 -05:00
Silvan Fuhrer
a787a326e3
Fixed-wing: split out control of steering wheel into seperate message LandingGearWheel
...
Completely detach the steering wheel logic from the yaw controller (beside using the
same manual stick input in a manual flight mode).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-22 13:46:25 -05:00
Silvan Fuhrer
6c611a7e8b
VehicleAttitudeSetpoint: rename fw_control_yaw to fw_control_yaw_wheel to make usage clearer
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-22 13:46:25 -05:00
Thomas Stastny
4b036e6723
fixed-wing landing: dont allow land abort while flaring
2022-11-22 13:46:25 -05:00
Thomas Stastny
a8c2eaf3e0
fixed-wing landing: add a touchdown time and subsequent ramp down to rwto pitch setpoint after the flare to keep wheels on ground
2022-11-22 13:46:25 -05:00
Thomas Stastny
1de1416773
fixed-wing landing: convert flare time pitch and throttle constraint ramps to sqrt function to make more aggressive
2022-11-22 13:46:25 -05:00
Thomas Stastny
f23328d14f
fixed-wing landing: ramp in flaring throttle setpoints from last throttle state to keep control continuity
...
- also put flaring internal states into a struct to organize a bit
- one concern with blending the throttle setpoint like this with the flare time param is that folding prop belly landing airframes may want to have a separate param for shorter throttle kill and still use the flare time ramps for everything else
2022-11-22 13:46:25 -05:00
Thomas Stastny
68e1921f27
make FW_LND_FL_TIME min positive non-zero to protect dividing by zero
2022-11-22 13:46:25 -05:00
Thomas Stastny
928be2958d
fixed-wing landing: continue to follow path throughout flare
...
abruptly changing to a heading setpoint on flare can cause the aircraft to roll and deviate from the runway, this commit
- maintains path following control during the flare not to disrupt the tracking just before touchdown
- (unfortunately for crosswind landing) removes the body axis alignment for runway bearing - this is a compromise
to achieve both runway bearing body axis alignment AND a specific touchdown point, either
1. the wind would need to be considered, and an appropriate diagonal approach (obstructions allowing) defined to the runway
2. slip control added, keeping path following outputs only commanding roll (controlling airspeed vector) and using yaw-rate command (only actuated by e.g. rudder) to align body axis with the runway
2022-11-22 13:46:25 -05:00
Thomas Stastny
e5a9a57d79
fixed-wing landing: ramp in throttle constraints during flare
2022-11-22 13:46:25 -05:00
Thomas Stastny
4fbfc42805
fixed-wing runway takeoff: ramp in pitch constraints and throttle setpoint on takeoff rotation
...
- consolidate takeoff rotation transition times for pitch constraints and throttle setpoint with a single param
- consolidate pitch takeoff constraint parameters (remove rwto_max_pitch, use nominal max)
- input correct units to rwto pitch constraint getters
- encapsulate absolute time interpolator method for transitions
- start runway ops from idle throttle
2022-11-22 13:46:25 -05:00
Thomas Stastny
a4349193b5
fixed-wing runway takeoff: climbout at specified takeoff airspeed and max climb rate
...
TECS climbout mode was used for takeoff climbout, which puts throttle to full and does not regulate a specific airspeed.
This commit sets the desired takeoff airspeed explicitly and allows max climb rate to track the ascent.
2022-11-22 13:46:25 -05:00
Thomas Stastny
47963b5b67
fixed-wing runway takeoff: define explicit takeoff speeds
...
previously a scale factor param on min airspeed was used to define the climbout airspeed for runway takeoff
additionally, the rotation speed was defined by another hardcoded scale on top of the previously scaled min airspeed
this commit explicitly defines a takeoff speed and rotation speed for runway takeoff in params, with option to disable
2022-11-22 13:46:25 -05:00
Beat Küng
46dbb7cf63
fix pwm_out, px4io: prevent disarm and rate param updates during boot
...
Before, the logic to update disarm and rate values also triggered during
bootup on the px4io, because the output functions are only set in
updateSubscriptions().
Therefore change the check to prevent updating during the first cycle.
2022-11-22 13:41:16 -05:00
Beat Küng
a20c581111
mixer_module: remove unused limit_callbacks_to_primary argument
2022-11-22 13:41:16 -05:00
dsix-ls2n
2833832968
simulation/gz_bridge: ignition with no lockstep ( #20561 )
...
When using ignition SITL simulation with NO_LOCKSTEP, the SITL PX4 fails to update the IMU data from Ignition Gazebo.
The timestamp for the IMU data is taken from the ignition message:
- In LOCKSTEP mode the clock from the ignition simulation and the one from PX4 SITL are synchronized, hence everything works fine
- In NO_LOCKSTEP mode, those clocks are not synchronized anymore, so the timestamp for the IMU data should not be the one from Ignition but the current time in PX4 SITL when receiving the message.
2022-11-22 11:26:11 -05:00
Matthias Grob
55b454a8a5
MulticopterPositionControl: avoid invalid setpoint message when switching to altitude controlled mode
2022-11-22 16:03:41 +01:00
bresch
60c448ce3a
ekf2: GNSS yaw, use reported yaw accuracy when available
2022-11-22 09:59:31 -05:00
bresch
b25bc1b982
ekf2: GNSS yaw, update->fuse pattern
2022-11-22 09:59:31 -05:00
bresch
4cb327fba3
ekf2: remove old GPS yaw autogenerated code
2022-11-22 09:59:31 -05:00
bresch
16a3fee54f
ekf2_test: check behavior of GNSS yaw fusion at singularities
2022-11-22 09:59:31 -05:00
bresch
4116de31ad
ekf2: compare GNSS yaw fusion sympy vs symforce
2022-11-22 09:59:31 -05:00
bresch
eff2c6adcf
ekf2: migrate GNSS yaw fusion to SymForce
2022-11-22 09:59:31 -05:00
Michael Schaeuble
19bca47b9e
Preserve gimbal control when receiving updates from an input that is not active
...
The update function of InputMavlinkGimbalV2 returns UpdatedNotActive when receiving control commands from a system or component that doesn't match the primary control. This can happen if a component just sends commands without being in control or when transitioning to a different primary control.
If the input is marked as already_active, it will reset last_input_active which in turn resets the primary control in the next iteration. According to the MAVLink gimbal protocol v2, a component needs to send MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE to start controlling the gimbal and to remove control. However, with the current implementation there are several other commands that would reset the primary control.
With this PR, the primary control remains with the component that requested it last if updates from a not active component are received.
2022-11-22 12:08:47 +01:00
JaeyoungLim
2586900c26
Log local position setpoint reference for fixedwings when running NPFG ( #20512 )
...
* Log position setpoint reference of npfg
This commit logs the local position setpoint reference when using NPFG
* Address review comments
This commit address review comments from @tstastny
2022-11-22 08:19:38 +01:00
Silvan Fuhrer
c24f9561e9
FW Att C: use new param FW_MAN_YR_MAX to control yawing with sticks in attitude controlled mode
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-21 21:26:20 -05:00
Silvan Fuhrer
c186f798b6
FW Att C: do not directly override actuator_controls[YAW] but only change yaw rate sp
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-21 21:26:20 -05:00
Daniel Agar
08cdb96f77
boards: px4_fmu-v5_uavcanv0periph disable systemcmds to save flash
2022-11-21 21:23:02 -05:00
Daniel Agar
16564af788
Jenkinsfile-hardware: remove px4_fmu-v3
2022-11-21 21:18:01 -05:00
Silvan Fuhrer
44f831c41a
Navigator: Mission feasibilty check: set _has_landing also for normal landing waypoints (without pattern)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-21 18:03:21 +01:00
Silvan Fuhrer
e68ba81d6d
MissionFeasibilityChecker: for MC only find if landing is present, but don't do any validation
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-21 18:03:21 +01:00
Silvan Fuhrer
f2f094c33d
MissionFeasibilityChecker: add @briefs
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-21 18:03:21 +01:00
Silvan Fuhrer
4cd7dfa162
MissionFeasibility: add combined takeoff/landing requirement check
...
Replace the existing check for the availability of a takeoff mission item with a combined
check for takeoff and landing item (or landing pattern). New param MIS_TKO_LAND_REQ
can be set to require only a takeoff, only a landing, both takeoff and landing, and
both or none. The latter is meant to be set if is e.g. deemed unsafe to start a flight
through a Takeoff WP without though defining a Landing - as then in case of a RTL the
vehicle doesn't follow a pre-defined path but instead only can do default RTL that especially
for FW and VTOL isn't always safe.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-21 18:03:21 +01:00
Alex Mikhalev
cce3b43b4f
mavlink: Fix setting MAV_SIK_RADIO_ID
...
The AT commands were formatted incorrectly
2022-11-21 08:12:40 +01:00
Daniel Agar
2cb4ef0629
NuttX 10.3+ upgrade ( #20190 )
...
Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com >
Co-authored-by: David Sidrane <David.Sidrane@NscDg.com >
Co-authored-by: alexklimaj <alex@arkelectron.com >
2022-11-20 20:28:07 -05:00
Beat Küng
45b390b0bf
microdds: use UXR_DURABILITY_VOLATILE for data reader
...
This corresponds to the ROS2 default. Using reader=TRANSIENT_LOCAL and
writer=VOLATILE (=default) is incompatible according to
https://docs.ros.org/en/rolling/Concepts/About-Quality-of-Service-Settings.html
2022-11-18 21:41:24 -05:00
Silvan Fuhrer
b36758b1a0
Update src/modules/fw_pos_control_l1/FixedwingPositionControl.hpp
...
fix typo
Co-authored-by: Thomas Stastny <thomas.stastny@auterion.com >
2022-11-18 17:35:34 +01:00
Silvan Fuhrer
c4c94febfa
FW Pos C: clearly define FW_AIRSPD_MIN as stall+margin, and automatically increase f(load_factor)
...
Previously the minimum airspeed setpoint was adjusted to the load_factor compensated
stall speed, which, when the stall speed was set without margin, gave the controller
no room for error (the vehicle would stall if the controller has even a small airspeed
error).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-18 17:35:34 +01:00
Silvan Fuhrer
f2ca9387cf
FW Position Control: also run airspeed adaptions based on wind, accelerated stall etc. in manual modes
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-18 17:35:34 +01:00
Silvan Fuhrer
cec16dd9b3
FW Attidue Controller: use FW_AIRSPD_MIN for DTRIM instead of STALL
...
This is to make it again in line with the parameter description and docs
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-18 17:25:10 +01:00
alexklimaj
64768f1cda
Increase allowed rtk injections to 8 for moving base. Update GPS submodule.
2022-11-18 11:04:17 -05:00
alexklimaj
8b61b22da6
Fix CANNODE_SUB_MBD typo
2022-11-18 11:04:17 -05:00
Jukka Laitinen
f2607335ac
rc/crsf_rc/CrsfRc.cpp: Include fcntl.h for "open"
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-11-18 07:10:27 +01:00
Jukka Laitinen
9081238dc5
microdds_client.cpp: Include posix.h for PX4_STACK_ADJUSTED macro
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-11-18 07:10:27 +01:00
Jukka Laitinen
9ce234ece8
SafetyButton.cpp: Include board_config.h
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-11-18 07:10:27 +01:00
Jukka Laitinen
ff3a3dac01
cdc_acm_check.cpp: Add missing #includes
...
- Include board_config.h for BOARD_GET_EXTERNAL_LOCKOUT_STATE etc. macros
- Include fcntl.h for "open"
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-11-18 07:10:27 +01:00
Jukka Laitinen
966560edc0
Fix overflows in abstime_to_ts
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-11-18 07:10:05 +01:00
Zachary Lowell
52b16d062c
uORB Remote Manager Update ( #20623 )
2022-11-17 13:51:01 -08:00
Silvan Fuhrer
8b7c074680
FW Position Control: remove 0.9 mergin factor on stall vs min param comparison
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-17 13:33:10 +01:00
Silvan Fuhrer
2e0c8da7ef
FW Position Control: fix load factor calculation
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-17 13:33:10 +01:00
Silvan Fuhrer
798cc4f01c
LandDetectorMC: enforce that LNDMC_Z_VEL_MAX is larger than MPC_LAND_CRWL/MPC_LAND_SPEED ( #20614 )
...
* LandDetectorMC: enforce that LNDMC_Z_VEL_MAX * 1.2 is below *MPC_LAND_CRWL/MPC_LAND_SPEED
Otherwise the _in_descend flag doesn't get set correctly during the last part
of the landing, where the descend speed is at MPC_LAND_CRWL or LAND_SPEED.
The _in_descend flag is set it the velocity setpoint is >1.1*LNDMC_Z_VEL_MAX.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2022-11-17 10:56:26 +01:00
Matthias Grob
e58ad581a0
modalai_esc_params: remove unused parameter
2022-11-17 10:50:41 +01:00
Matthias Grob
fd4d4e001d
PULL_REQUEST_TEMPLATE: suggestion to make it more "concise"
2022-11-16 17:28:27 +01:00
TSC21
9c0e09c3df
mavlink_main: report in AUTOPILOT_VERSION.capabilities that FLIGHT_TERMINATION is supported
2022-11-16 16:51:47 +01:00
Matthias Grob
d4f18bda8e
navigator_params: remove deprecated parameters
...
The usage of `NAV_AH_...` was removed in
5d33b9e999
#14307
2022-11-16 10:26:12 -05:00
Matthias Grob
fbe5024fa8
commander_params: remove deprecated COM_RCL_ACT_T
...
It's now covered with COM_FAIL_ACT_T
2022-11-16 08:11:09 +01:00
Daniel Agar
da82757bf6
ekf2: accumulate multiple vel/pos/orientation reset deltas per update
...
- if in a single EKF update there are multiple resets we need to track the accumulated delta so the change consumed by the controllers is correct
2022-11-15 13:20:54 -05:00
alexklimaj
2e918eba00
Revert "Update MAVLink so common includes standard ( #20542 )"
...
This reverts commit 0e2b1ee979 .
2022-11-15 13:09:56 -05:00
Eric Katzfey
796fa8bd72
boards/modalai: separate voxl2 builds into two board builds instead of single board build with different variants
...
* Made voxl2 apps processor and slpi dsp processor builds into separate board builds so that they can
more easily be configured independently.
* Removed board specific link library command from px4_config.cmake and moved it to a more generic
board specific solution that can be used by any board that needs custom link libraries.
* Removed redundant cmake command for Qurt
* Removed unused definition from Qurt cmake file
* Removed unnecessary QURT_LIB cmake function
* Reorganized the voxl2 build structure to avoid 4 level board directories.
* Reverted cmake files to remove 4 level board naming code
* Updated documentation
2022-11-15 13:09:04 -05:00
bresch
22420a7bf1
ekf2: do not fuse ZVU if other velocity source is active
2022-11-15 11:17:07 -05:00
bresch
c67f03f383
ekf2: update change indicator
2022-11-14 11:51:32 -05:00
bresch
f319cc528b
ekf2: remove old flow fusion generated code
2022-11-14 11:51:32 -05:00
bresch
2a83dbf81d
ekf2_test: compare flow fusion sympy vs symforce
2022-11-14 11:51:32 -05:00
bresch
93564baccf
ekf2_flow: recalculate innovation after fusing 1st axis
...
The state changed so we need to recalculate the innovation of the 2nd
axis after fusing the 1st one
2022-11-14 11:51:32 -05:00
bresch
4dbdf23346
ekf2: update _R_to_earth when the state quat changed through fusion
2022-11-14 11:51:32 -05:00
bresch
28458340e6
ekf2_flow: check innov variance health after fusing 1st axis
2022-11-14 11:51:32 -05:00
bresch
73a8c388e8
ekf2: fuse by looping through axes
2022-11-14 11:51:32 -05:00
bresch
b54a4417fa
ekf2: migrate flow fusion to SymForce
2022-11-14 11:51:32 -05:00
Daniel Agar
639d1ddca2
ekf2: update flags (in_air, at_rest, etc) on delayed time horizon ( #20576 )
...
- in a lot of cases this won't really matter, although you can see it in logs (especially with things like vehicle_at_rest), but it's something we might as well do properly
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2022-11-14 11:35:40 -05:00
Beat Küng
b0e1cc72f7
fix orbit for mc: handle VEHICLE_CMD_DO_ORBIT command and avoid race condition
...
Fixes a regression from 8bae4e5c0e , where
the orbit flight task wasn't an extra task (flight_tasks_to_add) anymore
and therefore the command handling wasn't generated.
There was a race condition that could cause several outcomes. The most severe
was that flight_mode_manager gets the command, switches to orbit and then
in the next iteration switches back because commander did not change
nav_state yet. When commander then switches, flight_mode_manager would still
be in the old mode.
This is prevented by storing the command (allowing it to arrive before or
after mode switch), and then apply it after the switch happens.
2022-11-14 17:31:35 +01:00
Beat Küng
c1f9824396
flight_mode_manager: remove command ack for VEHICLE_CMD_DO_ORBIT
...
Already acked in commander
2022-11-14 17:31:35 +01:00
Daniel Agar
9e7db0ed54
merge vehicle_angular_acceleration into vehicle_angular_velocity ( #20531 )
...
- vehicle_angular_velocity and vehicle_angular_acceleration are produced together from the same input data, consumed together, and share the the same metadata (timestamps)
- individually these topics each have 16 bytes of metadata (2 timestamps) for 12 bytes of data (x,y,z float32)
2022-11-14 11:03:59 -05:00
bresch
7d1f1d0f84
ekf2: replace macro constants by typed constexpr
2022-11-14 10:45:23 -05:00
bresch
06702da003
ekf2: add GNSS yaw max interval
...
yaw data usually comes at lower rate than vel/pos
2022-11-14 10:45:23 -05:00
bresch
9834c7917b
ekf2: use yaw emergency estimator more aggressively
...
During the whole flight, if the difference between the yaw estimate from
EKF2 and the emergency estimator is large and that the GNSS velocity
fusion is failing continuously, immediately reset to the emergency yaw
estimate.
2022-11-14 10:45:23 -05:00
GaspardBesacier
dfced1fe46
VTOL: Smarter pusher ramp up during front transtitions for standard VTOLs ( #20394 )
...
New param VT_PSHER_SLEW for ramping up throttle of pusher during front/back transition, that replaces the old VT_PSHER_RMP_DT param.
2022-11-14 16:32:51 +01:00
Silvan Fuhrer
f5ecd1106f
VTOL: some parater meta data fixes/improvements
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-14 16:25:46 +01:00
Silvan Fuhrer
c04a67401e
Remove some @decimal and @increment from integer parameters
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-14 16:25:46 +01:00
Silvan Fuhrer
a018debd37
FW Position controller: fix some parameter meta data
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-14 16:25:46 +01:00
Silvan Fuhrer
0d7a029bfc
FW Attitude controller params: fix meta data for Acro rates
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-14 16:25:46 +01:00
Matthias Grob
30d74f124d
commander_params: make disarm timeouts more explicit decimals
...
of 100ms increment
2022-11-14 16:25:46 +01:00
Silvan Fuhrer
464a7fcbed
Commander params: add @decimal to COM_SPOOLUP_TIME
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-14 16:25:46 +01:00
alexklimaj
054a549dae
Move uavcan start to end of rcS to prevent sd card read lock
2022-11-14 09:32:10 -05:00
Daniel Agar
bd5bc9d207
ekf2: cleanup terrain estimator init (shouldn't be valid by default)
...
- with Ekf::initialiseFilter() resetting _time_last_hagl_fuse the terrain estimate was technically valid regardless of any range or flow data availability and as a result optical flow fusion is able to start and stay active
- only consider terrain estimate valid based on control status flags and recent fusion
2022-11-14 09:29:46 -05:00
Michael Schaeuble
d7fde289de
Use gimbal attitude for the camera feedback when available
...
The CameraFeedback module used only the vehicle attitude for the camera orientation so far. With this change, the gimbal_device_attitude_status is used to compute the global camera orientation when a gimbal is used.
2022-11-14 09:26:14 -05:00
Beat Küng
640f9cc801
commander: fix initialization order of _failsafe_flags
...
In this case it did not cause any problems.
Fixes a compiler warning:
/src/modules/commander/HealthAndArmingChecks/HealthAndArmingChecks.cpp:39:21: error: member ‘HealthAndArmingChecks::_failsafe_flags’ is used uninitialized [-Werror=uninitialized]
39 | _reporter(_failsafe_flags)
| ^~~~~~~~~~~~~~~
2022-11-14 11:27:23 +01:00
Paul Erik Frivold
8e5efb0131
simulator_mavlink: Add basic vio failure injection ( #20577 )
...
* simulator_mavlink: Add basic vio failure injection
Signed-off-by: Paul Frivold <paul@kefrobotics.com >
* simulator_mavlink: Rm failure not supported warning
Failures commands are also handled in other files,
so warning here could be confusing.
Signed-off-by: Paul Frivold <paul@kefrobotics.com >
Signed-off-by: Paul Frivold <paul@kefrobotics.com >
2022-11-14 13:36:23 +13:00
Igor Mišić
acd8f20a85
systemcmds/ver: remove duplicate header
2022-11-11 07:21:04 +01:00
batinkov
241bcc863b
Decimal added for the CAL_ACC[012]* parameters
2022-11-11 07:10:55 +01:00
Zachary Lowell
b6ab7f159f
Qurt MUORB Communication ( #20584 )
2022-11-10 11:10:18 -08:00
Thomas Stastny
6b9d86680b
commander: fix hold after mission logic
...
previous change in logic to hold after mission clear also broke rtl, as non-mission takeoff still published a mission result which allowed entering the mission finished condition and always changing state to loiter (ignoring rtl). new logic only switches navigation states if mission is finish and the nav state is explicitly in takeoff state, or in mission state
2022-11-10 16:17:18 +01:00
Thomas Stastny
6dad3a5150
commander: hold after mission clear
2022-11-10 12:08:05 +01:00
Igor Mišić
815eed2c6d
mtd: add support for extended HW revision
2022-11-10 07:45:44 +01:00
Junwoo Hwang
855eb42c59
Rename param and paramgroups to airframe and airframegroups
...
The srcparser.py is specific to each use case (e.g. Airframes, Parameters, px4events, etc as in Tool/* folders).
Therefore it is confusing to have the px_process_airframes.py script handle concept of airframes under the generic name 'params'.
This improves readability and sets the baseground for implementing more specific vehicle type supports, as mentioned in https://github.com/PX4/PX4-user_guide/pull/1858#discussion_r876554728
2022-11-10 07:39:27 +01:00
Zachary Lowell
ee11b57e75
Qurt platform configuration cleanup ( #20583 )
2022-11-09 11:24:00 -08:00
Matthias Grob
a38bdcfc9d
MulticopterPositionControl: fix amending existing idle setpoint from before takeoff
...
once the rampup starts. The rampup requires a valid vertical velocity setpoint.
The corner case is:
- We are before takeoff and amending the setpoint to be 0,0,100 acceleration
in order to idle
- The rampup starts BUT the setpoint is not yet overwritten by the trajectory
setpoint topic
- The idle setpoint gets amended to not contain a feed-forward vertical
acceleration because the rampup is velocity based
- The result is a brief invalid 0,0,NAN acceleration setpoint
- That invalid setpoint gets overridden by a failsafe that holds zero velocity
- Zero velocity leads to applying ~hover thrust briefly
2022-11-09 17:13:22 +01:00
Daniel Agar
84d1435880
ekf2: ensure minimum output buffer sizing
...
- buffer at least 2 samples for the IMU output predictor buffers
- dropping below 2 becomes problematic for the minimum observation
interval calculation and the vertical output buffer trapezoidal
integration
2022-11-09 09:49:35 -05:00
Damien SIX
9246d38667
commander: fix offboard disarm failsafe
2022-11-09 08:20:45 +01:00
Daniel Mesham
1e39c4828f
Check for OA interface failures only after it has been activated
...
The OA interface is 'activated' when it receives the first trajectory message.
2022-11-08 23:20:16 -05:00
Basti
e721d8dd8f
Split timeout check on avoidance input.
...
This split is necessary if the input from the mission computer might
switch from waypoints to bezier points. Otherwise
stays true.
2022-11-08 23:20:16 -05:00
Matthias Grob
c85d4fdb1c
MulticopterLandDetector: refactor maybe_landed condition
...
removing all early returns
2022-11-08 22:50:19 -05:00
PX4 BuildBot
b7d2868de9
Update submodule sitl_gazebo to latest Wed Nov 9 00:39:01 UTC 2022
...
- sitl_gazebo in PX4/Firmware (0e2b1ee979 ): https://github.com/PX4/PX4-SITL_gazebo/commit/56b5508b72f40339448f3525dd4dc51f30512cbd
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/b38e701ec4230a6105ace872447c0f63bc181d41
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/56b5508b72f40339448f3525dd4dc51f30512cbd...b38e701ec4230a6105ace872447c0f63bc181d41
b38e701 2022-11-03 frederictaillandier - adding jinja parameters
cc8f33d 2022-11-03 frederictaillandier - allowing to override the streaming gimbal ip and port
6c3f1f8 2022-11-03 alessandro - send orientation q with landing_target message (#919 )
48e764b 2022-11-02 Frederic Taillandier - allowing to override the video stream ip in a simpler way than using the jinja file (#923 )
2022-11-08 22:46:42 -05:00
Hamish Willee
0e2b1ee979
Update MAVLink so common includes standard ( #20542 )
2022-11-09 09:24:24 +11:00
Zachary Lowell
a9989df36c
Qurt uORB SLPI Implementation ( #20538 )
...
- allow uORB to be compiled and run on the qurt architecture.
2022-11-08 12:30:36 -05:00
Daniel Agar
5239993c88
ekf2: move EV vel to new state machine, introduce EKF2_EV_CTRL param
2022-11-08 11:46:41 -05:00
Daniel Agar
688dae1108
ekf2: add new EKF2_EV_QMIN parameter
2022-11-08 11:46:41 -05:00
Damien SIX
5910f8982a
fix warning (mavlink): connection to gcs
2022-11-08 13:02:23 +01:00
tanja
2eed5306c0
SPI: use official HW_VER_REV function
2022-11-08 07:48:21 +01:00
Chris Seto
6df2b68d72
Clean msp_osd help string and debug message
2022-11-07 21:05:17 -05:00
Matthias Grob
f1b6f22bac
AngularVelocityController: set timestamps on line before publishing
2022-11-07 21:04:25 -05:00
Matthias Grob
ae606488bd
MulticopterRateControl: set timestamp last before publishing torque and thrust setpoints
2022-11-07 21:04:25 -05:00
Junwoo Hwang
3e35f948d8
autopilot_tester: Make wait_until_ready also wait until vehicle can
...
arm
- Previously, due to the way MAVSDK's `health_all_ok` was implemented,
vehicle often didn't have a valid global position estimate (although
function returned true), and it wouldn't arm, and the SITL would fail
- Also sometimes as vehicle didn't have manual control, it entered weird
states where it wasn't able to arm as well
- This adds a check to make sure vehicle is able to arm, directly from
the Health struct
2022-11-08 11:53:43 +13:00
Daniel Agar
dac9f0dac4
boards: px4_fmu-v6x_default include systemcmds/gpio
2022-11-07 17:10:47 -05:00
Daniel Agar
4190353192
vehicle_magnetometer: fix standalone mag bias est factored into in flight mag cal
...
- preflight mag bias estimate is in the vehicle body frame and removed from the raw mag data after it's rotated, calibrated, etc
- in flight mag bias (from ekf2) is in the vehicle body frame, but stored as a sensor frame offset immediately
2022-11-07 09:31:17 -05:00
JaeyoungLim
a9542baf3c
Enable motor controls for tailsitter VTOLs in fixed wing mode (enable Quad Tailsitters) ( #20511 )
...
* Enable motor controls for fixed wing mode in tailsitters
This commit enable motor controls in fixed wing mode for tailsitters
This is needed for enabling quad tailsitters
* VTOL: differential thrust in FW: adapt params to be generic for all axes
Until now only suppoted on yaw axis. Not to be supported also on Roll and Pitch.
- VT_FW_DIFTHR_EN: make bitmask for all three axes independently. First bit is Yaw,
sucht that existing meaning of VT_FW_DIFTHR_EN doesn't change.
- VT_FW_DIFTHR_SC: rename to VT_FW_DIFTHR_S_Y and add same params for roll (_R) and
pitch (_P).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* Integrate differential control bits to three axis control
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-07 15:29:14 +01:00
Peter van der Perk
1fc1a81d8f
UCANS32K146 Add support for 2nd PWM
2022-11-03 06:26:52 -04:00
Beat Küng
6511866408
fix commander: check that offboard_control_mode data is recent
...
This is a regression from https://github.com/PX4/PX4-Autopilot/pull/20172
2022-11-02 10:11:29 -04:00
Daniel Agar
298cc61e07
ekf2: push fuse beta config into backend
2022-11-02 10:09:26 -04:00
Beat Küng
0996e5319f
commander: add preflight check for hardfault files on SD card
2022-11-02 09:59:00 -04:00
Beat Küng
ab3fe543d4
libevents: update submodule
2022-11-02 09:59:00 -04:00
Silvan Fuhrer
83e906e2e9
Control_allocator_status.msg: remove allocated_ fields
...
It's enough that the setpoints and the unallocated values are logged, from these
the allocated values can be calculated if required.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-02 14:56:13 +01:00
Silvan Fuhrer
f44713e8a3
ControlAllocator: enable custom saturation logic to override default one
...
Custom saturation logic currently implemented for Tiltrotor VTOL and Helicopter.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-02 14:56:13 +01:00
Silvan Fuhrer
2e20fb7f97
ActuatorEffectiveness: add _collective_ keyword to controls for collective tilt to disinct from yaw tilt
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-02 14:56:13 +01:00
Zachary Lowell
a2d0199516
Uncommenting Qurt platform task code ( #20533 )
2022-11-01 15:35:20 -07:00
Matthias Grob
7667883385
MulticopterLandDetector: make in descend detection depend on vertical speed threshold
...
It's very important that the in descend detection is always
at a strictly higher velocity than the vertical movement check.
This combination is basically used to check for vertical downwards
velocity tracking. Desired descend, no movement -> ground
If in descend threshold is lower than vertical movement it is
by definition even with perfect tracking the case that with
any velocity between the two thresholds there is no movement
even though a descend is commanded.
See first fix of this problem #7831
e39b38ba96
2022-11-01 18:35:54 +01:00
Matthias Grob
ac646d32e6
MulticopterLandDetector: Apply threshold widening only when landed, not maybe landed
2022-11-01 18:35:54 +01:00
Matthias Grob
509c37c373
MulticopterLandDetector: use quick access for xy angular velocity components
2022-11-01 18:35:54 +01:00
Matthias Grob
d9764f2ef4
MulticopterLandDetector: rename vertical velocity threshold variable
2022-11-01 18:35:54 +01:00
Silvan Fuhrer
06bf60672b
MC LandDetector: add constant (0.3) for vz threshold for in_descend flag
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-01 18:35:54 +01:00
Silvan Fuhrer
4e74473932
MC LandDetector: remove 2s phase after not maybe landed to still increase thresholds
...
I don't see where this is necessary. During takeoff, the maybe landed flag should
only get cleared once system is about to takeoff, and thus well after the spool up
is complete (for which the higher thresholds are meant in this case).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-01 18:35:54 +01:00
Silvan Fuhrer
91adb4c9e0
MC LandDetector: widen thresholds for vz and rotational movment always in maybe landed and 2s after
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-01 18:35:54 +01:00
Silvan Fuhrer
27309a45cc
MC LandDetector: remove dependency on MPC_LAND_SPEED and MPC_LAND_CRWL
...
Don't consider these params for vertical speed threshold,
and instead increase the default for LNDMC_Z_VEL_MAX and
use solely that one. Makes the land detector outcome more
predictable and its interal logic simpler, while the new
default tuning is resulting in about the same vz threshold
as before.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-01 18:35:54 +01:00
Silvan Fuhrer
263c7923d6
MPC params: MPC_LAN_CRWL: fix description and reduce min
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-01 18:35:54 +01:00
Silvan Fuhrer
bace45ba8d
LandDetector: log rotational_movement
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-11-01 18:35:54 +01:00
tanja
7097518373
px_uploader: Allow for multiple firmware files
2022-11-01 07:45:11 +01:00
benjinne
c5c634be7f
lisXmdl: use I2CSPIDriverConfig ( #20506 )
...
- allows to configure the I2C address
- lis3mdl: add 2nd possible address to start
2022-11-01 07:42:27 +01:00
Matthias Grob
afe1f82423
ver command: clarify PX4 version instead of FW version
2022-11-01 07:36:23 +01:00
JaeyoungLim
a90857f651
FW separate reset integrals for messages ( #20502 )
...
This commit separates integral resets for attitude and rate control setpoints
2022-11-01 06:06:27 +01:00
Zachary Lowell
6d2dd798a0
Qurt drv_hrt Implementation ( #20528 )
2022-10-31 15:40:29 -07:00
Zachary Lowell
82f63475d7
Qurt work_queue Implementation ( #20522 )
2022-10-31 09:59:10 -07:00
Eric Katzfey
34c852255e
Changed M_PI to M_PI_F in the matrix library since M_PI is non-standard. ( #20458 )
...
* Changed M_PI to M_PI_F in the matrix library since M_PI is non-standard.
* Added a new M_PI_PRECISE constant definition to px4_platform_common/defines.h to be
used in places when M_PI is desired but shouldn't be used because it is not C standard.
* Added the px4_platform_common/defines.h include to the matrix library math.hpp header to pull
in some non-standard M_PI constants and updated the test files to use those constants.
* Fixed PI constants in matrix helper test to prevent test failure
2022-10-31 11:51:23 -04:00
Thomas Debrunner
ba3f3935ab
hardfault_log: Correctly annotate adddresses for the stack trace in the hardfault log.
2022-10-31 06:36:11 -04:00
JaeyoungLim
3f5d7f38cd
Handle waypoint altitude acceptance radius for boats ( #20508 )
...
This corrects the waypoint handling logic to include boat type vehicles
2022-10-31 09:13:13 +01:00
Julian Oes
21f49ff5be
drivers: fix two includes for CLion
...
This fixes two errors where CLion complains:
error: 'size_t' does not name a type
2022-10-31 07:56:59 +01:00
PX4 BuildBot
80af8262b5
Update submodule mavlink to latest Sat Oct 29 12:39:05 UTC 2022
...
- mavlink in PX4/Firmware (f8b38591ac0bd31a87cb38ae4b2f7dd74400cda2): https://github.com/mavlink/mavlink/commit/dda5a18ddb002a871ba301bb584893ee6378e2f3
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/d012c7afd5f4e2a9388710596fd3eb9a1b3eb086
- Changes: https://github.com/mavlink/mavlink/compare/dda5a18ddb002a871ba301bb584893ee6378e2f3...d012c7afd5f4e2a9388710596fd3eb9a1b3eb086
d012c7af 2022-10-27 Hamish Willee - update pymavlink to latest (#1906 )
e1058881 2022-10-27 Hamish Willee - BATTERY_STATUS_V2 - update to 20221013 RFC version (#1846 )
27007cc3 2022-10-25 Hamish Willee - fix typo MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST (#1904 )
00007aca 2022-10-19 Hamish Willee - SET_DEFAULT_INTERVAL may be 0 (#1903 )
af35d3a4 2022-10-09 Ashish Kurmi - ci: add minimum GitHub token permissions for workflow (#1898 )
33dde554 2022-10-09 Siddharth Bharat Purohit - add vendor specs for cubepilot (#1901 )
2022-10-29 10:56:25 -04:00
PX4 BuildBot
a3caaa1372
Update submodule sitl_gazebo to latest Sat Oct 29 12:38:55 UTC 2022
...
- sitl_gazebo in PX4/Firmware (498937c56c ): https://github.com/PX4/PX4-SITL_gazebo/commit/e80432759540c91f85a012f47aa6ebb0ee9de7e4
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/56b5508b72f40339448f3525dd4dc51f30512cbd
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/e80432759540c91f85a012f47aa6ebb0ee9de7e4...56b5508b72f40339448f3525dd4dc51f30512cbd
56b5508 2022-10-13 junkdood - Update boat.sdf.jinja
2022-10-29 10:55:53 -04:00
Daniel Agar
d4fb1b1f8b
Update submodule GPS drivers to latest Sat Oct 29 12:39:01 UTC 2022
...
- GPS drivers in PX4/Firmware (d67b19ac1d41b2dcfc61ed6d353ae513ac3f4a82): https://github.com/PX4/PX4-GPSDrivers/commit/1ff87868f6008f06e2033ee05dd904ec54109e52
- GPS drivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/fa2177d690207e42e0d8c92e9663578340d44fe4
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/1ff87868f6008f06e2033ee05dd904ec54109e52...fa2177d690207e42e0d8c92e9663578340d44fe4
fa2177d 2022-10-10 Michael Schaeuble - Return from GPSDriverUBX::receive when ready, don't wait until no data is received
Co-authored-by: PX4 BuildBot <bot@px4.io >
2022-10-29 10:55:20 -04:00
Thomas Stastny
498937c56c
fw rate control: initialize rate control resets to false in stabilized mode
...
before there was a corner case where if in an auto mode that sets a reset command on the attitude setpoint message (e.g. auto takeoff), if the mode was then switched stabilized, this reset bool would never be changed back to false and the integrators would reset every cycle
2022-10-28 09:26:51 +02:00
Zachary Lowell
824e02a8b6
Qurt tasks implementation ( #20499 )
2022-10-27 14:46:47 -07:00
Eric Katzfey
fa74ee3d5b
perf: removed dprintf from perf library
...
* Removed dprintf from perf library since it is only ever used with fd=1 (STDOUT) so moved to PX4_INFO_RAW instead. This helps with some platforms (e.g. Qurt) which have some Posix support but not full Posix support.
2022-10-27 09:58:05 -04:00
Silvan Fuhrer
5edbc2f80a
Navigator: remove update of reposition setpoint at Transition command
...
This was previously required to reset the flight speed after a VTOL transition,
but is now no longer required as the DO_CHANGE_SPEED commands are handles directly
in the controllers.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-27 11:04:22 +02:00
Silvan Fuhrer
473b471fb6
Navigator: add guards for using mission_item.loiter_radius only if finite and >FLT_EPS
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-27 10:28:05 +02:00
Silvan Fuhrer
605d4c47b9
Navigator: initialize _mission_item for all navigation modes in Navigator::Navigator()
...
This fixes the issue where the init happended in the initializer list, at which point
the params were not yet initialized and thus resulted in random values for the init
values of _mission_item.loiter_radius and .acceptance_radius.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-27 10:28:05 +02:00
afwilkin
b834f2b5e3
README.md update for discord
2022-10-27 08:06:52 +02:00
Junwoo Hwang
c2b2ae55d9
payload_deliverer: Refactor & Handle vehicle command conflicts
...
Refactor
- Require reboot for PD_GRIPPER_EN parameter change
- Define gripper ACTION_NONE for readability. This makes implicit assumption that -1 equals no-action commanded more explicit
- Tidy the scattered vcmd_ack struct handling cases into a single function
- Refactor to remove return in the middle of function: avoids future complications where a programmer may expect the logic at the end of the function to be executed, but isn't
Vehicle Command Handling
- Cancel the previous running vehicle command if we receive a different vehicle command
- Reject vehicle command if we get a same one that is getting executed
- Save the source system & component of currently running vehicle command
- Added note about new discovered edge case of having same entity sending different gripper commands consequently, where an unexpected ack result may be received
2022-10-27 07:51:17 +02:00
Junwoo Hwang
6529e39f8b
payload_deliverer & gripper: Improve intermediate state & vcmd_ack
...
Gripper:
- Don't command gripper (via uORB `gripper` topic, which maps into an
actuator via Control Allocation) if we are already at the state we want
(e.g. Grabbed / Released) or in the intermediate state to the state we
want -> This prevents spamming on `gripper` topic
Payload Deliverer:
- Add read-once function for Gripper's released / grabbed state
- Send vehicle_command_ack for both release/grab actions.
TODO: target_system & target_component for the released/grabbed vcmd_ack
is incomplete, since we are not keeping track of the vehicle_command
that corresponds to this. This needs to be dealt with in the future, not
sure what the best solution it is for now.
Possible solutions:
- Queue-ing the vehicle command?
- Tying the gripper's action to specific vehicle command one-on-one, to make sure if we send multiple vehicle commands, we know
which command resulted in the action exactly?)
Only command Gripper grab when we are actually initializing gripper
- Previously, on every parameter update, gripper grab was being
commanded
- This commit narrows that scope to only when we are actually
initializing the gripper
Handle gripper de-initialization upon parameter change
- Also added some local state initialization code to init() function of
Gripper
- This will now make init / de-init more graceful & controlled compared
to before
2022-10-27 07:51:17 +02:00
Junwoo Hwang
36a3c716d6
Send IN_PROGRESS command ack when actuating gripper
...
- This hopefully then alerts the GCS that the command is getting
processed
- Referenced commander's `handle_command` function to implement this. As
it seems like GCS needs the acknowledgement of the command being
processed to execute such commands properly
- Also send FAILED command ack if we can't actuate the gripper
Fix wrong GRIPPER_ACTION conversion from floating point to int32_t
- Due to the MAVLink spec, we actually just convert enums into floating
point, so in PX4 we need to convert the float directly into integer as
well (although there can be precision issues on large numbers)
- This is a limitation in MAVLink spec, and should hopefully be
changed in MAVLink v2
2022-10-27 07:51:17 +02:00
Zachary Lowell
eb16730400
Qurt IOCTL dependency addition ( #20480 )
2022-10-26 12:09:07 -07:00
Beat Küng
25fe13583e
Jenskinsfile: use nuttx container as emscripten requires xz to be installed
...
Fixes the error:
Error: tar (child): xz: Cannot exec: No such file or directory
2022-10-26 14:54:48 -04:00
Zachary Lowell
740d2fccb1
qurt: update for functional logger
2022-10-25 21:07:15 -04:00
Zachary Lowell
bcae7e550b
Qurt platform/common dependency fixes
2022-10-25 21:06:00 -04:00
Daniel Agar
a242a0210e
Update world_magnetic_model to latest Mon 24 Oct 2022 09:29:11 PM EDT
2022-10-25 09:20:01 -04:00
Daniel Agar
c32cf21b63
commander: estimator check shorten messages
...
- otherwise these are awkwardly split in mavlink
2022-10-25 08:02:47 +02:00
Daniel Agar
a7b909234b
commander: estimator nav test is not an arming check
2022-10-25 08:01:30 +02:00
Daniel Agar
6f861ba889
ekf2: pos/vel reset helpers pass new variance
...
- optical flow velocity reset use already computed _flow_vel_ne
2022-10-24 10:59:58 -04:00
thomas
f9f466854b
abort front transition in vtol module instead of in navigator/rtl.cpp
2022-10-24 13:55:41 +02:00
thomas
26c36a96f2
remove unnecessary check. correct int comparison.
2022-10-24 13:55:41 +02:00
thomas
bf98503dec
better return altitude initialisation
2022-10-24 13:55:41 +02:00
thomas
f771c7ff63
back transition if RTL is called during front transition
2022-10-24 13:55:41 +02:00
Hamish Willee
96a305322a
params/uorb docs: rename mixer to control allocation ( #20447 )
2022-10-24 13:22:26 +02:00
Igor Mišić
1c5750b292
mavlink: add support for uAvionix transmitters
2022-10-24 11:56:17 +02:00
Igor Mišić
c35ae7260b
transponder/sagetech_mxs: move the ADS-B related parameters to the lib
...
ADS-B parameters can be reused for other ADS-B devices
2022-10-24 11:56:17 +02:00
Igor Mišić
4e6c094a54
mavlink/CMakeLists: add uAvionix dialect
2022-10-24 11:56:17 +02:00
Silvan Fuhrer
128e49358e
Wind Estimator: remove filter reset due to beta fusion timeout
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-24 09:56:18 +02:00
Daniel Agar
ed558e199f
ekf2: remove realignYawGPS() (replaced with yaw estimator)
2022-10-21 09:01:30 -04:00
Silvan Fuhrer
c267cf71c3
FW Position Control: fix entering of no-position-estimate failsafes
...
Affects the states AUTO_ALTITUDE and AUTO_CLIMBRATE. Those modes should only be entered
if armed (as they are pure failsafe modes). Also allow though to enter them even if
the position setpoint(s) are invalid, as they are not needed.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-21 09:51:38 +02:00
Silvan Fuhrer
67b2c835e0
FW Positon control: do not use position_setpoint.valid to validate current position_setpoint
...
Instead of checking the .valid flag of position_setpoint, check for ISFINITE() of lat, lon, alt
when pulling the position_setpoint triplet. This fixes problems where the .valid flag didn't
reflect the proper state of the setpoint (e.g. .valid was true, .lat though NAN)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-21 09:51:38 +02:00
Silvan Fuhrer
d8e483ae20
TECS: guard against NAN airspeed setpoints
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-21 09:51:38 +02:00
Eric Katzfey
4afd19f037
Moved the bad-function-cast compiler warning option out of the common flags and into
...
the nuttx and posix specific options files since this option cannot be used with
the qurt platform. There are header files in the hexagon sdk that fail this check.
2022-10-20 18:18:40 -04:00
bresch
96e7ea7a08
ekf2: remove old mag declination auto-code
2022-10-20 18:16:25 -04:00
bresch
f0a0a3e545
ekf2_test: compare mag decl fusion sympy vs symforce
2022-10-20 18:16:25 -04:00
bresch
2f3ea88099
ekf2: migrate mag declination to SymForce
2022-10-20 18:16:25 -04:00
Beniamino Pozzan
7786437a19
Makefile: remove update_ros2_bridge make commands
...
as Tools/update_px4_ros2_bridge.sh as been deleted
update_ros2_bridge, update_px4_ros_com and update_px4_msgs
are no more needed
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2022-10-20 17:43:16 -04:00
Daniel Agar
5030b21d2e
ekf2: replace quatToInverseRotMat if only used once
2022-10-20 14:15:32 -04:00
Daniel Agar
fb3adc3faa
ekf2: move baro compensation to delayed time horizon and add validity check
...
- this removes an unnecessary virtual call and simplifies things a bit
Co-authored-by: bresch <brescianimathieu@gmail.com >
2022-10-20 09:17:55 -04:00
Daniel Agar
b400b7fcc4
vehicle_angular_velocity: ESC RPM notch filters minimize filter resets ( #20449 )
...
- vehicle_angular_velocity: ESC RPM notch filters minimize filter resets
- only allow one filter init per axis per cycle
- "park" ESC notch filters at min frequency instead of full disable
- relax timeout before a notch filter is disabled
- add new parameter IMU_GYRO_DNF_MIN for configuring the minimum notch filter frequency
2022-10-20 09:05:23 -04:00
bresch
89bc28e836
wind_est: extract utility functions to separate file
2022-10-20 11:41:46 +02:00
bresch
2549054b28
wind_est: remove old derivation
...
replaced by derivation.py
2022-10-20 11:41:46 +02:00
bresch
7115d5643c
wind_est: auto-generate initialization of state and cov matrix
2022-10-20 11:41:46 +02:00
bresch
a7124d3738
wind_est: auto-generate beta fusion using Symforce
2022-10-20 11:41:46 +02:00
bresch
487b84e90b
wind_est: place codegen details in function
2022-10-20 11:41:46 +02:00
Daniel Agar
fe80e7aa46
commander: respect COM_CPU_MAX for overload and adjust default threshold
2022-10-19 20:25:06 -04:00
Daniel Agar
309465858a
commander: elapsed time checks avoid subtracting unsigned integers
...
- avoid the possibility of unsigned underflow from subtracting two HRT timestamps (uint64_t)
- most of these aren't problematic, but people tend to replicate the pattern, so it's better to be safe
- likely wasn't a problem when people were using hrt_absolute_time() in place, but if using an existing timestamp there's the possibility it's older than a more recent topic update
2022-10-19 20:21:36 -04:00
Daniel Agar
cea185268e
msg ROS2 compatibility, microdds_client improvements (timesync, reduced code size, added topics, etc), fastrtps purge
...
- update all msgs to be directly compatible with ROS2
- microdds_client improvements
- timesync
- reduced code size
- add to most default builds if we can afford it
- lots of other little changes
- purge fastrtps (I tried to save this multiple times, but kept hitting roadblocks)
2022-10-19 19:36:47 -04:00
Daniel Agar
e211e0ca0e
commander: limit some estimator checks to prearm
2022-10-19 19:06:56 -04:00
David Sidrane
f60b883041
px4_fmu-v6:Add Revision 1 to manifest to note I2C4 is only internal
2022-10-19 15:48:34 -04:00
Daniel Agar
f9509b442c
ekf2: height aid source consistency ( #20405 )
...
- working towards keeping all height source (baro/ev/gnss/rng) handling as consistent as possible, possibly refactoring these out into separate classes later
2022-10-19 15:35:07 -04:00
Matthias Grob
870229ef49
FunctionsTest: add isFinite() tests with Vector3f arguments
2022-10-19 19:09:20 +02:00
Matthias Grob
5ca28dd6dc
Use isAllFinite() in all places that check finiteness on entire vectors or matrices
2022-10-19 19:09:20 +02:00
Matthias Grob
93de9567a5
Matrix: add isAllFinite() to check if every element is finite
2022-10-19 19:09:20 +02:00
bresch
f77d7d9413
[AUTO COMMIT] update change indication
2022-10-19 17:34:31 +02:00
bresch
cf9859965a
ekf2: remove old yaw fusion auto-code
2022-10-19 17:34:31 +02:00
bresch
e33215b61c
ekf2_test: compare yaw fusion sympy vs symforce
2022-10-19 17:34:31 +02:00
bresch
42f683fa64
ekf2_test: test using positive definite covariance matrix
...
A covariance matrix needs to be positive definite
2022-10-19 17:34:31 +02:00
bresch
10f9ac148f
ekf2: migrate mag yaw fusion to SymForce
2022-10-19 17:34:31 +02:00
bresch
a41b6f416e
ekf2_test: verify heading innov variance in all orientations
2022-10-19 17:34:31 +02:00
bresch
f11908a266
ekf2: generate yaw fusion jacobians using symforce
2022-10-19 17:34:31 +02:00
Peter van der Perk
ccd90ede7a
Added io_bypass_control daemon to control IO directly from uORB useful RTPS full offboard ( #20422 )
2022-10-19 09:15:12 -04:00
Silvan Fuhrer
aade01776a
airspeed selector: only do sideslip fusion (for airspeed less wind estimate) if not landed
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-19 10:35:28 +02:00
Silvan Fuhrer
ebc883f157
airspeed selector: remove redundant armed check (it already checks for in_air)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-19 10:35:28 +02:00
Silvan Fuhrer
0c4b2cd0c5
airspeed_selector: update wind estimator (w/o airspeed fusion) always if in FW mode
...
This fixes a bug where by accident the vtol_status was considered instead of the
vehicle_status, preventing it from running on planes.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-19 10:35:28 +02:00
Jaeyoung Lim
7e49147bcf
Fix feedforward acceleration setpoints for fixedwing offboard position
...
This commit fixes feedforward acceleration setpoints for fixedwing offboard position control.
Previously when acceleration feedforward inputs were sent, negative curvature accelerations were not being computed properly
2022-10-19 09:15:13 +02:00
Daniel Agar
b71fc63162
ekf2: fix sideslip timeout (typo)
2022-10-18 18:38:25 -04:00
Daniel Agar
0d2ff6e224
ekf2: test ekf_logger further reduce std::precision to minimize false positives
2022-10-18 14:19:16 -04:00
Daniel Agar
535415a537
ekf2: add OF estimator aid src status
2022-10-18 14:19:16 -04:00
Matthias Grob
75c63aee2a
Fix confusion between trajectory_setpoint and vehicle_local_postion_setpoint
2022-10-17 16:18:00 -04:00
Daniel Agar
7c237fca74
boards: px4_sitl use Mavlink development dialect
2022-10-17 16:16:36 -04:00
Daniel Agar
743200df22
mavlink: move mavlink dialect selection to kconfig
2022-10-17 16:16:36 -04:00
Daniel Agar
d792a3ff5b
simulator_mavlink: use existing development/common mavlink generation if available
2022-10-17 16:16:36 -04:00
Hamish Willee
2a9801f191
Default mavlink dialect should be common.xml
2022-10-17 16:16:36 -04:00
bresch
8b9ac2d7f3
ekf2: remove old mag 3D fusion auto-code
2022-10-17 16:14:56 -04:00
bresch
77a36219c6
ekf2_test: compare 3D mag fusion sympy vs symforce
2022-10-17 16:14:56 -04:00
bresch
b92cbe12a0
ekf2: migrate mag 3D fusion to symforce
...
ekf2: merge mag 3d innov var, Hx and Kx computation to reduce flash
Slightly less code produced, almost no performance change
ekf2_mag3D: do not pre-compute Kalman gains
The vector of Kalaman gains is not too expensive to compute using
matrix-vector multiplication. Pre-generating it using CSE takes a lot of
flash space for little benefit.
2022-10-17 16:14:56 -04:00
Silvan Fuhrer
5ea8c6e507
FlightTaskAuto: remove unused _getTargetVelocityXY()
...
Inclusive velocity_valid field in position_setpoint message that's then
no longer needed.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-17 16:12:15 -04:00
Silvan Fuhrer
42c613a0c7
position_setpoint.msg: remove unused alt_valid
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-17 16:12:15 -04:00
Silvan Fuhrer
42dd9b5063
position_setpoint.msg: remove unused velocity_frame field
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-17 16:12:15 -04:00
Daniel Agar
0d6766d14d
limit vehicle_command subscription updates per cycle
...
- this is a precaution to eliminate the possibility of getting stuck in
a loop trying to keep up with a high rate publication that could be
coming from a higher priority task
2022-10-17 16:10:51 -04:00
Daniel Agar
677f3e9294
sensors/vehicle_optical_flow: limit gyro updates and generation lost error per cycle
...
- in the worst case scenario printing the error message can take longer than the next gyro publication, so combined with an infinite loop you could get stuck here
2022-10-17 13:45:04 -04:00
Alex Klimaj
8545164869
sensors/vehicle_optical_flow: only get gyro if optical flow delta angle not available ( #20416 )
2022-10-17 10:23:36 -04:00
Daniel Agar
116bb6049f
ekf2: fusion helper consistency
...
- yaw fusion use measurementUpdate()
- fuseVelPosHeight() respect _accel_bias_inhibit (like measurementUpdate())
2022-10-17 10:17:31 -04:00
Silvan Fuhrer
7bc90c7f00
FW rate controller gains: put default for all IMAX gains to 0.4
...
The previous default for yaw and roll was 0.2, which is very low, and for wheel was
1, which is very high. A value of 0.4 makes sense to me for all axes.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-17 10:27:09 +02:00
Silvan Fuhrer
4bbe8f3c0d
FW rate controller gains: open up some limitis for the rate controller gains
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-17 10:27:09 +02:00
Silvan Fuhrer
e2d1e79614
FW rate controller gains: reduce max FW_YR_I from 50 to 1
...
I guess this was a left over from times where the controller had a completely different structure,
a value of 50 is well outside of reasonable range (50x the default).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-17 10:27:09 +02:00
Silvan Fuhrer
ea44c89366
FW rate controller gains: reduce max FF gains to 1
...
The previous max of 10 for the FF gains seems a bit very high for me, well outside
of reasonable reange.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-17 10:27:09 +02:00
bresch
458e5a6b0e
ekf2: update change indicator
2022-10-14 11:42:23 -04:00
bresch
1b4092abbb
symforce: temporarily remove custom cmake command
...
otherwise the generated files are removed with make clean
2022-10-14 11:42:23 -04:00
bresch
a8a3107c05
ekf2: remove old covariance prediction code
2022-10-14 11:42:23 -04:00
bresch
df084d65e3
ekf2_test: compare covariance prediction sympy vs symforce
2022-10-14 11:42:23 -04:00
bresch
a4e511b90e
ekf2: migrate covariance prediction to SymForce
2022-10-14 11:42:23 -04:00
chris1seto
079dfdf209
drivers/osd/msp_osd: cleanup and small fixes/additions ( #20399 )
...
- Fixed clearing arming word if flightmode unknown
- Added power and cell voltage elements
- New OSD layout
- Fixed home direction/distance are now correct
Co-authored-by: Chris Seto <chris1seto@gmail.com >
2022-10-14 10:54:14 -04:00
Beat Küng
3c290d812d
commander: use printRejectMode() also for rtl, takeoff, land & mission commands
2022-10-13 16:05:25 -04:00
Beat Küng
d542ffc10c
refactor vehicle_status_flags: rename to failsafe_flags
2022-10-13 16:05:25 -04:00
Beat Küng
f9c8e760b1
CI: add failsafe web build & deployment to the user guide
2022-10-13 16:05:25 -04:00
chris1seto
0ddba3ea90
Fix Discord badge not a link in README ( #20406 )
...
* Add link to image
* Update link to nice permalink
Co-authored-by: Chris Seto <chris1seto@gmail.com >
2022-10-13 11:05:28 -07:00
Daniel Agar
2de990fd4b
estimator_aid_source split GNSS pos (3d) -> pos (2d) + hgt
...
- per estimator air source status only keep a single set of flags and
timestamp that applies to the entire source
2022-10-13 11:28:50 -04:00
David Sidrane
8a9a091ff3
nxp_fmurt1062-v1:Timer configuration for 1 channel per group (timer)
2022-10-13 08:17:51 +02:00
David Sidrane
3be8d52c8e
imxrt:io_timers Support 1 channel per group (timer)
2022-10-13 08:17:51 +02:00
David Sidrane
7f7137320a
fix imxrt: use 1:1 timer group to channel association
2022-10-13 08:17:51 +02:00
chris1seto
7e9ec325f7
Convert README to Discord ( #20400 )
2022-10-12 21:41:00 -07:00
bresch
bdd043f27f
ekf2: fix sideslip fusion sign
2022-10-12 16:14:47 +02:00
bresch
53865118fb
ekf2: remove old sideslip fusion code
2022-10-12 09:55:35 -04:00
bresch
f7c749c9cd
ekf2_test: compare sideslip fusion of Sympy and SymForce
2022-10-12 09:55:35 -04:00
bresch
d0f92bfbd5
ekf2_test: create helper functions for auto-generated code diff
2022-10-12 09:55:35 -04:00
bresch
5f54f6fcda
ekf2: migrate sideslip fusion to SymForce
...
- split fusion into update (compute innov and innov_var) and actual fusion to the state vector
- use estimator_aid_source_1d struct to group the data
2022-10-12 09:55:35 -04:00
Beat Küng
c09be0f0ac
airframes: add r1 again
...
This was dropped in f454dcef6b
2022-10-12 07:35:35 +02:00
Beat Küng
9b7a8d4568
vehicle_status_flags: add group 'Other'
2022-10-11 22:31:20 -04:00
Beat Küng
f7819f5dba
commander: reorder update calls
...
Moves the arming checks before the command handling.
This reduces the chance of race conditions. However it does not prevent
them! The SDK will need to check when offboard is ready to run/arm to fix
this.
Specifically this is for sitl offboard tests, where offboard_control_mode
is updated and immediately after a mode switch into offboard is commanded.
2022-10-11 22:31:20 -04:00
Beat Küng
38d3739b6d
refactor commander: rename rc_signal_lost -> manual_control_signal_lost, data_link_lost -> gcs_connection_lost
2022-10-11 22:31:20 -04:00
Beat Küng
e2d8ca73a5
commander: add unit tests for failsafe state machine
2022-10-11 22:31:20 -04:00
Beat Küng
3d1da597dd
commander: run arming checks on _offboard_control_mode_sub update
2022-10-11 22:31:20 -04:00
Beat Küng
6ee2252b8c
events: handle events being generated before a mavlink module started
...
- do not print dropped events warnings
- make sure current sequence is still sent with reset flag
2022-10-11 22:31:20 -04:00
Beat Küng
3fcdf40a47
events: use PRIx32 to print uint32
2022-10-11 22:31:20 -04:00
Beat Küng
acaa50a448
geofence: add and report reason for violation
2022-10-11 22:31:20 -04:00
mcsauder
ebc88afe46
Apply Google Style to Commander Private methods, rename geofence message geofence_violation to primary_geofence_breached.
2022-10-11 22:31:20 -04:00
Beat Küng
693af897b3
commander: check if battery was already disconnected on arming
...
If so, don't report.
Happens e.g. with USB powered pixhawk.
2022-10-11 22:31:20 -04:00
Beat Küng
24142bc014
commander: RcCalibrationChecks: avoid param access on each cycle
...
reduces cpu usage a bit
2022-10-11 22:31:20 -04:00
Beat Küng
c72c580a0b
commander: run arming checks @ 10Hz
...
Required for things like RC loss.
2022-10-11 22:31:20 -04:00
Beat Küng
6fda555cba
commander: move ownership of vehicle_status_flags_s to HealthAndArmingChecks
2022-10-11 22:31:20 -04:00
Beat Küng
cf2eb69d25
px4events/srcparser: ensure message is a string literal
2022-10-11 22:31:20 -04:00
Beat Küng
500a896a56
commander: print reason for mode rejection & report for GCS switches as well
2022-10-11 22:31:20 -04:00
Beat Küng
e4bb219d10
vehicle_status_flags: cleanup message, move non-failsafe flags to vehicle_status
2022-10-11 22:31:20 -04:00
Beat Küng
ae6377dfa0
mission_result: remove unused fields
2022-10-11 22:31:20 -04:00
Beat Küng
455b885f86
commander: use new failsafe state machine and add user intention class
2022-10-11 22:31:20 -04:00
Beat Küng
a04230faa1
commander: add failsafe state machine with webassembly simulation
...
to run the simulation:
install sdk: https://emscripten.org/docs/getting_started/downloads.html
make run_failsafe_web_server
open http://0.0.0.0:8000/
Co-authored-by: Konrad <konrad@auterion.com >
2022-10-11 22:31:20 -04:00
Beat Küng
82911e48be
fix commander: check estimator type & avoid timestamp wrap-around
...
Before it was possible that the publication timestamp was never than 'now',
leading to wrap-around.
2022-10-11 22:31:20 -04:00
Beat Küng
27f8298bb9
fix commander: add local position requirement to NAVIGATION_STATE_AUTO_LAND
2022-10-11 22:31:20 -04:00
Beat Küng
57c7b5e843
flight_mode_manager: reduce error verbosity & remove mode switching
...
While disarmed, commander allows to be in any mode now.
2022-10-11 22:31:20 -04:00
Beat Küng
31dfdea12e
commander: remove state_machine_helper tests
2022-10-11 22:31:20 -04:00
Beat Küng
e9387cac1d
mavlink: move get_px4_custom_mode to px4_custom_mode.h
2022-10-11 22:31:20 -04:00
Silvan Fuhrer
9159f020cb
mavlink local_position_ned: always publish on update, not just when xy and v_xy valid
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-11 00:47:32 -04:00
Daniel Agar
ce609144b0
simulation/gz_bridge: fix implicit floating-point conversions
2022-10-09 14:11:19 -04:00
Daniel Agar
9010029e0d
lib/drivers/device: Device.hpp fully init devid
...
- constructor use available setters
2022-10-09 13:49:39 -04:00
Daniel Agar
f3964513c7
sensors: fix accel/gyro/mag calibration offset units
2022-10-09 13:02:38 -04:00
Daniel Agar
ee4821ed0a
commander: relax COM_ARM_MAG_ANG default to minimize false positives
...
- this check is mainly intended for catching blatant setup problems like a magnetometer that's mounted 90 or 180 degrees off
2022-10-09 12:41:06 -04:00
fkaiser
30150f723a
Tools/px_uploader.py: use monotonic clock if available ( #20352 )
...
Signed-off-by: fkaiser <fabian.kaiser@wingtra.com >
2022-10-06 09:49:05 -04:00
alexklimaj
064f3f86bc
Increase mag calibration max_var_allowed
2022-10-06 08:44:36 -04:00
Hamish Willee
022aa13aa1
mpu9250_i2c - also needs docs update
2022-10-05 20:26:25 -04:00
Hamish Willee
6d612b1ba4
MPU9250 driver doc incorrect
2022-10-05 20:26:25 -04:00
Daniel Agar
8cc39096cb
load_mon: NuttX cpuload use system times for calculation
...
- this is to minimize the impact of any load_mon scheduling jitter in the sampled load percentage
2022-10-05 14:21:38 -04:00
benjinne
29b031c862
Tools/setup/ubuntu.sh update comment to include 22.04
2022-10-05 13:41:47 -04:00
Daniel Agar
5f0a539633
gps_blending: fix blending init to best instance
...
- output GPS publication defaults to best input instance
- blended states are explicitly cleared and then populated with
weighted blend
2022-10-05 10:26:48 -04:00
Beat Küng
f79dad1e63
fix ROMFS: run camera trigger, capture and PPS before pwm_out
...
As they might need to reserve the pwm pins.
2022-10-05 09:13:35 -04:00
Matthias Grob
46e6e83e14
Commander: allow disarmin not-landed boat like rover
...
This is a hotfix and a boat should never even detect a takeoff
in normal operation.
2022-10-05 09:07:18 -04:00
Beat Küng
dafead6f20
logger: add compressed events metadata file if it exists in the ROMFS
...
Allows to decode events not (yet) on main.
The file is currently ~15KB.
2022-10-05 07:44:55 +02:00
Beat Küng
02035d94aa
metadata: sort json output
...
ensures the files don't change arbitrarily
2022-10-05 07:44:55 +02:00
modaltb
06a0aedbdb
modalai_esc: directly using deadband param value instead of converting it to RPM
2022-10-04 20:14:59 -04:00
Thomas Debrunner
0af87ec745
mavlink: initial OPEN_DRONE_ID_BASIC_ID/OPEN_DRONE_ID_LOCATION support
2022-10-04 14:40:59 -04:00
Matthias Grob
b179427b4c
Remove opinionated non-default MPC_TKO_SPEED from airframes
2022-10-04 11:36:57 -04:00
pandafeng1999
e4b4df4e5d
drivers/distance_sensor/gy_us42: add the specified i2c address
2022-10-04 11:35:45 -04:00
Matthias Grob
f96507bb22
vtol_takeoff: fix comment typo
2022-10-04 10:01:04 -04:00
Peter van der Perk
c807d6079d
FMUK66-V3 Enable DMA on SPI
2022-10-04 09:46:04 -04:00
Peter van der Perk
0cf2ecedb9
FMUK66 Disable Telnet to save RAM
2022-10-04 09:46:04 -04:00
Julian Oes
5c77bbcb4c
ms5611: ignore reading 0
...
This prevents publishing a negative pressure which leads to a NAN
altitude estimate further down the line.
2022-10-04 09:37:53 -04:00
Beat Küng
04b1cbb423
vtol_att_control: standard: also do blending for FW controls
...
So that the sum of the control is always 1.
2022-10-04 09:54:11 +02:00
Silvan Fuhrer
6db92b4011
ControlAllocation: remove actuator trim value from actuator_sp to calculate allocated control
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-10-04 07:51:25 +02:00
Zachary Lowell
4520186878
qurt: replacing qurt threads with pthread
2022-10-03 18:01:04 -04:00
bresch
4b687beb3b
ekf2: remove old airspeed fusion code
2022-10-03 10:59:42 -04:00
bresch
299e6058e3
ekf2_test: test airspeed symforce vs sympy generated code
2022-10-03 10:59:42 -04:00
bresch
29ebef1f74
ekf2: migrate fuse_airspeed to SymForce
2022-10-03 10:59:42 -04:00
Daniel Agar
41cda14126
ekf2: add symforce code generation helper target
2022-10-03 10:59:42 -04:00
Daniel Agar
c9441bb48a
boards: px4_fmu-v2/v3 allow optional mpu9250 probe to fail without error
2022-10-02 21:40:18 -04:00
Benjamin Perseghetti
aa2b47845a
new Gazebo simulation handle older gz versions ( #20342 )
2022-10-02 21:30:30 -04:00
PX4 BuildBot
f4d2e176ae
Update submodule sitl_gazebo to latest Sun Oct 2 12:38:54 UTC 2022
...
- sitl_gazebo in PX4/Firmware (2bd1ac005f ): https://github.com/PX4/PX4-SITL_gazebo/commit/b968405a617005ba0a793a8b4703913d4c6eff5f
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/e80432759540c91f85a012f47aa6ebb0ee9de7e4
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/b968405a617005ba0a793a8b4703913d4c6eff5f...e80432759540c91f85a012f47aa6ebb0ee9de7e4
e804327 2022-10-01 Thomas Stauber - set lidar measurements to 0.0 if out of range (#914 )
7ed1da6 2022-09-27 Karthik S - Advanced Lift-Drag Plugin (#901 )
669d7f5 2022-09-08 Oleg Kalachev - Fix local addr assignment for qgc and sdk sockets
2022-10-02 10:54:31 -04:00
PX4 BuildBot
f7a5c91fb3
Update submodule libcanard to latest Sun Oct 2 12:38:56 UTC 2022
...
- libcanard in PX4/Firmware (8e144eece9e9cd5a23dbeb6723591f214cad631a): https://github.com/opencyphal/libcanard/commit/db87ea32aa092c48ea103963138b6346dd3e9008
- libcanard current upstream: https://github.com/opencyphal/libcanard/commit/2e3b11f6b8325080c160d38521b169b0bbb6b1c7
- Changes: https://github.com/opencyphal/libcanard/compare/db87ea32aa092c48ea103963138b6346dd3e9008...2e3b11f6b8325080c160d38521b169b0bbb6b1c7
2e3b11f 2022-07-15 Pavel Kirienko - Follow-up for #197 -- fix minor issues discovered by Sonar (#198 )
106ceaf 2022-07-11 Dmitry Ponomarev - Fix cast-align warnings on ARM
8953fe6 2022-07-06 Dmitry Ponomarev - Add ARM build to github workflow
2022-10-02 10:54:05 -04:00
PX4 BuildBot
644a836d0a
Update submodule libevents to latest Sun Oct 2 12:39:02 UTC 2022
...
- libevents in PX4/Firmware (ddc1e6d6c5c2707be5522d4c4d7434403202cf45): https://github.com/mavlink/libevents/commit/82dabdb914d7bd640c281900e2852d0afc074b68
- libevents current upstream: https://github.com/mavlink/libevents/commit/a89808bffd1efb0543e66f17a7fa12dfce5e6bf0
- Changes: https://github.com/mavlink/libevents/compare/82dabdb914d7bd640c281900e2852d0afc074b68...a89808bffd1efb0543e66f17a7fa12dfce5e6bf0
a89808b 2022-09-26 Beat Küng - combine.py: sort json keys
2022-10-02 10:53:28 -04:00
PX4 BuildBot
cf0cd4ebf2
Update submodule mavlink to latest Sun Oct 2 12:39:04 UTC 2022
...
- mavlink in PX4/Firmware (65bd1fd4c000a7fa0de2a0e8dce1ba9b2a62fa86): https://github.com/mavlink/mavlink/commit/c46af523263ff0dad59afe018fe387c1df030442
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/dda5a18ddb002a871ba301bb584893ee6378e2f3
- Changes: https://github.com/mavlink/mavlink/compare/c46af523263ff0dad59afe018fe387c1df030442...dda5a18ddb002a871ba301bb584893ee6378e2f3
dda5a18d 2022-09-28 WickedShell - Support a return to default speed for DO_CHANGE_SPEED (#1890 )
4e04dbbf 2022-09-24 Hamish Willee - MAV_FRAME_BODY_FRD - match to implementations and sanity (#1894 )
89a61214 2022-09-23 Hamish Willee - DO_CHANGE_SPEED - clarify lifetime of speed setting (#1892 )
11414f88 2022-09-21 Søren Friis - Clarify swarm fields (#1891 )
5cdf8b60 2022-09-08 Hamish Willee - HOME_POSITION - clarify local frame means NED (#1886 )
551e3b49 2022-09-07 Julian Oes - Fix CI (#1888 )
d99ee9b6 2022-09-07 Julian Oes - pymavlink: update submodule to latest master (#1887 )
92d2a58d 2022-09-01 Hamish Willee - common.xml:TIMESYNC docs and extensions (#1878 )
c424dc65 2022-09-01 Julian Oes - minimal: try to make component ID less confusing (#1876 )
153939bd 2022-09-01 Hamish Willee - Fix typo MAV_CMD_DO_SET_MISSION_CURRENT
5043a1e0 2022-09-01 Hamish Willee - MAV_CMD_DO_SET_MISSION_CURRENT - allow mission resetting (#1870 )
90aa7bfc 2022-08-31 Chikirev Sirguy - Update common.xml (#1815 )
554ccadd 2022-08-31 Hamish Willee - common: OpenDroneID messages no longer WIP (#1882 )
06448cf6 2022-08-24 Hamish Willee - MAV_ODID_ARM_STATUS entries update to naming convention (#1883 )
ff649224 2022-08-18 Patrick José Pereira - Fix gibberish descriptions ualberta.xml (#1881 )
11f4b236 2022-08-18 Hamish Willee - Mission item - document values for autocontinue (#1868 )
fb8ac31b 2022-08-18 Julian Oes - development: remove MISSION_CHANGED (#1879 )
76b794c2 2022-08-18 Julian Oes - common: extend MISSION_CURRENT (#1869 )
1ae3edc4 2022-08-15 Andrew Tridgell - common: added OPEN_DRONE_ID_SYSTEM_UPDATE message (#1880 )
aa25f4df 2022-08-11 Andrew Tridgell - common: added OPEN_DRONE_ID_ARM_STATUS (#1873 )
2022-10-02 10:53:00 -04:00
Daniel Agar
2bd1ac005f
.gitmodules update branches master -> main
2022-10-01 12:22:22 -04:00
Silvan Fuhrer
9b3cb6c758
FW Attitdue controller: fix throttle in acro (use _rate_sp.throttle_body) ( #20330 )
...
* FW Attitdue controller: fix throttle in acro (use _rate_sp.throttle_body)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* FW Attitude controller: do manual control polling before attitude setpoint polling
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-30 13:45:20 +02:00
Silvan Fuhrer
34b6786f79
actuator_controls.msg: fix NUM_ACTUATOR_CONTROLS (9)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-29 14:25:16 -04:00
Beat Küng
64ae0049de
mission: add support for NAV_CMD_DO_SET_ACTUATOR
2022-09-29 14:23:16 -04:00
Daniel Agar
a27aeb30bf
mc_pos_control: fix trajectory setpoint copy
...
- trajectory_setpoint and vehicle_local_position_setpoint used to be
the same data type
- we got extremely lucky here that this didn't cause any issues due to
all the fields still aligning
2022-09-29 14:17:00 -04:00
bresch
20b46ad33f
ekf2_test: test validity of local position when not at rest
...
At rest, the zero velocity update keeps the local position valid all the
time. Deactivate it to be able to test the validity checks
2022-09-29 14:16:36 -04:00
bresch
1914053db2
ekf2: synchronize z_valid and v_z_valid
...
mc_pos_control doesn't handle all the cases at the moment
2022-09-29 14:16:36 -04:00
bresch
f753b92cff
ekf2: start fake pos fusion after dead-reckoning timeout
...
Starting the fake position as soon as all the aiding sources stop makes
the local position immediately invalid while we could continue to navigate
for a couple of second with inertial dead-reckoning
2022-09-29 14:16:36 -04:00
bresch
bb790c9bec
ekf2: add vertical dead-reckoning timeout check for height validity
2022-09-29 14:16:36 -04:00
Thomas Stastny
da99387215
welford mean: protect against negative variances
2022-09-29 14:14:16 -04:00
Thomas Stastny
d3849c0265
welford mean: convert to matrix only template
2022-09-29 14:14:16 -04:00
Daniel Agar
d4e5876d4c
vehicle_imu: only reset raw accel/gyro Welford mean periodically
...
- vehicle_imu_status can publish immediately on any measured sample
rate change or sensor error increment, but the windowed mean/variance
shouldn't necessarily reset that often
2022-09-29 14:14:16 -04:00
Benjamin Perseghetti
f9522e831c
Gazebo Simulation Enablement ( #20319 )
2022-09-29 13:49:31 -04:00
Silvan Fuhrer
f89df9d986
VTOL: make const and return when either of mc or fw att sp isn't updated
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-29 16:01:43 +02:00
Silvan Fuhrer
fdcbabeb9e
VTOL Tailsitter: don't use the fw attitude sp for determing the initial pitch if not recent
...
Use a pitch of 0 to initialize the ramp otherwise.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-29 16:01:43 +02:00
Silvan Fuhrer
9c5a423753
VTOL: in update_transition_state(): check that needed virtual attitude setpoints are recent
...
This is to prevent that that data from non-recent publications of the virtual
attitude setpoints are used in the transition code.
It removes the previous implementation where the update_transition_state()
method was only run when both mc and fw virtual att sp where recent, independetly
of whether both are used or not.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-29 16:01:43 +02:00
Silvan Fuhrer
dd2e6bd416
ROMFS: SITL configs: enable airmode by default for all VTOLs
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-29 16:01:43 +02:00
Silvan Fuhrer
fbc7e6a435
ROMFS: tiltrotor sitl config: use tilt for yaw in hover as opposed to differential thrust
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-29 16:01:43 +02:00
Silvan Fuhrer
97e3b76a2e
VTOL: improve readability of VT_FWD_THRUST_EN param
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-29 16:01:43 +02:00
Roman Bapst
20457c5e2e
position_setpoint: replaced loiter_direction integer by boolean ( #20317 )
...
* position_setpoint: replaced loiter_direction integer by boolean (loiter_direction_counter_clockwise)
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-09-29 11:06:10 +02:00
Yang Hau
5d39fdba6d
fix: Add boundary protection for array access
2022-09-29 08:11:03 +02:00
Yang Hau
2dcde93d96
fix: Fix misuse of atoi()
2022-09-29 08:11:03 +02:00
Yang Hau
e2f3157ecb
fix: Add missing comma for const strings
2022-09-29 08:11:03 +02:00
David Sidrane
99ef597719
Nuttx with backport of stm32h7:SDMMC fix unaligned access
2022-09-29 07:56:46 +02:00
Ville Juven
59e86c490d
Remove include <log.h> from defines.h
...
The reason for this is that log.h includes drv_hrt.h which sucks in
half the project's include files with it, which causes strange build
issues
2022-09-29 07:56:24 +02:00
Daniel Agar
1f7080a710
ekf2: extend sensor bias stability requirement
...
- for accel/gyro/mag estimated bias only consider them stable (valid
for calibration updates) if the value isn't changing (10% of limit) over
the validity period
2022-09-28 10:40:52 -04:00
Daniel Agar
16f8adb4b3
hysteresis: avoid subtracting unsigned integers
...
- avoid potential errors with timestamp passed in from different sources
2022-09-28 09:51:16 -04:00
bresch
06f2004580
Mag: fix estimated bias save to calibration
...
Clear the calibration at the end only otherwise everything gets erased
at the end of the first iteration of the outer loop
2022-09-28 10:43:54 +02:00
Karthik S
70d73c8690
Advanced Plane Airframe for SITL Advanced Lift-Drag Plugin ( #20207 )
...
* Changed sitl_gazebo to the advanced liftdrag plugin fork.
* Added advanced plane and its associated parameters to PX4. Also tweaked one of the plugins to fix a compilation error (upcasting from float to double).
* Switched gazebo back to main branch, to avoid merge conflicts.
* Change simulator bridge back to what it was in main branch
* Changed sitl_gazebo to match the PX4 main branch's (commit hash b968405)
* Changed SimulatorIgnitionBridge to match most recent main.
2022-09-27 23:09:27 +02:00
jmackay2
0ee4d89744
drivers/osd/msp_osd: fix uorb_to_msg isnan floating-point check ( #20309 )
2022-09-27 14:41:43 -04:00
Eric Katzfey
a5bfc3fbc2
Added a self test feature to the VOXL 2 muorb module ( #20307 )
...
* Removed exit after dsp signature generation.
* First full test suite
* Cleaned up the muorb tests
* Improved VOXL 2 self test trigger in startup file
* Removed unneeded include file
2022-09-26 16:25:24 -04:00
Daniel Agar
7bc79b491f
sensors/vehicle_magnetometer: more granular in flight mag cal reset on parameter changes
...
- if mag calibration parameters change only reset any inflight mag cal
for the corresponding magnetometer
2022-09-26 12:42:32 -04:00
Daniel Agar
462d0af384
uORB: fix static orb_exists call for protected build
...
- unify ORBSet to maximum code coverage
2022-09-26 12:38:58 -04:00
Silvan Fuhrer
2717137982
RTL params: remove some unnecessary param constraints
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-26 13:32:35 +02:00
Silvan Fuhrer
b0a7d206f3
RTL params: increase max of RTL_RETURN_ALT and improve description
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-26 13:32:35 +02:00
Charles Cross
cfdaba35cc
Adds reset counter logic to EV height fusion
2022-09-26 11:48:18 +02:00
Daniel M. Sahu
779e738143
MSP OSD Revision
2022-09-24 18:40:47 -04:00
chris1seto
770f8080c0
CRSF: Validate unknown packet sizes to be smaller than max packet size
...
Co-authored-by: Chris Seto <chris1seto@gmail.com >
2022-09-24 16:36:17 -04:00
Daniel Agar
57bdac2b26
cmake: px4_parse_function_args re-enable failure on unparsed (invalid) arguments
2022-09-24 13:48:51 -04:00
Daniel Agar
ca0465aeca
Tools/generate_board_targets_json.py: properly exclude VOXL2 for now
2022-09-24 11:27:31 -04:00
Daniel Agar
e58275e6f5
platforms/posix: restore none SITL helper target for replay
2022-09-23 19:20:01 -04:00
chris1seto
77fdce9f3c
drivers/rc/crsf_rc: update standalone driver for CRSF and direct support for lq/rssi ( #20084 )
...
Co-authored-by: Chris Seto <chris1seto@gmail.com >
2022-09-23 19:19:25 -04:00
chris1seto
86cddc6a52
fw_autotune_attitude_control : Add better support for RC TX control while in FW AT ( #20069 )
...
Co-authored-by: Chris Seto <chris1seto@gmail.com >
2022-09-23 19:17:51 -04:00
Daniel Agar
b7fab39165
icm20948_i2c_passthrough: PX4_ERR is reset/configure fails and check temperature for validity
2022-09-23 19:16:10 -04:00
Daniel Agar
eb2a714aa5
ak09916: PX4_ERR if reset/configure is failing after 5s
2022-09-23 19:16:10 -04:00
Daniel Agar
16b4149492
Tools/generate_board_targets_json.py exclude VOXL2 for now (dev environment not yet available to github)
2022-09-23 16:40:56 -04:00
Thomas Debrunner
32277f6332
uavcan rgbled: Scale brightness for constant illumination
2022-09-23 14:33:20 -04:00
Eric Katzfey
d30ccb2b1d
initial board and platform support for the ModalAI VOXL 2 (POSIX + QuRT)
2022-09-23 12:03:05 -04:00
David Sidrane
e6b292b693
Revert "boards: px4_fmu-v6x_default remove gyro_fft to save flash (will be restored later)"
...
This reverts commit ed16354413 .
2022-09-23 09:32:43 -04:00
David Sidrane
d749389f95
fmu-v6x:CUAV HW Version changes
2022-09-23 09:32:43 -04:00
bresch
cddade2047
ekf2: use validated airspeed from airspeed sensor only
...
don't use synthetic measurements to prevent circular dependency
2022-09-23 09:26:47 -04:00
Julian Oes
8080ca966a
boards/platform: remove confusing override
...
This removes the odd px4_i2c_bus_external override which was confusing
me and lead to odd and inconsistent results.
The function is now only available with an int as the argument.
2022-09-23 20:54:08 +12:00
Junwoo Hwang
13d565d707
payload_deliverer: Add gripper state output to "status" CLI output
...
- Previously it was hard to check which state the gripper was in
(GRAB/GRABBED/ etc), not even whether it was correctly initialized, this
commit adds that functionality
2022-09-23 07:41:51 +02:00
Junwoo Hwang
e65d48c070
payload_deliverer: Fix Gripper unitialized message spamming
...
- When the gripper was uninitialized, the error message popped up
everytime the module had 'any' vehicle command received. But we should
be spamming only when we do actually get 'DO_GRIPPER' command received,
this commit adds that feature
- Also converted error messages for CLI when gripper test functinality
fails, so that user would get a feedback (originally, the PX4_DEBUG was
of course not outputting everything)
2022-09-23 07:41:51 +02:00
alexklimaj
fdf4b668eb
Ark flow rev 3 with PAA3905"
...
Add AFBR-S50LX85D
2022-09-22 20:36:43 -04:00
Daniel Agar
38d332a553
ekf2: inhibit accel bias dynamically when fake position/height fusion active
...
- inhibit accel bias learning dynamically depending on the angle between an accelerometer and the vertical axis when fake position fusion is active
2022-09-22 20:32:20 -04:00
Daniel Agar
1806f0d2b4
boards: delete broken flywoo_gn-f405_rtps
2022-09-22 17:44:24 -04:00
Silvan Fuhrer
300288b57e
FW Attitude Controller: fix polling of rate setpoint for tailsitter
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-22 19:13:36 +02:00
Daniel Agar
ed16354413
boards: px4_fmu-v6x_default remove gyro_fft to save flash (will be restored later)
2022-09-22 11:36:16 -04:00
David Sidrane
e284d4aa52
fmu-v6x:CUAV HW Version changes
2022-09-22 11:36:16 -04:00
CUAVmengxiao
21daa0f398
drivers: add support for ICP101XX and ICP201XX
2022-09-22 11:36:16 -04:00
CUAVmengxiao
9493008dbb
px4_fmu-v6X: add CUAV board
2022-09-22 11:36:16 -04:00
Silvan Fuhrer
0df878bc18
Navigator: use NAV_FW_ALTL_RAD only for FW landings, not VTOL landings
...
Also containst a mini refactor by removing the unnecessary function
get_default_altitude_acceptance_radius().
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-22 16:52:51 +02:00
Silvan Fuhrer
c6c7733587
FW Position control: add option to scale min airspeed wtih wind magnitude
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-22 16:39:27 +02:00
Beat Küng
e8ac9b266b
px4events: add @skip-file tag
2022-09-22 09:42:39 -04:00
Daniel Agar
54c97db8b2
ekf2: fix covariance comment typo
2022-09-21 15:29:07 -04:00
Silvan Fuhrer
d7fab74727
VTOL: remove _flag_was_in_trans_mode from standard vtol (not used)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-21 14:18:43 -04:00
Silvan Fuhrer
828f629413
VTOL: remove some pwm hackery leftovers from legacy mixing systems
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-21 14:18:43 -04:00
Beat Küng
d948fcd72b
fix control_allocator: check if 2. thrust and torque sp topic is valid
...
Otherwise the 2. setpoint is equal to the first one. This is only an issue
if the 2. instance isn't advertised.
2022-09-21 15:11:11 +02:00
Silvan Fuhrer
a53e1277dd
remove fixedwing example module
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-21 09:03:35 -04:00
Daniel Agar
a96187cb18
drivers/optical_flow: paw3902/paa3905 refactor into simple state machine for reset/configure/read
2022-09-20 18:59:00 -04:00
vincentpoont2
d5f7763817
add V5X005001 V5X005002 to start correct sensor
2022-09-21 10:40:04 +12:00
RomanBapst
e41913a699
vtol_type: removed unused "was_in_trans_mode" function
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-09-20 16:50:07 +02:00
RomanBapst
2a6cd4a409
vtol_att_control: avoid using non-recent attitude setpoint during beginning
...
of transition
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-09-20 16:50:07 +02:00
Julian Oes
5aa873aed5
fmu-v6x: alias, add VX43
...
- alias from hw_mft_list_v0650 to hw_mft_list_v0600 as it is the same
- add V6X50 again
2022-09-20 08:26:16 -04:00
Julian Oes
d78de90fc8
fmu-v5x: alias for duplicates, remove commented
...
- Removed commented out config data.
- hw_mft_list_v0540 was the same as hw_mft_list_v0500
2022-09-20 08:26:16 -04:00
Daniel Agar
a47895e809
[DO NOT MERGE] px4_i2c_device_external hacks
2022-09-20 10:31:26 +12:00
Julian Oes
b922307ddb
px4_fmu-v6c: Move I2C 4 back to External
...
This is a revert of the revert.
This reverts commit 1080855f4d .
2022-09-20 10:31:26 +12:00
Julian Oes
94c8a4a840
fmu-v6c: internal baro and mag on external bus
...
This swaps the internal baro and mag back to the bus which is both
internal an external but configured as external for this case.
2022-09-20 10:31:26 +12:00
Silvan Fuhrer
13fc5918cc
AirspeedValidator: keep data stuck test but only enable in FW mode
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-19 17:44:44 +02:00
Silvan Fuhrer
1a5d0f4347
AirspeedValidator: add new check (variance after boot) and disable data stuck check by default
...
This new check is inteded to trigger if there is no data variation published by
the airspeed driver for the first 10s after the first data is published.
This is to capture malfunctioning sensors/drivers that do publish a value, this
value though does not come from real sensor measurements.
Previously this was captured by the data stuck check, but it has shown that
some drivers can publish a stuck value without being actually malfunctioning
(e.g. when the airspeed is outside of their measurement range). Checking for
any data variation is the more conservative check that still catches the above
described failure case.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-19 17:44:44 +02:00
Daniel Agar
0a5c9d4951
position_setpoint delete unused landing_gear
2022-09-19 11:16:45 -04:00
Daniel Agar
11dd924bd4
position_setpoint delete unused SETPOINT_TYPE_FOLLOW_TARGET
2022-09-19 11:16:45 -04:00
Beat Küng
c707997b9e
lockstep_scheduler: use PRIu64 for timestamp printf
2022-09-19 10:04:31 -04:00
Daniel Agar
87815d8869
simulator_ignition_bridge: add simple esc_status publication
...
- ideally we'd get this from the actual joint velocity, but this is
good enough to start
2022-09-19 09:49:12 -04:00
Daniel Agar
3440f543f1
simulator_ignition_bridge: wait for first clock set before returning successfully
2022-09-16 21:37:09 -04:00
Daniel Agar
98036f93c5
msp_osd: fix module documentation
2022-09-16 18:54:14 -04:00
modaltb
e1098c328e
modalai_esc: maintenance release 1 ( #20225 )
2022-09-16 14:52:28 -07:00
Daniel Agar
07c34f7446
boards: px4_fmu-v6x update bootloader
2022-09-16 12:11:25 -04:00
chris1seto
cfb98e44c9
MSP telemetry and OSD support ( #19515 )
...
Co-authored-by: Chris Seto <chris.seto@bossanova.com >
2022-09-16 11:46:08 -04:00
Daniel Agar
eaa9eae472
simulator_ignition_bridge: fix double promotions
2022-09-16 11:36:35 -04:00
Daniel Agar
085ec0e8ef
flight_mode_manager: StickAccelerationXY minimize setpoint oscillations around 0
2022-09-16 07:54:12 +02:00
Ville Juven
f300ec1da2
px4_platform_common/atomic.h: fetch_add/sub were really fetch_inc/dec
...
fetch_add/sub were really inc/dec for the __atomic_always_lock_free == true
branch. This fixes them so that the arg "num" is actually used.
2022-09-15 21:11:08 -04:00
Daniel Agar
ff196a7363
crsf_rc: trivial compile fixes for updated vehicle_gps_position and removed NAVIGATION_STATE_AUTO_LANDENGFAIL
2022-09-15 21:01:53 -04:00
Daniel Agar
97f239d3ab
boards/flywoo/gn-f405: fix code style
2022-09-15 20:06:01 -04:00
chris1seto
b682b30ab1
drivers/rc/crsf_rc: create new standalone CRSF driver
2022-09-15 20:00:20 -04:00
David O
b910c1dcf4
Update mavlink_main.cpp
...
Corrected
2022-09-15 19:49:49 -04:00
David O
8f7233b1e2
Tailsitters need ATTITUDE_QUATERNION to display properly the artificial horizon
2022-09-15 19:49:49 -04:00
Daniel Agar
05850e2fc0
mavlink: eliminate timestamped_list dynamic allocation
2022-09-15 19:27:39 -04:00
David Sidrane
eaac84ab20
px4_fmu-v6x_bootloader:Ensure PWM pins are low from boot
2022-09-15 19:24:50 -04:00
Oleg Kalachev
585e81fc30
mavlink: fix path for mavlink_types.h include
2022-09-15 19:20:11 -04:00
Daniel Agar
5fcdffc8c0
drivers/device/nuttx/I2C: only issue I2C_RESET() if retrying, and only before the next retry
2022-09-15 18:42:30 -04:00
Claudio Micheli
30e867d4de
navigator_main: use camera_trigger driver for single captures
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2022-09-15 18:15:25 -04:00
Julian Oes
fc89705ef8
navigator: stop capturing images on mission exit
...
When a mission starts capturing images using the
MAV_CMD_IMAGE_START_CAPTURE command, it should also stop it again, in
case it is stopped early, e.g. with RTL.
2022-09-15 18:15:25 -04:00
Zhengtian
70194f52cd
boards: New target flywoo goku-gn-f405s-aio ( #20131 )
2022-09-15 18:11:49 -04:00
Ville Juven
3b9936edd2
hrt_ioctl: Move common code under /common folder
...
The HRT ioctl is common code, so move it out of chip specific code
2022-09-15 17:57:40 -04:00
Bruce Meagher
b1c7098c54
Initial version of log history support.
2022-09-15 14:15:34 -04:00
Beniamino Pozzan
2e83c3a465
Fixed fastrtps version reading in microRTPS generation
...
Issue addressed: ROS2 is built from source and
no system-wide version of fastrtps is installed
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2022-09-15 13:36:40 -04:00
vincentpoont2
4951ce0ed7
Add PX4 vision v1.5 Airframe
2022-09-15 13:33:04 -04:00
Ville Juven
328bc5b8c2
image_toc.c: Check that the ToC actually lies within the first entry
...
As the first entry is used to sign / authenticate the ToC, make sure
the ToC is actually in the first entry.
2022-09-15 13:32:08 -04:00
murata
9e2ff11d45
fmu-v6x: Add sd_bench command
2022-09-15 13:25:34 -04:00
Travis Bottalico
9c0750776d
voxl2_io: initial board support
2022-09-15 13:19:01 -04:00
Silvan Fuhrer
5a74f07a74
RTL: always fill loiter_radius field, indpendent on vehicle type
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-15 13:17:36 -04:00
Silvan Fuhrer
e9f349a2fc
RTL: set WP type to LOITER_TO_ALT for FW in Return stage
...
Such that the loiter (orbit) status can be displayed on groundstation
and the WP is accepted once within loiter radius
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-15 13:17:36 -04:00
Silvan Fuhrer
5f0fc7aaf1
FW Position Controller: fix publishing of negative loiter directions (CCW)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-15 13:17:36 -04:00
Silvan Fuhrer
7a760c8c6e
RTL: use loiter radius from mission for loiter before enganging mission in RTL
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-15 13:17:36 -04:00
Alex Klimaj
0ce76679b7
boards: add new ARKV6X ( #20191 )
2022-09-15 13:13:49 -04:00
Alvin Sun
80243aef53
remove microdds from rtps target
2022-09-15 13:10:23 -04:00
Alvin Sun
c3e6421549
add v4 rtps build
2022-09-15 13:09:35 -04:00
mcsauder
b885c920d8
Breakout header file from sensors.cpp and delete unnecessary #includes.
2022-09-15 13:09:04 -04:00
Junwoo Hwang
e3dff5c074
board_identity: Add UUID/MFGUID/GUID unit tests
...
- To check stack smashing (buffer overflow)
- To check if the buffer without enough length gets appropriate values
filled
- To check if the format has expected length
2022-09-15 13:06:15 -04:00
Junwoo Hwang
f5215e8207
board_identity: Fix UUID format function buffer overflow bug
...
- Previously, not having a proper boundary check caused overflows in the
buffer (wrong memory access)
- Moreoever, negative size values getting introduced to snprintf &
strncat were also being truncated to unsigned value, hence causing
overflow, so index check needed to be added before both functions
- Fixed typo in board_common.h
2022-09-15 13:06:15 -04:00
bresch
facf01d69d
ekf2: report combined vertical position test ratio
2022-09-15 08:51:19 -04:00
Daniel Agar
54b5d4c5b8
drivers/rc_input: don't allow starting on the px4io serial port
2022-09-14 21:23:30 -04:00
Jaeyoung Lim
9245d71397
Fixedwing att control rate loop cleanup
2022-09-14 13:53:58 +02:00
Silvan Fuhrer
b4f27c9abb
MissionBlock: loiter exit condition based on vector operation instead of atan
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-14 10:47:21 +02:00
Silvan Fuhrer
27780308c0
MissionBlock: base loiter course exit condition on a constant value instead of MIS_YAW_ERR
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-14 10:47:21 +02:00
Konrad
5a7f098b8d
Enable multiple simulated imu and magnetometers in gazebo
2022-09-14 10:27:04 +02:00
Silvan Fuhrer
f9b6edab07
Navigator/FW Position Control: VTOL front towards specified transition heading if available
...
If the current yaw setpoint is valid we should use it to make the transition in this direction.
For a VTOL_TAKEOFF the yaw_setpoint is used to specify the transition direction (the
vehicle is aligned towards it and then transition is started). The current yaw can be
a bit off (e.g. because MIS_YAW_ERR is large), and it is better to track the actual setpoint.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-09-14 08:55:20 +02:00
alexklimaj
82b28bc72f
Add BMP390 to BMP388 driver
2022-09-13 09:33:24 -04:00
Vojtech Spurny
7ca16cd504
increased rate of Lidar Lite driver over I2C
2022-09-13 09:11:12 -04:00
David Sidrane
1080855f4d
Revert "px4_fmu-v6c Move I2C 4 to External"
...
This reverts commit 6b2509cbba .
2022-09-13 01:06:17 -04:00
alexklimaj
ba1b6f4d2c
Standardize AFBR irq lock calls
2022-09-12 19:14:18 -04:00
alexklimaj
3398380262
Switch to async AFBR measurement calls and use schedule.
2022-09-12 13:00:25 -04:00
Shriv
3dffa5e6df
gps: add UART2 Baudrate Configurability and New UBX Mode. ( #20133 )
2022-09-12 14:13:17 +02:00
Daniel Agar
b8fb5dfa51
merge px4_sitl_ign into px4_sitl_default ( #20188 )
...
- for convenience merge px4_sitl_ign into px4_sitl_default, but allow simulator_ignition_bridge to quietly skip inclusion if ignition-transport isn't available
- simulator_ignition_bridge only try setting the system clock in
lockstep builds
- this simplifies usage and CI system dependencies
2022-09-10 16:18:02 -04:00
bresch
34d8bd7988
update EKF2 change indicator
2022-09-10 12:29:29 -04:00
bresch
6bd81c0eb7
ekf2: do not store delayed baro sample in class
...
the sample is popped from the buffer and directly used; there is no
need to keep a local copy of it
2022-09-10 12:29:29 -04:00
bresch
ae1e12a6b5
ekf2: remove baro accumulation from initializeFilter
2022-09-10 12:29:29 -04:00
bresch
fe4a6ce8de
ekf2: allow initialization without baro data when fusion is disabled
2022-09-10 12:29:29 -04:00
bresch
a54fa7b9b1
ekf2: add fake height fusion logic
...
When there is no vertical aiding, fake height is started to constrain
the vertical channel of the EKF
2022-09-10 12:29:29 -04:00
bresch
aa716936bf
ekf2: move synthetic_position flag to control_status.flags.fake_pos
2022-09-10 12:29:29 -04:00
Julian Oes
86f7e15f7a
libuavcan: update submodule
...
This fixes a Python 3.10 issue for me.
2022-09-09 20:41:11 -04:00
Daniel Agar
8f25acd428
sih remove gps and use standalone sensor_gps_sim
2022-09-09 18:00:50 -04:00
Daniel Agar
bfe0d71a21
sih remove baro and use standalone sensor_baro_sim
2022-09-09 18:00:50 -04:00
Daniel Agar
c5336abba2
sih remove mag and use standalone sensor_mag_sim
2022-09-09 18:00:50 -04:00
Daniel Agar
99a20646e2
simulator sih add local position ground truth and cleanup
2022-09-09 18:00:50 -04:00
Daniel Agar
355f184f06
boards/px4/fmu-v3: allow optional ms5607 startup to fail quietly (no error)
2022-09-09 17:32:18 -04:00
Alvin Sun
238fdadfee
Add attitude and bodyrate control to RTPS
2022-09-09 22:21:02 +02:00
Daniel Agar
3f3a5f19f0
parameters: open export files O_TRUNC to discard previous data
...
- rcS parameter backup try to directly restore param (FRAM) from backup (in case SD card is removed before successful export)
- rcS parameter backup logging rearrange to capture more logging output (param_import_fail.txt)
- posix rcS try to keep param backup and restore roughly in sync with NuttX rcS
- tinybson fix debug printf format
- param_export_internal ensure file descriptor positioned at 0 (precaution)
2022-09-09 16:20:16 -04:00
Igor Mišić
296b1704c5
invensense/icm42688p: add additional state FIFO_RESET
...
This state is added to give extra time between FIFO flush command. Some icm42688p IMUs need more time between config -> FIFO reset -> FIFO read. More about the issue #20181
2022-09-09 16:19:10 -04:00
Alex Klimaj
efcf4c95fd
drivers/uavcannode: Add RTCMStream subscriber and fix RTCMStream Publisher ( #20056 )
...
* Add cannode RTCMStream subscriber
* Fix uavcan RTCMStream publisher
* Break out CANNODE_SUB_RTCM and CANNODE_SUB_MBD
2022-09-09 15:16:09 -04:00
Daniel Agar
9d1aeb6aa7
platforms/posix: cleanup macos legacy
2022-09-09 13:05:06 -04:00
matthewoots
b09329f287
boards/matek/h743: add fix to resolve no startup of imu for matek_h743 target ( #20184 )
...
* Add fix for matek_h743 target that resolves no startup of imu for h743-wing v3 and h743-wlite boards
* Added imu driver according to spi bus (https://www.mateksys.com/?portfolio=h743-wing-v2#tab-id-7 )
2022-09-09 13:02:38 -04:00
Agata Barcis
e268e69265
Fixed fastrtps version reading in microRTPS generation for ROS2 built from sources
2022-09-09 15:11:11 +01:00
Daniel Agar
b45daac0e8
commander: fix angular velocity validity
...
- vehicle_angular_velocity timestamp can be newer than saved now
2022-09-09 09:14:09 -04:00
Daniel Agar
15fece7e14
delete SYS_CTRL_ALLOC
2022-09-09 09:14:09 -04:00
Daniel Agar
13f9eabd70
delete unused actuator_controls_3
2022-09-09 09:14:09 -04:00
Daniel Agar
55be169e18
delete remaining PWM_MAIN/PWM_AUX/PWM_EXTRA parameters
2022-09-09 09:14:09 -04:00
Daniel Agar
4ec9e2f216
uavcan: delete unused ESC idle and soft_stop
2022-09-09 09:14:09 -04:00
Daniel Agar
bdec17a9d4
drivers/pwm_out_sim: add perf counters (sync with drivers/pwm_out)
2022-09-09 09:14:09 -04:00
Daniel Agar
baa05b2631
drivers/pwm_out: remove custom module boilerplate (dual output bank handling)
2022-09-09 09:14:09 -04:00
Daniel Agar
ce337a3d80
delete unused PWM IOCTLs
2022-09-09 09:14:09 -04:00
Daniel Agar
bcdd2203d3
delete systemcmds/motor_test and msg/test_motor.msg
2022-09-09 09:14:09 -04:00
Daniel Agar
72efe84b80
delete MOT_ORDERING
2022-09-09 09:14:09 -04:00
Daniel Agar
a7bbcd5b04
delete lib/mixer and mixer_module static mixing
2022-09-09 09:14:09 -04:00
Daniel Agar
0019ffbea6
delete drv_mixer.h
2022-09-09 09:14:09 -04:00
Daniel Agar
d3312f955f
delete systemcmds/pwm
2022-09-09 09:14:09 -04:00
Daniel Agar
5dd1e5a018
delete systemcmds/mixer
2022-09-09 09:14:09 -04:00
Daniel Agar
cac9c51ac8
ROMFS: purge old mixing system
...
- SYS_USE_IO is now off by default (enabled by default per board)
2022-09-09 09:14:09 -04:00
Julian Oes
ed10146e9f
fmu-v6: disable Rev 0, Rev 1 for HB Mini, and CM4
...
As I understand it, only Rev 3 and Rev 4 were shipped by HB for Mini and
CM4, and are likely to be used for it.
It would be nice to have all combinations but it requires quite some
flash in the current implementation.
2022-09-08 20:54:19 -04:00
Julian Oes
f05fccebb7
fmu-v5x: disable rev0 for HB Mini and CM4 base
...
As I understand it, only Rev 1 and Rev 2 were shipped by HB, and likely
to be used for the Mini and CM4.
2022-09-08 20:54:19 -04:00
Julian Oes
6bd020e848
platforms: decrease flash usage by type for bus id
...
My assumption is that the bus are numbered < 127.
This saves about 100 bytes of flash.
2022-09-08 20:54:19 -04:00
vincentpoont2
4fe90322db
update fmu-v6x rc.board_sensors, add V6X004003
2022-09-08 20:54:19 -04:00
vincentpoont2
167c3da99d
update fmuv5x rc.board_sensors with V5X004000
2022-09-08 20:54:19 -04:00
Vincent Poon
70321ed610
update v5x rc.board_sensors
...
add V5X004002
2022-09-08 20:54:19 -04:00
Vincentpoont2
f476ebdcbf
Correct BOARD_NUM_SPI_CFG_HW_VERSIONS at board_config.h
2022-09-08 20:54:19 -04:00
Vincentpoont2
9d5adf8bab
Fix Error on manifest.c
2022-09-08 20:54:19 -04:00
Vincentpoont2
e91295e5db
Fix Error on board_config.h Define on FMUv5X & FMUv6X
2022-09-08 20:54:19 -04:00
Vincentpoont2
b16a53018d
Add Holybro Pixhawk Pi CM4 Baseboard Support
2022-09-08 20:54:19 -04:00
Don Gagne
0987bb2e8e
Fix bug with yaw only reposition
...
Fix formatting
2022-09-08 17:55:30 -04:00
Matthias Grob
da01dd9eeb
mission_block: explicitly (re)set the acceptance radius to default for takeoff items
...
otherwise a previously adjusted or uninitialized radius from the last flight
can cause problems during the new takeoff
2022-09-08 14:49:32 +02:00
Matthias Grob
b825b61a20
mission_block: minimal acceptance radius of 1mm
...
to avoid float rounding errors leading to tiny acceptance radii
getting considered
2022-09-08 14:49:32 +02:00
Ville Juven
9c204774f1
px4_userspace_init: Fix NULL dereference for px4_spi_buses in user space
...
For targets that define the SPI buses via px4_spi_buses_all_hw, a call
to px4_set_spi_buses_from_hw_version() is needed. Otherwise a NULL
de-reference will occur when trying to access px4_spi_buses.
Fixes a system crash in px4_fmu-v5_protected:
up_assert: Assertion failed at file:armv7-m/arm_memfault.c line: 101 task: wq:lp_default
2022-09-08 07:05:11 +02:00
Justin
88bf1030b5
Update CI to use the main branches.
2022-09-07 20:03:19 -04:00
Ville Juven
d4cce452cf
modules/dataman: Increase stack size by 100B
...
Fixes:
WARN [load_mon] dataman low on stack! (276 bytes left)
Seen on px4_fmu-v5_protected target.
2022-09-07 20:02:26 -04:00
Junwoo Hwang
2542b1bb26
Implement Pacakge delivery via Gripper during mission
...
This feature allows user to use a Gripper type pacakge delivery
mechanism on a drone to trigger the delivery during a mission via the
mission item `DO_GRIPPER`.
This is a minimal change that is intended to have simplest pacakge
delivery feature on PX4, however the future scope would extend this
feature out of Navigator, and rather move towards a federated PX4
(flight-mode flexibility) architecture. But until then, this will serve
the purpose.
Update Tools/sitl_gazebo submodule to remove sdf file overwrite error
- There was an error happening due to .sdf file being overwritten, it
was caused by a wrongfully added. sdf file.
- This update pulls in the PR commit: https://github.com/Auterion/sitl_gazebo/pull/147
Initial cut on supporing PAYLOAD_PLACE mission item
Tidy and comment on navigation.h to clarify mission item definition
- Convert vehicle command ack subscription data type to
SubscriptionData, to not care about having a dedicated struct for
copying the latest data
- Tidy and comment on navigation.h to clarify the definition of
mission_item_s, which is confusing as it is an intergration of MAVLink
Standard into PX4's internal Mission Item structure
Rename mission_block's mission item reached function & cleanup navigator
- Isolated Handle Vehicle Commands function inside the Navigator
- Rename mission_block's mission item reached function to 'reached or
completed', as the navigation command can also be an action (e.g.
DO_SET_SERVO, which doesn't make sense to refer to as 'reached' when we
have successfully done executed the command)
Include MAVLink PR commit to include payload_drop message
More changes to add payload_drop MAVLink message support
- Comitting for testing purposes
Add mission item payload_drop to vehicle command payload drop link
- Now with a mission item with the nav_cmd set to 'payload drop', the
appropriate 'payload drop' vehicle command will be issued
Make Payload drop executable via Mission Plan
Implement payload_drop module to simulate payload delivery
- Simple module that acknowledges the payload drop vehicle command after
certain time, to simulate a successful delivery
Additional changes - payload drop module not working yet
- Need to do more thread stuff to make it work :(
Fix Payload Drop enum mismatch in vehicle_command enums
- First functional Payload Drop Implementation MVP
- Simple Ack & resuming mission from Navigator tested successfully
Hold the position while executing payload drop mission item
- Still the position hold is not solid, maybe I am missing something in
the position setpoint part and all the internal implications of
Navigator :(
Add DO_WINCH command support
Some fixes after rebase on develop branch
- Some missed brackets
- Some comment edits, etc
Add DO_WINCH command support
- Still has a problem of flying away from the waypoint while the
DO_WINCH is being executed, probably position setpoint related stuff :(
Apply braking of the vehicle for DO_WINCH command
- Copies the behavior of NAV_CMD_DELAY, which executes a smooth, braking
behavior when executing the delay because of the braking condition in
`set_mission_items` function
- This will not apply to Fixed wings
- The payload deploy getting triggered may be too early, as right now as
soon as the vehicle approaches the waypoint within the acceptance
threshold, the payload gets deployed
Add DO_GRIPPER support
Implement Gripper actual Hardware triggering support
- Currently not working, possibly in the mixer there's a bug
- Implemented the publishing of actuator_controls_1 uORB topic
- Implemented the test command for the payload_drop module, to test the
grpiper functionality
- Edited px4board file to include the payload_drop module
- Added Holybro X500 V2 airframe file, to enable testing on X500 V2
- Created new Quad X Payload Delivery mixer, which maps the actuator
controls 1 topic's data into the MAIN pin 5 output
Make Payload Drop Gripper Work
- Initialization of the Gripper position to CLOSED on Constructor of the
payload_drop module
- Setting the OPEN and CLOSED value to the appropriate actuator controls
input
Set vehicle_command_ack message's timestamp correctly
- By not setting the timestamp, the ack commands were not correctly
graphed in PlotJuggler!
Rename payload drop module to payload deliverer
- I think it's a more complex name (harder to type), but more generic
Add Gripper class (WIP)
Add Gripper class functionalities
- Add gripper uORB message
- Add gripper state machine
Use Gripper class as main interface in payload_deliverer
- Utilizes Gripper class functions for doing Gripper functionality
Remove mixer based package delivery trigger logic
- Remove custom mixer files that mapped actuator controls to outputs
statically
Additional improvements of the payload_deliverer
Fix payload_deliverer module not starting
- _task_id wasn't geting set appropriately in task_spawn function, which
led to runtime failure
Add Gripper Function to mixer_module
- Still not showing up as function mapping in QGC, needs fix
Add parameters to control gripper behavior
- Now user can enable / disable gripper
- Also select which type of gripper to use
Applying review from nuno
Remove timeout fetching from mission item and use gripper's timeout
- Previously, it was planned to use a custom DO_GRIPPER and DO_WINCH
MAVLink message definitions with information on timeout, but since now
we are using original message definition, only relevant timeout
information is defined in the payload_deliverer class
- This change brings in the timeout parameter to the Navigator, which
then sets the timeout in the mission_block class level, which then
processes the timeout logic
Make payload deployment work for Allmend test :P
Support gripper open/close test commands in payload_deliverer
Move enum definition for GRIPPER_ACTION to vehicle_command.msg
Remove double call for ` ${R}etc/init.d/rc.vehicle_setup`
- Was introduced during the rebase
- Was causing module already running & uORB topic can't be advertised
errors
Fix format via `make format` command
Modify S500 airframe file to use for control allocation usage
- Added Control allocation related parameters as default to not have it
reset every time the airframe is selected
Implement mission specific payload deploy timeout and more changes
Switch payload_deliverer to run on work queue
Remove unnecessary files
- Airframe changes from enabling control allocation are removed
Address review comments
- Remove debug messages
- Remove unnecessary or verbose comments & code
- Properly call parameter_update() function
Switch payload_deliverer to scheduled interval work item & refactor
- Switch to Schedeuled on Interval Work Item, as previous vehicle
command subscription callback based behavior led to vehicle comamnd ack
not being sent accordingly (since the Run() wouldn't be called unless
there's a new vehicle command), leading to ack command not being sent
out
- Also, old vehicle commands were getting fetched due to the
subscription callback as well, which was removed with this patch
- Fix the wrong population of floating point param2 field of vehicle
command by int8_t type gripper action by creating dedicated function
- Refactor and add comments to increase readability
Add gripper::grabbing() method and handle this in parameter update
- Previously, the intermediate state 'grabbing' was not considered, and
when the parameter update was called after the first initialization of
the gripper, the grab() function was being called again, which would
produce unnecessary duplicate vehicle command.
- Also replaced direct .grab() access to sending vehicle comamnd, which
unifies the gripper actuation mechanism through vehicle commands.
Navigator: Change SubscriptionData to Subscription to reduce memory usage
- Also removed unused vehicle command ack sub
PayloadDeliverer: Remove unnecessary changes & Bring back vehicle_command sub cb
2022-09-07 08:11:52 +02:00
Matthias Grob
e115095f70
Functions: correct interpolate function for N points
2022-09-07 08:00:27 +02:00
Beat Küng
4087c27e84
control_allocator: handle saturation flags for helicopters
2022-09-07 08:00:27 +02:00
alexklimaj
aa8d594e9b
Add heli servo trim
2022-09-07 08:00:27 +02:00
Matthias Grob
667e99be81
Helicopter: fix unit test after default throttle curve was changed
2022-09-07 08:00:27 +02:00
Matthias Grob
115cf4d572
Helicopter: More intuitive yaw direction configuration for the common cases
2022-09-07 08:00:27 +02:00
Matthias Grob
f233f2167e
generic_250, px4vision: remove zero manual thrust without airmode
...
When hitting zero thrust by stick there is 0 torque authority
without airmode. So 0% minimum manual thrust should never be the default
without airmode.
2022-09-07 08:00:27 +02:00
Matthias Grob
8a25d06ed7
heli_defaults: comment and spacing
2022-09-07 08:00:26 +02:00
Beat Küng
cecef7e3f6
control_allocator: update heli throttle + collective curve defaults
2022-09-07 08:00:26 +02:00
Beat Küng
d38c02fd6a
commander: increase maximum COM_SPOOLUP_TIME to 30s (for helis)
2022-09-07 08:00:26 +02:00
Beat Küng
2635e2c386
airframes: replace blade with generic helicopter
2022-09-07 08:00:26 +02:00
Beat Küng
7e75b497ae
helicopter: add switch to engage main motor
...
For helicopters it's useful (e.g. during bringup) to be able to disable
the main rotor while the tail is still controlled to safely land.
2022-09-07 08:00:26 +02:00
Matthias Grob
f32d931117
helicopter: add yaw sign parameter & expose settings in UI
2022-09-07 08:00:26 +02:00
Matthias Grob
349f152601
Helicopter: throttle spoolup upon arming
...
Uses COM_SPOOLUP_TIME to slowly ramp the throttle and allow the
tailrotor to compensate in a coordinated way based on the yaw
compesation from throttle, see CA_HELI_YAW_TH_S.
This coordinated spoolup is necessary to avoid unsafe yaw twitches
because of the heli rotating until the correct compensation kicks in
through the feedback controller.
2022-09-07 08:00:26 +02:00
Matthias Grob
7bf62373ae
Helicopter: refactor complicated throttle curve logic
2022-09-07 08:00:26 +02:00
Matthias Grob
2edb35b1b5
Functions: add gradual function with arbitrary number of corner points
2022-09-07 08:00:26 +02:00
Matthias Grob
6a9a049f1e
Helicopter: add unit testing for throttle curve
2022-09-07 08:00:26 +02:00
Matthias Grob
9ba6f4efb7
Helicopter: add yaw compensation from throttle CA_HELI_YAW_TH_S
2022-09-07 08:00:26 +02:00
Matthias Grob
554d965a2d
Helicopter: use absolute value for yaw compensation from collective pitch
2022-09-07 08:00:26 +02:00
Beat Küng
608ab9ff9c
control_allocator: extend description for CA_SP0_ANGx
2022-09-07 08:00:25 +02:00
Beat Küng
e346190e63
helicopter: use tail motor & add CA_HELI_YAW_CP_S
2022-09-07 08:00:25 +02:00
Julian Oes
5ece24cdc4
setup: attempt to fix macOS CI
...
Somehow the wheel install of pymavlink fails without future, let's try
to work around that.
2022-09-07 13:49:37 +12:00
Peter van der Perk
8f0c2f4146
UCANS32K1 Enable some sensors by default
2022-09-06 09:43:11 -04:00
bresch
92fbd86b46
ekf2: add gps altitude drift test
2022-09-05 10:28:37 -04:00
bresch
a2a5093881
ekf2: relax zero velocity update
...
The ZVU is too strong and prevents the EKF from following variations in
the height aiding sources, creating large innovations.
2022-09-05 10:28:37 -04:00
Daniel Agar
d996af4647
ekf2: pass gpsSample around where required
...
- this minimizes potential misuse accessing _gps_sample_delayed and
makes the dependency clear
2022-09-05 10:27:19 -04:00
RomanBapst
0c860fa227
airspeed_selector: don't declare wind estimate valid if estmator is not initialised
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-09-05 10:21:38 -04:00
Ville Juven
9ed35debec
board_ctrl: Clean up usage of VBUS, nARMED from user/kernelspace
...
Move logic implemented in the header files to source files, this way
it will be simpler to define which is compiled to kernel space and
which to user space
Also allows to remove some headers that pull in half the universe
from the board definitions (which should just be pin definitions and
no functionality)
2022-09-05 07:37:28 +02:00
Benjamin Perseghetti
a56f654651
Multi-Vehicle Ignition Gazebo Simulation ( #20154 )
2022-09-04 21:10:29 -04:00
Daniel Agar
7bbdc220f5
ekf2: initialiseFilter() simplify mag heading init and resetQuatStateYaw
...
- most of resetQuatStateYaw doesn't apply to initial heading init, so
removing the special case keeps it simple
2022-09-02 08:46:10 -04:00
Ville Juven
e467d11990
boards/px4/fmu-v5/toc: The RD certificate signature points to the wrong place
...
The signature end address is incorrect
2022-09-02 08:00:27 +02:00
Daniel Agar
5dfd2f39ef
boards/cubepilot/cubeorange: initialize all I2C pins immediately
2022-09-01 20:46:09 -04:00
Daniel Agar
e93a3a2a3a
ak09916: enable retries and reset perf count
2022-09-01 20:45:20 -04:00
Daniel Agar
f66b5ce204
simulation: ignition bridge allow IMU or pose callbacks to update system time if newer than clock
...
* requires HRT lockstep changes to eliminate offset (PR #20146 )
2022-09-01 20:42:21 -04:00
Daniel Agar
c52f2143d2
posix lockstep remove HRT offset and use full sim time
2022-09-01 20:40:37 -04:00
Daniel Agar
3da0293369
simulator_ignition_bridge: init error handling
2022-09-01 18:54:59 -04:00
Beat Küng
43c5f14aa0
commander: update arming & health protocol, add modes to event hash
2022-09-01 17:07:23 -04:00
Beat Küng
f57321d365
simulator_mavlink: fix esc_status publication
2022-09-01 17:07:23 -04:00
Beat Küng
295caaea60
events/enums.json: remove redundant manual_control_input
2022-09-01 17:07:23 -04:00
Beat Küng
2c96bb3746
px4_parameters.hpp.jinja: explicitly set .name attribute
...
Fixes the compile error on llvm:
mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Wc99-designator]
2022-09-01 17:07:23 -04:00
Beat Küng
1370cc0d74
log.h: add PRINTF_LOG option for direct printf to reduce dependencies
2022-09-01 17:07:23 -04:00
Beat Küng
a9c1415337
Makefile: allow to set CMAKE_ARGS via CLI
2022-09-01 17:07:23 -04:00
Beat Küng
4e940fab83
perf_counter: remove unused include sys/queue.h
2022-09-01 17:07:23 -04:00
Beat Küng
9eff6dd049
commander: cleanup param value description for COM_POSCTL_NAVL
2022-09-01 17:07:23 -04:00
Beat Küng
0e130eac83
refactor commander: move code inside run() into separate methods
2022-09-01 17:07:23 -04:00
Beat Küng
dcb9b712bb
refactor commander: move vehicle control mode to ModeUtil
2022-09-01 17:07:23 -04:00
Beat Küng
f197c8884d
commander: move esc checks to arming check
2022-09-01 17:07:23 -04:00
Beat Küng
c9037f115b
refactor commander: split out home position
2022-09-01 17:07:23 -04:00
Beat Küng
f17f38197d
commander: move estimator checks to arming check
2022-09-01 17:07:23 -04:00
Beat Küng
cfe3d793bf
commander: move battery handling into arming checks
2022-09-01 17:07:23 -04:00
Daniel Agar
5cb44a521c
ekf2: estimator interface handle sample time with signed integers
...
- this prevents unsigned integer overflow if the timestamp is smaller
than the configured delay (mostly a simulation edge case)
2022-09-01 09:47:29 -04:00
dagar
75f6f22223
[AUTO COMMIT] update change indication
2022-08-31 08:52:30 -04:00
Daniel Agar
1948c5057a
ekf2: handle all time on delayed horizon (except for newest sample checks)
...
- a growing number of samples come into the backend with the time
already delayed (sensor's interrupt setting timestamp sample)
- if the incoming timestamp is already delayed then the new data checks
(relative to latest IMU) can be slightly wrong
- handle almost all timestamps and checks on delayed time horizon,
except for explicit checks of new samples
- isRecent() and isTimedOut() helpers use delayed time
- add new isNewestSampleRecent() used for checking the incoming
timestamp of the incoming (adjusted) data
2022-08-31 08:52:30 -04:00
Jukka Laitinen
d6a4e158cf
Add call-gates to px4_crypto for protected build
...
This adds kernel-userspace interfaces to crypto layer
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-08-31 09:48:49 +02:00
Beat Küng
d681782c7f
fix flashfs: find_entry: do not go to the next sector if the CRC is invalid
2022-08-31 09:42:59 +02:00
Beat Küng
4f52cda504
flashfs: ensure no address past the end of a sector is dereferenced
...
As it might result in a hardfault if it's the last flash sector.
2022-08-31 09:42:59 +02:00
Beat Küng
2776b723ea
holybro/kakuteh7: switch to flash-based params
2022-08-31 09:42:59 +02:00
Hamish Willee
e780a583cd
Fix typo follow height: FLW_TGT_HT
2022-08-29 13:25:35 +02:00
Ben Berry
734d3e4aa0
Reverted changes that broke Level Horizon calibration
2022-08-29 09:54:36 +02:00
Beat Küng
afc99749b8
px4/fmu-v5/uavcanv0perith: disable gps to reduce flash usage
2022-08-25 22:02:15 -04:00
Beat Küng
715afd27f5
ROMFS: exclude mixers on v2 & disable mixer command
...
The dynamic mixing is now the default
2022-08-25 22:02:15 -04:00
Beat Küng
f0295cf596
px4/fmu-v2/defconfig: disable PROCFS
...
Reduces flash usage by ~7.3KB
2022-08-25 22:02:15 -04:00
Beat Küng
ad222760dd
platforms: move CONFIG_FS_PROCFS_MAX_TASKS definition to cpuload.h
...
So it's used for both cases
2022-08-25 22:02:15 -04:00
Beat Küng
70ec3493c5
px4/fmu-v5/stackcheck: disable distance sensors to reduce flash
2022-08-25 22:02:15 -04:00
Beat Küng
666b84027d
GyroFFT: disable 4096 for IMU_GYRO_FFT_LEN
...
saves around 10.5KB flash on px4-fmu-v5
2022-08-25 22:02:15 -04:00
Beat Küng
060738cae1
src: avoid use of double precision pow & exp
...
saves around 5KB flash on px4-fmu-v5
2022-08-25 22:02:15 -04:00
Beat Küng
983a9815eb
libevents: update submodule
2022-08-25 22:02:15 -04:00
Beat Küng
4c41934bb4
commander: inline HealthComponentIndex::HealthComponentIndex
...
Saves around 1KB flash
2022-08-25 22:02:15 -04:00
Beat Küng
1c89b0c9c8
commander: use actuator_function for ESC reporting
2022-08-25 22:02:15 -04:00
Beat Küng
13c93db11a
commander: use circuit breaker params directly in arming checks
2022-08-25 22:02:15 -04:00
Beat Küng
4230eee24f
commander: print 'ready for takeoff' to console for sitl after startup
2022-08-25 22:02:15 -04:00
Beat Küng
2fccb576ad
commander: remove unused includes and variables
2022-08-25 22:02:15 -04:00
Beat Küng
dbb814ff24
HealthAndArmingChecks: CONSOLE_PRINT_ARMING_CHECK_EVENT & reduce flash usage
...
- print list of events whenever they change if
CONSOLE_PRINT_ARMING_CHECK_EVENT is set, instead of on each update call
- reduce flash usage by moving out templated code into non-template method
2022-08-25 22:02:15 -04:00
Beat Küng
b2cb164c12
commander: replace health flags with health_report from arming checks
2022-08-25 22:02:15 -04:00
Beat Küng
6d1fb92eb7
commander: rework arming checks to use the events interface
2022-08-25 22:02:15 -04:00
Beat Küng
b4a3597c7d
posix rcS: set PWM_AUX_OUT
...
Prevents a shell error in rc.interface
2022-08-25 22:02:15 -04:00
Beat Küng
b3fe0eeae8
mavlink_events: send reset sequence out immediately on startup
2022-08-25 22:02:15 -04:00
Beat Küng
552d08176f
posix rcS: set MAV_PROTO_VER to 2
...
For SITL it's important that the GCS receives the first events messages
that reset the sequence number, in case the user does not press 'Disconnect'
when restarting SITL.
2022-08-25 22:02:15 -04:00
Beat Küng
c7b64e3c01
commander: check for ack when calling 'commander takeoff'
2022-08-25 22:02:15 -04:00
Beat Küng
406b0bbc86
commander: handle VEHICLE_CMD_RUN_PREARM_CHECKS
2022-08-25 22:02:15 -04:00
Beat Küng
8f9be0541f
HealthAndArmingChecks: add support for legacy mavlink_log reporting
2022-08-25 22:02:15 -04:00
Beat Küng
f23363f88c
HealthAndArmingChecks: add unit tests for Report
2022-08-25 22:02:15 -04:00
Beat Küng
2507f0a143
px4events: fix known_groups list
2022-08-25 22:02:15 -04:00
Beat Küng
fcadc69e52
mavlink_receiver: set timestamp to gps_inject_data_topic
2022-08-25 22:02:15 -04:00
Beat Küng
c95192d050
orb_print_message_internal: handle 64 bit bitsets
2022-08-25 22:02:15 -04:00
Beat Küng
b7a6de05df
arming checks: add health topic
2022-08-25 22:02:15 -04:00
Beat Küng
07afcf4586
commander preflight checks: new structure using events interface
...
- Reporter class that keeps track of results (list of events + whether
arming is possible + health).
And only reports when one or more checks change.
2022-08-25 22:02:15 -04:00
Beat Küng
04f7df3848
SubscriptionMultiArray: use Subscription instead of SubscriptionInterval
...
Saves ~3KB RAM on fmu-v5.
2022-08-25 22:02:15 -04:00
Daniel Agar
9b0b0d1168
ekf2: update test change indication csv
2022-08-25 15:55:45 -04:00
Ville Juven
f60f6d2425
Remove px4_work_queue from the kernel side LD command
...
The comment is right, it is not needed -> get rid of it
2022-08-25 13:30:11 -04:00
Daniel Agar
2786239ca6
Jenkinsfile: HIL remove delete airframe from test
2022-08-25 09:48:49 -04:00
Benjamin Perseghetti
02c9ec6085
Add thumbnails for x500.
2022-08-25 09:10:03 -04:00
Benjamin Perseghetti
0e8e38e698
Add x500 ignition (replaces x3)
2022-08-25 09:10:03 -04:00
Daniel Agar
4040e4cdf2
simulation organization and cleanup
...
- new modules/simulation directory to collect all simulators and related modules
- new Tools/simulation directory to collect and organize scattered simulation submodules, scripts, etc
- simulation module renamed to simulator_mavlink
- sih renamed to simulator_sih (not a great name, but I wanted to be clear it was a simulator)
- ignition_simulator renamed to simulator_ignition_bridge
- large sitl_target.cmake split by simulation option and in some cases pushed to appropriate modules
- sitl targets broken down to what's actually available (eg jmavsim only has 1 model and 1 world)
- new Gazebo consistently referred to as Ignition for now (probably the least confusing thing until we fully drop Gazebo classic support someday)
2022-08-25 09:10:03 -04:00
David Sidrane
6b2509cbba
px4_fmu-v6c Move I2C 4 to External
2022-08-25 08:46:51 -04:00
FARHANG
8b4df8ceb2
airframes: re-add Holybro X500v2 with dynamic control allocation
2022-08-25 07:52:18 +02:00
Jukka Laitinen
f8f1213841
board_adc: Small fix for printf formatter
...
Print sizeof type with %zu to be compatible with 64 bit targets, where it is unsigned long
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-08-25 07:50:23 +02:00
bresch
0061ef8b89
[AUTO COMMIT] update change indication
2022-08-24 09:16:11 -04:00
bresch
090d03eea2
ekf2: publish GNSS, rng and EV height biases
2022-08-24 09:16:11 -04:00
bresch
a2a29ba0dd
ekf2: verify parameter configuration for height sources
2022-08-24 09:16:11 -04:00
bresch
8dd5d0d1a3
ekf2: don't reset height when in conditional range aiding
2022-08-24 09:16:11 -04:00
bresch
20cd599bb7
ekf2: fix param migration
2022-08-24 09:16:11 -04:00
bresch
2d39097f60
ekf2: move rng height to file
2022-08-24 09:16:11 -04:00
bresch
28b4cd0579
ekf2: move GNSS hgt control to file
2022-08-24 09:16:11 -04:00
bresch
b6f76b5eaa
ekf2: move ev control to file
2022-08-24 09:16:11 -04:00
bresch
f555281c94
ekf2: move height control-related function to file
2022-08-24 09:16:11 -04:00
bresch
d87feee5b0
ekf2: move baro control logic to file
2022-08-24 09:16:11 -04:00
bresch
12e25eba62
ekf2: add common height fusion timeout parameter
2022-08-24 09:16:11 -04:00
bresch
52f726c5b7
ekf2: in bias estimator, use psd instead of var for prediction
...
PSD is independent from the sampling time while variance isn't
2022-08-24 09:16:11 -04:00
bresch
b04d61c411
ekf2: param migration for rng aid, aid mask (gps) and hgt mode
2022-08-24 09:16:11 -04:00
bresch
3fb218600a
ekf2_test: add multi height source unit tests
2022-08-24 09:16:11 -04:00
bresch
aba2eac0df
ekf2: publish GNSS, rng and EV height biases
2022-08-24 09:16:11 -04:00
bresch
6833c7e311
ekf2: adjust ekf2 aid parameters in configs
2022-08-24 09:16:11 -04:00
bresch
8962cf2d25
ekf2: GPS, baro and range finder control parameters
...
Also remove the legacy "range aid" than can be achieved by setting the
height reference to range finder and the range finder control parameter
to "conditional".
Conditional range aiding cal also be set when the height reference isn't
the range finder. This prevents the ratchetting effect due to switching
between references.
2022-08-24 09:16:11 -04:00
bresch
578e1339ca
ekf2: re-implement range aid
...
range aid simply forces the range finder to be the height reference when
starting
2022-08-24 09:16:11 -04:00
bresch
88ac5ea210
ekf2_test: add test case for accel clipping handling
2022-08-24 09:16:11 -04:00
bresch
375753eba8
ekf2_test: add inertial nav falling detection tests
2022-08-24 09:16:11 -04:00
bresch
66ce1a002b
ekf2_test: rename VisionHeight -> ExternalVisionHeight
2022-08-24 09:16:11 -04:00
bresch
82ec7a495a
ekf2: refactor inertial nav falling check
2022-08-24 09:16:11 -04:00
bresch
f9188b2a14
ekf2: refactor vertical acceleration check for multiple height sources
2022-08-24 09:16:11 -04:00
bresch
8fd79688c0
ekf2: enable multiple height sources fusion
...
Instead of having a single height source fused into the EKF and the
other ones "waiting" for a failure or the primary sensor, fuse all
sources in EKF2 at the same time. To prevent the sources from fighting against each
other, the "primary" source is set as reference and the other ones are
running a bias estimator in order to make all the secondary height
sources converge to the primary one.
If the reference isn't available, another one is automatically selected
from a priority list. This secondary reference keeps its current bias
estimate but stops updating it in order to be the new reference as close
as possible to the primary one.
2022-08-24 09:16:11 -04:00
bresch
f5f31006a0
Ekf2: create HeightBiasEstimator class
...
Contains some logic common to all height bias estimators
2022-08-24 09:16:11 -04:00
JacobCrabill
57125a4c8f
cyphal: Fix FMUv5 config; throw error if no CAN driver exists
2022-08-23 21:24:24 -04:00
huiyulhy
c81efd0174
Fix velocity smoothing functional test
2022-08-23 21:11:35 -04:00
Beat Küng
7b810bb776
boards: update px4 io binary
2022-08-23 21:07:18 -04:00
Beat Küng
b260df711c
Makefile: force serial build for px4io_update
2022-08-23 21:07:18 -04:00
Beat Küng
bae275898b
rc/sbus: restart parser after sucessful decoding & increase time limit
...
Instead of directly passing the next packet to the parser after successful
parsing, switch the state to SBUS2_DECODE_STATE_SBUS_START and search for
the start byte again.
The timeout is increased as the IO main loop also takes a bit of time
(max ~0.7ms).
Tested on v5x with Futaba R7008SB (60Hz update rate) and FrSky X8R (111Hz
update rate).
Background:
When using the Futaba R7008SB, I noticed there's additional bytes added in
between packets. Often it's a null byte, but sometimes more. There's some
consistency but I did not find any documentation for it.
Sample data:
a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 34 00 0f 05 ec
1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 04 00 c0 8b
00 0f 04 ec 1f a8 fb 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00
14 00 0f 04 ec 1f a8 fb 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80
00 24 00 0f 05 ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10
80 00 34 00 0f 05 ec 1f 30 60 bf 1c bd 07 16 5b 81 05 d4 a0 06 20 00 01 08
40 00 02 10 80 00 34 00 0f 07 ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01
08 40 00 02 10 80 00 04 00 03 c0 31 00 0f 05 fc 1f a8 fb 07 16 5b 81 05 d4
a0 06 20 00 01 08 40 00 02 10 80 00 14 00 0f 05 fc 1f a8 fb 07 16 5b 81 05
d4 a0 06 20 00 01 08 40 00 02 10 80 00 24 00 0f 04 ec 1f a8 fd 07 16 5b 81
05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 34 00 0f 04 ec 1f a8 fd 07 16 5b
81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 04 00 03 c4 00 00 0f 04 ec 1f
a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 14 00 0f 04 ec
1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 24 00 0f 04
ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 34 00 0f
05 ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 04 00
03 c0 31 00 0f 05 ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02
10 80 00 14 00 0f 05 fc 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00
02 10 80 00 24 00 0f 05 fc 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40
00 02 10 80 00 34 00 0f 05 ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08
40 00 0f 05 ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80
00 04 00 03 c0 31 00 0f 05 ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08
40 00 02 10 80 00 14 00 0f 05 ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01
08 40 00 02 10 80 00 24 00 0f 05 ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00
01 08 40 00 02 10 80 00 34 00 0f 05 f4 1f a8 fb 07 16 5b 81 05 d4 a0 06 20
00 01 08 40 00 02 10 80 00 04 00 03 c4 00 00 b0 60 7f 1c bd 07 16 5b 81 05
d4 a0 06 20 00 01 08 40 00 02 10 80 00 14 00 0f 05 ec 1f a8 fd 07 16 5b 81
05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 24 00 0f 05 ec 1f a8 fd 07 16 5b
81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 34 00 0f 05 ec 1f a8 fb 07 16
5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 04 00 03 c0 31 00 b0 60 bf
1c bd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 14 00 0f 04 f4
1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 24 00 30 70
7f 1c bd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 34 00 0f 05
f4 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10 80 00 04 00 03
c4 00 00 0f 05 fc 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01 08 40 00 02 10
80 00 14 00 0f 05 ec 1f b0 60 bf 1c bd 07 16 5b 81 05 d4 a0 06 20 00 01 08
40 00 02 10 80 00 14 00 0f 05 ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00 01
08 40 00 02 10 80 00 24 00 0f 05 ec 1f a8 fd 07 16 5b 81 05 d4 a0 06 20 00
This was causing the parser to skip entire packets resulting in an update
rate of ~31Hz on the FMU side.
With this patch the update rate increases to 42-48Hz.
The investigation was triggered by an RC glitch with a packet containing
random channel data. It's likely, although not completely verified that
the frequent desync randomly happend to pass the CRC check with garbage
data.
2022-08-23 21:07:18 -04:00
Daniel Agar
b58f70726f
ekf2: scale delta angle and delta velocity bias to particular IMU sample
2022-08-23 21:06:13 -04:00
Ville Juven
213d5dac2a
platforms/nuttx: Fix hard coded path for karch library
...
Use CONFIG_ARCH instead of arm
2022-08-23 21:05:41 -04:00
Ville Juven
4f6d523c95
mixer_module: Fix linking of mixer_module
...
The module has a hard dependency on mixer library, so link them together
2022-08-23 21:04:58 -04:00
bresch
f89044cfbe
ekf2: fix replay EKF2 start when CONSTRAINED_FLASH
2022-08-23 11:14:15 -04:00
modaltb
40149ecabc
boards: modalai_fc-v2 configure SPI6, disable unused SPI3/4 ( #20093 )
2022-08-22 20:58:44 -04:00
alexklimaj
913bae9924
Revert "drivers/uavcan: update libuavcan"
...
This reverts commit deb938fcea .
2022-08-22 20:57:06 -04:00
Daniel Agar
cfc579542e
new Ignition Gazebo simulation interface architecture ( #20057 )
...
- much simpler direct interface using Ignition Transport
- in tree models and worlds
- control allocation output configuration, no more magic actuator mapping to mavlink and back
- currently requires no custom Gazebo plugins (keeping things as lightweight and simple as possible)
Co-authored-by: Jaeyoung-Lim <jalim@ethz.ch >
2022-08-22 10:58:19 -04:00
Silvan Fuhrer
889a2fddea
FW Position Control: remove unnsed params
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 19:06:07 +02:00
Silvan Fuhrer
e3e021a1c2
FW Attitude Control: rename att_control to angular_acceleration_setpoint
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
e595952ed4
FW Attitude Control: add @brief, @param and @return for control_attitude()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
f67d80460f
FW Attitude controller: update copyright headers
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Jaeyoung Lim
bcdf61b65f
Fix format
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
b87afb138c
Update src/modules/fw_att_control/FixedwingAttitudeControl.cpp
...
reduce code duplication
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2022-08-19 09:40:48 +02:00
Jaeyoung Lim
70134296ed
Fix parameter description from review comments
...
This commit makes the parameter description of the fixewing attitude controller more descriptive
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
70d7070307
ROMFS: plane airframe: make tuning tighter
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
c54f62e17a
FW attitude control: fix ff terms and constrain outputs to (-1, 1)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
dadd4f39ad
FW attitude control: fix yaw rate publishing
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
6724e4af26
FW attitude control: manual stick input sets yaw rate setpoint, not rudder directly
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
22067a1128
FW attitude control: set FF gains for rate controller to 0 as FF controls is handles outside
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
57e052d02d
FW attitdue controller: use allocator status for anti-windup
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
6aab44e425
ControlAllocator: publish allocator_status from all active matrices (2 for VTOL, otherwise 1)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
a9b848cae3
FW attitue controller: fix publishing of rate controller status
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
5a2127d026
fixed-wing: update rate controller integrator handling
...
-always reset roll/pitch/yaw integrators at the same time
-reset them while waiting for launch or during FW Takeoff before Climbout
-reset wheel rate integrator only when disarmed
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
cd080289c6
FW attitude controller: constrain rates correctly
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
15c95a7b6a
FW attitude controller: improve readability and fix euler rate sp vs. body rate sp
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Silvan Fuhrer
e0a998e6ad
FW attitude controller: remove unused control_input.scaler
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Jaeyoung Lim
33d068cfb2
Added feedforward terms in fw att control
2022-08-19 09:40:48 +02:00
Jaeyoung Lim
958c61dbba
Populate rate control setpoints properly
2022-08-19 09:40:48 +02:00
JaeyoungLim
6f24f4cd1c
Update src/modules/fw_att_control/fw_att_control_params.c
...
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-19 09:40:48 +02:00
Jaeyoung Lim
dcff481219
Map derivative gains for rate controls
2022-08-19 09:40:48 +02:00
Jaeyoung-Lim
f2877ce585
Replace rate controller with RateControlLibrary
...
This commit makes the fw attitude controller take share the rate controller as a library with the mc_rate_control module
2022-08-19 09:40:48 +02:00
Thomas Debrunner
44a18acd51
Fix race condition in px4io serial driver ( #20005 )
...
* px4io: prevent memory corruption on corrput io data
* px4io_serial: Prevent race between handling wait timeout case and interrupt posting semaphore
2022-08-18 17:46:47 +02:00
bresch
02c4e0361c
MCPosControl: fix horizontal anti-reset windup algirithm
...
Since the horizontal and vertical velocity controllers are now
decoupled, it can be that the horizontal acceleration produced by the
controller is actually greater than the desired one (by design). This
condition would actually make the ARW run "backwards", degrading the
controller performance.
2022-08-18 14:19:10 +02:00
mcsauder
87a5705960
Rename math::gradual() to math::interpolate() and add unit tests to cover additional corner cases.
2022-08-18 14:18:02 +02:00
bresch
021b23826d
wind_replay: allow estimated local vel and GNSS vel sources
...
local vel by default, set --gnss to use GNSS vel instead
2022-08-18 14:09:23 +02:00
bresch
be6acb0a68
wind_est: add python script to replay wind estimator equations
2022-08-18 14:09:23 +02:00
bresch
4d21c90cbb
wind_est: generate wind estimator equations for python use
2022-08-18 14:09:23 +02:00
Kalyan Sriram
deb938fcea
drivers/uavcan: update libuavcan
2022-08-16 11:05:51 -04:00
Daniel Agar
1c72f86761
Update src/drivers/imu/analog_devices/adis16470/ADIS16470.cpp
...
Co-authored-by: Kabir Mohammed <kabir@corvus-robotics.com >
2022-08-16 08:40:43 -04:00
Daniel Agar
49d87f1907
adis16470: fix accel and gyro scaling
2022-08-16 08:40:43 -04:00
bresch
616b5689ba
Python: move symforce to optional requirements
...
symforce requires python 3.8 which isn't available by default on ubuntu
18.04.
2022-08-15 21:14:07 -04:00
Silvan Fuhrer
a7a8daaf4d
ROMFS: tiltrotor sitl config: some small tuning improvements in hover
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-16 02:48:44 +02:00
Silvan Fuhrer
771dbf9395
ROMFS: tiltrotor sitl config: adapt CA params to new output indexes
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-16 02:48:44 +02:00
Silvan Fuhrer
09f83016c9
update sitl_gazebo (tiltrotor index fixes)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-16 02:48:44 +02:00
Junwoo Hwang
d7a962b426
mavlink: fix PX4_DEBUG message formats
2022-08-12 09:43:12 +02:00
Junwoo Hwang
0c218e6628
atl/mantis-edu: enable mavlink ftp
2022-08-12 09:43:12 +02:00
Silvan Fuhrer
ffb8fb4383
Allocation: add SteeringWheel type control surface
...
Directly use yaw controls for it, and don't add it to the allocation matrix,
as that would have an effect on rudder scaling if the wheel also would have
a yaw effectiveness.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-12 09:43:12 +02:00
Silvan Fuhrer
9e18b351bc
Allocation: add Single Channel Aileron to CS types
...
This is the control surface type for airframes that have only a
single aileron servo or have the ailerons on a single output channel.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-12 09:43:12 +02:00
Silvan Fuhrer
c6d1b1f50f
Allocation: add A-tail servo type
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-12 09:43:12 +02:00
Beat Küng
f454dcef6b
ROMFS: set control allocation parameters for airframes
...
Removes some airframes:
- 1000_rc_fw_easystar.hil
- 10015_tbs_discovery
- 10016_3dr_iris
- 10018_tbs_endurance
- 13001_caipirinha_vtol
- 13002_firefly6
- 13003_quad_tailsitter
- 13004_quad+_tailsitter
- 13005_vtol_AAERT_quad
- 13006_vtol_standard_delta
- 13007_vtol_AAVVT_quad
- 13008_QuadRanger
- 13009_vtol_spt_ranger
- 13012_convergence
- 13050_generic_vtol_octo
- 14001_tri_y_yaw+
- 14002_tri_y_yaw-
- 15001_coax_heli
- 2105_maja
- 2200_mini_talon
- 3031_phantom
- 3032_skywalker_x5
- 3033_wingwing
- 3036_pigeon
- 3100_tbs_caipirinha
- 4003_qavr5
- 4009_qav250
- 4019_x500_v2
- 4030_3dr_solo
- 4031_3dr_quad
- 4051_s250aq
- 4072_draco
- 4080_zmr250
- 4090_nanomind
- 4100_tiltquadrotor
- 50003_aion_robotics_r1_rover
2022-08-12 09:43:12 +02:00
Beat Küng
4d60fadc05
ROMFS: set control allocation parameters for sitl airframes
...
Removes some airframes:
- if750a
- solo
- iris_ctrlalloc
- typhoon_h480_ctrlalloc
2022-08-12 09:43:12 +02:00
Beat Küng
f2db7b8deb
control_allocator: hide motor positions for fixed-wings
...
should not be set for now
2022-08-12 09:43:12 +02:00
Beat Küng
923a90d78b
control_allocator: set default control surface type to (not set)
...
Before it was set to left aileron, but the torque values were all 0.
2022-08-12 09:43:12 +02:00
Beat Küng
720cf5a485
config: enable dynamic control allocation by default (SYS_CTRL_ALLOC=1)
2022-08-12 09:43:12 +02:00
Oleg
6ea3c6a7d2
mavlink_ftp: fix to correctly trim reply messages
...
Clear any not used payload data to correctly trim mavlink ftp message reply to avoid sending long ACK and NACK messages.
2022-08-12 08:53:33 +02:00
David Sidrane
cd971948da
NuttX Backport critical F7 Ethernet issues
2022-08-12 08:22:55 +02:00
Matthias Grob
1f81101994
mc_att_control_main: do not jump throttle scaling when taking off
...
2fbb70d9ca made the lowest possible
throttle value commanded by stick in Stabilized mode before taking off 0.
The real world problem with this is that when takeoff is detected then
the entire throttle scaling range jumps from
[0, MPC_MANTHR_MIN]
to [MPC_MANTHR_MIN, MPC_MANTHR_MIN].
As a result whenever MPC_MANTHR_MIN is not zero there is a thrust jump
on every takeoff just at the moment takeoff is detected even when the
stick is moved continuously.
Because of this I suggest to revert to having a higher throttle value
from the beginning on because it's less complicated and there's
no obvious value in starting out with zero thrust if anyways not
possible to go back to zero for safety once takeoff is detected.
2022-08-11 14:18:54 +02:00
Matthias Grob
5b1b6f6080
mc_att_control_main: use gradual() for throttle curve rescale without hover thrust
2022-08-11 14:18:54 +02:00
Matthias Grob
7cb6a47714
TIME_ESTIMATE_TO_TARGET: fill unsupported fields with value representing unavailability
2022-08-11 07:27:04 +02:00
bresch
7996a1a70f
ekf2: reset ekf preflight checks on takeoff correctly
...
Using the control status flags isn't robust as this part of the code
runs at the EKF update rate while the in_air transition is don at the
prediction rate. It was then likely to miss the transition
2022-08-10 16:52:28 +02:00
marcirsch
a8b342722e
mavlink_main: Add TIME_ESTIMATE_TO_TARGET stream to config, onboard, and onboard_low_bandwidth modes
...
Signed-off-by: marcirsch <marcell@auterion.com >
2022-08-10 09:13:58 +02:00
marcirsch
4bf6ebf4c3
TIME_ESTIMATE_TO_TARGET: Populate TIME_ESTIMATE_TO_TARGET MAVLink message with the estimated time to RTL
...
mavlink_messages: Added newly created MAVLink stream
mavlink_main: Enabled stream
Signed-off-by: marcirsch <marcell@auterion.com >
2022-08-10 09:13:58 +02:00
Daniel Agar
7f2fea1cca
mpu9250: try all I2C addresses if not manually specified
2022-08-09 13:06:40 -04:00
Jaeyoung Lim
d4b77a6172
Update sitl gazebo submodule
2022-08-09 16:35:27 +02:00
Jaeyoung Lim
ea5b1be2d4
Disable rear motors tilt for tiltrotor SITL airframe
...
This commit disables the rear motor tilt on the tiltrotor SITL airframe
2022-08-09 16:35:27 +02:00
Jukka Laitinen
c7aaf52fd4
Double the allocated stack size of 64-bit NuttX built-in modules
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-08-09 08:08:54 +02:00
Daniel Agar
7c809f034d
replay: ReplayEkf2 disable parameter auto save
...
- not needed and silences a startup error
2022-08-08 21:27:47 -04:00
Daniel Agar
34dee09b74
ekf2: replay fixes, don't use HRT for timeout checks
...
- this interferes with current ekf2 replay where the latest IMU sample
is effectively the current timestamp
2022-08-08 21:27:47 -04:00
Daniel Agar
1c49a4349f
ekf2: force skip multi-EKF config if replay is enabled
2022-08-08 21:27:47 -04:00
Daniel Agar
66b55d9d0a
ekf2: fix yaw estimator velocity accuracy
...
- additionally require GPS speed accuracy is within EKF2_REQ_SACC
2022-08-08 21:27:01 -04:00
bresch
d9d127a237
lightware dist sensor: set min range based on datasheet
2022-08-08 19:32:44 -04:00
Daniel Agar
0bce1ef573
drivers/imu: new TDK IIM-42652 IMU support
2022-08-08 13:51:39 -04:00
Thomas Stastny
0ea347a5c9
fw pos ctrl: fix the touchdown offset on flare, and nudge the wheel directly
2022-08-08 09:32:44 +02:00
Thomas Stastny
02d7a46025
fw pos ctrl: increase landing nudge rate
2022-08-08 09:32:44 +02:00
Beat Küng
3e68870547
gtest: update to version 1.12.1
...
Fixes the error
googletest-src/googletest/src/gtest-death-test.cc:1283:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized]
with GCC 11
2022-08-08 07:43:42 +02:00
Daniel Agar
bce4237963
move ekf2 Matrix helper utilities to mathlib
2022-08-05 09:58:07 -04:00
Silvan Fuhrer
6ebc88fed7
ROMFS: vtol_defaults: reduce aggressiveness around roll and yaw axis
...
For most VTOLs the param defaults for the agressiveness of the MC attitude controller
are too high, as VTOLs usually have high intertia and lot af drag due to wings and
can thus not rotate as fast as MCs.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-05 14:11:59 +02:00
Silvan Fuhrer
a064164c14
FW pos C params: add param group FW Auto Landing
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-05 14:11:59 +02:00
Silvan Fuhrer
b039ae1614
FW pos c params: change grouping of some clearly longitudinal params to TECS
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-05 14:11:59 +02:00
Silvan Fuhrer
45073f000a
FW Position control: reduce defaults for max pitch
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-05 14:11:59 +02:00
Silvan Fuhrer
d04f21aa16
FW attitude controller: reduce FW_MAN_P_MAX from 45 to 30
...
45° is a very large pitch angle, and for me 30° is much more reasonable for
a default value.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-05 14:11:59 +02:00
Silvan Fuhrer
828992adf7
increase default of MPC_Z_VEL_MAX_DN and MPC_Z_V_AUTO_DN from 1 to 1.5
...
I think most vehicle can safely decend with at least 1.5m/s, and having this
value too low makes Descents/Landings/RTLs unnecessary long.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-05 14:11:59 +02:00
Silvan Fuhrer
c42667ac64
ROMFS: vtol_defaults: remvoe custom NAV_ACC_RAD, leave at param default (10)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-05 14:11:59 +02:00
Silvan Fuhrer
4614c1a0b4
ROMFS: vtol_defaults: increase default hover speeds
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-05 14:11:59 +02:00
Silvan Fuhrer
0d10491b89
ROMFS: vtol_defaults: remove MPC_TKO_SPEED from VTOL defaults
...
The VTOL default was set to 1, while the param default is 1.5.
I don't see why it shuold be a different default for VTOLs and thus remove it.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-05 14:11:59 +02:00
Matthias Grob
87cbda1992
FlightTaskOrbit: parameterize hardcoded maximum radius ( #20012 )
2022-08-05 09:19:32 +02:00
Daniel Agar
dfdfbbfa9c
msg/vehicle_odometry.msg: simplify covariance handling and update all usage ( #19966 )
...
- replace float32[21] URT covariances with smaller dedicated position/velocity/orientation variances (the crossterms are unused, awkward, and relatively costly)
- these are easier to casually inspect and more representative of what's actually being used currently and reduces the size of vehicle_odometry_s quite a bit
- ekf2: add new helper to get roll/pitch/yaw covariances
- mavlink: receiver ODOMETRY handle more frame types for both pose (MAV_FRAME_LOCAL_NED, MAV_FRAME_LOCAL_ENU, MAV_FRAME_LOCAL_FRD, MAV_FRAME_LOCAL_FLU) and velocity (MAV_FRAME_LOCAL_NED, MAV_FRAME_LOCAL_ENU, MAV_FRAME_LOCAL_FRD, MAV_FRAME_LOCAL_FLU, MAV_FRAME_BODY_FRD)
- mavlink: delete unused ATT_POS_MOCAP stream (this is just a passthrough)
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2022-08-04 12:55:21 -04:00
bresch
61f390b0dd
ekf2_test: fix height offset compensation after origin reset
2022-08-04 16:50:31 +02:00
bresch
e34de53e2e
ekf2_test: let the GPS start before setting the new origin
...
fix test by reducing the distance to the new origin: the maximum size of
the local position origin is a cube of 1e6m. If the origin is moved
further than this, the state is clipped to that maximum value
2022-08-04 16:50:31 +02:00
Silvan Fuhrer
55f395a7e9
FlightTaskAuto: apply cruise speed from position triplet also when negative ( #20006 )
...
Navigator sets the cruise_speed to -1 if the controller shouldn't listen to
it and instead use the default speed (for MC: MPC_XY_CRUISE). This is for
example for RTL the case, where we want to return at the default speed,
independetly of what the mission speed before was.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-08-04 13:36:15 +02:00
FARHANG
2498cbbb74
boards: px4_fmu-v6c rc.board_defaults remove irrelevant ethernet configuration
2022-08-03 11:13:12 -04:00
Tony Cake
f321117568
GHST: Add support for GPS Telemetry ( #19953 )
...
Add support for the basic GPS telemetry values when using the GHST protocol.
* Fix formatting in GHST GPS telemetry changes
* GHST GPS Telemetry formatting cleanup
* GHST GPS Telemetry, Last formatting change
2022-08-03 10:44:21 +02:00
Hamish Willee
270c456121
CI - build on main as well ( #20001 )
2022-08-02 16:52:17 -07:00
Roman Bapst
dbf7d32e07
Skip VTOL_TAKEOFF mission item when in fixed wing mode ( #19985 )
...
* mission: skip VTOL_TAKEOFF mission item when in fixed wing mode
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* mission: added better comment regarding skipping VTOL Takeoff in fw mode
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-08-02 15:34:42 +02:00
RomanBapst
f11f2e9797
addressed review comments
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-08-02 15:29:25 +02:00
RomanBapst
a425bc4c92
vehicle_local_position: fixed comment
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-08-02 15:29:25 +02:00
RomanBapst
fbd4534edc
WindEstimator: reworked filter initialisation
...
- separate initialisation with and without airspeed
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-08-02 15:29:25 +02:00
RomanBapst
a63f1b71fe
wind_estimator: added simple check for validity of synthetic airspeed
...
- synthetic airspeed will only be declared valid as soon as the wind variance
has dropped below a parameterized threshold. This is useful for vehicles without
an airspeed sensor which rely on synthetic airspeed but only once the vehicle
has turned sufficiently for the wind estimates to be reliable.
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-08-02 15:29:25 +02:00
Hamish Willee
a715b5468e
mc_wind_estimator - improve readability ( #19545 )
2022-08-02 09:26:06 +02:00
Hamish Willee
30e2490d5b
Docs are now in user guide and main ( #19977 )
...
* Fix links to docs in source to point to docs on main not master
* More docs and scripts that need to point to main
2022-08-01 11:39:39 +10:00
Peter van der Perk
c566fb414b
S32K1XX add dummy iwdg driver
2022-07-31 11:21:41 -04:00
Beat Küng
e7588d2da0
px4io+pwm_out: set the PWM rate and disarmed value when a channel is first set to a servo
...
This should simplify the first setup a bit.
2022-07-31 11:20:57 -04:00
Igor Mišić
f929017618
boards: link missing arch_io_pins lib
2022-07-31 11:19:20 -04:00
Daniel Agar
41d9c3dd2a
ekf2: add AUX velocity aid src status
...
- also includes velocity and position helpers for using estimator aid
source status messages that will later be used for GPS, EV, etc
2022-07-29 12:02:31 -04:00
Daniel Agar
a397c09e59
ekf2: use estimator_aid_src for all yaw sources (mag, gnss, ev)
2022-07-29 11:20:48 -04:00
Agata Barcis
d5d88cba5b
generate_microRTPS_bridge.py updated to support ROS2 humble
...
Signed-off-by: Agata Barcis <agata.barcis@tii.ae >
2022-07-29 15:21:05 +02:00
Silvan Fuhrer
638eff426a
AirspeedValidator: increase max update step size of tas_scale_validated from 1% to 5%
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-07-29 09:29:27 +02:00
Beniamino Pozzan
a20483ed11
msg/position_controller_landing_status.msg: fix constant name conventions
...
- msg constant names now comply with ROS conventions:
uppercase alphanumeric characters with underscores for separating words
partially fix #19917
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2022-07-28 11:29:03 -04:00
Daniel Agar
9ed861e0a3
lib/mixer_module: split functions into separate headers
...
- this arguably improves visibility/discoverability
2022-07-28 08:08:58 +02:00
bresch
f7ff0a9961
WindEstimator: add test case for airspeed fusion singularity
2022-07-27 08:19:40 -04:00
Daniel Agar
38c02ea29a
wind_estimator: cmake add symforce generation helper target (wind_estimator_generate_airspeed_fusion)
2022-07-27 08:19:40 -04:00
bresch
26190a7799
WindEstimator: use SymForce auto-generated function for airspeed fusion
2022-07-27 08:19:40 -04:00
Hamish Willee
e6eed43648
Spelling errors ( #19935 )
2022-07-27 14:33:16 +10:00
RomanBapst
97f632a408
vtol_takeoff: reset reposition triplet before handing over to loiter mode
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-25 14:48:18 +02:00
Igor Mišić
d6488fafc3
serial_test: fix first write_count_value for next write
2022-07-25 11:48:36 +02:00
Igor Mišić
32ca7ad706
serial_test: fix write for max buffer size
2022-07-25 11:48:36 +02:00
Taylor Nelms
21cb0ef50f
Component: flash parameter storage on stm32h7. Fixes #15331 .
...
As per the discussion in #15331 , fixed issue where stm32h7 chips
use hardware ECC bits in program memory that disallow overwriting
32-byte flash line that has already been written. As such,
this change allows for a variant implementation of the flashfs system
that uses more space in the flash entry header in order to
allow an entire line to be reserved for erasing an entry.
Signed-off-by: Taylor Nelms <tnelms@roboticresearch.com >
2022-07-25 08:19:00 +02:00
Thomas Stastny
6a0f394d46
rtl: reset rtl state only on activation
...
rtl state was getting reset on inactive, which meant that the state which triggered resuming e.g. mission landing would be overwritten, and the navigator mode would switch back and forth between rtl and mission. this commit:
1. moves the reset of rtl state to the on activation function (removing it from the on inactive function)
2. functionalizes the rtl state input to the rtl time estimator so that rtl time can still be calculated from state=none while inactive
2022-07-22 14:59:20 +02:00
Thomas Stastny
e512d77b89
RTL: expose RTL state
2022-07-22 14:59:20 +02:00
Silvan Fuhrer
85a621303d
VtolLandDetector: remove airspeed check
...
This commit removes the additional airspeed check (airspeed for VTOLs in
hover below LNDFW_AIRSPD_MAX), as it is not a required condition in the
landed state (headwind blowing into the airspeed sensor won't stop
once on the gruond). In FW mode the check would make more sense, but there
the land detector is currently simply disabled.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-07-22 08:31:32 +02:00
Daniel Agar
32c6ec061e
sensors: add kconfig options to skip angular velocity and acceleration
2022-07-21 11:27:09 -04:00
Silvan Fuhrer
c9c62b860c
ROMFS: add generic tiltrotor VTOL (13200)
...
Add geometry for a quad tiltrotor VTOL, with only front motors tiltable,
two ailerons and a V-tail.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-07-21 10:09:12 -04:00
Silvan Fuhrer
3ffc37d988
ROMFS: generic tailsitter VTOL: enable CA by default and remove legacy mixer
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-07-21 10:09:12 -04:00
Silvan Fuhrer
ab58717313
ROMFS: standard VTOL: enable CA by default and remove legacy mixer
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-07-21 10:09:12 -04:00
Silvan Fuhrer
607c53e873
ROMFS: flying wing: enable CA by default and remove legacy mixer
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-07-21 10:09:12 -04:00
Silvan Fuhrer
4dabc8b7ed
ROMFS: standard plane: enable CA by default and remove legacy mixer
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-07-21 10:09:12 -04:00
Daniel Agar
70e95812e7
ekf2: reset mag_lpf (by zeroing _mag_counter) when resetting mag bias (or changing mags)
...
- so that there's new filtered data avaiable for reset
2022-07-21 09:24:28 -04:00
Daniel Agar
ecdade3638
ekf2: mag in air reset fall back to regular resetMagHeading() if realignYawGPS() fails
2022-07-21 09:24:28 -04:00
Daniel Agar
05133aed27
ekf2: clear test ratios, flags, etc when stopping mag fusion
2022-07-21 09:24:28 -04:00
Daniel Agar
65a587e56a
ekf2: mag fusion don't update all states if mag_fault or mag_field_disturbed
2022-07-21 09:24:28 -04:00
Daniel Agar
a41a0e7e80
ekf2: resetMagHeading() split out simple init case
2022-07-21 09:24:28 -04:00
Daniel Agar
9efadad06a
ekf2: move checkMagFieldStrength() to magFieldStrengthDisturbed() const method
2022-07-21 09:24:28 -04:00
Daniel Agar
a7f573e150
ekf2: delete isStrongMagneticDisturbance()
2022-07-21 09:24:28 -04:00
Daniel Agar
e6e27e694e
ekf2: delete isYawResetAuthorized()
2022-07-21 09:24:28 -04:00
Daniel Agar
0f1f6daa1a
ekf2: delete isMagBiasObservable()
2022-07-21 09:24:28 -04:00
Daniel Agar
d160229f47
ekf2: delete isYawAngleObservable()
2022-07-21 09:24:28 -04:00
Daniel Agar
b0c979f745
ekf2: add copyright header to EKFGSF_yaw and utils
2022-07-21 09:24:28 -04:00
Daniel Agar
4fee059696
ekf2: simplify mag yaw reset request when transitioning to mag enabled
2022-07-21 09:24:28 -04:00
Daniel Agar
f254b55523
ekf2: add mag fusion timestamps
2022-07-21 09:24:28 -04:00
Jukka Laitinen
e3e067d640
stub_keystore: Allow using also with other that SW_CRYPTO driver
...
Remove "depends on DRIVERS_SW_CRYPTO"
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-07-21 08:08:14 +02:00
Jukka Laitinen
026bd073b5
Don't error on CONFIG_CRYPTO_RANDOM_POOL not defined
...
px4_secure_random can be implemented also outside NuttX for some platform
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-07-21 08:08:14 +02:00
Thomas Stastny
d6fb1114ff
rtl: fix printout of rtl delay time
2022-07-20 14:15:12 +02:00
Thomas Stastny
1ec62c4063
rtl: let fixed-wing RTL all the way to the loiter/delay state
...
also fix home vs destination alt discrepancy on RTL
2022-07-20 14:15:12 +02:00
Daniel Agar
2f3cb97872
sensors/vehicle_magnetometer: don't advertise vehicle_magnetometer instance if mag has been disable
...
- if using multi-EKF across all magnetometers then an instance of
vehicle_magnetometer is advertised immediately for every sensor_mag
instance
- this can become problematic if EKF2 multi-mag is enabled, but with
only 1 IMU (EKF2_MULTI_MAG) because you will be stuck with no magnetometer data
2022-07-20 01:18:19 -04:00
Daniel Agar
e5be0e776e
ekf2: if multi-mag disabled (EKF2_MULTI_MAG <= 1) properly re-enable sensors hub selection (SENS_MAG_MODE)
...
- this prevents potential misconfiguration if trying to disable ekf2 multi mag
2022-07-20 01:16:55 -04:00
Daniel Agar
8ccd8fbed1
px4io: minimal backup scheduling regardless of dynamic mixing
...
- even if there's no configured output we still need to run to grab RC
data
2022-07-20 01:15:36 -04:00
Daniel Agar
8f8615e6c2
delete CBRK_RATE_CTRL
2022-07-20 01:14:53 -04:00
Beat Küng
67107f4978
.clang-tidy: exclude some warnings
...
Some are too verbose, others don't apply to the code base
2022-07-20 01:14:04 -04:00
Beat Küng
84b0a889a4
cmake: add clion support
2022-07-20 01:14:04 -04:00
Beat Küng
f22dc80ecc
system: add missing includes (added indirectly via visibility.h for normal builds)
2022-07-20 01:14:04 -04:00
Beat Küng
ea136e73be
ekf2: remove unused variables
2022-07-20 01:14:04 -04:00
Thomas Schneider
cd66a262ee
Robustify RTPS bridge stream parsing.
2022-07-20 01:13:47 -04:00
Peter van der Perk
089fbdccc9
UAVCANNODE NuttX SocketCAN driver
...
Change init mode for CAN driver so it get executed in a single context
2022-07-20 01:12:43 -04:00
Peter van der Perk
47aaa38d5f
Added DroneCAN SocketCAN driver Skeleton
2022-07-20 01:12:43 -04:00
Daniel Agar
14df1ee917
boards: px4_fmu-v5x_rtps disable systemcmds/gpio to save flash
2022-07-20 01:05:28 -04:00
Daniel Agar
2ece92abd0
sagetech_mxs: module.yaml remove invalid default
2022-07-20 01:00:15 -04:00
Daniel Agar
ace80e2b9d
fw_att_control: add simple backup scheduling if vehicle_attitude unavailable (or stops)
2022-07-20 00:53:37 -04:00
jasta
1603883dc9
Configure SCALED_PRESSURE so temperature data is available to QGroundControl
2022-07-20 00:49:11 -04:00
jasta
a110032dc0
Fix typo in SCALED_PRESSURE*_HPP defines
...
This was preventing SCALED_PRESSURE* from being added to the list of
streams, so even if it was configured it still wouldn't work.
2022-07-20 00:49:11 -04:00
Thomas Stastny
413ce8a3c4
fw pos ctrl: absorb fw_lnd_rel_ter into fw_lnd_useter parameter
2022-07-19 22:37:09 -04:00
Thomas Stastny
de3ac12ecd
fw pos ctrl params: clarify landing parameters, change defaults
...
FW_LND_USETER defaulted to 1 and FW_LND_ABORT terrain based bits all enabled. why? because using a distance sensor is critical to detecting when to flare, and we want to force the user to actively disable these safety settings if they so choose, so that they understand the implications.
2022-07-19 22:37:09 -04:00
Thomas Stastny
26cb55ec2c
fw pos ctrl: takeoff and landing nudging enabled by default
2022-07-19 22:37:09 -04:00
Thomas Stastny
121cc1fce8
fw pos ctrl: rework landing abort status
...
abort boolean and reasons no longer separated, single status field with corresponding abort triggers
2022-07-19 22:37:09 -04:00
Thomas Stastny
694d36050a
fw pos ctrl: update landing parameter descriptions
2022-07-19 22:37:09 -04:00
Thomas Stastny
888e72661f
fw pos ctrl: add option to fix the glide slope reference altitude
...
- new param, FW_LND_TER_REL
- fixing the glide slope helps keep the landing glide behavior steady (avoiding bumps in the altitude setpoint from e.g. trees)
- flare is still triggered via the distance sensor, if enabled by FW_LND_USETERR
2022-07-19 22:37:09 -04:00
Thomas Stastny
c60b215574
fw pos ctrl: allow negative landing glide slope relative altitude
...
when the vehicle did not track the slope well (e.g. at an offset above the track) and the altitude setpoint flattening on intersection with terrain, the throttle would spool up to smoothly intersect the newly flattened altitude setpoint, this could happen before the flare altitude was reached, which is bad. now the steady state glide behavior will be maintained, and flare can trigger at the appropriate time
2022-07-19 22:37:09 -04:00
Thomas Stastny
4953fdd1ab
fw pos ctrl: variable min calibrated airsp in auto airspeed adjuster
2022-07-19 22:37:09 -04:00
Thomas Stastny
6612d4696d
fw pos ctrl: fix glide slope calculation, from geometry, not param
2022-07-19 22:37:09 -04:00
Thomas Stastny
d73b2e8625
fw pos ctrl params: update flaring param values and docs
2022-07-19 22:37:09 -04:00
Thomas Stastny
7283cd7c9d
fw pos ctrl: fix virtual waypoint calculation typo
2022-07-19 22:37:09 -04:00
Thomas Stastny
8f5b274e72
fw pos ctrl: refactor terrain estimate and land abort
...
- improve terrain estiamte documentation
- add landing abort condition bitmasked parameter to choose abort conditions
- refactor terrain estimate getter with landing abort logic
- log abort status and inform user
- log flaring status
2022-07-19 22:37:09 -04:00
Thomas Stastny
c98153e044
fw pos ctrl: enumerate landing nudging options, add to param documenation
2022-07-19 22:37:09 -04:00
Thomas Stastny
9fab914687
fw pos ctrl: use max function for landing approach entrance rel alt
2022-07-19 22:37:09 -04:00
Thomas Stastny
217efcb12d
fw pos ctrl: set idle throttle in landed conditions
...
also set the default idle throttle to zero as most PX4 applications use electric motors
2022-07-19 22:37:09 -04:00
Thomas Stastny
ceb432aacb
mission feasibility checker: use param_find() to check fixed-wing land angle
2022-07-19 22:37:09 -04:00
Thomas Stastny
4b0a8565fe
fw pos ctrl: lower underspeed detection bound for landing airspeed
2022-07-19 22:37:09 -04:00
Thomas Stastny
41b0a6c62c
fw pos ctrl: open up desired max sink rate limits for landing slope
...
- the target_sink_rate param could possibly constrain the maximum commanded sink rate to something less than that of the landing glide slope, which would make it impossible to track. this commit allows opening up the desired max sink rate up to the performance limits of the aircraft, if necessary, for the landing case
2022-07-19 22:37:09 -04:00
Thomas Stastny
d1aca4032d
mission feasibility / fw pos ctrl: add limited landing checks back, allow glide slopes below max
2022-07-19 22:37:09 -04:00
Thomas Stastny
87e09ad9f5
fw pos ctrl: auto landing refactor
...
- landing slope/curve library removed
- flare curve removed (the position setpoints will not be tracked during a flare, and were being ignored by open-loop maneuvers anyway)
- flare curve replaced by simply commanding a constant glide slope to the ground from the approach entrance, and commanding a sink rate once below flaring alt
- flare is now time-to-touchdown -based to account for differing descent rates (e.g. due to wind)
- flare pitch limits and height rate commands are ramped in from the previous iteration's values at flare onset to avoid jumpy commands
- TECS controls all aspects of the auto landing airspeed and altitude/height rate, and is only constrained by pitch and throttle limits (lessening unintuitive open loop manuever overrides)
- throttle is killed on flare
- flare is the singular point of no return during landing
- lateral manual nudging of the touchdown point is configurable via parameter, allowing the operator to nudge (via remote) either the touchdown point itself (adjusting approach vector) or shifting the entire approach path to the left or right. this helps when GCS map or GNSS uncertainties set the aircraft on a slightly offset approach"
2022-07-19 22:37:09 -04:00
bresch
f962399ba1
ekf2: rename BaroBiasEstimator -> BiasEstimator
2022-07-19 20:46:53 -04:00
Daniel Agar
39453405a0
ekf2: cleanup zero innovation heading fusion
...
- refactor updateQuaternion() to compute the yaw jacobian directly (respecting the rotation sequence determination)
- fuseHeading()/fuseYaw321()/fuseYaw312() helpers are eliminated and now mag heading fusion and EV yaw fusion compute the innovation in place
- clear up logic for performing zero innovation heading fusion when quaternion variance exceeds threshold (no more _is_yaw_fusion_inhibited flag manipulation)
- when at rest continue fusing last static heading with very low variance even if other heading sources are active
2022-07-19 11:58:27 -04:00
Roman Dvořák
ed14151734
Update Flight-gear bridge, Add support of TF-G2 autogyro flight-gear model ( #19122 )
...
* Add Transfer of RPM from FG to PX4,
-switch FG_bridge module to ThudnderFlyaerospace
* Add TF-G2 flightgear sim target
* Add simulator support, fix astyle
* Update SITL TF-G2 airframe, update fg bridge
Co-authored-by: Vit Hanousek <vithanousek@seznam.cz >
2022-07-19 09:11:44 +02:00
Daniel Agar
1a513153be
ekf2: update range sample fix ekf2_timestamps
...
- this is necessary to use distance_sensor data in replay
2022-07-18 14:39:12 -04:00
Ramon Roche
e5e74f65d7
README: Project governance and trademarks
...
We need to ensure the Dronecode logo is prominently displayed
and linked to the PX4 brand for trademark protection of PX4 and Dronecode.
If you have any questions about this, please feel free to reach out directly to me.
2022-07-18 11:16:55 -04:00
Silvan Fuhrer
1e0235d87b
ROMFS: remove outdated RWTO_MAX_ROLL from all configs
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-07-18 10:49:27 -04:00
Thomas Stastny
69bc5d37bc
fw pos ctrl: mark completed manual takeoff true if rotary wing and armed
2022-07-18 10:49:27 -04:00
Thomas Stastny
b4e066f056
fw pos ctrl: use hardcoded buffer altitude instead of parameter for clearance altitude buffer
2022-07-18 10:49:27 -04:00
Thomas Stastny
67b0f5e07e
runway takeoff params: improve descriptions
2022-07-18 10:49:27 -04:00
Thomas Stastny
81d6fdfe8c
fw pos ctrl params: update defaults and bounds on wing geometry
2022-07-18 10:49:27 -04:00
Thomas Stastny
7e12f6ba5a
fw pos ctrl: dont use terrain alt for takeoff
2022-07-18 10:49:27 -04:00
Thomas Stastny
ec02413387
fw pos ctrl: remove vtol condition from manual takeoff completion
2022-07-18 10:49:27 -04:00
Thomas Stastny
a12e40b1d8
tecs: convert tas error and soft bounds to percentage of trim airspeed
2022-07-18 10:49:27 -04:00
Thomas Stastny
1782f9cd3e
tecs: zero guard ste rates and airspeed setpoint rates
2022-07-18 10:49:27 -04:00
Thomas Stastny
63e4ea23b7
vehicle_rates_setpoint: log wheel controller yaw rate on common yaw rate channel
2022-07-18 10:49:27 -04:00
Thomas Stastny
c447064596
fw pos ctrl: rename position control mode variable
2022-07-18 10:49:27 -04:00
Thomas Stastny
5648deb5a1
fw pos ctrl: organize state variables
2022-07-18 10:49:27 -04:00
Thomas Stastny
2d5f1a5c6b
fw pos ctrl: head straight for next waypoint after takeoff
2022-07-18 10:49:27 -04:00
Thomas Stastny
721131a135
fw pos/att ctrl: pass manual nose wheel increments during takeoff ground roll
2022-07-18 10:49:27 -04:00
Thomas Stastny
fcee314646
fw att ctrl: log the yaw rate command controlled by the wheel
2022-07-18 10:49:27 -04:00
Thomas Stastny
4d3f05479d
fw pos ctrl: refactor takeoff mode
...
- post takeoff, the aircraft follows the infinite line sourced from the launch point in the direction of the takeoff waypoint
- takeoff waypoint altitude is used as a clearance altitude, set such that once above, the aircraft has cleared all ground occlusions and may proceed with the mission
- runway takeoff state machine simplified to throttle ramp, clamped to runway, climbout, and fly
- throttle ramp must complete before switching to next state to avoid a jump in throttle setpoint just after takeoff if the takeoff airspeed is reached before the ramp is complete
- roll constraints near ground post takeoff removed from runway takeoff class (handled externally now)
- minimum airspeed in TECS is reduced to takeoff speed (if necessary) to lower the underspeed detection bound
- lateral-directional guidance uses a different period parameter during ground roll
2022-07-18 10:49:27 -04:00
Thomas Stastny
7c6ce436ca
fw pos ctrl: encapsulate wing tip strike constraint for roll angle
...
- apply constraint only for takeoff and landing modes
- add two params, wing span and wing height, to calculate a reasonable height at which roll limits can be opened
2022-07-18 10:49:27 -04:00
Thomas Stastny
5241f016f7
fw pos ctrl: rework manual takeoff aid
...
- takeoff situational knowledge removed from all other modes except manual (or actual takeoff mode)
- manual takeoff is marked complete if at a controllable airspeed
- minimum pitch bounds TECS until manual takeoff complete
- remove individual roll constraints during manual takeoff (ground proximity constraints coming in subsequent commit)
2022-07-18 10:49:27 -04:00
Thomas Stastny
73010cc69b
TECS: speed (only) -based underspeed detection
...
- underspeed condition only determined by true airspeed undershoot
- change binary underspeed condition to a continuous percent undersped
- ramp-in max throttle, pitch speed weight, and TAS setpoint reduction during underspeed to avoid jumpy commands at the true airspeed error boundary
- let true airspeed filter reach zero airspeed
2022-07-18 10:49:27 -04:00
Thomas Stastny
eed073887d
remove in air vs landed knowledge from TECS
...
- create integral and trajectory generator reset methods
- always run TECS unless in rotary-wing mode (or in transition)
- constantly reset TECS integrals and trajectory generators when landed
2022-07-18 10:49:27 -04:00
Thomas Stastny
ddeca2538c
fw pos ctrl: handle takeoff detection when switching to takeoff mode while in air
...
- simplify takeoff reset method
- removes _last_manual variable in favor of _skipping_takeoff_detection, which is handled in the control mode setter
- takeoff detection (both launch and runway) is skipped if entering takeoff mode from any other mode while having already been in the air
- added method to runway takeoff class for force setting the fly state when we want to skip the takeoff detection
2022-07-18 10:49:27 -04:00
bresch
8cc6d02af3
ekf2: add missing mag fuse type in enum
2022-07-15 15:57:17 +02:00
alexklimaj
f9b8ca1326
Support two RTCM links with the same corrections
...
Add selected_rtcm_instance to sensor_gps message to track loss of rtcm links
Publish _rate_rtcm_injection
2022-07-15 08:20:27 +02:00
Raffaele Rossi
1e55b69fdb
ADS1115 ADC: start internal ADC as well ( #19880 )
...
But only publish the system power.
2022-07-15 08:15:26 +02:00
Daniel Agar
c71cc5b815
drivers/imu/bosch: new BMI085 driver
...
- very similar to the BMI088 with minor differences in accel range
2022-07-14 18:20:13 -04:00
Daniel Agar
077547f31e
rm3100: fix trivial whitespace style failure
2022-07-14 14:44:59 -04:00
alexklimaj
768565ed6f
Enable GPS Blending by default
2022-07-14 10:20:59 -04:00
Daniel Agar
ea4a1bfb6a
sagetech_mxs: don't run by default
2022-07-14 10:20:20 -04:00
Bruce Meagher
c5f72fb5d9
Fixed formatting to pass check_format
2022-07-14 09:43:59 -04:00
Bruce Meagher
e66683a059
Fixed rm3100 self-test bug
2022-07-14 09:43:59 -04:00
Junwoo Hwang
1a620b450d
Change min > max notation to [min, max] in Parameters Markdown ( #19911 )
...
* Change min > max notation to [min, max] in Parameters Markdown
* Update src/lib/parameters/px4params/markdownout.py
Co-authored-by: Thomas Stastny <thomas.stastny@auterion.com >
Co-authored-by: Hamish Willee <hamishwillee@gmail.com >
Co-authored-by: Thomas Stastny <thomas.stastny@auterion.com >
2022-07-14 09:13:49 +10:00
Daniel Agar
a2f83269e9
airspeed_selector: don't consider vehicle_local_position valid if dead_reckoning
2022-07-13 09:01:33 +02:00
Daniel Agar
ac209c2e78
ekf2: vehicle_local_position add dead_reckoning flag
2022-07-13 09:01:33 +02:00
RomanBapst
9886660862
gps_inject_data: fixed integer overflow
...
- array length of data was increased without changing the data type of
the variable holding the length
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-13 07:49:47 +02:00
Hamish Willee
5f953fd1da
commander_params: COM_RC_IN_MODE - comment out of date ( #19634 )
2022-07-13 15:26:32 +10:00
Daniel Agar
e99da22cbe
delete CBRK_VELPOSERR circuit breaker
2022-07-12 13:51:13 -04:00
bresch
de74f45e2d
ekf2: do not run rng kinematic consistency check for fixed-wings
...
As they are always moving horizontally, the check doesn't make sense
for fixed-wings.
Also don't run the check while on ground to prevent getting a failed
check during pre-takeoff manipulation.
2022-07-12 13:45:59 -04:00
Matthias Grob
fb455c8f4b
vehicle_status: reorder message definition
...
for readability. No functional changes.
2022-07-12 15:50:49 +02:00
Daniel Agar
19b9b052ab
uavcan: GNSS optionally publish RTCMStream or MovingBaselineData
2022-07-12 08:15:15 -04:00
Daniel Agar
a73efd9c4f
NuttX carry minimal c++ cmath (replacing Matrix stdlib_imports.hpp)
2022-07-12 08:05:06 -04:00
Daniel Agar
fe22167512
differential_pressure/sdp3x: sdp3x_main fix 'keep running' regression
2022-07-12 09:11:57 +02:00
RomanBapst
a23cb111b7
added comment for cruising throttle only affecting rover
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-12 09:07:20 +02:00
RomanBapst
b7d6e646cc
FixedWingPositionControl: better naming for manual airspeed setpoint
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-12 09:07:20 +02:00
RomanBapst
c2f5ffdfcd
log tecs trim throttle
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-12 09:07:20 +02:00
RomanBapst
92cdff6798
TECS: rename airspeed/throttle "cruise" to "trim"
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-12 09:07:20 +02:00
RomanBapst
b57d3c6d74
TECS: set true airspeed rate setpoint to zero if airspeed is not enabled
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-12 09:07:20 +02:00
RomanBapst
6dbea21ef5
TECS: renamed airspeed cruse to airspeed trim & general cleanup
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-12 09:07:20 +02:00
RomanBapst
c05e0f076b
FixedWingPositionControl: do not pass trim throttle via position setpoint triplet
...
- trim throttle is handled entirely by the position controller
- navigator should use speed setpoints
- added flag gliding_enabled in position setpoint to stills support gliding
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-12 09:07:20 +02:00
RomanBapst
cae7e1b88b
improved trim throttle compensation
...
- allow compensation based on vehicle weight (parameterized)
- use density for calculating trim throttle compensation instead of pressure
- removed parameter FW_THR_ALT_SCL
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-12 09:07:20 +02:00
RomanBapst
461d0561b8
replace FW_THR_CRUISE with FW_THR_TRIM
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-12 09:07:20 +02:00
marcirsch
226b8a6f90
README: Updated links to point to main branch instead of master. Fixed broken links
...
Signed-off-by: marcirsch <marcell@auterion.com >
2022-07-12 08:38:05 +02:00
Matthias Grob
10a2b4c9f7
commander_helper: typo in set_tune() description
2022-07-08 14:51:15 +02:00
Junwoo Hwang
f66c3914f6
Give priority to power off tune over other tunes (e.g. Battery Low)
...
Make Power Off tune not interruptable
This solves the case of Low Battery warning tune overriding the power
off tune, as now the Power off tune is not interruptable by any other
tune unless override flag is specified
commander_helper: resolve "redundant boolean literal in ternary expression result"
2022-07-08 14:51:15 +02:00
Junwoo Hwang
652b153383
Cleanup set_tune() functions in the commander_helper
...
- Existing code was hard to read and quite ambiguous
- Also it allowed constantly re-sending the tune_control request for a
fixed duration tunes like "TUNE_ID_BATTERY_WARNING_SLOW", while not
respecting the tune duration
2022-07-08 14:51:15 +02:00
bresch
3b26c611af
mpc: add sideways and backward speed for manual position modes
2022-07-08 14:03:44 +02:00
bresch
1de38c88d9
mpc: use xy stick limiting function from library
2022-07-08 14:03:44 +02:00
Igor Mišić
7e9a45a01a
uavcan/sensors/battery: add multiple battery filter instances
2022-07-08 10:03:11 +02:00
Igor Mišić
90e2ac60ce
uavcan/sensors/battery: add the option to filter raw data
...
Useful for power modules that send just pure voltage and current without algorithmic prediction of voltage drop, time estimation, etc.
2022-07-08 10:03:11 +02:00
Igor Mišić
27b65481ba
uavcan/sensors/battery: refactoring _battery_status name
2022-07-08 10:03:11 +02:00
Junwoo Hwang
0eeb699af8
Convert add 'Hz' suffix to PWM50, PWM400, ... protocol names
...
* To avoid confusion as to what the number after the 'PWM' part means
when setting it up in the Actuators Tab
2022-07-08 08:15:13 +02:00
bresch
2f486c37fc
ekf2: start airspeed fusion when test ratio is passing only
...
When wind is already estimated, we don't reset the states using airspeed
data, so it could be that the fusion fails if the airspeed isn't
consistent with the filter (test ratio > 1). In this case, don't start
the fusion.
When wind isn't already estimated, the wind states are reset using
airspeed so the fusion can start regardless of the current test ratio.
2022-07-07 17:39:06 -04:00
Daniel Agar
e1933f6ade
ROMFS: execute rc.autostart (airframes) before starting dataman
2022-07-07 11:37:39 -04:00
Daniel Agar
f591988f32
drivers/actuators: modalai_esc driver
...
Co-authored-by: Travis Bottalico <travis@modalai.com >
Co-authored-by: akushley <akushley>
2022-07-07 10:32:52 -04:00
Daniel Agar
fe9af6769c
commander add GPS warnings (GPS invalid if flying and jamming critical)
2022-07-07 10:24:11 -04:00
Daniel Agar
15223009d2
combine sensor_gps + vehicle_gps_position msgs (keeping separate topics)
2022-07-07 10:24:11 -04:00
Junwoo Hwang
32ae00fd44
Move Vehicle Command Result Enum defs to Vehicle Command Ack ( #19729 )
...
- As it is always only used for the vehicle command ack message
- It was a duplicate, hence making it error prone for maintainment
- The uORB message comments were updated to make the relationship with
the MAVLink message / enum definitions clear
2022-07-07 16:15:11 +02:00
bresch
af4038aa7e
ekf2: publish estimator_aid_src_airspeed
2022-07-07 09:42:54 -04:00
bresch
2fd87c47e8
ekf2: use estimator_aid_source_1d message for airspeed fusion
...
split the fusion process into:
1. updateAirspeed: computes innov, innov_var, obs_var, ...
2. fuseAirspeed: uses data computed in 1. to generate K, H and fuse the
observation
2022-07-07 09:42:54 -04:00
bresch
503aa87957
ekf2_derivation: create functions to generate innov_var or HK only
...
This is required when the innovation variance computation and the fusion
are performed in two different functions.
2022-07-07 09:42:54 -04:00
Junwoo Hwang
6225fae1d6
Increase Battery level emergency shutdown time delay
...
from 300 ms to 60 seconds, to give enough time for the user to configure
the vehicle in the mean time.
This is needed especially when the battery cell count setting is wrong
(when it should be 3, but set to 4 for example), since then whenever you
boot the vehicle, it will shutdown after 300 ms, which leaves the user
puzzled as to exactly what's happening. And it also prevented the user
from changing the Parameter since it's shutting down so quickly.
60 second window is intended to be a reasonable time that will allow the
user to figure out what's going on (via checking the battery level on
QGC, etc) but also not deep discharge the battery to a dangerous level.
2022-07-07 15:09:41 +02:00
Chuck
4528341069
sagetech_mxs: Adding fixes for crashes due to ADSB vehicle list initialization failure
...
Co-authored-by: cfaber <chuck.faber@sagetech.com >
2022-07-06 21:19:46 -04:00
RomanBapst
44f98ac355
standard: fixed pusher assist in hover
...
- in hover mode the pusher assist is already set in update_mc_state()
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-06 16:07:55 +02:00
Beat Küng
7022d59a54
ROMFS: fix incremental build for airframe processing
...
Fixes the error:
Aborting due to missing @type tag in file: 'build/px4_fmu-v5_test/etc/init.d/airframes/11001_hexa_cox'
This can happen due to a change to e.g. board_serial_ports, which changes
the CLI command and triggers a re-execution of the airframe processing.
2022-07-06 07:50:18 -04:00
Beat Küng
6f8663ac62
mcp23009: add drivers__device cmake dependency
...
needed for device::I2C
2022-07-06 07:50:18 -04:00
RomanBapst
42cd0b4ce0
FlightTaskAuto: don't override landing gear state for takeoff
...
- this allows landing gear to retract automatically when doing a takeoff
and the vehicle is considered high enough
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-07-06 11:11:14 +02:00
Thomas Debrunner
42c562b748
gps: Increase param name buffer to address warning in newer gccs ( #19876 )
2022-07-06 10:20:31 +02:00
Silvan Fuhrer
b0490b9f6b
ROMFS: assign all 4 tilts to motors to have them all tilt
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-07-06 09:04:52 +02:00
Matthias Grob
a3288ff732
Commander: run ekf checks without grace period after boot
2022-07-05 10:35:07 -04:00
Matthias Grob
8deebd07b8
preArmCheck: Shorten messages to to not write "Arming denied!"
2022-07-05 10:35:07 -04:00
bresch
3d01b5aa11
ekf2_derivation: use unsimplified q->rot for observation equations
2022-07-05 14:25:35 +02:00
bresch
28b34a634b
ekf2_derivation: do not print null equations
2022-07-05 14:25:35 +02:00
bresch
78dd557b26
ekf2_derivation: automatically replace pow function
2022-07-05 14:25:35 +02:00
bresch
11f78a3686
ekf2_derivation: update generated equations with SymPy 1.10.1
2022-07-05 14:25:35 +02:00
Igor Mišić
dff946c39a
usr_mcu_version: add missing headers
2022-07-05 09:29:26 +02:00
Igor Mišić
89c287581b
boards/px4/fmu-v6c: update to extended hw_ver_rev format
2022-07-05 09:29:26 +02:00
Igor Mišić
4b503c310e
Merge PR #19575 (changes to pr-extendend_hw_ver_rev_format)
...
- 4096 of 3 hex digits each for rev and ver is enough.
#defines used in SPI versions do not be long format, use use the macro
- Board provides a prefix and the formatting is sized and built in
- No need for funky board_get_base_eeprom_mtd_manifest interface
Original mft is used where the abstraction is done with the MFT interface
Co-authored-by: David Sidrane <David.Sidrane@Nscdg.com >
2022-07-05 09:29:26 +02:00
Igor Mišić
f7d542e720
boards/sky-drones: update to extended hw_ver_rev format
2022-07-05 09:29:26 +02:00
Igor Mišić
4ea8527304
board/fmu-v5x: reverse order for start boards to shorten the command
2022-07-05 09:29:26 +02:00
Igor Mišić
8b77d68028
board/fmu-v5x: add new board version V5X00100001
2022-07-05 09:29:26 +02:00
David Sidrane
00e82c9060
board_hw_eeprom_rev_ver:Versioning hierarchy
2022-07-05 09:29:26 +02:00
Igor Mišić
ec1614d156
boards: update id string from V5X{0-a}{0-a} to V5X{xxxx}{xxxx}
...
boards: new format for hwtypecmp string
boards: update manifest.c to follow the new hw_ver_rev format
2022-07-05 09:29:26 +02:00
David Sidrane
49d63958a8
platforms/common/spi:Support 16 bit of VER and REV
2022-07-05 09:29:26 +02:00
Igor Mišić
b938215c2b
board_hw_info: add set and get functions for hw_version to/from eeprom
2022-07-05 09:29:26 +02:00
Igor Mišić
dd38ced7c4
fmu-v5x: use mtd to get hw info from base EEPROM
2022-07-05 09:29:26 +02:00
Igor Mišić
cc63c49a51
px4_manifest: add function declaration for get base EEPROM mtd
2022-07-05 09:29:26 +02:00
Igor Mišić
3463b725a5
px4_manifest: fix px4_mft_s to accept multiple manifests
2022-07-05 09:29:26 +02:00
Igor Mišić
432b664acc
px4_mtd: fix instantiation for multiple mtds
2022-07-05 09:29:26 +02:00
Igor Mišić
08a9e49f3e
px4_mtd: update eeprom at24c driver to initialize multiple instances
2022-07-05 09:29:26 +02:00
Daniel Agar
efde738826
ekf2: update EKF2_EV_DELAY default to 0
2022-07-04 11:44:53 -04:00
Matthias Grob
21f858de1f
drv_pwm_output: remove not used anymore define for presumed servo middle position
2022-07-04 16:34:58 +02:00
Matthias Grob
af4b8bfd60
linux_pwm_out: sync configuration logic from FMU and IO
2022-07-04 16:34:58 +02:00
Matthias Grob
8ccd40185a
PWMOut/px4io: use disarmed values as default failsafe values
...
to avoid surprises where upon disarm an ESC can suddenly spool up
even though it stops when disarmed and no specific failsafe value is configured.
2022-07-04 16:34:58 +02:00
Michael Schaeuble
85a5dd87cd
Remove camera capture GPIO interrupt when the rate is higher than 5kHz
...
If the capture GPIO is exposed to a signal with high frequency changes, a lot of
interrupts are scheduled and the handling of these call can worst-case
starve flight critical processes leading to a loss of control. Since camera capture
is not flight critical, we now give up the capture
functionality and stop the interrupts to prevent the starvation of other processes.
2022-07-04 11:32:33 +02:00
Igor Mišić
941c47fb19
Remove logging rate limit for pps_capture
...
In case of a signal issue on the PPS GPIO it is helpful to have logging
data with higher rates.
2022-07-04 11:32:33 +02:00
Michael Schaeuble
5abee359d6
Remove PPS GPIO interrupt when the rate is higher than 20Hz
...
If the PPS GPIO is exposed to a signal with high frequency changes, a lot of
interrupts are scheduled and the handling of these calls can worst-case
starve flight critical processes leading to a loss of
control. Since PPS is not flight critical, we now give up the PPS
functionality and stop the interrupts to prevent the starvation of other processes.
2022-07-04 11:32:33 +02:00
Jaeyoung-Lim
55eed0e125
Remove multirotor mixer include from MC Ratecontro;
...
This commit removes multirotormixer includes since it is not being used
2022-07-03 19:20:19 -04:00
Daniel Agar
c9b6047124
platforms/nuttx/CMakeLists.txt add STM32H743VI SVD/debug
2022-07-03 11:38:01 -04:00
Daniel Agar
7f76761657
uavcannode: schedule to run on log_message publications
...
- this is a precaution to minimize message latency and potential lost messages
2022-07-01 09:18:17 -04:00
Ryan Meagher
f16ea921c2
drivers/barometer/invensense: fix icp10111 and icp10100
...
* fix icp so it compiles
* add icp10111 and icp10100 DEVTPYE
2022-06-29 21:22:10 -04:00
Martina Rivizzigno
55563eba49
MPC_SPOOLUP_TIME -> COM_SPOOLUP_TIME
2022-06-24 19:44:43 +02:00
Matthias Grob
c8fb7a6990
fw/uuv control: remove duplicated comments, restyle initializers
2022-06-24 10:05:16 -05:00
Matthias Grob
78225f7b1f
examples/fixedwing_control: use initializers instead of memset
2022-06-24 10:05:16 -05:00
Matthias Grob
cfd4e64b02
uuv_pos_control: remove practically unused manual control subscription
2022-06-24 10:05:16 -05:00
Matthias Grob
3a239ff649
examples: remove empty fake_gyro
2022-06-24 10:05:16 -05:00
CUAVhonglang
cfa8b451c7
cuav-nora: changed brick to compatible with cuav noraplus
2022-06-24 10:03:43 -05:00
CR
ffb0097052
removed unused code - _constrainOneSide and _constrainAbs
2022-06-22 23:21:16 +02:00
Matthias Grob
479c85047f
WeatherVane: Allow weathervane on multirotors not just VTOLs
2022-06-22 14:19:28 +02:00
Matthias Grob
54145cedc7
FlightTask: Weather vane cleanup
...
Remove the entire external yaw handler, dynamic memory allocation,
pointer passing logic. Directly instanciate the weather vane instance
in the flight tasks that support it.
2022-06-22 14:19:28 +02:00
Daniel Agar
ab4e10dc26
paa3905: update scaling from datasheet
2022-06-21 16:59:14 -04:00
Daniel Agar
07e28fda7a
paw3902: update scaling from datasheet
2022-06-21 16:59:14 -04:00
Daniel Agar
dc8ed97809
ekf2: optical flow control limits constrain speed using HAGL max
2022-06-21 12:52:25 -04:00
Daniel Agar
15747239c1
mc_pos_control: always respect position estimate vxy_max if set
...
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2022-06-21 12:52:25 -04:00
Daniel Agar
5d2dfadb0e
boards: px4_fmu-v5_uavcanv0periph disable modules to save flash
2022-06-20 21:31:27 -04:00
Daniel Agar
e5f081d9ac
drivers/optical_flow/paa3905: cleanup/overhaul
...
- remove internal accumulation and publish every valid raw sample synchronized with sensor
- store timestamp_sample from motion interrupt
- improve timing requirements from datasheet (minimum delays after register read/write)
2022-06-20 20:56:56 -04:00
Daniel Agar
1fbe3c4ab3
drivers/optical_flow/paw3902: cleanup/overhaul
...
- remove internal accumulation and publish every valid raw sample synchronized with sensor
- store timestamp_sample from motion interrupt
- improve timing requirements from datasheet (minimum delays after register read/write)
2022-06-20 20:56:56 -04:00
Daniel Agar
d5839e2dd5
optical flow sensor pipeline overhaul
...
- all sources of optical flow publish sensor_optical_flow
- sensor_optical_flow is aggregated by the sensors module, aligned with integrated gyro, and published as vehicle_optical_flow
Co-authored-by: alexklimaj <alex@arkelectron.com >
2022-06-20 20:56:56 -04:00
Chuck
32544452f0
drivers: Sagetech MXS transponder support
...
Co-authored-by: Megan McCormick <megan.mccormick@sagetech.com >
Co-authored-by: Chuck Faber <chuck.faber@sagetech.com >
2022-06-20 18:16:07 -04:00
Claudio Micheli
9d486b1ccd
esc_battery: account for online ESCs when averaging voltage
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2022-06-20 18:14:13 -04:00
Daniel Agar
450fcca8b8
drivers/differential_pressure/Kconfig: remove ets and ms4515 from common sensors to save flash
2022-06-20 13:04:19 -04:00
Daniel Agar
8d2e8ef422
boards: px4_fmu-v5_test disable gyro_fft module to save flash
2022-06-20 13:04:19 -04:00
Bruce Meagher
714234ca90
posix: add mavlink shell for posix targets ( #19800 )
2022-06-20 11:51:47 +02:00
alexklimaj
4cc3e78558
Add mag bias estimator to CAN GPS units with IMUs
...
- run `sensors` hub to process sensor_mag and publish vehicle_magnetometer
- update uavcannode to use vehicle_magnetometer
2022-06-19 15:46:36 -04:00
Daniel Agar
73f45fee6e
boards: px4_fmu-v5_test disable fake_gps module to save flash
2022-06-19 14:25:06 -04:00
Daniel Agar
902b789292
boards: px4_fmu-v5_protected disable gyro_fft module to save flash
2022-06-19 14:25:01 -04:00
Daniel Agar
b81a5b3efa
ekf2: request mag yaw reset after calibration or sensor change
2022-06-17 21:04:05 -04:00
Daniel Agar
c7cec4252c
sensors: add CONFIG_SENSORS_VEHICLE_AIRSPEED for airspeed/differential pressure
...
- disable CONFIG_SENSORS_VEHICLE_AIRSPEED on boards only used for multicopter
2022-06-17 19:31:45 -04:00
Daniel Agar
10deb7019e
enable gyro_calibration for CAN nodes
...
- allow saving initial gyro cal if very close to 0
2022-06-17 19:31:45 -04:00
Daniel Agar
db4e09d529
Tools/kconfig: delete old migration helpers
...
- people are updating this without really understanding the purpose,
and it's generally no longer useful
2022-06-17 19:31:45 -04:00
Daniel Agar
c46fa01195
sensors: add kconfig mechanism to optionally exclude sensor types
2022-06-17 19:31:45 -04:00
Alex Klimaj
60450e63c0
uavcannode: Fix dronecan baro units
2022-06-17 14:22:15 -04:00
Beat Küng
b9475d6ebe
mavlink_shell: set target system and component id
...
These got added in https://github.com/mavlink/mavlink/pull/1725 and need
to be set for correct routing.
2022-06-17 09:29:43 -04:00
Daniel Agar
dea404a9a3
boards: disable modules to save flash
...
- px4_fmu-v5x_rtps disable common barometers to save flash
- px4_fmu-v6x_default disable telemetry drivers to save flash
2022-06-16 16:14:57 -04:00
Junwoo Hwang
8bae4e5c0e
FollowMe : Replace First order target position filter with Second order position and velocity filter
...
Follow me : tidied second order filter implementation
Added velocity filtered info to uORB follow target status message, and rebase to potaito/new-follow-me-task
FollowMe : Rebasing and missing definition fixes on target position second order filter
Follow Me : Remove Alpha filter delay compensation code, since second order filter is used for pose filtering now
Followme : Remove unused target pose estimation update function
Follow Target : Added Target orientation estimation logic
Follow Target : Replaced offset vector based setpoint to rate controlled orbital angle control
Follow Target : Bug fixes and first working version of rate based control logic, still buggy
Follow Target : Added target orientation, follow angle, orbit angle value into follow_target_status uORB message for debugging
Follow Target : Fix orbit angle step calculation typo bug
Follow Target : Few more fixes
Follow Target : Few fixes and follow angle value logging bug fix
Follow Target : Added lowpass alpha filter for yaw setpoint filtering
Follow Target : Remove unused filter delay compensation param
Follow Target : Add Yaw setpoint filter initialization logic and bufix for when unwrap had an input of NAN angle value
Follow Target : Add Yaw setpoint filtering enabler parameter
Follow Target : Change Target Velocity Deadzone to 1.0 m/s, to accomodate walking speed of 1.5 m/s
Follow Target : Add Orbit Tangential Velocity calculation for velocity setpoint and logging uORB topics
Follow target : Fix indentation in yaw setpoint filtering logic
Follow Target : Fix Follow Target Estimator timeout logic bug that was making the 2nd order pose filter reset to raw value every loop
Follow Target : Remove debug printf statement for target pose filter reset check
Follow Target : Add pose filter natural frequency parameter for filter testing
Follow Target : Make target following side param selectable and add target pose filter natural frequency param description
Follow Target : Add Terrain following altitude mode and make 2D altitude mode keep altitude relative to the home position, instead of raw local position origin
Follow Target : Log follow target estimator & status at full rate for filter characteristics test
Follow Target : Implementing RC control user input for Follow Target control
Follow Target : edit to conform to updated unwrap_pi function
Follow Target : Make follow angle, distance and height RC command input configurable
Follow Target : Make Follow Target not interruptable by moving joystick in Commander
Follow Target : reconfigure yaw, pitch and roll for better user experience in RC adjusting configurations, and add angular rate limit taking target distance into account
Follow Target : Change RC channels used for adjustments and re-order header file for clarity
Follow Target : Fix Parameters custom parent macro, since using DEFINE_PARAMETERS alone misses the parameter updates of the parent class, FlightTask
Follow Target : Fix Orbit Tangential speed actually being angular rate bug, which was causing a phenomenon of drnoe getting 'dragged' towards the target velocity direction
Follow Target : Final tidying and refactoring for master merge - step 1
Add more comments on header file
Follow Target : tidy, remove unnecessary debug uORB elements from follow_target_status message
Follow Target : Turn off Yaw filtering by default
Follow Target : Tidy maximum orbital velocity calculation
Follow Target : add yaw setpoint filter time constant parameter for testing and fix NAV_FT_HT title
Follow Target : Add RC adjustment window logic to prevent drone not catching up the change of follow target parameters
Follow Target : fixes
Follow Target: PR tidy few edits remove, and update comments
Follow Target : apply comments and reviews
Follow Target : Edit according to review comments part 2
Follow Target : Split RC adjustment code and other refactors
- Splitted the RC adjustment into follow angle, height and distance
- Added Parameter change detection to reset the follow properties
- Added comments and removed yaw setpoint filter enabler logic
Follow Target : Modify orbit angle error bufferzone bug that was causing excessive velocity setpoints when setpoint catched up with raw orbit setpoint
Follow Target : Remove buffer zone velocity ramp down logic and add acceleration and rate limited Trajectory generation library for orbit angle and velocity setpoint
Follow Target : Remove internally tracked data from local scope function's parameters to simplify code
Follow Target : Fix to track unwrapped orbit angle, with no wrapping
Follow Target : Apply user adjustment deadzone to reduce sensitivity
Follow Target : Apply suggestions from PR review round 2 by @potaito
Revert submodule update changes, fall back to potaito/new-followme-task
Follow Target : [Debug] Expose max vel and acceleration settings as parameters, instead of using Multicopter Position Controller
's settings
Follow Target : Use matrix::isEqualF() function to compare floats
Follow Target : Add Acceleration feedback enabler parameter and Velocity ramp in initial commit for overshoot phenomenon improvement
Follow Target : Implement Velocity feed forward limit and debug logging values
Follow Target : Apply Velocity Ramp-in for Acceleration as well & Apply it to total velocity setpoint and not just orbit tangential velocity component
Follow Target : Don't set Acceleration setpoint if not commanded
Follow Target : Use Jerk limited orbit angle control. Add orbit angle tracking related uORB values"
Follow Target : Add Orbit Angle Setpoint Rate Tracking filter, to take into consideration for calculating velocity setpoint for trajectory generator for orbit angle
Revert "Follow Target : Add Orbit Angle Setpoint Rate Tracking filter, to take into consideration for calculating velocity setpoint for trajectory generator for orbit angle"
This reverts commit a3f48ac7652adb70baf3a2fed3ea34d77cbd6a70.
Follow Target : Take Unfiltered target velocity into acount for target course calculation to fix overshoot orbit angle 180 deg flip problem
Follow Target : Remove Yaw Filter since it doesn't make a big difference in yaw jitterness
Follow Target : Remove velocity ramp in control & remove debug values from follow_target_status.msg
Follow Target : Tidy Follow Target Status message logging code
Follow Target : Remove jerk and acceleration settings from Follow Target orbit trajectory generation
Follow Target : Change PublicationMulti into Publication, since topics published are single instances
Follow Target : Edit comments to reflect changes in the final revision of Follow Target
Follow Target : Apply incorrectly merged conflicts during rebase & update Sticks function usage for getThrottled()
Follow Target : Apply final review comments before merge into Alessandro's PR
Apply further changes from the PR review, like units
Use RC Sticks' Expo() function for user adjustments to decrease sensitivity around the center (0 value)
Update Function styles to lowerCamelCase
And make functions const & return the params, rather than modifying them
internally via pointer / reference
Specify kFollowPerspective enum as uint8_t, so that it can't be set to negative value when converted from the parameter 'FLW_TGT_FP'
Fix bug in updateParams() to reset internally tracked params if they actually changed.
Remove unnecessary comments
Fix format of the Follow Target code
Fix Follow Perspective Param metadata
follow-me: use new trajectory_setpoint msg
Convert FollowPerspective enum into a Follow Angle float value
1. Increases flexibility in user's side, to set any arbitrary follow
angle [deg]
2. Removes the need to have a dedicated Enum, which can be a hassle to
make it match MAVSDK's side
3. A step in the direction of adding a proper Follow Mode (Perspective)
mode support, where we can support kite mode (drone behaves as if it is
hovering & getting dragged by the target with a leash) or a constant
orbit angle mode (Drone always on the East / North / etc. side, for
cinematic shots)
Continue fixing Follow Target MAVSDK code to match MAVSDK changes
- Support Follow Angle configuration instead of Follow Direction
- Change follow position tolerance logic to use the follow angle
*Still work in progress!
Update Follow Me MAVSDK Test Code to match MAVSDK v2 spec
- Add RC Adjustment Test case
- Change follow direction logic to follow angle based logic completely
- Cleanup on variable names and comment on code
follow-me: disable SITL test
Need to update MAVSDK with the following PR:
https://github.com/mavlink/MAVSDK/pull/1770
SITL is failing now because the follow-me
perspectives are no longer defined the
same way in MAVSDK and in the flight task.
update copyright year
follow-me: mark uORB topics optional
Apply review comments
more copyright years
follow-me sitl test: simpler "state machine"
flight_mode_manager: exclude AutoFollowTarget and Orbit on flash contrained boards
Remove unnecessary follow_target_status message properties
- As it eats up FLASH and consumes uLog bandwidth
2022-06-16 16:14:57 -04:00
Alessandro Simovic
de1fa11e96
New follow-me flight task
...
rename follow_me_status to follow_target_status
enable follow_target_estimator on skynode
implement the responsiveness parameter:
The responsiveness parameter should behave similarly to the previous
follow-me implementation in navigator. The difference here is that
there are now two separate gains for position and velocity fusion.
The previous implemenation in navigator had no velocity fusion.
Allow follow-me to be flown without RC
SITL tests for follow-me flight task
This includes:
- Testing the setting for the follow-me angle
- Testing that streaming position only or position
and velocity measurements both work
- Testing that RC override works
Most of these tests are done with a simulated model
of a point object that moves on a straight line. So
nothing too spectacular. But it makes the test checks
much easier.
Since the estimator for the target actually checks new
measurements and compares them to old ones, I also added
random gausian noise to the measurements with a fixed seed
for deterministic randomness. So repeated runs produce
exactly the same results over and over.
Half of the angles are still missing in MAVSDK. Need to create
an upstream PR to add center left/right and rear left/right options.
These and the corresponding SITL tests need to be implemented
later.
sitl: Increase position tolerance during follow-me
Astro seems to barely exceed the current tolerance (4.3 !< 4.0)
causing CI to fail. The point of the CI test is not to check
the accuracy of the flight behaviour, but only the fact that the
drone is doing the expected thing. So the exact value of this
tolerance is not really important.
follow-me: gimbal control in follow-me
follow-me: create sub-routines in flight task class
follow-me: use ground-dist for emergency ascent
dist_bottom is only defined when a ground facing distance sensor exist.
It's therefore better to use dist_ground instead, which has the distance
to the home altitude if no distance sensor is available.
As a consequence it will only be possible to use follow-me in a valley
when the drone has a distance sensor.
follow-me: point gimbal to the ground in 2D mode
follow-me: another fuzzy msg handling for the estimator
follow-me: bugfix in acceleration saturation limit
follow-me: parameter for filter delay compensation
mantis: dont use flow for terrain estimation
follow-me: default responsiveness 0.5 -> 0.1
0.5 is way too jerky in real and simulated tests.
flight_task: clarify comments for bottom distance
follow-me: minor comment improvement
follow-me: [debug] log emergency_ascent
follow-me: [debug] log gimbal pitch
follow-me: [debug] status values for follow-me estimator
follow-me: setting for gimbal tracking mode
follow-me: release gimbal control at destruction
mavsdk: cosmetics 💄
2022-06-16 16:14:57 -04:00
Chris Seto
285556e463
Re-set param limits for fw tuning values to align with fw tuning guide
2022-06-16 14:22:51 -04:00
Daniel Agar
c1c2858341
Update submodule GPSDrivers to latest Thu Jun 16 12:38:52 UTC 2022
...
- GPSDrivers in PX4/Firmware (1069570a2a90fdc7f0e081b6c2c4b418446d65d7): https://github.com/PX4/PX4-GPSDrivers/commit/016c37cd1f18c716427e2465d8daa6aa1054b0f1
- GPSDrivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/8c09c5426d23ea4db4e462c1f4e3a1de33d253cc
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/016c37cd1f18c716427e2465d8daa6aa1054b0f1...8c09c5426d23ea4db4e462c1f4e3a1de33d253cc
8c09c54 2022-06-15 Daniel Agar - sbf trivial whitespace fix
Co-authored-by: PX4 BuildBot <bot@px4.io >
2022-06-16 12:21:06 -04:00
Matthias Grob
92b6862485
Commander: replace arm requirements
2022-06-16 10:25:32 -04:00
Matthias Grob
3b3d8b9942
Commander: execute pre arm check with preflight checks
2022-06-16 10:25:32 -04:00
Matthias Grob
aa575d6af0
Commander: move first preflight check run to constructor
2022-06-16 10:25:32 -04:00
Matthias Grob
0f41a5e385
ArmStateMachine: simplify how preflight checks are called
2022-06-16 10:25:32 -04:00
Igor Mišić
5dc3fecac0
boards/bitcraze: add PWM_SERVO_STOP define
2022-06-16 08:09:00 +02:00
Igor Mišić
7c1da8d608
driver/px4io: set default failsafe values
2022-06-16 08:09:00 +02:00
Igor Mišić
04c2d0fe97
drivers/pwm_out: set default failsafe values
2022-06-16 08:09:00 +02:00
Daniel Agar
1980b5c5e8
ekf2: setEkfGlobalOrigin() reset baro and hgt sensor offsets if necessary
...
- handle uninitalized _gps_alt_ref
- add basic lat/lon/alt sanity checks
2022-06-16 00:59:54 -04:00
achim
fc3d88bb67
boards/diatone/mamba-f405-mk2: symmetric buffers for wifi telemetry ( #19808 )
...
Symmetric buffers allow a much more reliable QGC Wifi telemetry connection especially when (virtual) joysticks are used. (this board does not provide RX DMA on UART 4 as its timer does DSHOT).
2022-06-15 14:30:28 -04:00
Matthias Grob
c59809b14a
Commander: remove system_sensors_initialized
...
and system_hotplug_timeout. They're not in use for over 2 years.
Instead control LED with preflight checks.
2022-06-15 14:02:00 -04:00
Igor Mišić
0922f003f5
uavcan: don't print an error if there is no UAVCAN device on the CAN bus
2022-06-15 03:29:13 -04:00
bresch
680191cc75
WindEstimator: make wind process noise tuning same as EKF2
2022-06-14 18:44:30 +10:00
bresch
b6f1a7aed9
migrate wind process noise parameters
2022-06-14 18:39:10 +10:00
bresch
0d256b8ff6
ekf2 wind: use noise spectral density for process noise tuning
...
The noise spectral density, NSD, (square root of power spectral density) is a
continuous-time parameter that makes the tuning independent from the EKF
prediction rate.
NSD corresponds to the rate at which the state uncertainty increases
when no measurements are fused into the filter.
Given that the current prediction rate of EKF2 is 100Hz, the
same tuning is obtained by dividing the std_dev legacy parameter by 10:
nsd = sqrt(std_dev^2 / 100Hz)
2022-06-14 18:39:10 +10:00
bresch
e105869986
wind_estimator: use noise spectral density for process noise tuning
...
The noise spectral density, NSD, (square root of power spectral density) is a
continuous-time parameter that makes the tuning independent from the EKF
prediction rate.
NSD corresponds to the rate at which the state uncertainty increases
when no measurements are fused into the filter.
Given that the current prediction rate of the wind estimator is 1Hz, the
same tuning is obtained with the same values as before.
2022-06-14 18:39:10 +10:00
Junwoo Hwang
377338109c
uLog message definition comment improvements
...
- Added more comments
- Converted to DOxygen comment format for the comments on struct members
2022-06-13 10:31:07 +02:00
Junwoo Hwang
1ddd1573be
Improve uLog message struct definitions
...
1. Rename *_header_s structs to *_s, since the _header postfix is not
helpful
2. Rename the "key" string variables in the message structs to
"key_value_str" as the string actually contains not just the key but the
key and value pair information
3. Add comments on other uLog messages to clarify use (need more
improvement / can be even more simplified)
2022-06-13 10:31:07 +02:00
achim
e6f90bcb81
disable uart´s dma
...
Still no way to get GPS and auto flash of the IO without disabling their uart´s dma
2022-06-11 13:39:01 -04:00
fury1895
283aad01fd
Airspeed params: change default for ASPD_SCALE_APPLY to 2
2022-06-10 14:02:41 +02:00
David Sidrane
f15eb91814
px4_fmu-v6x:HB Mini add Ver 3, Ver 4 init
2022-06-10 04:20:26 -07:00
PX4 BuildBot
e33199c182
Update submodule mavlink to latest Fri Jun 10 00:38:25 UTC 2022
...
- mavlink in PX4/Firmware (59630bcc7e7e983db2d9138c8254144c77855adc): https://github.com/mavlink/mavlink/commit/0909631552187b998dd6359f998ee78ee8765728
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/05864e218e204f1ebeee5555988150fcddbd873e
- Changes: https://github.com/mavlink/mavlink/compare/0909631552187b998dd6359f998ee78ee8765728...05864e218e204f1ebeee5555988150fcddbd873e
05864e21 2022-06-09 Peter Barker - common.xml: add ignition_voltage to EFI_STATUS (#1854 )
adc9c3f5 2022-06-01 olliw42 - update storm32.xml (nfc) (#1851 )
49dbdb66 2022-06-01 Randy Mackay - ardupilotmega: add nav_attitude_time command (#1852 )
2022-06-10 01:01:20 -04:00
Thomas Debrunner
46c9d1e288
SIH in SITL with lockstep ( #19028 )
...
* sih: Move sih out of work queue
This reverts commit bb7dd0cf00 .
* sih-sim: Enable sih in sitl, together with lockstep
* sih-sim: new files for sih: quadx and airplane
* sih: Added tailsitter for sih-sitl simulation
* sitl_target: Added seperate target loop for sih
* jmavsim_run: Allow jmavsim to run in UDP mode
* lockstep: Post semaphore on last lockstep component removed
* sih-sim: Added display for effectively achieved speed
* sih: increase stack size
* sih-sim: Improved sleep time computation, fixes bug of running too fast
* sitl_target: place omnicopter in alphabethic order
Co-authored-by: romain-chiap <romain.chiap@gmail.com >
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2022-06-09 09:52:34 +02:00
Thomas Stastny
a7e11464c1
fw pos ctrl: update method documentation
2022-06-09 09:23:02 +02:00
Thomas Stastny
594a6d6e80
fw pos ctrl: some incremental clean up of the class
...
- documentation of units, params, returns, and descriptions for variables and methods
- rename ambiguous or erroneous state variables
- remove unused or unecessary input arguments to functions
- remove ugly header white space
2022-06-09 09:23:02 +02:00
Silvan Fuhrer
9863c24b40
navigator_main: DO_REPOSITION: only trigger reposition setpoint update if vehicle is armed
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-06-08 21:47:06 +02:00
Thomas Stastny
cbf0fe8803
fw pos ctrl: centralize parameter and state resets
2022-06-08 08:44:30 -05:00
Thomas Stastny
ccfbbb553a
fw pos ctrl: only manipulate heading hold yaw in manual position control mode
2022-06-08 08:44:30 -05:00
Thomas Stastny
67d8dd359d
fw pos ctrl: calculate control interval once
...
- Use the same time interval for all position control logic (including TECS)
- Sync naming in control methods
- Remove some unused input arguments
2022-06-08 08:44:30 -05:00
Matthias Grob
f5e7b1e6a8
Commander: switch battery bitflied to dedicated datatype
2022-06-08 11:32:26 +02:00
Matthias Grob
9b2166de72
manual_control_params: configure arm gesture doesn't require reboot
...
I added wrong documentation here.
2022-06-08 05:12:05 -04:00
Matthias Grob
bd50a52c9c
Commander: fix startup sound interrupted by safety button initialization
...
The safetyButtonHandler() reports that the safety statatus
changed on the first loop iteration when safety is disabled which makes
sense to inform the system that safety is off but the tune for the user
should not be played because it interrupts the startup tune.
2022-06-08 05:12:05 -04:00
Matthias Grob
71103e6114
Safety: keep initialized constant flags when safety disabled
2022-06-08 05:12:05 -04:00
Matthias Grob
44c4b8fa85
Style refactoring related to safety button
2022-06-08 05:12:05 -04:00
Daniel Agar
ce70b6f4ac
sensors/vehicle_angular_velocity: add IMU_GYRO_RATEMAX constraints
2022-06-07 15:45:47 -04:00
Daniel Agar
01f0992f49
sensors/vehicle_imu: don't bother checking IMU_GYRO_RATEMAX
2022-06-07 15:45:47 -04:00
Matthias Grob
5df266cedc
MulticopterRateControl: use constructor to copy thrust setpoint array
2022-06-07 11:45:59 -04:00
bresch
4f1091792f
ekf2 preflight: only check innovation of active height sources
2022-06-07 11:44:56 -04:00
Daniel Agar
cb2738e187
Update submodule GPSDrivers to latest Sat Jun 4 12:38:49 UTC 2022 ( #19766 )
...
- GPSDrivers in PX4/Firmware (6e77a084cd43830c8b13018b7fd5470da9bc4ff5): https://github.com/PX4/PX4-GPSDrivers/commit/181fae1a4b5e33576d786755782adb2f195ecc48
- GPSDrivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/016c37cd1f18c716427e2465d8daa6aa1054b0f1
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/181fae1a4b5e33576d786755782adb2f195ecc48...016c37cd1f18c716427e2465d8daa6aa1054b0f1
016c37c 2022-06-01 Julian Oes - sbf: fix overrun on invalid length
2022-06-04 15:58:56 -04:00
PX4BuildBot
a247b42907
[AUTO COMMIT] update change indication
2022-06-04 15:57:11 -04:00
PX4 BuildBot
e86a74321e
Update world_magnetic_model to latest Sat Jun 4 11:14:10 UTC 2022
2022-06-04 15:57:11 -04:00
Beat Küng
da55256f2f
test_multicopter_failure_injection: remove 'Reject before arming' test
...
Not sure why injection should fail before arming.
2022-06-04 07:40:29 +02:00
Beat Küng
d1142008f6
FailureDetector: check if ESCs have current
...
And increase the timeout to 300ms, as some ESCs only update with 10Hz.
2022-06-04 07:40:29 +02:00
Beat Küng
8bf18e31be
SITL: enable failure command (SYS_FAILURE_EN=1)
2022-06-04 07:40:29 +02:00
Beat Küng
56faaae959
failure: fix invalid memory access
...
failure_units[unit].key was incorrect
2022-06-04 07:40:29 +02:00
Beat Küng
0ab61aee2e
control_allocator: show motor axis for MC (as advanced)
2022-06-04 07:40:29 +02:00
Beat Küng
99a329f937
mc_rate_control: pass through 3D thrust
2022-06-04 07:40:29 +02:00
Beat Küng
82eb71d70b
failure_detector: allow disabling attitude failure (as already documented)
2022-06-04 07:40:29 +02:00
Jaeyoung-Lim
bf68d3433e
Add omnicopter SITL model
...
F
2022-06-04 07:40:29 +02:00
bresch
e2955bdd61
terrain est: clear innovation/var/test ration when aiding stops
2022-06-03 17:31:14 -04:00
Matthias Grob
fad3d46907
Use signNoZero() where possible
2022-06-03 16:08:16 +02:00
abarcis
4fc2640ee3
vehicle_command.msg: unneeded comment closings removed ( #19759 )
...
They cause problems with building px4_msgs in ROS2 Humble Hawksbill and removing them fixes the issue.
Co-authored-by: Agata Barcis <agata.barcis@tii.ae >
2022-06-03 07:25:05 +02:00
BA-ED
b9be783b69
dshot: corrected DShot motor spin direction command
...
Some ESCs don't store DShot_cmd_spin_direction_reversed persistently
2022-06-02 13:36:40 +02:00
Thomas Watson
d390e6d46d
boards/mro/pixracerpro: fix voltage/current monitoring
...
This corrects the board definition to use the proper polarity
for the brick power valid signal, thus allowing the board to
detect the battery and monitor it properly.
2022-06-02 08:11:15 +02:00
Mark Sauder
c19e74784a
attitude_estimator_q: Run() method refactoring ( #19526 )
...
* Refactor attitude_estimator_q_main.cpp Run() method by breaking apart into separate method calls:
* update_vehicle_local_position()
* update_motion_capture_odometry()
* update_visual_odometry()
* update_magnetometer()
* update_vehicle_attitude()
* update_sensors()
* Rename init_attitude_q()
* Standardize whitespace formatting
* Add remaining c++ style initializers.
2022-06-01 13:41:42 -04:00
Daniel Agar
21b1c933dc
ekf2: EKFGSF_yaw delete unnecessary internal state
2022-06-01 13:16:06 -04:00
Daniel Agar
3889b79342
ekf2: yaw estimator add yaw_composite_valid boolean
2022-06-01 13:16:06 -04:00
Igor Mišić
a218f4bfaf
drivers/px4io: support legacy px4io firmware to enter BL
2022-06-01 13:15:13 -04:00
Igor Mišić
25488da944
px4io: replace safety_off state with safety button event ( #19558 )
...
internal PX4IO safety_off state is removed and replaced with a normal safety button event. From this 'commit' commander is taking care of the PX4IO safety.
2022-06-01 13:15:13 -04:00
Matthias Grob
a9cdfff7a3
FlightModeManager: only execute flight task commands when multicopter
2022-06-01 15:14:07 +02:00
Matthias Grob
96b0304049
PreFlightCheck: disallow arming in land mode
...
after the automatic switch to Hold mode was introduced.
2022-06-01 12:08:32 +12:00
Matthias Grob
83c15fca9f
Commander: switch back to Hold mode after autonomous landing
2022-06-01 12:08:32 +12:00
Matthias Grob
33df8b24f2
Commander: differentiate clearly between to arm and to disarm transition
2022-06-01 12:08:32 +12:00
Matthias Grob
400e1f8214
Commander: only initialize to tablet mode and don't switch back on RC loss
2022-06-01 12:08:32 +12:00
Daniel Agar
002579b3e0
Jenkins: reboot after ostest completes
...
- temporary workaround to ostest apparently leaving the system in a bad state
2022-05-31 01:41:07 -07:00
Daniel Agar
5b6e5a0968
boards: NuttX update all boards to preallocated sem holder list
...
- CONFIG_SEM_PREALLOCHOLDERS=32
- CONFIG_SEM_NNESTPRIO=16 (default)
2022-05-31 01:41:07 -07:00
Beat Küng
0074894637
control_allocator: disable backup schedule with lockstep
...
The backup schedule triggers updates too early and leads to simulator errors:
ERROR [simulator] poll timeout 0, 22
2022-05-31 07:17:30 +02:00
Daniel Agar
132a07f53c
boards: test boards add NuttX ostest and run on Jenkins test rack
2022-05-29 13:41:16 -04:00
Daniel Agar
0420d697e5
update NuttX and apps to latest with sem holder fixes and updated ostest
2022-05-29 13:41:16 -04:00
Daniel Agar
cb8b5ae872
mavlink: MavlinkStatustextHandlerTest ignore Wcast-align
2022-05-29 09:44:48 -04:00
Daniel Agar
d97bb168cf
lib/motion_planning: VelocitySmoothingTest delete set but not used variable
2022-05-29 09:44:48 -04:00
Daniel Agar
095e0f0604
ekf2: sensor_simulator fix enum shadow
2022-05-29 00:21:08 -04:00
PX4 BuildBot
63155b5b01
Update submodule mavlink to latest Sat May 28 00:38:55 UTC 2022
...
- mavlink in PX4/Firmware (56106be4805cb2f70d22ad31b87fbd9774f0d0f3): https://github.com/mavlink/mavlink/commit/99e82cad70494903a23a67de08ff9cbb5918d8f3
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/0909631552187b998dd6359f998ee78ee8765728
- Changes: https://github.com/mavlink/mavlink/compare/99e82cad70494903a23a67de08ff9cbb5918d8f3...0909631552187b998dd6359f998ee78ee8765728
09096315 2022-05-26 Hamish Willee - Clarify and cross reference home position everywhere (#1836 )
38c1a99f 2022-05-25 Julian Oes - WIND_COV: clarify description and unknown value (#1845 )
2022-05-28 00:06:05 -04:00
David Lechner
995265c95e
vscode: remove terminal settings
...
These terminal settings are a matter of personal preference and should
not be part of the project configuration.
2022-05-27 21:01:33 -04:00
Daniel Agar
c27b9f3b1e
boards: reduce SPI DMA buffers on older STM32F4 boards
...
- on common IMUs like the mpu6000, mpu9250, icm20602, etc each FIFO
sample is only 12 bytes so this is still more than large enough for the
worst case transfer
2022-05-27 16:27:41 -04:00
Daniel Agar
4561cf2ce6
boards: pixhawk 2 cube skip starting low quality l3gd20 gyro to save memory and cpu
...
- free memory is getting tight on these older boards (depending on
configuratoin) and the pixhawk 2 cube still has 2 other superior IMUs, so this is just
dropping dead weight
2022-05-27 16:27:41 -04:00
David Sidrane
74a2930315
px4_fmu-v6X:Added Holybro mini base board
2022-05-27 15:02:28 -04:00
David Sidrane
dd6d7e9979
uc_stm32h7_can:Correct initalization of the mumber of interfaces
...
H7 Only supports 2 not 3 CAN interfaces.
CanInitHelper passes in in the run time configuration of
the number of interfaces. The code was ignoring these!
2022-05-27 15:02:28 -04:00
David Sidrane
9353c15e8a
px4_fmu-v5X:Added Holybro mini base board
2022-05-27 15:02:28 -04:00
David Sidrane
479b52fd02
Update all H7 Bootloders
2022-05-27 14:25:25 -04:00
David Sidrane
645f4c3428
flash_cache:Flush complete cache line
2022-05-27 14:25:25 -04:00
David Sidrane
fd81951391
boards: STM32H7 pad to 256 bit - 32 bytes ( #19724 )
2022-05-27 14:04:51 -04:00
Daniel Agar
1ba3610cfc
boards: delete omnibus_f4sd_ekf2 due to flash overflow
2022-05-27 09:46:07 -04:00
David Sidrane
55cfd8597d
px4_fmu-v6c:Fix mag rotation
2022-05-26 11:26:29 -07:00
Igor Misic
554283655c
Revert "px4io: replace safety_off state with safety button event ( #19558 )"
...
This reverts commit 12a81979a8 .
2022-05-26 10:06:32 -04:00
Igor Misic
6aefcbb6cf
Revert "px4iofirmware: fix for bug introduced with #19558 "
...
This reverts commit 79a34b5aed .
2022-05-26 10:06:32 -04:00
Matthias Grob
c03f5b9481
Commander: fix overlooked rebase naming error
2022-05-25 21:10:19 +02:00
alessandro
29c4119e24
Match commander uORB var names to message names ( #19707 )
...
* match vehicle_status
* match home_position
* match vehicle_command_ack
* match actuator_armed
* match vehicle_control_mode
* match commander_state
2022-05-25 17:08:48 +02:00
Daniel Agar
98354ba10a
Update submodule GPSDrivers to latest Wed May 25 12:38:58 UTC 2022
...
- devices in PX4/Firmware (7cc84e0f9e44697475b0f355df9a29de6ea6b9ff): https://github.com/PX4/PX4-GPSDrivers/commit/58968922b718176be8756f11113d16b2cfbc4022
- devices current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/181fae1a4b5e33576d786755782adb2f195ecc48
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/58968922b718176be8756f11113d16b2cfbc4022...181fae1a4b5e33576d786755782adb2f195ecc48
181fae1 2022-05-23 numan - README: add information for definition.h
2022-05-25 09:56:40 -04:00
Daniel Agar
58ea6235fe
ekf2: estimator aid source status (range height)
2022-05-25 09:25:12 -04:00
Daniel Agar
1e25aee6fa
ekf2: estimator aid source status (baro height)
2022-05-25 09:25:12 -04:00
Silvan Fuhrer
4dbe6f0a1c
simulator_mavlink: fix MAV_TYPE_VTOL_TAILSITTER case
...
This type (23) doesn't specify a motor number, so it can't be properly handled.
There are duo (19) and quad (20) tailsitter types that still work in simulation.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-24 17:58:44 -04:00
Daniel Agar
376201e64d
boards: px4_fmu-v5/v5x init all I2C pins
2022-05-24 11:02:03 -04:00
bresch
d04a91a3ae
ekf2_post-processing: use estimator_status_flags instead of bitmasks
2022-05-24 16:15:42 +02:00
Beat Küng
016b8aeb35
MulticopterRateControl: fix thrust sign for acro
...
Regression from fbc109436f
2022-05-24 15:03:17 +02:00
Matthias Grob
44be415e0e
mission_block: make "Delay until" item work while landed
...
To enable landing, waiting and taking off again e.g. for delivery.
2022-05-24 13:42:03 +02:00
Matthias Grob
0be474430c
Commander: don't disarm on landing amid a mission
2022-05-24 13:42:03 +02:00
Matthias Grob
4f34207c4e
battery_params: increase default empty cellvoltage to 3.6v
...
Based on feedback that very often the battery is used down too low.
I observed this happens consistently when the cell voltage is properly
load compensated. The default load compensation before #19429 was very
inaccurate and resulted in unpredictable estimate.
After that if there is a usable current measurement and the battery is
within expected tolerances of the default internal resistance the
compensation is pretty good and 3.5V is too low for an empty compensated
cell voltage. That was seen in various logs where the compensated
cell voltage was already dropping fast after 3.6V.
In case the voltage is not load compensated the vehicle estimates the
state of charge a bit too low which is safer than to high
especially for a default configuration.
2022-05-24 11:26:58 +02:00
Mark Sauder
a1fb9fb7c6
rcS: Keep Mag Cal with AUTOCONFIG param reset in rcS, deprecate rcS AUTOCNF param ( #19693 )
...
* Deprecate the rcS AUTOCNF script param and associated logic.
* Update posix rcS to match previous commit.
2022-05-23 20:35:22 -04:00
Daniel Agar
639222dd65
ekf2: estimator aid source status (GPS pos, GPS vel)
2022-05-23 16:21:49 -04:00
Daniel Agar
1ae467e9cd
ekf2: estimator aid source status (starting with fake position)
2022-05-23 16:21:49 -04:00
Igor Misic
79a34b5aed
px4iofirmware: fix for bug introduced with #19558
2022-05-23 14:59:11 -04:00
Daniel Agar
d25a784a3a
icm42688p: only check configured registers periodically (as intended)
2022-05-23 14:58:23 -04:00
bresch
c57c575cfe
ekf2: use explicit flags instead of bitmask position
...
This prevents bitmask mismatch when a new flag is inserted
2022-05-23 14:43:02 -04:00
Matthias Grob
62edcc7a57
battery: only compensate using sane current
2022-05-23 16:40:32 +02:00
Matthias Grob
2cbdcc9671
battery: default to reasonable internal resistance
...
instead of disabling the load compensation using current.
2022-05-23 16:40:32 +02:00
Matthias Grob
58b1139a21
battery: allow setting precise internal resistance with parameter
2022-05-23 16:40:32 +02:00
Matthias Grob
2c5a7ea118
battery: rather undercompensate for load
...
than over compensate which makes the estimate to high and breaks batteries
beause they get flown for too long.
2022-05-23 16:40:32 +02:00
Serhat Aksun
bc220ddb82
sensors/vehicle_magnetometer: fix multi_mode check
...
Signed-off-by: Serhat Aksun <serhat.aksun@maxwell-innovations.com >
2022-05-23 10:09:41 -04:00
Igor Misic
12a81979a8
px4io: replace safety_off state with safety button event ( #19558 )
...
internal PX4IO safety_off state is removed and replaced with a normal safety button event. From this 'commit' commander is taking care of the PX4IO safety.
2022-05-23 06:54:37 +02:00
Igor Misic
08dcc72e1f
commander/safety: replace safety.msg with Safety class ( #19558 )
2022-05-23 06:54:37 +02:00
Daniel Agar
b800600a6c
boards: px4_fmu-v2_fixeding disable fw_autotune_attitude_control to save flash
2022-05-22 12:32:24 -04:00
Daniel Agar
61d5a23445
Jenkinsfile: hardware test rack skip runing HITL airframes
2022-05-22 12:31:08 -04:00
Julian Oes
47bcee70c4
ROMFS: disable UAVCAN in HITL
...
Without this, uavcan creates MixingOutput classes which then create
empty actuator_outputs publications. This then prevents the motor
output in HITL to be forwarded to the simulator via mavlink.
2022-05-21 17:53:20 -04:00
bresch
00e88a02c0
baro bias: improve innovation sequence monitoring
...
The baro observation noise parameter is often over-estimated in order as
a measure to mitigate temporary offsets in the readings due to wind
gusts or poor pressure compensation tuning. The side effect is that the
innovation sequence monitoring based on normalized innovation struggles
to detect an offset in the state because the innovation isn't
statistically significant.
To counter this issue, a simpler check is added to trigger the process
noise boost when the innovation has the same sign for a long period of
time.
2022-05-21 22:37:04 +02:00
PX4 BuildBot
c3f10c2cb1
Update submodule sitl_gazebo to latest Sat May 21 12:38:49 UTC 2022
...
- sitl_gazebo in PX4/Firmware (422be90140 ): https://github.com/PX4/PX4-SITL_gazebo/commit/48440d7b5c78a21182415266334981f1163f4b2c
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/5eb5df80450a412076bfc24e7dd343839020f056
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/48440d7b5c78a21182415266334981f1163f4b2c...5eb5df80450a412076bfc24e7dd343839020f056
5eb5df8 2022-04-28 stmoon - ROS2_PLUGIN set OFF by default
c8f4d5b 2022-04-28 stmoon - update the motor failure plugin for ros2
2022-05-21 14:58:42 -04:00
Daniel Agar
db4545e442
Update world_magnetic_model to latest Sat May 21 11:14:10 UTC 2022
2022-05-21 14:57:55 -04:00
mcsauder
6b0788ff46
Standardize variable naming and formatting across vehicle attitude controller files.
2022-05-21 12:22:18 -04:00
Junwoo Hwang
422be90140
Update Issue and Pull Request Templates
...
1. Change the paragraph headings to proper Markdown headings (easier to
link / structure the Markdown)
2. Move PULL_REQUEST_TEMPLATE into .github folder
3. Change description in Issue template and remove outdated DevGuide
Repository information
4. Add a bug emoji to bug report isue template
5. Support automatically adding labels 'bug-report' and
'feature-request' to easily sort / filter appropriate issues in Github
2022-05-20 21:01:14 -04:00
Julian Oes
d08e5eae2d
sitl_gazebo: update submodule
...
This fixes the issue where HITL doesn't connect over USB.
2022-05-20 21:00:33 -04:00
Daniel Agar
c40631c136
commander: handle RC loss timeout if manual_control_setpoint stops publishing ( #19680 )
...
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2022-05-20 19:37:30 -04:00
David Sidrane
2bdeb36ea3
px4_fmu-v6x:Add Rev 4 Sensors
2022-05-20 15:52:32 -04:00
David Sidrane
9d0e57230a
boards: new px4_fmu-v6c board support ( #19544 )
2022-05-20 15:49:06 -04:00
Julian Oes
33a77c225c
commander: lockdown is not termination
...
We use lockdown to prevent outputs like motors and servos from being
active in HITL simulation. This means that we can't treat the lockdown
flag as a flight_terminated, otherwise we can't arm in HITL at all.
2022-05-20 09:43:32 -04:00
Nicolas MARTIN
a0cb7f6258
HITL: undefined time_remaining_s should be NAN
2022-05-20 09:38:43 -04:00
Nico van Duijn
04071b9456
Commander: ignore MAV_CMD_REQUEST_MSG
...
This commit adds the MAV_CMD_REQUEST_MESSAGE to the list of vehicle
commands which are ignored without generating a warning sound.
2022-05-20 15:36:42 +02:00
Matthias Grob
38e027ee45
ArmStateMachine: remove dependency on armed.armed
...
To have the internal state as single source of truth
for the arming state within Commander.
2022-05-20 13:51:51 +02:00
Matthias Grob
37c485ce89
ArmStateMachine: move arm state into the class
2022-05-20 13:51:51 +02:00
Matthias Grob
47532ca07b
ArmStateMachine: replace state name array with method
2022-05-20 13:51:51 +02:00
alessandro
c5bbf4553b
ubuntu.sh: fix gazebo and openjdk for 22.04
2022-05-20 06:38:09 +02:00
Matthias Grob
887fe7dba2
commander_params: shorten low battery action delay
...
I got multiple times the feedback now that a consistent delay
is helpful and makes sense but the default delay
is too long
for low battery action where you're trying to come back in time
and possibly the emergency reaction kicks in while the critical action
is executing which leads to a longer accumulated delay.
2022-05-19 21:54:09 +02:00
Daniel Agar
fd4b62032e
commander: publish actuator_armed first on any change
2022-05-19 12:47:50 -04:00
PX4 BuildBot
9518b65f93
Update submodule mavlink to latest Thu May 19 00:38:59 UTC 2022
...
- mavlink in PX4/Firmware (87c73145b36a835b1635de0498a5613a7af5cafc): https://github.com/mavlink/mavlink/commit/a1cb2c0e71f191f04da3d92d92db8702a7e91ff6
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/99e82cad70494903a23a67de08ff9cbb5918d8f3
- Changes: https://github.com/mavlink/mavlink/compare/a1cb2c0e71f191f04da3d92d92db8702a7e91ff6...99e82cad70494903a23a67de08ff9cbb5918d8f3
99e82cad 2022-05-19 Hamish Willee - Deprecated GPS_INJECT_DATA (#1842 )
bf3df03d 2022-05-16 Hamish Willee - WIND_COV - accuracy units are m/s (#1844 )
a73d4864 2022-05-11 Hamish Willee - development.xml FIGURE_EIGHT_EXECUTION_STATUS - add a note about it being set at lower rate (#1841 )
2022-05-18 21:41:08 -04:00
mcsauder
e8da98fd14
Add gyro clipping to mirror accel clipping monitoring instances.
2022-05-18 21:16:05 -04:00
mcsauder
ea10eacb99
Replace EKF/common.h #defines with enums.
2022-05-18 09:25:19 -04:00
Silvan Fuhrer
8f2c84d36f
VTOL paras: add min of 0.1 to transition times
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-18 10:01:04 +02:00
Silvan Fuhrer
c29ca6c959
tailsitter: guard against division by 0
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-18 10:01:04 +02:00
Silvan Fuhrer
3cf07e1be5
VTOL: rename params _PTCH to _PITCH
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-18 10:01:04 +02:00
Silvan Fuhrer
7c5f0121a5
VTOL: remove some unsued variables
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-18 10:01:04 +02:00
Silvan Fuhrer
2b7efeacca
vtol_vehicle_status: replace several status bools by single vehicle_vtol_state
...
Replace vtol_in_rw_mode, vtol_in_trans_mode, in_transition_to_fw by vehicle_vtol_state.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-18 10:01:04 +02:00
Silvan Fuhrer
635f64a2e5
Commander: remove permanent stabilization option for fixed-wing flight
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-18 10:01:04 +02:00
Silvan Fuhrer
d8444df11c
Set tailsitter flag via vehicle status
...
Removes the necessity of including vtol_type.h in other modules.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-18 10:01:04 +02:00
Silvan Fuhrer
7292ce483c
VTOL: move to cpp params API
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-18 10:01:04 +02:00
Daniel Agar
ff16131874
icm42670p run at full speed
2022-05-17 08:14:22 -07:00
Daniel Agar
83daf648ef
drivers/imu/invensense/icm42670p: cleanup and small fixes
2022-05-17 08:14:22 -07:00
Peter van der Perk
3ea492b7a2
UCANS32K146 Fix CAN1 STB pin
2022-05-17 03:13:05 -07:00
Matthias Grob
02e11eddce
mavlink_mission: add more specific information to the error message
2022-05-17 07:49:00 +02:00
Junwoo Hwang
146f0cafe0
Add get*Expo() functions to the Sticks library
...
To return Exponential Values, which is helpful for reducing the
sensitivity of the stick around the centered value (0), since it's
exponential curve.
Useful for user adjustment implementations, where accidentally touching the stick
wouldn't have so much effect when using the Exponential value, compared
to using the raw position value.
2022-05-16 23:55:05 +02:00
Matthias Grob
4bd2d4cf35
rc_update: add unit tests for mode slot
...
To verify RC mode switch and mode button functionality works as expected.
2022-05-16 14:37:29 +02:00
achim
3fe4c6e3f5
boards: matek h743-mini specify drivers to still fit to flash
...
- the code has become a bit bigger again that now the drivers have to be specified a bit more precisely to still fit into the flash.
2022-05-13 14:05:04 -04:00
Beat Küng
32df76ca8a
dshot: handle DSHOT_MIN for reversible outputs
...
Also ensures there's no deadband if dead_l == dead_h (the default).
2022-05-13 14:04:01 -04:00
Matthias Grob
57a0289627
trajectory_setpoint: correct comment typo "kinematically"
...
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2022-05-12 17:19:48 +02:00
Matthias Grob
4017f4bb0b
vehicle_local_position_setpoint: reorder fields for clarity
2022-05-12 17:19:48 +02:00
Matthias Grob
b67fbac296
uuv_pos_control: siplify passing on trajectory position setpoint
2022-05-12 17:19:48 +02:00
Matthias Grob
200124f094
mavlink_receiver: check entire Vectors for NAN
...
Note: Behavioral change Inf also results in the flag being true.
2022-05-12 17:19:48 +02:00
Matthias Grob
8ca28f3796
Separate message for trajectory setpoint
2022-05-12 17:19:48 +02:00
Beat Küng
9166b6953d
output drivers: init SmartLock after exit_and_cleanup
...
This fixes an invalid memory access when exiting the module:
exit_and_cleanup destroys the object, but lock_guard is destructed after
and accesses the lock.
2022-05-12 08:16:35 -04:00
Beat Küng
0a9378e0f6
mavsdk_tests: ensure motor is stopped for motor failure test
2022-05-12 07:58:56 +02:00
Alessandro Simovic
b5a3c58a95
sitl: loosen some timeouts
...
The typhoon_h480 model would not always complete takeoff in 30 seconds
or finish the mission within 60 seconds.
2022-05-12 07:58:56 +02:00
Alessandro Simovic
5c1932dcca
disable engine failure detector for SITL VTOL
...
Tried increasing ESC timeout for VTOL first
VTOL sitl tests are failing because the ESC telemetry seems to be coming
in at 0.3 Hz
2022-05-12 07:58:56 +02:00
Alessandro Simovic
06f69cd469
Add SITL tests for control allocation
2022-05-12 07:58:56 +02:00
Beat Küng
0f860045f7
failure_detector: add failure injector class for motor telemetry
...
This allows to test motor failures via 'failure motor off -i 1' on a real
system.
2022-05-12 07:58:56 +02:00
Alessandro Simovic
4640f395d7
simulator_mavlink: Add ESC telemetry
2022-05-12 07:58:56 +02:00
Alessandro Simovic
20ccfbb719
control_allocator: remove failed motor from effectiveness
...
- limit to handling only 1 motor failure
- Log which motor failures are handled
- Remove motor from effectiveness matrix without
recomputing the scale / normalization
2022-05-12 07:58:56 +02:00
Alessandro Simovic
fb71e7587c
failure_detector: add motor/ESC failure detection
2022-05-12 07:58:56 +02:00
Beat Küng
dfd934fbdb
esc_report: add actuator_function
2022-05-12 07:58:56 +02:00
Hamish Willee
aab2feb8f5
pwm.cpp: remove the test example ( #19587 )
2022-05-12 07:56:13 +02:00
alexklimaj
0f69f8ced8
Fix uavcan battery causing immediate RTL time remaining low
2022-05-11 21:48:12 -04:00
Daniel Agar
fba7c972d1
drivers/rc_input: ensure RC inversion is disabled initially and latch RC_INPUT_PROTO conservatively
...
- this allows jumping straight to a non-SBUS RC protocol
- increased the scan time per protocol 300->500 ms, which the newer DSM parser seems to need in some cases.
- only set RC_INPUT_PROTO if we've had a successful RC lock for > 3 seconds
2022-05-11 14:30:41 -04:00
Daniel Agar
c772e5230f
commander: remove compile time dependencies on non-commander parameters
...
- this allows builds with mavlink fully disabled
- move commander MAN_ARM_GESTURE, RC_MAP_ARM_SW, MC_AIRMODE checks to manual_control
2022-05-11 10:14:23 -04:00
Beat Küng
8d36ba6727
log_writer_file: fix corner case when mission log is enabled
...
Normally _should_run for mission is only ever true if _should_run for the
normal log is. There are exceptions though:
- the log buffer fails to allocate
- there was a write failure (e.g. due to SD card removal)
In that situation, the writer would not wait anymore but busy-loop.
2022-05-11 10:06:35 -04:00
Beat Küng
ebbe08bc86
log_writer_file: protect access to _should_run, use px4::atomicbool for _exit_thread
2022-05-11 10:06:35 -04:00
Peter van der Perk
0053aeec97
Cyphal restore O1Heap statistics
2022-05-11 09:49:18 -04:00
Peter van der Perk
e62e8b58d1
Update UCANS32K146 clocking to use XTAL and support higher pheriphal freq
2022-05-11 06:02:39 -07:00
Silvan Fuhrer
ea2c1095c2
ROMFS: SITL tiltrotor: enable control allocaton and only tilt front motors
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-11 10:19:37 +02:00
Silvan Fuhrer
866f9fa95b
Control Allocation: add option to disable yaw by differential thrust
...
This replaces the propeller_torque_disabled flag to disable yaw by differential thrust
for tiltrotor and tailsitter VTOLs, as propeller_torque_disabled is not enough to set
effectiveness of an acutator in the yaw axis to 0 in case it's tilted.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-11 10:19:37 +02:00
Silvan Fuhrer
46179586fb
Control Allocation: Tiltrotor: pass only thrust magnitude instead of 3D thrust to allocator
...
Special case tiltrotor: instead of passing a 3D thrust vector (that would mostly have a x-component in FW, and z in
MC), pass the vector magnitude as z-component, plus the collective tilt. Passing 3D thrust plus tilt is not feasible as they
can't be allocated independently, and with the current controller it's not possible to have collective tilt calculated
by the allocator directly.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-11 10:19:37 +02:00
Daniel Agar
a71d101869
ROMFS: delete 3037_parrot_disco_mod airframe
2022-05-10 16:23:20 -04:00
Daniel Agar
42d7fb0b66
ROMFS: delete 3035_viper airframe and mixer
2022-05-10 16:23:20 -04:00
Daniel Agar
61c5d11375
ROMFS: delete 3034_fx79 airframe
2022-05-10 16:23:20 -04:00
Daniel Agar
f1a1ed4958
ROMFS: delete 3030_io_camflyer airframe
2022-05-10 16:23:20 -04:00
Daniel Agar
b00d0720cd
ROMFS: delete 13010_claire airframe
2022-05-10 16:23:20 -04:00
Daniel Agar
451cc5058d
ROMFS: delete minimal DJI airframes
2022-05-10 16:23:20 -04:00
Daniel Agar
fa1891ace2
ROMFS: delete steadidrone airframes
2022-05-10 16:23:20 -04:00
Daniel Agar
af5e903b82
.vscode/.gitignore ignore all log files
2022-05-10 11:39:55 -04:00
Daniel Agar
b77bb6d88d
Makefile: bootloaders_update add all Matek targets
2022-05-10 11:39:54 -04:00
Daniel Agar
45e3fad3e0
Update submodule GPSDrivers to latest Tue May 10 12:38:49 UTC 2022
...
- GPSDrivers in PX4/Firmware (3ac8fdbe29 ): https://github.com/PX4/PX4-GPSDrivers/commit/6534b050ee1a48af7932c46a9a87277eed1cc997
- GPSDrivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/58968922b718176be8756f11113d16b2cfbc4022
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/6534b050ee1a48af7932c46a9a87277eed1cc997...58968922b718176be8756f11113d16b2cfbc4022
5896892 2022-04-26 Seppe Geuens - sbf: add heading support (#100 )
Co-authored-by: PX4 BuildBot <bot@px4.io >
2022-05-10 11:38:52 -04:00
PX4 BuildBot
4b7b7dfa8d
Update submodule mavlink to latest Tue May 10 12:39:00 UTC 2022
...
- mavlink in PX4/Firmware (d6dff7daa984514185a8f31f6e653a69a278ded8): https://github.com/mavlink/mavlink/commit/3b52eac09c2e37325e4bc49cd2667ea37bf1d7d2
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/a1cb2c0e71f191f04da3d92d92db8702a7e91ff6
- Changes: https://github.com/mavlink/mavlink/compare/3b52eac09c2e37325e4bc49cd2667ea37bf1d7d2...a1cb2c0e71f191f04da3d92d92db8702a7e91ff6
a1cb2c0e 2022-05-05 KonradRudin - Figure eight MAV_CMD (#1831 )
0ebdf846 2022-04-28 Hamish Willee - common.xml: Deprecate MAV_CMD_GET_MESSAGE_INTERVAL for MAV_CMD_REQUEST_MESSAGE. (#1835 )
f357fc78 2022-04-27 Hamish Willee - Deprecate MAV_CMD_GET_HOME_POSITION for MAV_CMD_REQUEST_MESSAGE (#1834 )
2022-05-10 11:37:55 -04:00
Daniel Agar
371a551f05
github actions: add all matek targets and sort
2022-05-10 11:33:01 -04:00
Daniel Agar
73f4c3ea87
Jenkins: compile add all matek targets and sort
2022-05-10 11:32:52 -04:00
Daniel Agar
6d390f393c
boards: matek_h743-mini_bootloader fix NuttX CONFIG_ARCH_BOARD_CUSTOM_DIR
2022-05-10 11:28:26 -04:00
Daniel Agar
5778553508
boards: matek_h743_bootloader fix NuttX CONFIG_ARCH_BOARD_CUSTOM_DIR
2022-05-10 11:26:15 -04:00
Daniel Agar
a80a74af79
Jenkins: compile update uavcanv1 -> cyphal
2022-05-10 11:23:22 -04:00
Daniel Agar
858292209d
boards: px4_fmu-v5_uavcanv0periph disable common differential pressure sensors to save flash
2022-05-10 11:17:24 -04:00
Peter van der Perk
b1ad4e8864
Upgrade libcanard to 3.0 and rename uavcan_v1 to cyphal
...
Did some prep work for redundant interfaces by introducing CanardHandle class to decouple physical interfaces from cyphal.cpp
2022-05-10 09:46:18 -04:00
Beat Küng
3ac8fdbe29
px4/fmu-v5/stackcheck: disable module to reduce flash
2022-05-10 10:25:06 +02:00
Beat Küng
689ceefada
px4/fmu-v2/fixedwing: disable module to reduce flash
2022-05-10 10:24:55 +02:00
Beat Küng
fc062ffad4
omnibus/f4sd/ekf2: disable module to reduce flash
2022-05-10 10:24:43 +02:00
Konrad
0e464a91be
Remove contradicting geofence parameter description
...
The flight termination action on geofence violation is described as only trigger, when the corresponding circuit breaker is not disabled. However, the description of the circuit breaker states, that the geofence action is not depedning on this circuit breaker. The implementation follows the description of the circuit breaker. Hence the GF_ACTION description is adapted.
2022-05-10 09:01:12 +02:00
Beat Küng
6a35c9f5fe
px4/fmu-v5/protected.px4board: disable module to reduce flash
2022-05-10 08:57:39 +02:00
Beat Küng
639c5c741e
px4/fmu-v2/multicopter.px4board: disable module to reduce flash
2022-05-10 08:57:39 +02:00
Beat Küng
abb37a3d27
holybro/kakutef7: disable module to reduce flash
2022-05-10 08:57:39 +02:00
Beat Küng
5d114329d7
cubepilot/cubeorange/test.px4board: disable module to reduce flash
2022-05-10 08:57:39 +02:00
Beat Küng
adc6472480
cuav/x7pro/test.px4board: disable module to reduce flash
2022-05-10 08:57:39 +02:00
Beat Küng
5cdb6fbd8e
control_allocator: add helicopter mixer
...
Same logic as the existing mixer.
Untested.
2022-05-10 08:57:39 +02:00
Beat Küng
32402f31df
control_allocator: increase max num motors to 12
2022-05-10 08:57:39 +02:00
Beat Küng
9f5c5591a2
ActuatorEffectivenessRotors: fix motor count check
...
Check during init to avoid out-of-bound access.
2022-05-10 08:57:39 +02:00
Daniel Agar
15296ab453
cmake: NuttX check that CONFIG_ARCH_BOARD_CUSTOM_DIR is in PX4_BOARD_DIR
2022-05-09 15:23:18 -04:00
Silvan Fuhrer
5d6c8c986d
Commander: high wind speed handling updates
...
- add logic for detecting high wind speed in Commander,
and handle it toghether with wind speed warning
- trigger and enforce RTL if COM_WIND_MAX is breached
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-09 19:09:40 +02:00
Silvan Fuhrer
1aad82f87d
Commander: add max flight time RTL
...
Adds COM_FLT_TIME_MAX param and logic in Commander to enforce RTL when
flight time is above this value. User can only override to LAND mode,
but not proceed flight beyond that.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-09 19:09:40 +02:00
Daniel Agar
2e1cdc9e75
boards: modalai_fc-v1 enable dshot on all outputs
2022-05-09 11:31:31 -04:00
Igor Mišić
ce4e9f6690
uavcan: use timer 6 by default on stm32f7
2022-05-06 19:45:53 -04:00
achim
9c12c2a152
boards: matek h743 update unified target
2022-05-06 14:57:37 -04:00
achim
76cf4332d9
boards: matek_h743-mini sync all Matek H743 boards
2022-05-06 14:56:20 -04:00
Thomas Stastny
90789be68f
fw pos ctrl: turn back to takeoff point with npfg
2022-05-06 16:36:03 +02:00
Thomas Stastny
3ef5f433b5
fw pos ctrl: add missing guidance control interval setting to control_manual_position()
2022-05-06 16:36:03 +02:00
Thomas Stastny
1ab9fb22ee
fw pos ctrl: fix state switching logic for takeoff and landing
2022-05-06 16:36:03 +02:00
Matthias Grob
b3776134b8
Commander: ensure diconnected battery is cleared from bit field
2022-05-06 10:32:27 -04:00
Beat Küng
113982e3e7
commander: fix incorrect return in set_link_loss_nav_state()
...
If both local position and altitude were not valid, then both RC loss and
datalink loss would not trigger any failsafe at all, independently from
the configured action.
2022-05-06 10:14:13 -04:00
achim
a71cf21c28
boards: matek_h743-slim_default try to fit as many modules of all categories as possible into the flash.
2022-05-06 10:13:30 -04:00
achim
87ebf17ab0
boards: matek h743 enable 12 pwm outs on slim and wing V1.0 and V1.5
2022-05-06 10:10:59 -04:00
achim
fc887a23af
boards: matek h743 mini
2022-05-06 10:09:14 -04:00
Silvan Fuhrer
20400cbb74
ROMFS: reduce FW_SPOILERS_LND to 0.4 to leave ailerons enough control authority
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-06 16:05:03 +02:00
Matthias Grob
843c814fb8
MulticopterPositionControl: allow offboard takeoff also when not landed
2022-05-06 04:12:18 -07:00
Matthias Grob
fbc109436f
MultiCopterRateControl: refactor setpoint naming
2022-05-06 04:12:18 -07:00
Matthias Grob
1211a457d7
MulticopterPositionControl: Overwrite vertical acceleration during takeoff rampup only
2022-05-06 04:12:18 -07:00
Matthias Grob
d9a2fe5226
Revert "MCPosControl: fix invalid setpoint race condition"
...
This reverts commit e7a2c1d88e .
2022-05-06 04:12:18 -07:00
achim
1f3a78b535
boards: mro ctrl zero classic enable all pwm outs
...
* enable all available pwm outs, cause io timer 15 is supported now
2022-05-05 22:39:12 -04:00
mcsauder
2a66be4899
Colocate struct stateSample with other instances of *Sample structs.
2022-05-05 18:41:50 -04:00
mcsauder
a0d9687409
Add c++ style initializers where missing in EKF/common.cpp, standardize tab/space indentation, align comments and format whitespace.
2022-05-05 18:41:50 -04:00
bresch
cab477d715
ekf2: optimize KHP computation
...
Calculating K(HP) takes less operations than (KH)P because K and H are
vectors.
Without considering the sparsity optimization:
- KH (24*24 operations) is then a 24x24 matrix an it takes
24^3 operations to multiply it with P. Total: 14400 op
- HP (24*(24+24-1) operations) is a row vector
and it takes 24 operations to left-multiply it by K. Total:1152 op
2022-05-05 10:34:17 -04:00
achim
3233272cbb
boards: diatone_mamba-f405-mk2_default fix /dev/ttyS2 name
2022-05-05 09:41:49 -04:00
bresch
c890e8bf99
WindEstimator: fix state covariance prediction
...
All the states are stationary so the discrete-time process noise Qk can
be directly added to the state covariance matrix P
2022-05-05 11:53:33 +02:00
Konrad
14a2fdfe55
Removed l1 control slope angle limitation. The maximal approach angle to the line was set to 45°, no the approach angle can be up to 90°.
2022-05-04 21:23:22 -04:00
achim
2bee8bfd45
boards: diatone_mamba-f405-mk2_default
...
- change modules still fit to flash, there is no board variant with sd slot
2022-05-04 21:08:44 -04:00
achim
bf8d759d3d
boards: matek h743 slim support v1 and v1.5 IMU variants
...
- remove temp compensation to still fit into flash
2022-05-04 14:05:16 -04:00
Matthias Grob
46fdc28cf8
MulticopterPositionControl: fix typo "descen{d/t}"
2022-05-04 02:22:18 -07:00
Daniel Agar
7f1bb556e9
Update src/modules/mc_pos_control/MulticopterPositionControl.cpp
...
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2022-05-04 02:22:18 -07:00
Matthias Grob
3fb4889ab9
MultcopterPositionControl: fix executing a zero setpoint for 200ms
...
This is a combination of the originally introduced delay:
06c10f61c1
then the emergency failsafe being changed to not just land,
position control being rescheduled to not overwrite every setpoint in:
e502214429576ce68ac3fee9d2db19112f4604b9
and it being fixed by overwriting the setpoint but not removing
the long obsolete hystersis here:
114e85d260
2022-05-04 02:22:18 -07:00
Matthias Grob
cb484c5ac7
PositionControl: publish NAN jerk
...
because the controller does not read or write jerk
2022-05-04 02:22:18 -07:00
Matthias Grob
5055fec796
MulticoperPositionControl: explicitly overwrite setpoint timestamp when setpoint is reset
2022-05-04 02:22:18 -07:00
Matthias Grob
424fd8b304
MulticoperPositionControl: remove time_stamp_now alias for timestamp_sample of the local position
...
to make it explicit what is used is not a fresh hrt_absolute_time() call
by this module.
2022-05-04 02:22:18 -07:00
Matthias Grob
8180f931de
MulticopterPositionControl: rename local_pos -> vehicle_local_position
2022-05-04 02:22:18 -07:00
Matthias Grob
4ffe796b4d
MulticopterPositionControl: clarify previous position control naming
2022-05-04 02:22:18 -07:00
Daniel Agar
ad6592f669
mc_pos_control: require current trajectory setpoint to run controller
2022-05-04 02:22:18 -07:00
Silvan Fuhrer
138772386f
FW Position control: explicitly set spoiler/flaps in every control mode
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-03 15:11:21 +02:00
Silvan Fuhrer
089673ff35
only allow positive spoiler and flap controls
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-03 15:11:21 +02:00
Silvan Fuhrer
64ff31aa08
VTOL: add flap and spoiler support
...
- including slew rate limiting
- adds option to set spoiler setting during the Land phase (hover)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-03 15:11:21 +02:00
Silvan Fuhrer
4b8f93de5c
FW: rework spoiler/flap control logic
...
- remove separate flaperon controls input to mixer instead enable spoiler support
- add slew rate limiting on both flap and spoiler controls
- add spoiler configuration for Landing and Descend
- add trimming from spoiler deflection
- FW Attitude control: remove FW_FLAPS_SCL param -->
The flap settings for takeoff and landing are now specified relative to full range.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-03 15:11:21 +02:00
Silvan Fuhrer
21a2892f47
use actuator_controls[8] for collective tilt for tiltrotor VTOL, instead of [4]
...
[4] is reserved for Flaps, so also having the tilt on it was preventing us from
using flaps on tiltrotors, and other ripple effects.
By using [8] the tilt is separated from all other channels - it requires to increase the size of
actuator_controls by 1 to 9.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-05-03 15:11:21 +02:00
Peter van der Perk
7e6aa28106
Added LTO targets for CI
2022-05-02 10:07:54 -04:00
Peter van der Perk
108c98a691
Added experimental LTO kconfig option
2022-05-02 10:07:54 -04:00
Beat Küng
8da02e2233
dshot: avoid using pwm failsafe params when dynamic mixing is enabled
2022-05-02 07:16:23 +02:00
Daniel Agar
7784cd1f40
boards: mro_ctrl-zero-classic updates to sync with ctrl-zero-h7-oem
2022-04-30 09:40:52 -04:00
Daniel Agar
6fc857772d
ekf2: remove unnecessary const references
2022-04-29 21:39:02 -04:00
ShiauweiZhao
4a6e958100
add tattu_can smart battery kconfig
2022-04-29 13:49:32 -04:00
Vincent Poon
080ba4458a
holybro/kakuteh7: change Product ID to show board name properly in QGC
...
https://github.com/mavlink/qgroundcontrol/pull/10270
2022-04-29 07:21:58 +02:00
Beat Küng
d94ec84e46
logged_topics: remove unused vehicle_angular_acceleration_setpoint, extend add_high_rate_topics
2022-04-28 19:51:28 -04:00
Beat Küng
4338976247
ActuatorEffectivenessRotors: add missing getEffectivenessMatrix
...
Fixes MOTORS_6DOF
2022-04-28 19:51:28 -04:00
Beat Küng
efdf5b8fce
vehicle_{thrust,torque}_setpoint.msg: fix comment
2022-04-28 19:51:28 -04:00
Beat Küng
a9129ea003
logger watchdog: also check main thread
...
There was a time window where if a task with higher priority than the main
logger thread would busy-loop, it would block both logging threads and the
watchdog would not trigger if the writer was in idle state.
This can happen for fast SD card writes.
2022-04-28 19:49:24 -04:00
Beat Küng
9e0a8050a9
fix dshot: remove setAllFailsafeValues
...
Fixes a regression from c1e5e666f0 ,
where with static mixers the dshot outputs would go to max instead of 0
in a failsafe case.
2022-04-28 13:29:24 -04:00
Daniel Agar
a15432fac1
drivers/rc_input: RC_INPUT_PROTO parameter minimal implementation ( #19539 )
...
Co-authored-by: chris1seto <chris12892@gmail.com >
Co-authored-by: chris1seto <chris12892@gmail.com >
2022-04-27 21:06:43 -06:00
Daniel Agar
fc7e979d84
boards: px4_fmu-v5_uavcanv0periph disable modules to save flash
2022-04-26 08:39:19 -04:00
Daniel Agar
7ab9b0c6e2
boards: cubepilot_cubeorange_test disable examples/fake_gps to save flash
2022-04-26 08:39:19 -04:00
Daniel Agar
f390f52058
drivers/differential_pressure: remove lib/drivers/airspeed dependency and cleanup
...
- split ms4525_airspeed into separate ms4515 and ms4525 drivers
2022-04-26 08:39:19 -04:00
Daniel Agar
d1d15a6f6d
differential pressure remove filters from drivers and average in sensors/airspeed
2022-04-26 08:39:19 -04:00
Daniel Agar
258f558fea
apply differential pressure calibration (SENS_DPRES_OFF) centrally
...
- remove drv_airspeed.h and ioctls
2022-04-26 08:39:19 -04:00
JaeyoungLim
c6ab4c466e
Separate takeoff and landing to individual fixed wing states for FW pos control ( #19495 )
2022-04-26 10:24:36 +02:00
Daniel Agar
d6210d1725
boards: px4_fmu-v6x_default disable common barometers to save flash
2022-04-26 01:43:10 -04:00
Daniel Agar
3d7a6b4021
mc_pos_control: silence invalid setpoint warning when disarmed
2022-04-26 01:37:37 -04:00
Daniel Agar
b2bcd2631a
boards/diatone/mamba-f405-mk2: disable modules to save flash
2022-04-26 01:08:18 -04:00
Daniel Agar
c8d2d83e55
boards: px4_fmu-v2 restore systemcmds/ver needed for board init
2022-04-25 22:47:08 -04:00
Daniel Agar
7bb789cb23
boards: update bootloaders to latest
2022-04-25 22:39:25 -04:00
Daniel Agar
d8a57e15b0
boards/mro/ctrl-zero-classic: fix code style
2022-04-25 22:07:32 -04:00
Daniel Agar
248f42f9ec
boards/diatone/mamba-f405-mk2: fix code style
2022-04-25 22:07:21 -04:00
achim
adacdad32d
boards: add new Diatone Mamba F405 mk2
2022-04-25 21:53:58 -04:00
achim
1bf16cb4df
boards: add new mRo Control Zero Classic
2022-04-25 21:52:38 -04:00
Daniel Agar
3d590af115
mc_att_control: only apply quat reset if estimate is newer than setpoint
2022-04-25 21:25:29 -04:00
Daniel Agar
23c89429ac
systemcmds/param: set-default should mark parameter active to avoid race conditions
2022-04-25 21:24:18 -04:00
bresch
e32a484906
[AUTO COMMIT] update change indication
2022-04-25 12:58:18 -04:00
bresch
db0274e19b
ekf: robustify bad_acc_vertical check
...
when the vertical pos or vel innov ratio is above the threshold, the
other one needs to be significant too and not just positive to trigger
the failure
2022-04-25 12:58:18 -04:00
Daniel Agar
980f696023
commander: mag calibration tolerate fit failure if sensor disabled
2022-04-25 12:41:20 -04:00
Daniel Agar
89374b2e1d
mavlink: delete Mavlink instance if early startup fails
2022-04-25 12:38:28 -04:00
Alex Mikhalev
45dff7f71a
commander: Add prearm check for flight termination
2022-04-25 11:57:37 -04:00
Daniel Agar
6359c8c008
mavlink: shell expand locking ( #19308 )
...
- on some H7 boards (cuav x7pro tested) there's an occasional hard fault when starting the mavlink shell that is no longer reproducible with the slightly expanded locking
- this is likely just changing the timing (holding the sched lock for longer), but this should be harmless for now until we can identify the root cause
2022-04-25 11:53:22 -04:00
Junwoo Hwang
af839c828d
Set Tune's Volume for Power-Off in Commander to default volume of tune_control message
2022-04-25 11:47:43 -04:00
Daniel Agar
8df3932d6a
icm20948: disable debug output (_debug_enabled=true)
2022-04-24 15:45:51 -04:00
Kirill Shilov
6981a70859
boards: new Sky-Drones AIRLink board support
2022-04-24 13:57:42 -04:00
Daniel Agar
503f97c8bc
logger: add default ground truth logging for HITL/SITL
2022-04-24 12:45:23 -04:00
Silvan Fuhrer
680fe86c05
FlightTaskAuto: fix Weather Vane during landing
...
Weather vane should only set a yawrate setpoint, but no yaw setpoint.
Setting it to NAN when WV is active makes sure that whatever _yaw_setpoint
is set previously (e.g. through Waypoint) is not used.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-04-23 18:14:42 +02:00
Silvan Fuhrer
ae5725e71a
ROMFS: fix typo in convergence and clair configs
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-04-23 10:29:57 -04:00
Silvan Fuhrer
bd1b0cab73
Mission: don't do anything in set_current_mission_index() when index=current already
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-04-22 22:32:06 -04:00
Daniel Agar
6f87a4546d
platforms/nuttx: cdc_acm_check implement mavlink reboot directly
2022-04-22 21:16:07 -04:00
Daniel Agar
9073f3ccdf
px4flow allow delayed background startup
2022-04-22 21:11:02 -04:00
mcsauder
fef47513f5
Add gyro and accel range register values to the icm42688p driver.
2022-04-22 21:03:01 -04:00
Hamish Willee
e1d3728208
13004_quad+_tailsitter - outputs mixed up
2022-04-22 07:34:05 +02:00
Daniel Agar
435a474dff
Update submodule GPSDrivers to latest Thu Apr 21 12:38:20 UTC 2022
...
- GPSDrivers in PX4/Firmware (e9c07fac6f ): https://github.com/PX4/PX4-GPSDrivers/commit/ddb1825fe33f517853ca8a3ef75ac6f2df76f613
- GPSDrivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/6534b050ee1a48af7932c46a9a87277eed1cc997
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/ddb1825fe33f517853ca8a3ef75ac6f2df76f613...6534b050ee1a48af7932c46a9a87277eed1cc997
6534b05 2022-04-19 Jonas Perolini - ubx: disable gps heading for in RTK float fix type (#104 )
Co-authored-by: PX4 BuildBot <bot@px4.io >
2022-04-21 11:41:24 -04:00
bresch
e9c07fac6f
EKF: move python tuning tools to EKF module
2022-04-21 13:39:26 +02:00
bresch
49bc5082e7
Tools: add baro pressure coefficient tuning script
2022-04-21 13:39:26 +02:00
bresch
ea7009546b
mc wind: rename MC wind estimor tuning script
2022-04-21 13:39:26 +02:00
Julian Oes
37fa4bccb6
mavsdk_tests: update MAVSDK dependency
...
This should fix the CI issue where the test just hangs trying to
connect.
2022-04-20 11:48:53 -04:00
bresch
3c6b72c33b
commander: improve set_in_air_position
...
- set local home using global pos and global home
- set local home using GNSS pos and global home
- set global home using global ref of local frame and local home
2022-04-19 15:29:25 +02:00
bresch
e9a2b3f260
geofence: remove unused function parameters
2022-04-19 15:29:25 +02:00
bresch
3f3a4ac5c1
navigator: home_positionvalid -> global_home_position_valid
...
This is to make clear that the relevant part of the home position
message for navigator is the global one. Local home position isn't
required as everything is done in global coordinates.
The specific home_alt_valid is used when lat/lon are not used
2022-04-19 15:29:25 +02:00
bresch
d2f2ba59a4
commander: refactor home position setter
...
- always try to set local or global home position when possible
- set global home with GNSS position if global pos from EKF isn't
available
- reset home when significantly moved from home before takeoff (checking
lpos or gpos or GNSS)
- reset home on takeoff transition
- reset home on mavlink arm command
- remove "home required accuracy" parameters, rely on validity flags
2022-04-19 15:29:25 +02:00
RomanBapst
a7683eea07
mission_block: fix vehicle not exiting loiter after reaching exit heading
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-04-19 13:32:18 +02:00
Thomas Stastny
d5a6174e7f
mission block: fix incorrectly calculated ccw loiter exit ( #19487 )
...
* mission block: fix incorrectly calculated ccw loiter exit
* mission block: update comment on orbit exit location
2022-04-19 13:30:11 +02:00
Daniel Agar
5e05d98fe2
output modules simplify locking for mixer reset and load
...
- fixes the deadlock in px4io ioctl mixer reset
- px4io Run() locks (CDev semaphore)
- mixer load goes through px4io ioctl MIXERIOCRESET which calls MixingOutput::resetMixerThreadSafe()
- MixingOutput::resetMixerThreadSafe() stores a Command::Type::resetMixer command in an atomic variable, schedules a work queue cycle, then sleep spins until the command is cleared
- the execution of the cycle eventually calls back into PX4IO::updateOutputs(), which tries to lock (and waits forever)
2022-04-19 08:52:17 +02:00
bazooka joe
5d95cc001f
small cleanup for FlightTask::_evaluateDistanceToGround if-else
2022-04-18 20:47:41 -04:00
Daniel Agar
2e290345d3
boards: px4_fmu-v5_stackcheck disable unused systemcmds to save flash
2022-04-18 10:01:29 -04:00
Daniel Agar
90e2cab3fa
boards: px4_fmu-v5/v5x run default & rtps boards through kconfiglib to cleanup
2022-04-18 09:58:36 -04:00
Daniel Agar
3cdeeb8d64
px4iofirmware: convert most files to c++
2022-04-17 20:44:30 -04:00
Daniel Agar
3211d0ff19
boards: px4_fmu-v2_multicopter disable lightware_laser_serial to save flash
2022-04-17 18:59:56 -04:00
Daniel Agar
d06032d7f3
boards: px4_fmu-v5_uacanv0periph disable systecmds/sd_bench to save flash
2022-04-17 16:04:01 -04:00
stmoon
e7562df13a
boards: px4_fmu_v5x_rtps disable several modules to save flash
2022-04-17 13:36:24 -04:00
Daniel Agar
cbc37f9fcd
boards: px4_fmu-v6x_default disable systemcmds/sd_bench to save flash
2022-04-14 20:07:28 -04:00
alexklimaj
6e0ac66c3c
drivers/optical_flow: new PixArt PAA3905 optical flow driver
2022-04-14 16:47:53 -04:00
Beat Küng
9a9aad98a1
mavlink: add COMPONENT_METADATA message
...
And still support the previous message COMPONENT_INFORMATION for now.
2022-04-14 09:55:06 -04:00
Igor Misic
cdfa65d792
commander/safety: set early safety_button_available
2022-04-14 08:03:37 +02:00
Thomas Debrunner
f6bdc42977
param-reset: Add option to reset all configurable params, but not the ones that store vehicle information
2022-04-14 07:57:48 +02:00
Daniel Agar
3f13c70cae
px4io cleanup LED and heater handling
...
- most px4_io-v2 boards have a blue LED that breathes for status
- the pixhawk 2.1 (hex) re-used this blue LED for as an IMU heater (active low), but kept the same board id (so we have to detect at runtime)
- the new cubepilot boards (yellow, orange) inverted the polarity of this heater pin
- untangle the mess slightly so that things we know statically (eg cubepilot cubeorange LEDs and heater polarity) are handled at build time.
2022-04-13 18:43:59 -04:00
Alessandro Simovic
510ad00024
dronecan beeper: remove unneded var
2022-04-13 18:06:58 -04:00
chris1seto
912962f109
lib/rc: Fix DSM2/DSMX guessing routine and DSM range checking ( #18270 )
...
* Add Orangerx test case
Co-authored-by: Chris Seto <chris.seto@bossanova.com >
2022-04-13 17:29:08 -04:00
PX4 BuildBot
93268a285d
Update submodule mavlink to latest Wed Apr 13 12:39:05 UTC 2022
...
- mavlink in PX4/Firmware (16fd85d9b9133f21a79a5c1bccbf4756f4b3c781): https://github.com/mavlink/mavlink/commit/56a5110d38b77c8477b0a1d6ee909607a588f98d
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/3b52eac09c2e37325e4bc49cd2667ea37bf1d7d2
- Changes: https://github.com/mavlink/mavlink/compare/56a5110d38b77c8477b0a1d6ee909607a588f98d...3b52eac09c2e37325e4bc49cd2667ea37bf1d7d2
3b52eac0 2022-04-13 Beat Küng - add COMPONENT_METADATA, deprecate COMPONENT_INFORMATION (#1823 )
2022-04-13 14:09:03 -04:00
Daniel Agar
9c381a60b5
Tools/ecl_ekf: fix vibe_metrics usage (moved to vehicle_imu_status instances)
2022-04-13 10:36:45 -04:00
Daniel Agar
b4158c1b48
sensors/vehicle_imu: Integrator use 1 microsecond for minimum DT
...
- this is a more realistic minimum for the system
2022-04-13 10:36:45 -04:00
Daniel Agar
d2f1349d1a
sensors/vehicle_imu: replace coning metric with actual integrator coning correction (averaged)
...
- this saves a relatively expensive higih rate cross product and gives
better visibility into what's actually happening internally
2022-04-13 10:36:45 -04:00
bresch
37cafe7dcd
ekf rng kin: reduce minimum rng variance
2022-04-13 11:41:48 +02:00
bresch
4994649500
ekf rng kin: increase default gate size
...
The user needs to tune the range finder noise parameters properly and we
shouldn't need such a small gate
2022-04-13 11:41:48 +02:00
bresch
1fbe04986f
ekf rng finder consistency: simplify class member names
2022-04-13 11:41:48 +02:00
bresch
4c03f0bc50
ekf: make range finder kin consistency gate tunable by parameter
2022-04-13 11:41:48 +02:00
bresch
079a5e92ba
ekf: run rng consistency check only when not horizontally moving
...
The check assumes a non-moving terrain height
2022-04-13 11:41:48 +02:00
bresch
d903613c9c
ekf: add logging for rng kinematic consistency check
2022-04-13 11:41:48 +02:00
bresch
8693ad15a7
ekf: add logging of range finder consistency check
2022-04-13 11:41:48 +02:00
bresch
baf9cc9597
ekf: use uint64_t for time variables
2022-04-13 11:41:48 +02:00
bresch
9fc331b7ea
ekf: requires kinematically consistent range finder data to continue terrain aiding
2022-04-13 11:41:48 +02:00
bresch
78211f9dbb
ekf: improve rng consistency check
...
To pass from invalid to valid:
- time hysteresis
- some vertical velocity
- test ratio < 1
- low-passed signed test ratio < 1
To pass from valid to invalid:
- low-passed signed test ratio >= 1
2022-04-13 11:41:48 +02:00
bresch
b1ea2e4e15
ekf: use same gate for innov and innov sequence monitoring
2022-04-13 11:41:48 +02:00
bresch
f96287b80a
ekf: access member variable without getter
2022-04-13 11:41:48 +02:00
bresch
904bf8ef9f
ekf: add range finder kinematic consistency check
...
At each new valid range measurement, the time derivative of the distance
to the ground is computed and compared with the estimated velocity.
The average of a normalized innovation squared statistic check is used
to detect a bias in the derivative of distance measurement,
indicating that the distance measurements are kinematically inconsistent
with the filter.
2022-04-13 11:41:48 +02:00
bresch
064518f57a
ekf: extract range finder noise computation
2022-04-13 11:41:48 +02:00
Matthias Grob
97b2947416
FlightTaskAuto: refactor _commanded_speed_ts -> _time_last_cruise_speed_override
2022-04-13 12:23:27 +03:00
Matthias Grob
68cf686892
FlightTask: rename and move setCruisingSpeed() -> overrideCruiseSpeed()
2022-04-13 12:23:27 +03:00
Matthias Grob
f892a624b7
FlightModeManager/FixedwingPositionControl: robustify vehicle command parameter casting
2022-04-13 12:23:27 +03:00
Matthias Grob
6ce3e88f9d
vehicle_command: specify what SPEED_TYPEs are for
2022-04-13 12:23:27 +03:00
RomanBapst
3ed929c7b6
addressed review comments
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-04-13 12:23:27 +03:00
RomanBapst
b335710655
vehicle_command: added enum for speed types
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-04-13 12:23:27 +03:00
RomanBapst
d41de33a85
FlightModeManager: handle MAV_CMD_DO_CHANGE_SPEED
...
- support setting the cruise speed of the auto flight task via command
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-04-13 12:23:27 +03:00
RomanBapst
ca657f36ef
FixedWingPositionControl: handle VEHICLE_CMD_DO_CHANGE_SPEED
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-04-13 12:23:27 +03:00
RomanBapst
36e32ecd7b
navigator: stop handling speed changes via reposition triplet
...
- the mc and fw controllers are handling the speed changes directly
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-04-13 12:23:27 +03:00
Junwoo Hwang
35613df210
uORB : Don't automatically include message name as default topic name in uORBTopics source files, to handle case where user doesn't use default messgae name for multi topic definition in .msg file
2022-04-13 09:08:51 +02:00
alexklimaj
4fc161192a
Add ARK CANnode board config
2022-04-12 21:23:18 -04:00
Daniel Agar
0a0987a6e0
ROMFS: move px4flow start to rc.sensors
2022-04-12 21:22:41 -04:00
Daniel Agar
1d66f2cf83
posix: HRT hrt_lock() sem_wait try again if error returned
2022-04-12 12:46:29 -04:00
Matthias Grob
10f927ae2b
MulticopterPositionControl: remove unused return value parameters_update()
2022-04-12 10:13:11 -04:00
Daniel Agar
c30475b04b
Update submodule GPSDrivers to latest Tue Apr 12 12:38:56 UTC 2022
...
- GPSDrivers in PX4/Firmware (c04e66a890c75f57f5588d669eec45c8da8c3ed5): https://github.com/PX4/PX4-GPSDrivers/commit/ad1094aaf16fcc650b270431a1d0bdcf38e8d89a
- GPSDrivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/ddb1825fe33f517853ca8a3ef75ac6f2df76f613
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/ad1094aaf16fcc650b270431a1d0bdcf38e8d89a...ddb1825fe33f517853ca8a3ef75ac6f2df76f613
ddb1825 2022-03-29 Daniel Agar - ubx: print relevent UBX-MON-VER output
Co-authored-by: PX4 BuildBot <bot@px4.io >
2022-04-12 10:12:46 -04:00
PX4 BuildBot
5e6fb9b537
Update submodule sitl_gazebo to latest Tue Apr 12 12:38:53 UTC 2022
...
- sitl_gazebo in PX4/Firmware (bb2ea574aa ): https://github.com/PX4/PX4-SITL_gazebo/commit/25138e803ee8525ee5fe4e6d511506e88e3f819c
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/2cf56d0bf8a9119cadc1a44d20d641ab24a6a42d
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/25138e803ee8525ee5fe4e6d511506e88e3f819c...2cf56d0bf8a9119cadc1a44d20d641ab24a6a42d
2cf56d0 2022-03-23 Julian Oes - Revert "models: Add model for standard_vtol_ctrlalloc"
b3ab8de 2022-03-18 JamesAnawati - Update cloudship.sdf.jinja
2022-04-12 10:12:12 -04:00
Daniel Agar
8166a500ac
Update world_magnetic_model to latest Mon Apr 11 11:14:11 UTC 2022 ( #19475 )
2022-04-12 10:11:51 -04:00
Daniel Agar
bb2ea574aa
ekf2: properly reset IMU biases on calibration change (non-multi-EKF)
...
- this was working in the multi-EKF case using vehicle_imu, but missing
in sensor_combined
2022-04-11 12:23:55 -04:00
Daniel Agar
8f891332f1
boards: px4_fmu-v2_multicopter disable load_mon to save flash
2022-04-11 12:23:35 -04:00
bresch
76a59d5c66
Tools: add drag fusion tuning script
2022-04-11 09:56:01 -04:00
Daniel Agar
04f37222f8
ekf2: fix IMU missed perf count when not using multi-EKF
2022-04-10 11:07:33 -04:00
PX4 BuildBot
f2c5d70d3a
Update submodule mavlink to latest Sun Apr 10 12:39:00 UTC 2022
...
- mavlink in PX4/Firmware (a1530591764f0c694560e4bb6ae41c15d3e35c9b): https://github.com/mavlink/mavlink/commit/0133e5db7fd640dcf250f3ba7817d6f0f7bb7589
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/56a5110d38b77c8477b0a1d6ee909607a588f98d
- Changes: https://github.com/mavlink/mavlink/compare/0133e5db7fd640dcf250f3ba7817d6f0f7bb7589...56a5110d38b77c8477b0a1d6ee909607a588f98d
56a5110d 2022-04-09 Tom Pittenger - Add radius to DO_REPOSITION (#1825 )
3b5959bd 2022-04-07 Thomas Debrunner - Option to not reset non-configurable params in preflight storage (#1826 )
2022-04-10 10:21:14 -04:00
Silvan Fuhrer
6096620828
ROMFS: remove duplicate setting of NAV_LOITER_RAD to 80
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-04-09 14:31:17 -04:00
Silvan Fuhrer
c7023e5879
Increase NAV_LOITER_RAD and RTL_LOITER_RAD to 80m each
...
For many VTOLs/fixed-wing drones a 50m loiter radius is too tight, and
going to 80m is a better and safer default.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-04-09 14:31:17 -04:00
Nicolas MARTIN
eb1bb4335b
commander: fix enable_failsafe reason ( #19391 )
...
- In this case, no action is configured for datalink lost. Action is configured for RC lost.
- In case of no data link and no rc failsafe is enabled but reporting a "no_datalink" reason but "no_rc_and_no_datalink" seems more explicit.
2022-04-09 14:30:49 -04:00
Daniel Agar
091fca701e
px4io: input_rc only publish new successful decodes
...
- previously an invalid decode would continue to be transferred to the FMU (at 50 Hz) and published to the rest of the system as successfully decoded new RC data
- by only publishing new successful decodes we can more effectively discard invalid data in downstream consumers
2022-04-09 14:28:16 -04:00
alexklimaj
017f860f44
Add I2C retries in INA226 to prevent publishing 0's on a single read failure
2022-04-09 14:23:52 -04:00
Ryan Johnston
777540bd02
boards/matek/gnss-m9n-f4: RM3100 orientation fix
...
- the RM3100 needs to be pitched 180º for correction orientation on this board.
2022-04-09 14:22:21 -04:00
Ryan Johnston
c585758f67
boards/matek/gnss-m9n-f4: IMU orientation update
...
- the icm20602 needs to be rolled 180º and yaw 90º for this board.
2022-04-09 14:21:45 -04:00
Jacob Dahl
3bffe3087d
use new safety_button topic for uavcannode Button publishing
2022-04-09 14:20:18 -04:00
Matthias Grob
fe26ee244d
modeCheck: allow arming in land mode for MAVSDK compatibility
...
ideally we can remove it again when the workflow is changed to
first changing mode then arming.
2022-04-08 09:56:47 +02:00
Ramon Roche
889a5aa0b1
ci: build and deploy kakuteh7
2022-04-07 19:09:19 -04:00
Daniel Agar
77a37c26bf
rc_update: further tighten timing requirements for valid data
...
- any real RC data input will be much faster than 3 Hz, so this is an
easy way to minimize bogus decoded data from propagating
2022-04-07 14:42:05 -04:00
Daniel Agar
98623f69a3
update mavlink submodule to latest
...
- update MAV_TYPE VTOL usage for current mavlink
2022-04-07 20:35:41 +02:00
Julian Oes
a5bd65b923
mavlink: set correct param capability
...
PX4 supports int32 parameter types by interpreting the 32 bits in
the float field as an int32 field. To signal this behaviour, it should
set the bit which is described as PARAM_ENCODE_BYTEWISE.
PX4 had always handled parameters this way but never actually sent the
capability (which back then was called PARAM_UNION), however, it should
have. This came up recently in the MAVLink devcall when these flags were
discussed. The takeaway was to remove the flags to make it clearer and
to make sure the projects (like PX4) send them out correctly.
2022-04-07 20:35:41 +02:00
Matthias Grob
92adc71424
ArmStateMachine: port over unit tests to functional gtests
2022-04-06 10:02:14 +02:00
Matthias Grob
f968a5947d
ArmStateMachine: port arming_state_names into the class
2022-04-06 10:02:14 +02:00
Matthias Grob
074080c816
Commander: separate out arm state machine to class
...
Pure refactoring and just the first step to avoid conflicts on the way.
2022-04-06 10:02:14 +02:00
Daniel Agar
6e9c673262
boards: omnibus_f4sd_ekf2 disable frsky telemetry to save flash (and fix build)
...
- this isn't great, but our options are limited at the moment and this
can be fixed later once the old mixing system is deleted
2022-04-05 11:10:33 -04:00
Thomas Stastny
e4b11c49c3
mathlib: add second order reference model filter with optional rate feedback ( #19246 )
...
mathlib: add second order reference model filter with optional rate feedback (#19246 )
Reference models can be used as filters which exhibit a particular, chosen (reference) dynamic behavior. This PR implements a simple second order transfer function which can be used as such a reference model, additionally with rate feedback. The system is parameterized by explicitly set natural frequency and damping ratio. Another nice externality is that the output state and rate are kinematically consistent. Forward-euler and bilinear transform discretizations for the state space integration step are available.
2022-04-05 10:31:41 +02:00
Igor Misic
80aef942cd
safety and safety button: refactoring #19413
2022-04-05 07:57:37 +02:00
Jacob Dahl
1f17a1470a
uavcan: update safety button
...
updated uavcannode/Publishers/SafetyButton.hpp
tested successfully
make format
revert cannode publishing
2022-04-05 07:57:37 +02:00
Daniel Agar
8c3ba7adb4
commander: silence GPS no longer validity PX4_WARN
2022-04-04 14:43:11 -04:00
Alessandro Simovic
47b08fd698
precland: save flash space
2022-04-04 17:26:52 +02:00
Hovergames
457130fb69
Support for NXP UWB position sensor
...
uwb_sr150 driver for the sensor, and some
modifications in precision landing to allow
landing on a platform using the UWB system.
2022-04-04 17:26:52 +02:00
Beat Küng
3381a5914d
holybro/kakuteh7: fix BOARD_FLASH_SIZE
...
The BL was reporting a flash size of 1703936, whereas it should be 1835008.
2022-04-04 10:44:11 -04:00
Matthias Grob
dd28c3e019
battery: update average current also when no capacity is configured
2022-04-04 10:02:55 +02:00
Matthias Grob
13c3eae6d0
battery: use mechanism to keep an up to date armed state
2022-04-04 10:02:55 +02:00
Silvan Fuhrer
3f6ab5ea19
battery: improve flight time remaining improvements
...
- introduce BAT_AVRG_CURRENT param that is used for init of average current estimate
- increase filtering of average current estimation
- only update average current filter when armed
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-04-04 10:02:55 +02:00
Beat Küng
6652718354
metadata.cmake: enable ethernet parameters
2022-04-04 09:54:47 +02:00
alessandro
8af0eeae46
1011_iris_irlock: require precland ( #19431 )
2022-04-04 08:27:31 +02:00
stmoon
179820cead
boards: px4_fmu_v5x_rtps disable common telemetry modules to save flash
2022-04-02 11:46:37 -04:00
Daniel Agar
803cc6814f
boards: px4_fmu-v2_fixedwing disable drivers/camera_trigger to save flash
2022-04-01 11:08:03 -04:00
Daniel Agar
f0be554857
boards: px4_fmu-v5_uavcanv0periph disable modules to save flash
2022-03-31 09:59:58 -04:00
Matthias Grob
3aee2497bb
commander_params: add precision land option for mode switch
2022-03-30 18:11:44 +02:00
David Sidrane
d6db06faf3
px_update_git_header:Extract latest release tag
2022-03-30 11:19:02 -04:00
Daniel Agar
82c1ffb8f8
boards: px4_fmu-v5_stackcheck disable common telemetry modules to save flash
2022-03-30 10:07:05 -04:00
Alex Mikhalev
9e57c5d217
tunes: Print warning if there is a tune error
2022-03-30 09:58:33 -04:00
Alex Mikhalev
f6cda64f0d
tunes: Fixed unspecified behaviour
...
This fixes unspecified behaviour due to evaluation order of args.
It's up to the compiler whether next_number() or next_dots() is executed
first which means that the behaviour is not properly specified.
2022-03-30 09:58:33 -04:00
Kabir Mohammed
d3b3de7159
mavlink: Use round instead of ceil on BATTERY_STATUS percentage
...
Co-authored-by: Alex Mikhalev <alex@corvus-robotics.com >
2022-03-30 09:49:11 -04:00
CUAVmengxiao
1870b9245b
fmu-v5: add macro definitions for different version revisions
2022-03-29 17:09:34 -04:00
CUAVmengxiao
f540335998
spi: get the correct version revision
2022-03-29 17:09:34 -04:00
CUAVmengxiao
c0d5ae2f9f
fmu-v5: Add support for ICM-42688-P
2022-03-29 17:09:34 -04:00
Matthias Grob
7cd57b4415
FlightTaskOrbit: alert user about exceeded radius (mavlink_log)
2022-03-29 18:46:37 +02:00
Matthias Grob
3e8d2fea94
FlightTaskOrbit: alert user about exceeded radius (events)
2022-03-29 18:46:37 +02:00
Matthias Grob
8ad44ee128
FlightModeManager: remove needless space at the end of invalid task error string
2022-03-29 18:46:37 +02:00
Matthias Grob
9bdde98a68
FlightModeManager: refactor flight task switch result condition for vehicle commands
2022-03-29 18:46:37 +02:00
Matthias Grob
ffaef906c4
FlightModeManager: don't ack with result failed when parameters are invalid
...
Command denied is defined as "supported but has invalid parameters"
which matches the case.
2022-03-29 18:46:37 +02:00
Matthias Grob
fc0be6c4fc
FlightModeManager: switch to failsafe task if orbit is rejected
2022-03-29 18:46:37 +02:00
RomanBapst
18074dec5a
simulator: fix conversion from hPa to Pa
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-03-29 17:41:54 +03:00
Daniel Agar
8a552fac78
uavcannode: publish RelPosHeading (from sensor_gnss_relative)
2022-03-29 07:59:41 +02:00
Daniel Agar
84e796c385
drives/gps: add new sensor_gnsss_relative msg
...
- for ublox this corresponds to NAV_RELPOSNED
2022-03-29 07:59:41 +02:00
Daniel Agar
dfe13e16e8
boards: px4_fmu-v2_multicopter disable distance_sensor/tfmini to save flash
2022-03-28 15:40:46 -04:00
Daniel Agar
67920f089b
boards: px4_fmu-v5x_rtps disable unused systemcmds and examples to save flash
2022-03-28 12:01:21 -04:00
Matthias Grob
c7f114a26a
FlightTaskOrbit: increase radius limit
2022-03-28 17:57:56 +02:00
Matthias Grob
d0794c1189
FlightTaskOrbit: don't start Orbit if radius is not in range
2022-03-28 17:57:56 +02:00
Daniel Agar
0595efbd9b
sensors/vehicle_magnetometer: publish sensors_status_mag and other minor updates to stay in sync with air data
2022-03-26 16:08:41 -04:00
Daniel Agar
0c31f63896
sensors: add baro calibration and cleanup
...
- sensor_baro.msg use SI (pressure in Pascals)
- update all barometer drivers to publish directly and remove PX4Barometer helper
- introduce baro cal (offset) mainly as a mechanism to adjust
relative priority
- commander: add simple baro cal that sets baro offsets to align with
GPS altitude (if available)
- create new sensors_status.msg to generalize sensor reporting
2022-03-26 16:08:41 -04:00
Daniel Agar
5800c417c8
boards: px4_fmu-v2_rover disable unused drivers to save flash
2022-03-25 17:30:42 -04:00
Daniel Agar
01eb27c703
Jenkinsfile-compile: skip px4_sitl_rtps for now
2022-03-25 15:07:20 -04:00
Daniel Agar
eb666e94a4
bords: omnibus_f4sd move ekf2 from default to new ekf2 board variant
...
- temporary solution to flash overflow
2022-03-25 12:47:25 -04:00
Daniel Agar
bc26b73c07
px4io: only publish valid input_rc
2022-03-25 10:56:24 -04:00
Daniel Agar
3d08e031d2
rc_update: improve manual_switches simple protections
...
- require back to back matching switch decode to match within 1 second
- clear any previous manual switches if RC is unstable
2022-03-25 10:56:24 -04:00
Daniel Agar
875a2cc423
commander: remove loop counters and update UI LED control to use monotonic time
2022-03-24 22:43:26 -04:00
Daniel Agar
879622547c
commander: only process one vehicle_command/action_request per cycle
...
- things like arming requests can be dependent on current nav state
that might requested by a previous command, but the state machine
transition will only happen after command processing
2022-03-24 22:43:26 -04:00
Daniel Agar
e528eb5dc4
commander: fix status flags usage (condition_global_position_valid->global_position_valid)
...
- broken due to the merge timing of https://github.com/PX4/PX4-Autopilot/pull/19378 and https://github.com/PX4/PX4-Autopilot/pull/19351
2022-03-24 09:40:15 -04:00
Jaeyoung-Lim
106044be38
Initialize global local projection for rovers
...
This commit initializes the global and local projection for rovers
2022-03-24 08:57:53 -04:00
Jonas Perolini
e31304d7d5
Quadchute param update ( #19351 )
...
New parameter for actions after a quadchute (COM_QC_ACT)
Co-authored-by: Jonas <jonas.perolini@rigi.tech >
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2022-03-24 10:27:32 +01:00
Jacob Schloss
5ae4cae073
orb_advertise_multi: might return nullptr ( #19387 )
2022-03-24 07:47:48 +01:00
Daniel Agar
6135bb384b
cleanup module callback registration failed errors
2022-03-23 20:44:50 -04:00
Daniel Agar
f4c3084c26
init adjustments to ensure used topics are advertised early (primarily for logging)
...
- multi-EKF create each instance as soon as IMU & mag are advertised (before device id populated)
2022-03-23 16:51:16 -04:00
Matthias Grob
e6ed595651
Commander: make last_fail_time_us parameter a reference instead of pointer
2022-03-23 15:04:48 -04:00
Matthias Grob
eee4aaee4f
Commander: remove dynamic position velocity probation period
2022-03-23 15:04:48 -04:00
David Sidrane
9fe2dfc2e3
px4_fmuv-6x Sensor set 3
2022-03-23 12:24:31 -04:00
Thies Lennart Alff
f1ec6ea026
make mavlink atttitude setpoints non-exlusive for offboard setpoints
2022-03-23 11:06:40 -04:00
Daniel Agar
94e30f5efb
boards: delete unused px4_fmu-v2_test
2022-03-23 10:39:58 -04:00
Silvan Fuhrer
a7ddaf08c4
vehicle_status_flags.msg: remove condition_ prefix to reduce message size
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-03-23 10:37:51 -04:00
Silvan Fuhrer
c30f2b9493
vehicle_status_flags.msg: remove unused condition_system_returned_to_home
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-03-23 10:37:51 -04:00
Jaeyoung-Lim
194a281fae
Project local coordinates for all fw landing states
2022-03-23 13:34:13 +01:00
Jaeyoung-Lim
cb81c6ac8c
Address review comments
2022-03-23 13:34:13 +01:00
Jaeyoung-Lim
71bfb9c0de
Convert NPFG to local coordinates
2022-03-23 13:34:13 +01:00
Jaeyoung-Lim
f804b3516f
Remove local planar vector
2022-03-23 13:34:13 +01:00
Jaeyoung Lim
28d34bf095
Convert L1 controller to local coordinates
2022-03-23 13:34:13 +01:00
Matthias Grob
897506267d
Sticks: name getThrottle() explicitly about range
2022-03-23 11:54:05 +01:00
Junwoo Hwang
0e5c305163
Stick Verbose Functinos : Make get functions for roll, pitch, yaw and throttle const to specify that it's not changing Sticks' internal variables
2022-03-23 11:54:05 +01:00
Junwoo Hwang
f78465428c
Stick Verbose Functions : Edit other FlightTasks using checkAndUpdateStickInputs() functions and correct Throttle returned value inverse issue
2022-03-23 11:54:05 +01:00
Junwoo Hwang
8266a4df98
Sticks : Add utility functions to get pitch, roll, throttle and yaw values intuitively and rename ambiguously named function checkAndSetStickInputs()
2022-03-23 11:54:05 +01:00
Matthias Grob
db7430aa65
matrix helper: remove needless comment line
2022-03-23 10:51:45 +01:00
Matthias Grob
18629bb535
FlightTaskOrbit: fix tangential yaw stick input for rotation direction changes
2022-03-23 10:51:45 +01:00
Matthias Grob
74c0ae6e55
Functions: add sign from boolean function with unit tests
2022-03-23 10:51:45 +01:00
Matthias Grob
e03585ca06
FlightTaskOrbit: remap stick input when vehicle faces tangential
2022-03-23 10:51:45 +01:00
Matthias Grob
db1fb6acf7
Commander: no battery time based RTL when already landed
2022-03-23 10:49:38 +01:00
Matthias Grob
69f6092031
mavlink_receiver: remove unused land detection publication
2022-03-23 10:49:38 +01:00
Matthias Grob
c1b9b8a1c0
MulticopterLandDetector: correct comment with outdated time constant reference
2022-03-23 10:49:38 +01:00
Matthias Grob
b85c4ec475
Commander: rename land detection subscription for consistency
2022-03-23 10:49:38 +01:00
Matthias Grob
4a5a8d59fe
matrix helper: add documentation for sign function
2022-03-23 08:47:52 +01:00
Matthias Grob
d0abcc1ca3
MatrixHelperTest: add unit tests for the signum function
2022-03-23 08:47:52 +01:00
Matthias Grob
03f836f79d
matrix helper: fix sign function zero case
2022-03-23 08:47:52 +01:00
David Sidrane
1a17e9df4d
board_hw_rev_ve:Use 97.50% for ADC ref for "High" detection
2022-03-22 21:15:03 -04:00
David Sidrane
ebc8ecdee6
board_hw_rev_ve:ADC returns 32 bits
2022-03-22 21:15:03 -04:00
David Sidrane
1c224be8f6
stm32h7:ADC fix CCr Access
2022-03-22 21:15:03 -04:00
RomanBapst
60231bbcb6
navigator: don't reset cruise speed and throttle during a transition as part
...
of the VTOL takeoff navigation state
- the reset causes the loiter circle to be reset to home
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-03-22 15:14:02 +01:00
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
bresch
5f1b577b6d
PreFlightCheck: mark sensor required if used by an EKF2 instance
2022-03-16 11:46:01 +01:00
stmoon
6d0b11ca99
add custom target for uorb_sources_microcdr_gen
2022-03-15 17:59:22 -04:00
wangwwno1
746c16400a
Typo Fix: ChangeWorkQeue
...
Fix the typo of 'WorkItem::ChangeWorkQeue' to 'WorkItem::ChangeWorkQueue'
2022-03-15 13:31:52 -04:00
Daniel Agar
4746a19c0c
boards: px4_fmu-v5_stackcheck disable UUV modules to save flash
2022-03-15 12:10:03 -04:00
Daniel Agar
233c7fd293
goertek/spl06: parameters.c add copyright header and fix formatting
2022-03-15 10:14:46 -04:00
Ncerzzk
cb23179c50
Add Goertek SPL06 barometer driver ( #19229 )
...
Signed-off-by: ncer <huangzzk@bupt.edu.cn >
2022-03-15 10:13:03 -04:00
Konrad
963f6a91d9
exclude Mixer for Tailsitter with x motor configuration and elevons for fmu-v2 and omnibus to avoid flash size issues
2022-03-15 10:44:27 +01:00
KonradRudin
5f43be9d60
preflight checks: add check for distance sensor (via parameter)
2022-03-15 10:44:27 +01:00
Jukka Laitinen
0d31aadcc3
src/lib/paramters: Add a new interface library for protected build user side
...
Implement an interface for protected build to access parameters.
The implementation only does IOCTL calls to the kernel, where the parameters
live.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-03-15 07:52:26 +01:00
Jukka Laitinen
41a7ae3db2
src/lib/parameters: Refactor common functions to an own file
...
Put all functions which are commont to flat build and protected kernel and
userspace to an own source file
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-03-15 07:52:26 +01:00
Daniel Agar
7ef38112d2
ekf2: return saved mag bias variance when not in 3d magnetometer fusion
...
- the estimated mag bias was requiring > 30 seconds of continuous 3d
mag fusion to be reported stable (and saved back to mag cal), this
restores the original intent requiring 30 seconds of accumulated valid
3d mag fusion
2022-03-14 21:03:41 -04:00
Daniel Agar
5717434e93
ekf2: initialize GPS drift metrics to NAN rather than 0
2022-03-14 10:09:24 -04:00
alessandro
62d1058cc2
log irlock_report and landing_target_pose messages
...
Need to log both, because on some systems the
information will come in directly as a
landing_target_pose message, and on others
it's coming in as irlock_report and then filtered
in PX4 to produce the landing_target_pose message.
2022-03-14 10:13:08 +01:00
Matthias Grob
f1e44c6e2a
PreFlightCheck: only allow modes suitable for takeoff
2022-03-14 09:03:39 +01:00
Daniel Agar
a430f0ccae
ekf2: add simple zero velocity update when vehicle at rest ( #19149 )
...
- further decreases initial tilt alignment time (now down to 2.5 seconds if still) and improves initial bias estimates
2022-03-12 12:56:31 -05:00
Daniel Agar
3d54d25867
sensor calibration delete temperature (CAL_ACCx_TEMP, CAL_GYROx_TEMP, CAL_MAGx_TEMP)
...
- this was an experiment to casually monitor sensor offsets relative to temperature, but now that all calibration offsets can be adjusted post-flight the stored temperature can be misleading
- deleting to save a little bit of flash (and storing the temperature wasn't useful)
2022-03-12 11:38:49 -05:00
wangwwno1
aa64789792
sensors/vehicle_imu: Fix Integration Rate greater than Gyro Rate ( #19318 )
2022-03-12 11:29:23 -05:00
RomanBapst
58a4c38519
rtl: don't fly mission landing if we trigger rtl in hover
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-03-11 15:23:31 +03:00
bresch
58bd3d0c60
cmake: use elif -> elseif
2022-03-11 11:59:20 +01:00
JunwooHWANG
04f8453f4a
Reduce Beeepr Default volume : 40 -> 20, since it's too loud for TAP_ESC devices from Yuneec ( #19311 )
2022-03-11 10:27:57 +01:00
Silvan Fuhrer
f4c300af25
FlightTaskAuto: Nudging: only set yawrate_sp if WV is disabled or stick out of dead-zone
...
Otherwise the setpoint from weather vane is constantly overwritten by it,
even if the yaw stick is not moved.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-03-11 09:18:31 +01:00
Alex Klimaj
71850eeda6
mavlink: Add flow control parameters ( #19254 )
2022-03-10 08:22:00 -08:00
Daniel Agar
b66dd5ffa6
adis16470: fix gyro scaling
2022-03-09 23:00:54 -05:00
Roman Bapst
69560bd4f4
Compensate VTOL transition time for air density ( #19293 )
...
* vtol: compensate front transition minimum time and front transiton openloop time
for air density
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-03-09 08:41:30 -05:00
alessandro
0617fd2b6f
fmu-v6x: increase UART5 buffer size
...
The same fix had to be done for the fmu-v5x:
PX4/PX4-Autopilot#14932
2022-03-09 08:39:34 -05:00
bresch
182980526f
commander: allow rearming grace period for arming switch only
2022-03-09 08:42:21 +01:00
wangwwno1
cd5a1e510a
ekf2: typo Fix: pub.advertised() -> pub.advertise() ( #19302 )
2022-03-09 08:39:08 +01:00
Jacob Dahl
3e21efb721
ina228: fix sign error on CURRENT reading ( #19296 )
2022-03-08 19:47:11 -05:00
Daniel Agar
b7e0f17c6a
ekf2: minor position/velocity reset cleanup
...
- try to use avoid resetVelocity() call where possible
- reset timeouts centrally
2022-03-08 11:16:35 -05:00
Daniel Agar
c10ea97967
ekf2: fusion helpers return success/fail and set pos/vel update timestamps centrally (if healthy)
2022-03-08 11:16:35 -05:00
Matthias Grob
c4bc062714
helper_functions: generalize unwrapping function
2022-03-08 10:56:32 +01:00
Matthias Grob
c86c2db07f
helper_functions: simplify unwrap function
2022-03-08 10:56:32 +01:00
Thomas Stastny
5a3aba9c21
matrix: add angle unwrapping method
2022-03-08 10:56:32 +01:00
Matthias Grob
68a0414622
Quaternion: rename function to rotate vectors
2022-03-07 20:03:54 -05:00
Daniel Agar
5affa693f2
uavcan: increase ESC max rate 200->400 Hz
...
- this should run synchronized with the rate controller and can be
limited by IMU_GYRO_RATEMAX
2022-03-07 10:28:51 -05:00
Beat Küng
601c588294
holybro/kakuteh7: disable bluetooth
2022-03-04 08:02:11 -05:00
Beat Küng
047352d049
holybro/kakuteh7: update bootloader binary
2022-03-04 08:02:11 -05:00
Beat Küng
591c95ce2f
mixer_module: print actual failsafe value
2022-03-04 08:02:11 -05:00
Bulut Gözübüyük
80c6ab7106
Add support for Omnibus F4 boards with ICM20608G IMUs
...
One can use following command to compile:
make omnibus_f4sd_icm20608g
Co-Authored-By: berkercanatar <19846944+berkercanatar@users.noreply.github.com >
2022-03-04 08:27:48 +01:00
Matthias Grob
666cf2326d
mission_block: handle SET_ROI_LOCATION with absolute altitude correctly ( #19258 )
2022-03-03 13:25:00 +01:00
Daniel Agar
49df00c319
lib/mixer_module: check thrust factor range valid and minor optimization ( #19272 )
2022-03-03 08:10:09 +01:00
JunwooHWANG
35af604a82
Added RTL Switch Setting for ATL Mantis Edu ( #19267 )
...
Co-authored-by: Junwoo Hwang <junwoo@auterion.com >
2022-03-02 16:57:20 +01:00
Daniel Agar
52221b0bb7
vscode: add stlink debug config ( #19269 )
...
Co-authored-by: Jacob Crabill <jacob.crabill@gmail.com >
2022-03-01 09:47:22 -05:00
PX4 BuildBot
c2c455be0d
Update submodule flightgear_bridge to latest Sat Feb 26 16:47:29 UTC 2022
...
- flightgear_bridge in PX4/Firmware (8549fadb6c ): https://github.com/PX4/PX4-FlightGear-Bridge/commit/ea9b6cb5b93365928190864a6592c0a280e101ea
- flightgear_bridge current upstream: https://github.com/PX4/PX4-FlightGear-Bridge/commit/f47ce7b5fbbb3aa43d33d2be1f6cd3746b13d5bf
- Changes: https://github.com/PX4/PX4-FlightGear-Bridge/compare/ea9b6cb5b93365928190864a6592c0a280e101ea...f47ce7b5fbbb3aa43d33d2be1f6cd3746b13d5bf
f47ce7b 2022-02-07 Roman Dvořák - Add support of TF-G1 and TF-G2 to FG bridge, update readme, update mavlink communication Add support of TF-G1 and TF-G2 to FG bridge, update readme, update mavlink communication
2022-02-26 16:57:20 -05:00
Daniel Agar
6224e11463
Update world_magnetic_model to latest Sat Feb 26 16:47:08 UTC 2022 ( #19262 )
...
* Update world_magnetic_model to latest Sat Feb 26 16:47:08 UTC 2022
* [AUTO COMMIT] update change indication
Co-authored-by: PX4 BuildBot <bot@px4.io >
2022-02-26 15:39:37 -05:00
Daniel Agar
44f0278d97
Update submodule GPSDrivers to latest Sat Feb 26 16:47:30 UTC 2022 ( #19264 )
...
- GPSDrivers in PX4/Firmware (be9dbf6a077309c4c6bcf8d2de91b82502bf5d01): https://github.com/PX4/PX4-GPSDrivers/commit/d6940d9c8ccb8ab3273c677097a29d46903021ff
- GPSDrivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/fa275c39935e00906d7a691770d2c10f1ea95d3c
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/d6940d9c8ccb8ab3273c677097a29d46903021ff...fa275c39935e00906d7a691770d2c10f1ea95d3c
fa275c3 2022-02-17 chalkytoast - ubx: ensure payloadRxDone does not return -1
Co-authored-by: PX4 BuildBot <bot@px4.io >
2022-02-26 15:38:43 -05:00
PX4 BuildBot
d94ad5bd6d
Update submodule mavlink to latest Sat Feb 26 16:47:38 UTC 2022
...
- mavlink in PX4/Firmware (95358ae501e92687b00d2786bc8eadf28ff93930): https://github.com/mavlink/mavlink/commit/4ee1eebbd173a3a483b79088b58fef6ec0a4dfef
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/b568a60fca42599d9998434e606f6e38e0b5e298
- Changes: https://github.com/mavlink/mavlink/compare/4ee1eebbd173a3a483b79088b58fef6ec0a4dfef...b568a60fca42599d9998434e606f6e38e0b5e298
b568a60f 2022-02-24 Hamish Willee - Update pymavlink to latest (#1805 )
b86834e0 2022-02-23 Hamish Willee - Component info - tidy descriptiosn (#1803 )
79e9545a 2022-02-23 Hamish Willee - Remove external dialect doc and improve dialect pages (#1802 )
fd7ccfbe 2022-02-23 Hamish Willee - MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION - improve linking to command (#1774 )
2b7de26c 2022-02-23 Hamish Willee - [Discuss.] MAV_PROTOCOL_CAPABILITY_FTP - supports FTP protocol not specific message (#1772 )
a7541658 2022-02-18 Alessandro Ros - fix common.xml include in AVSSUAS (#1800 )
5b4482fe 2022-02-17 Hamish Willee - RFC 0016 - Mavlink Standard Modes - Add to development.xml
2022-02-26 15:07:42 -05:00
ShiauweiZhao
8549fadb6c
add icm42670p driver kconfig
2022-02-25 12:21:06 -05:00
Jukka Laitinen
aae0876d82
platforms/rpi: Clean away the removed hrt_elapsed_time_atomic
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-25 13:35:14 +01:00
Jukka Laitinen
77f71e61d2
Add a generic hrt driver userspace interface
...
This adds a nuttx userspace interface for hrt driver, communicating with
the actual px4 hrt driver via BOARDCTL IOCTLs
This is be used when running PX4 in NuttX protected or kernel builds
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-25 13:35:14 +01:00
Jukka Laitinen
9f049b4dca
Inline ts_to_abstime and abstime_to_ts
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-25 13:35:14 +01:00
Beat Küng
3e6a35fe8a
px4/fmu-v2/rover: disable module to reduce flash
2022-02-25 08:30:58 +01:00
Beat Küng
29d5dd9b8f
omnibus/f4sd: disable module to reduce flash
2022-02-25 08:30:58 +01:00
Beat Küng
bc9dfe8599
holybro/kakutef7: disable module to reduce flash
2022-02-25 08:30:58 +01:00
Beat Küng
ddad4c31c9
control_allocator: compute thrust scaling individually per axis
...
Before, adding the pusher to the same matrix as the upwards motors affected
the scaling for the upwards motors, resulting in values not equal to -1
anymore.
2022-02-25 08:30:58 +01:00
Beat Küng
76d8d8cae6
control_allocator: generic motor configuration for standard vtols
...
This adds the pusher/puller to the standard motors and makes the axis
configurable.
2022-02-25 08:30:58 +01:00
Beat Küng
b2dc9ee710
control_allocator: add title & help url to geometry UI
2022-02-25 08:30:58 +01:00
Beat Küng
cbcae260e4
mavlink: update submodule
2022-02-25 08:30:58 +01:00
Beat Küng
e10ff59340
px4/fmu-v5/stackcheck: disable module to reduce flash
2022-02-25 08:30:58 +01:00
Beat Küng
dce2968470
ROMFS: set CA_* + HIL_ACT_* params for hitl+sih airframes
2022-02-25 08:30:58 +01:00
Beat Küng
9b629a9e95
hitl,sitl,sih: use separate actuator_outputs_sim for SYS_CTRL_ALLOC==1
...
- removes the need to do type-specific rescaling of pwm to normalized values
- allows to run physical output drivers alongside HIL/SIH
2022-02-25 08:30:58 +01:00
Charles Cross
1e32398217
Adds scheduling call to ControlAllocator initialization
2022-02-25 08:16:08 +01:00
Charles Cross
aecfbef128
Enables 20Hz backup scheduling for ControlAllocator
2022-02-25 08:16:08 +01:00
Charles Cross
b0352135bb
Restores Dshot trigger condition and adds dynamic mixing condition
2022-02-25 08:16:08 +01:00
Charles Cross
51c055832f
Changes ControlAllocator to always publish actuator controls and status
2022-02-25 08:16:08 +01:00
Charles Cross
59f9a40584
Changes Dshot commands to always trigger from updateOutputs(), unless outputs are completely off
2022-02-25 08:16:08 +01:00
Charles Cross
46f8de3a17
Changes actuator_test syscmd value arg to be a float from -1 to 1
2022-02-25 08:16:08 +01:00
Daniel Agar
32a91377bf
Tools/process_sensor_caldata.py fix scipy import
2022-02-24 20:27:26 -05:00
Jukka Laitinen
caaa13ddc0
uORB performance updates
...
Move some logic from Subscriber into uORBManager. This reduces calls from the
modules to the uORB manager, improving performance in protected build.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-24 11:50:05 -05:00
Daniel Agar
611d50edf3
boards: holybro kakutef7 disable tone_alarm to save flash
2022-02-24 11:33:25 -05:00
Daniel Agar
8de2c80b34
mavlink: SCALED_IMU streams add temperature
...
- preference for accel or gyro temperature before mag
2022-02-23 14:05:31 -05:00
Daniel Agar
5b5d428189
boards: px4_fmu-v5_stackcheck disable fake_gps to save flash
2022-02-23 10:44:09 -05:00
Daniel Agar
01daf8d6d6
boards: omnibus_f4sd disable events module to save flash
2022-02-23 10:42:48 -05:00
Daniel Agar
11f617ca9b
ekf2: default to in air and not at rest
...
- this is a more conservative default if a vehicle isn't set (no land detector running)
- handled horizontal preflight failures in commander when disarmed
rather than overloading xy_valid and v_xy_valid flags
- ekf2 no longer depend on arming or standby status
2022-02-22 16:59:10 -05:00
Daniel Agar
d6d529539d
ekf2: consolidate and simplify gnd effect logic
2022-02-22 16:59:10 -05:00
Daniel Agar
1d7791dad6
commander: monitor GPS validity and EKF2 dead reckoning
...
- ekf2: expose dead reckoning as control status flags
- commander:
- add GPS validity check
- in AUTO MISSION if dependent on GPS then a loss of GPS will
2022-02-22 09:46:21 -05:00
Julian Oes
6021b8efb3
navigator: only apply breaking for multirotors
2022-02-22 09:41:22 -05:00
Julian Oes
fa6c051ae5
navigator: break smoothly when entering hold mode
...
This uses the existing breaking functionality when hold/loiter mode is
activated.
2022-02-22 09:41:22 -05:00
Julian Oes
f88dd28e85
navigator: extract breaking functionality out
...
This only moves the breaking functionality out from the reposition
command handling to a function, so that it can get re-used in other
places.
2022-02-22 09:41:22 -05:00
bresch
0e0e0d8be7
[AUTO COMMIT] update change indication
2022-02-22 11:49:25 +01:00
bresch
4f0a959244
gps_hgt: add and improve unit tests
2022-02-22 11:49:25 +01:00
bresch
edabfd2f0e
ekf_hgt: call specific height reset function instead of generic one
...
- Also use the delayed current data instead of newest that might not be
available (gps buffer is sometimes empty if the dt between samples is
larger than the delayed horizon).
- Separate "baro fault" from "baro intermittent": intermittent is a
temporary failure and should prevent from switching to baro right now,
but "fault" means that it should never be used anymore
- In case of height timeout, check for metrics but not for consistency
as the filter is likely to have diverged already.
2022-02-22 11:49:25 +01:00
bresch
cba73585e1
use recorded last sensor timestamp for intermittent check
2022-02-22 11:49:25 +01:00
Daniel Agar
f431b233f3
ekf2: preflight checker fix flow y innovation filter
2022-02-22 09:39:22 +01:00
Daniel Agar
4f62b01dc7
Tools/px4moduledoc: add new rpm_sensor subcategory
2022-02-22 07:57:30 +01:00
Charles Cross
f31f3370ef
Add support for Timer15 on H743 boards ( #19228 )
...
* Adds Timer15 to stm32_common, if the timer base is defined
* Adds Timer15 logic for DMA and AltFunc config on stm32h7 boards
* Adds TIM15 BDTR->MOE support in stm32_common timer init
* Adds support for TIM15 pwm channels on Matek H743 Slim
2022-02-21 16:52:38 -05:00
Daniel Agar
710185d2ad
drivers/magnetometer/rm3100: cleanup and simplify ( #19238 )
...
* switch to continuous mode at 75 Hz
* add simple failure count and reset mechanism
* add range checks and perf counts
2022-02-21 16:48:20 -05:00
Roman Dvořák
976c994156
Extend the PCF8583 driver to support multiple instances ( #19232 )
...
* Add some restart events into pcf8583 driver
Co-authored-by: Vít Hanousek <vithanousek@seznam.cz >
2022-02-21 16:47:16 -05:00
Daniel Agar
3c58932aff
boards: px4_fmu-v2_default disable ms4525 to save flash
2022-02-21 16:45:22 -05:00
Charles Cross
699f34ba83
drivers/magnetometer/rm3100: self-test procedure revision ( #19207 )
...
* Adds retry behavior and additional checks to RM3100 BIST
Signed-off-by: Charles Cross <charles@missionrobotics.us >
2022-02-21 11:27:42 -05:00
Beat Küng
960003a86a
control_allocator: fix weak authority matrix check & update
...
- use max(fabsf(val)) instead of max(val)
- use correct actuator count
2022-02-21 11:17:00 -05:00
Daniel Agar
591b7b6934
ekf2: add new estimator_gps_status.msg
...
- includes the estimator status check fail bits broken out as descriptive booleans
- absorbs ekf_gps_drift.msg
2022-02-21 08:58:59 -05:00
Daniel Agar
f8d7574d3c
ekf2: simplify global position publication validity check
2022-02-21 08:57:33 -05:00
fury1895
be92165c54
AirspeedSelector: fix messaging
2022-02-21 15:21:13 +03:00
David Sidrane
c0facec889
cdc_acm_check:Prevent USB disconect on param save
...
If the hardware support RESET lockout that has nArmed ANDed with VBUS
vbus_sense may drop during a param save which uses
BOARD_INDICATE_EXTERNAL_LOCKOUT_STATE to prevent external resets
while writing the params. If we are not armed and nARMRED is low
we are in such a lock out so ignore changes on VBUS_SENSE during this
time.
2022-02-21 10:56:41 +01:00
Julian Oes
9b35b680f6
gimbal: fix input selection
...
Once we have valid input we should use that and not overwrite our
update_result with the result from other inputs, otherwise the
automatic selection does not actually work.
This behavior means that only the first update will be used if there are
several sources updating in the same cycle.
2022-02-21 08:38:16 +01:00
Igor Mišić
3c09448daf
dataman: add silence flag for _file_initialize
2022-02-21 08:36:36 +01:00
murata
cc6c6c3b8c
power_monitor: Determine I2C communication errors
2022-02-20 16:05:44 -05:00
Daniel Agar
09e36e6cb4
gimbal: new pitch limits [MNT_LND_P_MIN, MNT_LND_P_MAX] when landed
2022-02-20 16:04:09 -05:00
Justin
59f28517c5
Force ignition to use version 5 (edifice) which is what it is built for so it doesn't default to a newer version
2022-02-19 19:04:26 +01:00
Daniel Agar
d147ad3a9a
gimbal: add parameter units
2022-02-18 14:15:58 -05:00
Daniel Agar
2a8aa17a81
mavlink: streams MOUNT_ORIENTATION populate time_boot_ms
2022-02-18 14:14:56 -05:00
Daniel Agar
1f77a3750e
mavlink: don't reset _src_addr_initialized on parameter updates
2022-02-18 14:14:36 -05:00
Daniel Agar
e0a8d217fc
mavlink increase HEARTBEAT timeout 1.5->2.5s
...
- tolerate missing one HEARTBEAT + jitter
2022-02-18 10:16:20 -05:00
Daniel Agar
1addbe469e
mavlink: STATUSTEXT increase stale message timeout
2022-02-18 10:16:20 -05:00
Daniel Agar
d5d50d5855
gyro_calibration: add additional validity check before finalizing calibrations
...
- this can slip through if sensors are running normally, but then stop publishing valid data
2022-02-18 09:12:30 -05:00
Jukka Laitinen
dab7b007de
Auto-generate a list of kernel-side built-in modules(drivers)
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-18 07:58:58 +01:00
Jukka Laitinen
9449ed6e66
Add support for protected build in drivers, systemcmds and modules Kconfig
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-18 07:58:58 +01:00
Jukka Laitinen
6071b87afc
platforms/common/uORB: Separate IOCTLs going through boardctl interface from the original ones
...
It was a mistake to mix these two together, it is simpler to implement the boardctl interface
for the protected build, if the boardctl ioctls are different
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-18 07:53:13 +01:00
Jukka Laitinen
f0d9f44f45
Add an ioctl handler to launch built-in modules in kernel side
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-18 07:53:13 +01:00
Jukka Laitinen
db3baf6c26
Add an ioctl interface for userspace to kernel calls
...
This adds an ioctl interface for NuttX protected build, allowing
system calls from user space to kernel for uORB, HRT and crypto
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-18 07:53:13 +01:00
Daniel Agar
8489cec08f
boards: spracing h7extreme keep icm42688p in RAM
...
- to make space move rc_update itcm -> sram
2022-02-17 10:30:14 -05:00
Daniel Agar
9aca693945
boards: spracing h7extreme add alternate IMU icm42688p
2022-02-17 10:30:14 -05:00
Silvan Fuhrer
c51dc3b4b7
ControlAllocator: Set all the elements of a row to 0 if that row has weak authority
...
Weak authority on a axis is currently defined as: none of the actuators have an
effectivness on this particular axis larger than 0.05.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-17 13:21:50 +01:00
Silvan Fuhrer
97a280d41d
CA: Tiltrotor: set tilts to exactly -1 or 1 if close to these end points
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-17 13:21:50 +01:00
Silvan Fuhrer
25f5152583
Tiltrotor: make sure tilt doesn't exceed the FW tilt angle
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-17 13:21:50 +01:00
Silvan Fuhrer
c13726af66
Enable DO_SET_SPEED commands outside of missions in other AUTO modes ( #18834 )
...
* Navigator: enable DO_CHANGE_SPEED for outside of mission
- update _mission_cruising_speed_mc/_fw also if DO_CHANGE_SPEED command
is received outside of mission (e.g. while Loitering doing an Orbit)
- if vehicle is in AUTO_LOITER when receiving the change speed, then immediately
apply it by doing a reposition without updating any other field than cruising_speed
and cruising_throttle
-when RTL is activated reset the cruising speed and throttle
* Navigator: reset cruise speed and throttle to default when VTOL-transitioning
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-17 11:19:02 +01:00
Jaeyoung-Lim
b0f9611eb9
NPFG: use cross product for matrix library
...
This removes the use of cross products from NPFG and takes advantage of the matrix library
2022-02-17 09:52:47 +01:00
Daniel Agar
ca97b9ba5f
drivers/gps: add new GPS_SAT_INFO parameter to enable satelitte_info
...
- this replaces the command line argument -s
2022-02-17 08:30:25 +01:00
Daniel Agar
abfa3d23a5
boards: matek h743-slim fix STM32_SDMMC_SDXFR_CLKDIV typo
2022-02-16 10:28:01 -05:00
David Sidrane
1c66fb44aa
holybro_kakutef7:fit in flash
2022-02-16 10:09:02 -05:00
David Sidrane
2e67b92b4d
px4_fmu-v5_stackcheck:Fit in flash
2022-02-16 10:09:02 -05:00
David Sidrane
3593cf795d
NuttX With DMA/FLASH Backports
2022-02-16 10:09:02 -05:00
David Sidrane
d05d7f4154
bl:Clean up formatting
2022-02-16 10:09:02 -05:00
David Sidrane
92590155fc
px4_fmu-v6x:Bootloader move to TELEM1 with DMA
2022-02-16 10:09:02 -05:00
David Sidrane
c7bd7323ec
serial_test:Fix infinte TX loop with H7/DMA
2022-02-16 10:09:02 -05:00
David Sidrane
b5916ac712
px4_fmu-v6x:Document the DMA usage
2022-02-16 10:09:02 -05:00
David Sidrane
7eefdd1e3d
px4_fmu-v6x:Enable DMA on TELEM{1|2}
2022-02-16 10:09:02 -05:00
Charles Cross
f9feb04f8b
Changes SDIO clock speed to 20MHz for the Matek H743 slim
...
Signed-off-by: Charles Cross <charles@missionrobotics.us >
2022-02-15 09:38:09 -08:00
Yannick Fuhrer
26ea70e729
Airspeed selector: fix condition for messaging ( #19173 )
...
Change warning message after airspeed failure on the ground,
recommend RTL only if flying.
2022-02-15 17:23:36 +01:00
Roman Bapst
6de5d24e00
Added VTOL Takeoff navigation mode ( #19027 )
...
* Commander: added support for MAIN_STATE_AUTO_VTOL_TAKEOFF
* navigator: added support for vtol_takeoff navigation mode
2022-02-15 14:56:57 +01:00
Silvan Fuhrer
374bcb105a
RTL: fill loiter radius in state Climb ( #19165 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-15 14:50:14 +01:00
Daniel Agar
5370733d62
ekf2: publish flow vel only if compensated flow is available
...
- fix a few publication timestamp_samples
2022-02-14 10:55:10 -05:00
Daniel Agar
b157afde6a
ekf2: prefer airspeed_validated over raw airspeed if available ( #19159 )
...
* ekf2: prefer airspeed_validated over raw airspeed if available
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-14 15:37:29 +01:00
Silvan Fuhrer
df0e402c44
CA: refactor logic for matrix updating
...
-pass flag EffectivenessUpdateReason into effectiveness, indicating if there was an external
update or not. Reasons for external updates are:
-config changes (parameter)
-motor failure detected or certain redundant motors are switched off to save energy
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-14 09:23:10 +01:00
Jukka Laitinen
36d440f895
Add IOCTL interface to uORBManager for nuttx protected/kernel build split
...
When building uORB for NuttX flat build, or for some other target, everything
works as before.
When building uORB for NuttX protected or kernel build, this does the following:
- The kernel side uORB library reigsters a boardctl handler for calls from userspace
and services the boardctl_ioctls by calling the actual uORB functions
- For user mode binaries, the uORBManager acts as a proxy, making boardctl_ioctl calls to the
kernel side
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-14 09:10:49 +01:00
Daniel Agar
8b9a856cf7
drivers/barometer: new ms5837 driver ( #18213 )
...
Co-authored-by: xn365 <xn_365@163.com >
2022-02-12 14:41:31 -05:00
PX4 BuildBot
41e48435c9
Update submodule mavlink to latest Sat Feb 12 12:38:48 UTC 2022
...
- mavlink in PX4/Firmware (9457e7b25c4fa51f5ccc0bd887760e910926ba8a): https://github.com/mavlink/mavlink/commit/311eee010bb82f5fb2e4e0f64f7961a83212b003
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/4b0558d0d10efbdd550cb5321d56f6a611d0ab14
- Changes: https://github.com/mavlink/mavlink/compare/311eee010bb82f5fb2e4e0f64f7961a83212b003...4b0558d0d10efbdd550cb5321d56f6a611d0ab14
4b0558d0 2022-02-11 Andrew Tridgell - added CANFD_FRAME and CAN_FILTER_MODIFY messages
7f032afe 2022-02-10 Daniel Agar - Apply suggestions from code review
9379a601 2022-02-06 Andrew Tridgell - common: added MAV_CMD_CAN_FORWARD and CAN_FRAME
2022-02-12 13:16:42 -05:00
Daniel Agar
fca886e05a
drivers/irlock: add SENS_EN_IRLOCK parameter to start driver
2022-02-11 22:57:56 -05:00
Silvan Fuhrer
2eba1847fd
HTE: add new parameter HTE_THR_RANGE to define range of estimated thrust
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-11 17:04:14 +01:00
Silvan Fuhrer
34805e43fd
HTE: remove unused method setMeasurementNoiseStdDev()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-11 17:04:14 +01:00
bresch
493e35b72e
ekf_terr: reset rng fault when on ground
2022-02-11 10:57:45 -05:00
bresch
502ec7ef46
ekf_terr: fix unit test
...
the flags were valid ony because they were based on timeouts and when
starting the unit test, it takes a couple of seconds to actually timeout
2022-02-11 10:57:45 -05:00
bresch
2fb7b35a8b
ekf2_terr: refactor terrain estimator - flow aiding
2022-02-11 10:57:45 -05:00
bresch
33fd1849e0
ekf2_terr: refactor terrain estimator - rng aiding
2022-02-11 10:57:45 -05:00
bresch
5818974f0f
ekf: add range finder "faulty" status
...
When delclared faulty, the range finder cannot be used anymore
2022-02-11 10:57:45 -05:00
bresch
a3b2550f07
mc_auto: only check for offtrack, infront and behind in XY-plane
...
This fixes the issue when changing the altitude during a goto for
example, where the vehicle was going backwards and upwards to reach the
closest point to the line. Now the vehicle simply goes towards the
target waypoint.
2022-02-11 16:14:48 +01:00
alessandro
1febba315a
mantis: disable optical flow fusion in EKF2
...
Above grass fields I can frequently observe position
instabilities with the mantis due to the optical flow fusion.
Let's disable flow fusion for now.
2022-02-11 15:33:34 +01:00
Daniel Agar
0b9f60a037
drivers/rc_input: always provide RC_PORT_CONFIG parameter
...
- RC_PORT_CONFIG is disabled by default if the board doesn't have
CONFIG_BOARD_SERIAL_RC set
- allows user facing custom RC configuration that overrides board
defaults
2022-02-10 09:41:32 -05:00
Daniel Agar
97a75fc388
sensors: skip selection and failover checks during parameter update cycles
2022-02-10 09:31:23 -05:00
Beat Küng
b6607a7b78
battery_status: do not publish if no voltage channel is defined
...
This is the case for boards with digital readout, like v5x, but still
enable the battery_status module for external analog driver options.
An alternative would be to not run battery_status depending on config.
2022-02-09 16:54:45 -05:00
Nico van Duijn
10ad553f1d
v5x: add battery_status module to enable analog bat sensing
2022-02-09 16:54:45 -05:00
Beat Küng
28c27f1b9a
px4/fmu-v5x: add ADC_ADS1115_EN param to use external ADC
2022-02-09 16:54:45 -05:00
David Sidrane
fd1aa3cfb9
matek_gnss-m9n-f4:Use CONFIG_BOARD_SERIAL_GPSn for serial_passthru
2022-02-09 13:11:52 -05:00
David Sidrane
0c936e4fd2
serial_passthru:Move CONFIG_xxx to serial_passthru
2022-02-09 13:11:52 -05:00
Silvan Fuhrer
81b08a0168
FW Pos C: set position_sp type to position during VTOL backtransition
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-09 11:39:47 -05:00
Silvan Fuhrer
1d6396b418
Navigator: VTOL: track virtual WP 1m ahead of vehicle during backtransition in Land mode
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-09 11:39:47 -05:00
Jukka Laitinen
dcde0d0559
src/drivers/sw_crypto: Late initialize tomcypt
...
This saves a lot of flash space, in case functions from libtomcrypt
are not used (currently only RSA related).
When RSA is not used, the linker can now drop all libtomcrypt related things.
This is especially relevant for bootloaders using the SW crypto.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-09 10:28:06 -05:00
Daniel Agar
a95da715d5
Jenkins: HIL remove airframe 4018 test
2022-02-09 10:08:59 +01:00
Beat Küng
86860808e3
ROMFS: set CA_* geometry params for some of the generic airframes
...
Not enabled, makes it easier to switch.
2022-02-09 10:08:59 +01:00
Beat Küng
a2ba613254
ROMFS: remove 4018 + 6003 ctrlalloc airframes
2022-02-09 10:08:59 +01:00
PX4 BuildBot
33ce1b9b64
Update submodule mavlink to latest Wed Feb 9 00:39:13 UTC 2022
...
- mavlink in PX4/Firmware (ed8c1dca2e792e95d9ab1ba72a22bc9658f10b79): https://github.com/mavlink/mavlink/commit/51abf3c82b3d7137406459dc9b337e57637711ae
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/311eee010bb82f5fb2e4e0f64f7961a83212b003
- Changes: https://github.com/mavlink/mavlink/compare/51abf3c82b3d7137406459dc9b337e57637711ae...311eee010bb82f5fb2e4e0f64f7961a83212b003
311eee01 2022-02-04 Peter Barker - common.xml: deprecate SET_HOME_POSITION message (#1791 )
63d62522 2022-02-02 Julian Oes - minimal: add MAV_TYPE_WINCH (#1789 )
2022-02-08 21:50:55 -05:00
PX4 BuildBot
421ca2fc48
Update submodule sitl_gazebo to latest Wed Feb 9 00:39:03 UTC 2022
...
- sitl_gazebo in PX4/Firmware (a088277fe866860272f1ef21773f5be1b6832b11): https://github.com/PX4/PX4-SITL_gazebo/commit/2750fe233c6a38dbe60e545ac0ec878d6ac20b1e
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/25138e803ee8525ee5fe4e6d511506e88e3f819c
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/2750fe233c6a38dbe60e545ac0ec878d6ac20b1e...25138e803ee8525ee5fe4e6d511506e88e3f819c
25138e8 2021-07-16 Julian Oes - gimbal_controller: fix attitude status
2022-02-08 20:52:12 -05:00
Daniel Agar
b24aa071b6
Jenkins: hardware always dump pyserial debug (silently)
2022-02-08 17:22:57 -05:00
Daniel Agar
6686736cff
drv_pwm_output.h fix dshot cmd typo
2022-02-08 17:11:49 -05:00
Daniel Agar
86f81680fb
sensors: check uORB::SubscriptionData validity before use
2022-02-08 13:19:01 -05:00
Oleg Kalachev
21b78f9d05
Enable mpu9250’s magnetometer on fmu-v4
2022-02-08 13:18:39 -05:00
Steve Nogar
dce067df83
add configurable rtps rate parameter
2022-02-08 19:03:20 +01:00
Daniel Agar
133fe0cfb1
local_position_estimator: move to INS0 work queue (for significantly more stack)
2022-02-08 11:16:49 -05:00
Daniel Agar
be3da5089c
uORB: uORBDeviceNode use px4_cache_aligned_alloc
2022-02-08 10:20:50 -05:00
Viktor Vladic
f4d02a2937
MatekH743 board_id, usb vid/pid changes, and MPU6000 delay before transfer - not after ( #18733 )
...
* Make board_id compatible with ardupilot
* Initialize outputs for CAM1/CAM2 and Vsw pad
* Correct board type 1013 in bootloader to match AP
* Change usb vendor string to "Matek"
* Change cdcacm pid to 1013
* Comment out FLASH_BASED_PARAMS because of #15331
2022-02-07 19:55:49 -05:00
Julian Oes
490a0c473b
Rename vmount to gimbal
2022-02-07 19:21:15 -05:00
Julian Oes
853047c643
Mantis: use gimbal auto input
...
This allows RC and mavlink gimbal v2 input.
2022-02-07 19:21:15 -05:00
Julian Oes
39f0e97245
vmount: refactor for v2 auto input, test command
...
This is a bigger refactor of vmount to clean it up and plug some holes
in functionality.
The changes include:
- Fixing/simplifying the test command.
- Changing the dependencies of the input and output classes to just the
parameter list.
- Adding a separate topic to publish gimbal v1 commands to avoid
polluting the vehicle_command topic.
- Removing outdated comments and author lists.
- Extracting the gimbal v2 "in control" notion outside into control_data
rather than only the v2 input.
2022-02-07 19:21:15 -05:00
Julian Oes
f2216dff55
mavlink: don't send gimbal_device_attitude_status
...
If we receive gimbal_device_attitude_status by mavlink we should not
re-send it as we are already supposed to be forwarding mavlink traffic
from the gimbal to the ground station.
2022-02-07 19:21:15 -05:00
Julian Oes
7e7a99b542
mavlink: handle for GIMBAL_DEVICE_ATTITUDE_STATUS
...
That way we can log it later.
2022-02-07 19:21:15 -05:00
Daniel Agar
5b07398b3e
Tools/HIL/test_airframes.sh: only attempt setting first 3 MAV_x_CONFIG
...
- MAV_3_CONFIG doesn't exist
2022-02-07 16:31:27 -05:00
Daniel Agar
f9d87fd97a
sensors/vehicle_angular_velocity: improve error handling (especially during initial selection)
2022-02-07 12:47:02 -05:00
Daniel Agar
3a37fd92e6
Jenkins: HIL temporarily tolerate ERRORs during 'uorb top' (long running command)
...
- on older boards if the sensor auto cal completes while this is
running it causes a brief sensor timeout
2022-02-07 10:26:48 -05:00
Daniel Agar
052adfbfd9
borads: holybro_kakutef7 disable modules/events to save flash
2022-02-06 16:53:13 -05:00
Daniel Agar
3a741cb9c9
boards: bitcrazy_crazyflie disable gyro_fft to save flash
2022-02-06 16:53:13 -05:00
Thomas Debrunner
b4087ebd2b
mc_pos_control: increase the default crawl speed for three-stage-landing approach for a more robust landing detection
2022-02-04 21:56:20 -05:00
Matthias Grob
4ef8cead3d
mc_pos_control_params: correct crawl speed reference
2022-02-04 21:56:20 -05:00
Matthias Grob
1df9d6fca6
MulticopterLandDetector: fix crawl speed parameter fetching
2022-02-04 21:56:20 -05:00
Thomas Debrunner
fb8b9b647a
land-detector: switch to crawl speed for intent detection
2022-02-04 21:56:20 -05:00
Thomas Debrunner
2a6d9bc1dd
fligh-mode-manager: First implementation of a three-stage-landing for multirotos, in case LIDAR is available
2022-02-04 21:56:20 -05:00
Daniel Agar
893cdf8f38
ekf2: test external vision adjustments after lowering fake position fusion variance
2022-02-04 21:48:32 -05:00
Daniel Agar
6b1750d8be
ekf2: lower fake position observation variance when at rest
2022-02-04 21:48:32 -05:00
Daniel Agar
c028b964e2
bmm150: minor changes to match reference driver
2022-02-04 19:57:24 -05:00
Beat Küng
8b2016b4ed
fix protocol_splitter: increment i properly in scan_for_packets
...
This also guarantees that i is increased in every loop iteration.
Before it was possible to enter a busy loop.
2022-02-04 09:42:52 -05:00
Daniel Agar
cf3db0d313
mavlink: don't send_mission_current if mission invalid
2022-02-04 09:40:25 -05:00
Silvan Fuhrer
26dba1407b
Commander: VTOL quadchuate also triggers a RTL in Loiter and VTOL_Takeoff modes, not just in Mission ( #19123 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-02-03 14:18:28 +01:00
JaeyoungLim
f82c722653
Publish correct orbit status with goto ( #19102 )
...
For fixedwings, the orbit status was publishing zero radius when a goto waypoint was being passed.
This commit corrects this by passing the default loiter radius as the guidance logic was using
2022-02-03 10:16:39 +01:00
bresch
917910f3e2
ekf: pass a float by copy instead of a constant ref
2022-02-02 17:43:25 -05:00
bresch
3077f27821
ekf: use float instead of Vector2f for innov gate in pos/vel fusion
...
We always use the same innovation gate for X and Y anyway
2022-02-02 17:43:25 -05:00
Daniel Agar
5fb0084524
ekf2: remove unused shared fields for last velocity observation and variance
2022-02-02 17:43:25 -05:00
Daniel Agar
8a0581516c
ekf2: don't store _auxvel_sample_delayed
2022-02-02 17:43:25 -05:00
Daniel Agar
452b5e94b4
ekf2: don't store _drag_sample_delayed
2022-02-02 17:43:25 -05:00
Daniel Agar
138ff7a316
sensors: ensure that best accel/gyro is in bounds
2022-02-02 17:14:46 -05:00
Daniel Agar
07c273fc31
sensors/vehicle_angular_velocity: print full sensor_selection if device id not found
2022-02-02 17:14:46 -05:00
Daniel Agar
94604ff21a
Jenkins: hardware pyserial cat shouldn't fail the build
2022-02-02 14:17:02 -05:00
Peter van der Perk
9f97793491
Generate C/C++ header to expose px4board kconfig symbols to the preprocessor
2022-02-02 13:23:21 -05:00
Jaeyoung Lim
2fc95bb369
Rebase fix
...
Use getnavspeed_2d for groundspeed
2022-02-02 17:16:19 +01:00
Jaeyoung Lim
3dd5c1fbaf
Enable NPFG by default on the believer
2022-02-02 17:16:19 +01:00
Jaeyoung Lim
3a9c5c3178
Use acceleration to pass path curvature
2022-02-02 17:16:19 +01:00
Jaeyoung Lim
e2741f988a
Add interface for passing path tangent and closest point directly
...
This commit adds an interface to pass the path tangent and closest point directly to NPFG using the offboard interface
2022-02-02 17:16:19 +01:00
David Sidrane
f460611098
Fix serial_test stack warning
2022-02-02 11:12:53 -05:00
Peter van der Perk
efd3bc1794
Serial_test move g_cl and g_mod from heap to stack to save memory by not preallocating them
2022-02-02 07:21:43 -08:00
Daniel Agar
88ffc177f7
ekf2: utils add getEulerYaw() that uses the best rotation sequence
2022-02-02 08:54:03 -05:00
Daniel Agar
c3e0b93fc8
ekf2: remove unnecessary inlines
2022-02-02 08:50:49 -05:00
Hamish Willee
26d5ac4f58
GPS_YAW_OFFSET param docs: use rover and moving base terminology
2022-02-02 07:39:01 +01:00
David Sidrane
3358712b92
UAVCAN Node Correct C to Kelvin conversion
2022-02-01 21:49:29 -05:00
David Sidrane
ec441fdba6
gnss-m9n-f4:Add serial_passthru
2022-02-01 21:49:29 -05:00
David Sidrane
3fecf8a23c
Added ability to launch passthru on u-center traffic
2022-02-01 21:49:29 -05:00
David Sidrane
48c32f7795
Added serial passthru
...
This addes the command serial_passthru which will pass data from one
device to another. This can be used to use u-center connected to USB
with a GPS on a serial port.
Usage: serial_passthru [arguments...]
-e <val> External device path
values: <file:dev>
-d <val> Internal device path
values: <file:dev>
[-b <val>] Baudrate
default: 115200
[-t] Track the External devices baudrate on internal device
With the -t option baudrate changes made on the PC connected to the USB
will be set to the intrenal device.
2022-02-01 21:49:29 -05:00
David Sidrane
0c8a5b3da1
matek-gnss-m9n-f4:Enable IO compensation
2022-02-01 21:49:29 -05:00
David Sidrane
2761112466
NuttX with CDCACM/OTGID backports
...
disable otg id
cdcacm:support c_cflag in the termios structure
and speed
2022-02-01 21:49:29 -05:00
David Sidrane
cb06f82f0f
gnss-m9n-f4:Board support clean up
...
SD is on SPI3 - correct pin mapping
Fix DMA Mapping for all SPI and RX DMA on U[S]ART RX
Fix Memory MAP SRAM size
Removed unused GPIO
Used proper I2C definitions
Ensure Watchdog is configured for debugging
Fixed FLASH param definitions
Removed unedded SPI init
matek_gnss-m9n-f4:Correct Board ID and Size
Build order SJF
Added Support for F40x
2022-02-01 21:49:29 -05:00
dirksavage88
d92244b664
Initial Matek m9nf4 can node support
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
Added uavcan board identity
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
Added usb.c, LED rework may be needed
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
PX4 dates added to all files
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
Matek M9NF4 CAN Node initial board support
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
Changed GPS to ttyS3 in board sensors, led board on/off definitions
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
Added app descriptor section to canbootloader linker script
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
Changed board naming convention to match vendor
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
Changed canbootloader and nsh menuconfig
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
Test defconfig changes, IRQ hardfault in bootloader
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
Working canbootloader, App firmware stil WIP
Working App firmware: changed romfsroot to 'cannode', TODO: verify GPS & IMU config
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
TODO: Debug GPS no sats/low sats issue, no magnetometer on some boards
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2022-02-01 21:49:29 -05:00
Daniel Agar
f3e2a197ad
move vehicle at rest detection ekf2 -> land_detector
...
- move vehicle at reset detection ekf2 -> land_detector
- ekf_unit: reduce init period
- Fake fusion is when at rest is quite strong and makes the variance reduce rapidly. Reduce the amount of time we wait before checking if the variances are still large enough.
- ekf_unit: reduce minimum vel/pos variance required after init
- Fake pos fusion has a low observation noise, making the vel/pos variances reduce quickly.
Co-authored-by:: bresch <brescianimathieu@gmail.com >
2022-02-01 17:50:19 -05:00
Daniel Agar
e387f302f9
mavlink: streams/COMMAND_LONG don't send internal vehicle_commands
2022-02-01 09:15:10 -05:00
Jukka Laitinen
f8a090e85e
Remove HYGROMETERS from fmu-v5 stackcheck build and rename to COMMON_HYGROMETERS
...
The stackcheck build flash space overflows after adding hygrometers.
Also follow the naming convention of other similar config flags, and rename the
config.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-01 08:56:25 -05:00
Beat Küng
a4206ba553
logger: log excluded optional topics
...
Can be displayed with:
ulog_info <file> -m excluded_optional_topics
2022-02-01 08:40:02 +01:00
Roman Dvořák
2b1229786e
Multi instance SHT3x driver support
2022-01-31 21:38:26 -05:00
Roman Dvořák
ed475ca324
SHT3x driver
...
SHT3x driver, clean code
changes leading to merge TFHT with CUAV hygrometer
Delete humidity_temperature.msg
Update CMakeLists.txt
rename 'atmosphefir_quantities' to 'hygrometers'
fix logging
removed cmake files
fix PR issues
2022-01-31 21:38:26 -05:00
mcsauder
e554f0174d
Format whitespace and group checkall() methods together in geofence class.
2022-01-31 21:01:03 -05:00
Matthias Grob
ae0bb8371d
Commander: message planned battery action with warning together
2022-01-31 20:27:06 -05:00
Matthias Grob
973116c7a4
commander_params: clarify failsafe delay procedure description
2022-01-31 20:27:06 -05:00
Matthias Grob
cd560da57c
Commander: correct battery failsafe message severity level
2022-01-31 20:27:06 -05:00
Matthias Grob
405852b5c8
Commander: only disallow RC override during battery failsafe delay
2022-01-31 20:27:06 -05:00
Matthias Grob
5ec21835a4
Commander: ensure low battery failsafe flying unatended without GPS
2022-01-31 20:27:06 -05:00
Matthias Grob
1911ec0085
Commander: fix user messageing for low battery failsafe delay
2022-01-31 20:27:06 -05:00
Matthias Grob
52a9040c62
BatterySimulator: recharge battery upon disarming
2022-01-31 20:27:06 -05:00
Matthias Grob
955aad0dfb
Commander: consistent hysteresis initialization
2022-01-31 20:27:06 -05:00
Matthias Grob
d10f9030ad
Commander: add delay before executing low battery failsafe action
2022-01-31 20:27:06 -05:00
Matthias Grob
3af315f2c3
Commander: change battery failsafe to return action instead of executing
2022-01-31 20:27:06 -05:00
Matthias Grob
8eed43b515
Commander: put battery warning and failsafe action in separate functions
2022-01-31 20:27:06 -05:00
Matthias Grob
367b6123e1
state_machine_helper: change main state directly also for low battery RTL
2022-01-31 20:27:06 -05:00
Matthias Grob
f49bd9956b
state_machine_helper: reuse battery action conditions
2022-01-31 20:27:06 -05:00
Matthias Grob
95b5bc0d84
state_machine_helper: separate low battery warning from action
2022-01-31 20:27:06 -05:00
Jukka Laitinen
70872d94c8
Split px4_layer into kernel and userspace parts for nuttx protected build
...
Split the px4_layer into user and kernel space libraries. Add some stubs for
user-space (e.g. version) where an interface to the kernel needs to be added
Use posix-versions for cpuload.cpp and print_load.cpp for userspace; these link to nuttx internals. This functinality could be built on top of posix (e.g. procfs) interfaces
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-31 20:26:08 -05:00
Jukka Laitinen
3a6ebe5fc1
NuttX Cmake changes to build combined kernel+userspace image in nuttx protected build
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-31 20:26:08 -05:00
Jukka Laitinen
1f9ace3901
boards/px4/fmu-v5: Add linker scripts for kernel-userspace split
...
These scripts are used in protected build configuration
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-31 20:26:08 -05:00
Daniel Agar
999737ddd5
ekf2: refactor mag control
...
- remove class _mag_sample_delayed
- update mag fusion call graph to use mag sample delayed functionally
- Ekf::resetMagHeading()
- use low pass mag directly, but check if valid (magnitude)
- MAG_FUSE_TYPE_INDOOR treat like auto if heading required
2022-01-31 11:47:10 -05:00
Daniel Agar
ad447ab223
commander: respect control mode for prearm requirements
...
- preflight tolerate ekf2 warnings if not in an attitude/velocity/position mode (eg manual or acro)
2022-01-31 09:48:37 -05:00
Daniel Agar
90358f078f
add odometry reset counter (ekf2, mavlink, etc)
2022-01-31 09:19:36 -05:00
mcsauder
463ac8e8a1
Standardize method name style in navigator_main.cpp and whitespace formatting in navigator.h
2022-01-29 21:36:11 -05:00
PX4 BuildBot
3862a24b8e
Update submodule sitl_gazebo to latest Sat Jan 29 00:39:00 UTC 2022
...
- sitl_gazebo in PX4/Firmware (3b277667ff ): https://github.com/PX4/PX4-SITL_gazebo/commit/831aa36fea6a1b53d083e0bbad2faf9b31807669
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/2750fe233c6a38dbe60e545ac0ec878d6ac20b1e
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/831aa36fea6a1b53d083e0bbad2faf9b31807669...2750fe233c6a38dbe60e545ac0ec878d6ac20b1e
2750fe2 2022-01-24 Jaeyoung-Lim - Improve realtime factor for standard_vtol
2022-01-28 22:56:51 -05:00
murata
3b277667ff
tfmini: If the distance is 0xFFFF, a negative value is returned
2022-01-28 17:31:12 -05:00
Daniel Agar
274d0d65c6
lib/cdev/posix: increase max FDs 256->512
2022-01-28 17:30:53 -05:00
Jukka Laitinen
058302ecdb
Link px4iofirmware against nuttx_mm
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-28 17:30:13 -05:00
Jukka Laitinen
32c53ff2dd
Link rc against nuttx_fs in nuttx builds
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-28 17:30:13 -05:00
Jukka Laitinen
9e999a39be
Revert erroneous linking of drivers__device to px4_work_queue
...
This was a mistake in commit 91b812fc42
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-28 17:30:13 -05:00
Jukka Laitinen
a2dc6e63cf
Fix sdcard logging when crypto is used but algorithm is set to NONE
...
If the board supports encrypting logfiles, but the parameter SDCARD_ALGORITHM is set to NONE,
the log should be written to the sdcard in plaintext format. This fixes a bug which caused
logger to hang in mutex instead.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-28 17:29:51 -05:00
Daniel Agar
0104b84289
logger: PX4_SITL log all ekf2 publications at full rate for replay
2022-01-28 07:46:54 +01:00
Daniel Agar
d2ce9a8560
ROMFS: rc.replay fix ulog_params argument
2022-01-28 07:46:54 +01:00
Jukka Laitinen
70704ff9d6
platforms/nuttx/src/px4/common/CMakeLists.txt: Link px4_layer to nuttx_mm for gran allocators
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
4c75f1d505
platforms/nuttx/CMakeLists.txt: fixes to accommodate other linker changes
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
e1f2bff9be
Fix parameters building for nuttx protected/kernel builds
...
- Don't link to px4_layer
- Don't link to flashparams; flashparams would work only in kernel side
- Add missing link to px4_platform
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
705171eb53
Fix linking for posix targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
138f584e70
fw_pos_control_l1: Add a missing dependency to motion_planning
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
4c3234af38
mavlink: fix linking
...
- link to nuttx_apps if CONFIG_NET is defined for "netlib_get_ipv4netmask"
- link to tunes
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
e959fcf9d1
bootloader: link stm bootloaders to nuttx_arch for flash functions
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
fe5059b0e8
s32k1xx/led_pwm: link to arch_io_pins
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
1326c51a1c
esc_battery: Link to battery library
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
03c0a2d56c
Fix some cmake / linker depenencies for boards
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
91b812fc42
link drivers__device to nuttx_karch instead of nuttx_arch in protected build
...
On protected/kernel build the library would be karch.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
700c13cdff
Remove linking of arch_io_pins into drivers_board
...
This goes the other way around; arch_io_pins is using the pin
definitions from drivers_board, so the drivers_board needs to be linked
into arch_io_pins
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
68729e8ec0
nuttx/rpi io_pins: link to drivers_board for timer_io_channels dependency
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
d181fe0cee
nuttx/stm io_pins: link to drivers_board for timer_io_channels dependency
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
76d4b6c7d0
arch_board_reset: link to nuttx_arch / nuttx_karch for up_systemreset dependency
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
7bb33e65ae
Remove px4_work_queue linking to px4_platform
...
Remove linking to px4_plaform in here; this breaks linking for nuttx protected build
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
98906c224b
Don't link px4_platform directly to uORB
...
Since uORB is split into kernel and userspace parts, it is no longer possible to just
link uORB into px4_platform, which is used in both kernel and user side.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
54f1e12684
Link arch_spi with drivers_board
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
51ceb9a85e
Add support for compiling modules into kernel side
...
Define __KERNEL__ macro during compilation and place the module in separate library
Remove default library linking to m or libc on NuttX. Add these in platform layer instead, since
they are different on kernel and user side
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
714df398eb
lib/version: Don't link to drivers_board
...
The needed version specific things come from px4 layer. Since version
is used both in kernel an user sides in protected build, it can't directly
link to drivers_board
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
ff4eae2c9b
Fix px4_impl_os for protected build
...
For NuttX protected or kernel build, the prebuilds can't contain libraries which are
different for kernel and user-space in protected/kerenl builds
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Jukka Laitinen
d94cc1e114
Add kernel/userspace and nuttx_syscall libraries to build
...
Build NuttX proxies, stubs and separate user space and kernel space libraries
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-01-27 12:42:40 -05:00
Daniel Agar
49d9d1c987
ekf2: only set fault status bad_acc_clipping if clipping frequently
2022-01-27 09:59:50 -05:00
Daniel Agar
f499749c23
ekf2: mag field strength check respect requirements
...
- requires valid mag data (_mag_data_ready)
- respect mag_fusion_type (including MAG_FUSE_TYPE_INDOOR)
2022-01-27 09:05:13 -05:00
CUAVmengxiao
0ddf76ed7f
uavcan: Add support for BatteryInfoAux message
2022-01-26 13:44:48 -05:00
CUAVmengxiao
425d03d909
msg: Add full_charge_capacity_wh
2022-01-26 13:44:48 -05:00
zhaoxiaowei
996b01acbc
uavcannode need link conversion
2022-01-26 13:43:29 -05:00
Roman Dvořák
c8349811d1
Enable logging of mavlink tunnel messages
...
Co-authored-by: Vit Hanousek <vithanousek@seznam.cz >
2022-01-26 11:10:43 -05:00
Daniel Agar
ae3070bbf1
ekf2: make filter update period configurable
...
- introduces new parameter EKF2_PREDICT_US to configure the filter
update period in microseconds
- actual filter update period will be an integer multiple of IMU
2022-01-26 10:57:09 -05:00
Daniel Agar
3f25349eb9
commander: don't reject VEHICLE_CMD_DO_SET_ACTUATOR
2022-01-25 18:44:58 -05:00
Oleg Kalachev
2945ce7c87
ekf2: fuse optical flow when magnetometer is disabled
...
Co-authored-by: bresch <brescianimathieu@gmail.com >
2022-01-25 15:42:10 +01:00
bresch
82e88a9547
[AUTO COMMIT] update change indication
2022-01-25 15:07:48 +01:00
bresch
d20e46567e
ekf2: improve flow for terrain unit test
2022-01-25 15:07:48 +01:00
bresch
1502d77df2
ekf: refactor fake position control logic
2022-01-25 15:07:48 +01:00
Matthias Grob
42404ade77
FlightTaskOrbit: Use cruise speed and manual acceleration for radius and velocity changes
...
instead of arbitrary fractions of the maximum radius and velocity.
2022-01-25 11:45:31 +01:00
Matthias Grob
7c55229db7
FlightTaskOrbit: Fix altitude adjustment by stick
...
This is done by inheriting from FlightTaskManualAltitudeSmoothVel again.
The altitude change by command is taken care of by switching
to the apporach when the altitude difference is big enough and
switching back once the altitude is close enough.
The altitude of the command is not perfectly reached but this can
only be done smoothly when the Orbit has full control over the
altitude smoothing. The independent altitude smoothing is not kept
because it was lacking stick handling like altitude lock and smooth
transitions when opening and closing the vertical position loop.
2022-01-25 11:45:31 +01:00
Matthias Grob
d73d8f390b
FlightTaskOrbit: Fix vertical speed limit
2022-01-25 11:45:31 +01:00
Matthias Grob
38de07186d
FlightTaskOrbit: include acceleration and jerk in approach setpoint publishing
...
I think they were forgotten and it leads to side effects:
- The acceleration feed-forward does not get executed
- The acceleration setpoint is NAN when initializing the altitude
smoothing when arriving at the circle
2022-01-25 11:45:31 +01:00
Matthias Grob
b9fb8490ba
FlightTaskOrbit: initialize position smoothing with previous setpoints instead of current state
2022-01-25 11:45:31 +01:00
Matthias Grob
e0337a484b
FlightTaskOrbit: remove unnecessary _sanitizeParams() in activation
...
the parameters are anyways sanitized on every update so even if activate()
sets unfeasible one's they get adjusted on the first update.
2022-01-25 11:45:31 +01:00
Matthias Grob
661496ab24
FlightTaskOrbit: improved naming in applyCommandParameters()
2022-01-25 11:45:31 +01:00
Matthias Grob
8525a8e520
FlightTaskAuto: fix typo pos(i)tion
2022-01-25 11:45:31 +01:00
Thomas Debrunner
4671a741dc
FlightTaskOrbit: Do not switch out of circle orbit control logic on radius change.
2022-01-25 11:45:31 +01:00
Beat Küng
bbc2b703c3
mavsdk_tests: update catch2 to 2.13.8
...
Fixes this issue on Fedora: https://github.com/catchorg/Catch2/issues/2178
2022-01-24 16:16:29 -05:00
Daniel Agar
8d03e71c16
drivers/magnetometer/bosch/bmm150: init and self test improvements
...
- if self test fails consistently proceed with startup, but report failure
2022-01-24 16:16:03 -05:00
Daniel Agar
8217e0f335
drivers/magnetometer/bosch/bmm150: add self test fail perf counter to status
2022-01-24 13:06:32 -05:00
Daniel Agar
5ded1aedcb
sensors/vehicle_angular_velocity: add IMU_GYRO_DNF_HMC to configure number of ESC RPM notch filter harmonics
2022-01-24 09:23:03 -05:00
SungTae Moon
4c6e746360
uorb graph: fix the link problem for multi topics ( #19062 )
2022-01-24 09:18:21 +01:00
Jaeyoung-Lim
ee98a3336d
Spawn at different height for multivehicle simulation
...
This commit fixes the spawn location of the multivehicle gazebo sitl script
2022-01-23 17:59:42 -08:00
Daniel Agar
07e6c274d5
uavcan/uavcannode: bridge LogMessage and PX4 ORB_ID(log_message_s)
2022-01-23 20:21:39 -05:00
PX4 BuildBot
ed28b216c7
Update submodule sitl_gazebo to latest Sat Jan 22 12:38:57 UTC 2022
...
- sitl_gazebo in PX4/Firmware (6203ad25c7 ): https://github.com/PX4/PX4-SITL_gazebo/commit/27298574ce33a79ba6cfc31ed4604974605e7257
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/831aa36fea6a1b53d083e0bbad2faf9b31807669
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/27298574ce33a79ba6cfc31ed4604974605e7257...831aa36fea6a1b53d083e0bbad2faf9b31807669
831aa36 2021-10-09 Shaochang Tan - fix imu noise model.
2022-01-22 12:24:49 -05:00
PX4 BuildBot
6203ad25c7
Update submodule mavlink to latest Sat Jan 22 00:39:17 UTC 2022
...
- mavlink in PX4/Firmware (a16a8dceb1b2d234ae963c74621c147f521abce9): https://github.com/mavlink/mavlink/commit/3d8092006ec1b2321f74e84039dadb1ebd3d1f37
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/51abf3c82b3d7137406459dc9b337e57637711ae
- Changes: https://github.com/mavlink/mavlink/compare/3d8092006ec1b2321f74e84039dadb1ebd3d1f37...51abf3c82b3d7137406459dc9b337e57637711ae
51abf3c8 2022-01-21 Julian Oes - Component information: add note (#1785 )
f5694b29 2022-01-19 Julian Oes - component_info: re-use protocol capabilities (#1786 )
2022-01-21 23:10:05 -05:00
Beat Küng
92769bd2b2
dshot: remove BOARD_DSHOT_MOTOR_ASSIGNMENT & handle timer channel gaps
2022-01-21 20:41:15 -05:00
Daniel Agar
4de9c598fa
bmm150: retry probe up to 3 times
2022-01-21 15:51:43 -05:00
David Sidrane
a11fe60135
imxrt:ADC extend timeout
2022-01-21 13:07:44 -05:00
Daniel Agar
7cb8ed3a1f
sensors/vehicle_gps_position: don't work with 64 time with 32 bit floats
2022-01-21 09:18:49 -05:00
JaeyoungLim
0607982b23
Publish orbit status also when the waypoint is a loiter waypoint ( #19048 )
...
* Publish orbit status also when the waypoint is a loiter waypoint
* Remove redundant orbit status publishing
2022-01-21 09:13:03 +01:00
Beat Küng
bcd057ac3e
uORB: fix copy-paste mistake in orb_print_message_internal
...
Could have led to invalid memory access.
2022-01-20 12:58:20 -05:00
bresch
a2260e53da
ekf2: replace yaw failure detection criteria
...
The existing logic using the angle between velocity vectors failed to
determine a yaw failure in practice because the state velocity is often
too small compared to its uncertainty to be used. In all the failures
reported, the yaw emergency estimator converged properly and yaw reset
would have fixed the issue.
A much simpler check using the yaw difference between the main EKF
and the emergency estimator is now used to tell if the vel/pos update
failure is most likely caused by a wrong heading.
2022-01-20 11:54:24 +01:00
Daniel Agar
446729566d
platforms/nuttx: px4io_serial always cleanup DMA before next bus exchange
...
- this really shouldn't be necessary, but worst case it's harmless and
much better than potentially falling out of the sky
2022-01-19 18:00:18 -05:00
Jaeyoung Lim
0dea56f88b
Use current_sp for publishing orbit status
2022-01-19 12:00:03 -05:00
Jaeyoung-Lim
dec5e7e9c8
Publish orbit status whenever the vehicle is in loiter
...
This commit moves the publish orbit status to be published whenever the vehicle is considering a loiter setpoint
2022-01-19 12:00:03 -05:00
Thomas Stastny
19c98b8841
npfg: fix typo in Vector2f indexing
2022-01-19 11:17:44 -05:00
bresch
e89e3c1b0c
ekf2: extract logic to test yaw emergency estimate quality
2022-01-19 09:05:41 -05:00
bresch
ea80c5027e
ekf2: split yaw estimator state getter into several functions
2022-01-19 09:05:41 -05:00
dagar
476c1e5c09
[AUTO COMMIT] update change indication
2022-01-19 09:04:53 -05:00
bresch
ffebd8e771
ekf2: initialize cos tilt variable assuming no tilt
2022-01-19 09:04:53 -05:00
Daniel Agar
92a5bbe97f
ekf2: improve ring buffer sizing and dynamically allocate
2022-01-19 09:04:53 -05:00
Daniel Agar
36605bfff6
sensors: lower SENS_MAG_RATE default
...
- reduce estimator 3D mag fusion cpu load (-3% on Pixhawk4)
2022-01-19 08:51:57 -05:00
Matthias Grob
c9f7c20d46
MulticoperPositionController: time failsafe messages together
...
The following output instead of printing the
action "stop and wait" just once:
WARN [mc_pos_control] invalid setpoints
WARN [mc_pos_control] invalid setpoints
WARN [mc_pos_control] Failsafe: stop and wait
WARN [mc_pos_control] invalid setpoints
WARN [mc_pos_control] Failsafe: stop and wait
WARN [mc_pos_control] invalid setpoints
WARN [mc_pos_control] Failsafe: stop and wait
2022-01-19 14:31:19 +01:00
Matthias Grob
d4e356a1ac
PosititionControl: fix integrator windup with invalid setpoint
2022-01-19 14:31:19 +01:00
Matthias Grob
8811482f1d
PositionControlTest: add integrator windup with invalid setpoint combination unit test
...
This bug was by chance found during simulation testing and debugging.
The unit test is to easily reproduce and cover this case.
2022-01-19 14:31:19 +01:00
Silvan Fuhrer
632dfa55e6
FW Pos C: add option to disable airspeed setpoint via stick input
...
-rename FW_POSCTL_INV_ST to FW_POS_STK_CONF and make bitmask out of it:
- bit 0: alternative mapping (height rate on throttle stick, airspeed on pitch)
- bit 1: enable/disable airspeed setpoints via stick
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-01-19 10:13:07 +01:00
Silvan Fuhrer
cbb8c90245
ControlAllocation: fix calculation of roll/pitch normalization scale
...
Take into account the actual number of roll and pitch acutators,
instead of assuming that all actuators have a roll/pitch component.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-01-19 08:22:12 +01:00
Silvan Fuhrer
0950bb81ab
ControlAllocation: update normalization scale only if matrix updated is forced
...
The forced flag is used to distinguish between updates due to a configuration
(parameter) change (only enabled when disarmed), and matrix updates due to motor
tilt change. Only update the normalization scale if the forced flag is true, and
use a tilt angle of vertical position for it to have the scales tilt-invariant.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-01-19 08:22:12 +01:00
CUAVmengxiao
258a563dd5
barometer: Add ICP10100 and ICP1011
2022-01-18 19:14:40 -05:00
FARHANG
fe44e281e5
ROMFS: Holybro X500 v2 airframe addition
2022-01-18 15:11:41 -05:00
Daniel Agar
dd6b7fa98f
sensors: switch status PX4_INFO -> PX4_INFO_RAW
2022-01-18 15:00:18 -05:00
Daniel Agar
b1d2a0cc4e
sensors: simplify timestamp data validator handling
2022-01-18 14:57:18 -05:00
Daniel Agar
8067207ea6
px4_work_queue: rename serial port WQs
2022-01-18 14:56:15 -05:00
bresch
953c90d3a6
failure detector: change imbalanced propeller metric
...
Use standard deviations instead of variances to get a linear metric
2022-01-18 12:24:35 -05:00
bresch
408cf011b2
failure detector: fix dt computation
2022-01-18 12:24:35 -05:00
Daniel Agar
7eee949a81
Jenkins: hardware tolerate irrelevant uorb status failure
2022-01-18 12:23:05 -05:00
Daniel Agar
548b7d5ece
sensors/vehicle_imu: on calibration change don't resume in flight calibration learning immediately
2022-01-18 11:22:41 -05:00
Daniel Agar
ece09064c4
parameters: perform verification pass twice
...
- on NuttX with MTD storage this is to ensure we are verifying what's
actually stored on ramtron or eeprom, not just what's cached by bchlib
2022-01-18 09:47:28 -05:00
alexklimaj
cdb6a437a0
Fix UAVCAN beep not started
2022-01-17 21:49:53 -05:00
PX4 BuildBot
0bb9cce1ce
Update submodule mavlink to latest Tue Jan 18 00:39:07 UTC 2022
...
- mavlink in PX4/Firmware (37e04f56da3916dcb518eeba66b0888db1cd8c32): https://github.com/mavlink/mavlink/commit/75204adad281e017e58e0a68fdb0a478c2b74d6f
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/3d8092006ec1b2321f74e84039dadb1ebd3d1f37
- Changes: https://github.com/mavlink/mavlink/compare/75204adad281e017e58e0a68fdb0a478c2b74d6f...3d8092006ec1b2321f74e84039dadb1ebd3d1f37
3d809200 2022-01-14 Hamish Willee - MAV_PROTOCOL_CAPABILITY_FLIGHT_INFORMATION - mark as reserved capability (#1775 )
68ff649f 2022-01-13 Hamish Willee - MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT - deprecate (#1768 )
ae531d97 2022-01-13 Peter Barker - Move "external" dialects to be normal dialects (#1761 )
00a3f8ed 2022-01-12 Julian Oes - Revert "Delete unused cmake tree (#1760 )" (#1782 )
aa0764bd 2022-01-12 Hamish Willee - MAV_PROTOCOL_CAPABILITY_PARAM_UNION - rename/reserved (#1771 )
c3b46620 2022-01-12 Hamish Willee - Update mavlink_udp.c example readme to use mavlink 2 (#1780 )
0449a5ec 2022-01-12 Tatsuya Yamaguchi - add extended sensor status bits to MAVLink UDP example (#1778 )
fc3539e1 2022-01-10 Josh Henderson - ardupilotmega: Sync to ArduPilot downstream 10-JAN-2022 (#1777 )
27395aa7 2022-01-06 Julian Oes - pymavlink: update submodule to latest master (#1776 )
2180611b 2022-01-06 Hamish Willee - MAV_WINCH_STATUS_CLUTCH_ENGAGED: Winch clutch is engaged allowing motor to move freely
7c6f104f 2022-01-05 Jacob Dahl - Extend WINCH_STATUS_FLAG and WINCH_ACTION (#1766 )
dcb44e75 2022-01-06 Hamish Willee - Delete unused cmake tree (#1760 )
5b8bec5b 2022-01-05 Hamish Willee - common.xml: AUTOTUNE_AXIS_YAW - fix value to correct one for bitmask (#1767 )
2022-01-17 21:36:02 -05:00
Julian Oes
be9385ef06
cmake: use at least 1 core to build SITL
...
If we use -j 0, ninja fails with invalid argument.
2022-01-17 17:07:31 -05:00
Daniel Agar
2fb82789fe
lib/wind_estimator: pass q_att as const reference
2022-01-17 16:59:28 -05:00
Beat Küng
4cbee44220
rc.mc_defaults: only set IMU_GYRO_RATEMAX if default
...
Allows boards to set a higher rate.
2022-01-17 10:41:33 -05:00
Beat Küng
425b268feb
boards: add holybro/kakuteh7
...
known issues:
- flash-based params does not work on H7 (due to ECC), so params are on
SD card. The last flash sector is still reserved however.
- output channel 6 does not support DShot (the implementation does not
handle channel gaps)
- flashing of the 2. flash bank is much slower (around 3x), than the 1.
bank for some unknown reason.
- after the BL jumps to the app, there's several seconds passing until
stm32_boardinitialize() is called.
2022-01-17 10:41:33 -05:00
Beat Küng
cd2bb14f9b
stm32h7/micro_hal.h: add RCC_APB1ENR_TIM4EN
2022-01-17 10:41:33 -05:00
Berker Canatar
9249d3ae3d
Update current year in LICENSE
2022-01-17 08:10:57 +01:00
Silvan Fuhrer
0ce44cebb7
WindEstimator: use vehicle heading instead of ground course for initialisation
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-01-14 17:42:01 -05:00
Silvan Fuhrer
1a4b2b37bb
AirspeedValidator: remove unused variable _tas_gate
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-01-14 17:42:01 -05:00
Thomas Stastny
3b6c9448aa
npfg: fix format CMakeLists
2022-01-14 22:05:53 +01:00
Thomas Stastny
13c36155ce
fw_pos_ctrl: allow npfg to operate without wind estimate, dont switch controllers
2022-01-14 22:05:53 +01:00
Thomas Stastny
082e320191
integrate optional NPFG library for wind-aware fixed-wing guidance
2022-01-14 22:05:53 +01:00
Beat Küng
66cbbf9f2e
control_allocator: use 'bidirectional' to clarify reversible motors
2022-01-14 12:18:29 -05:00
Beat Küng
9ca58f5e97
actuator outputs: always add reverse range param
...
and remove the possibility to set min > max to reverse.
Initially the idea was to add the checkbox on the UI side, to avoid adding
another param, but I don't think I'll go through the extra effort on the
QGC side.
2022-01-14 12:18:29 -05:00
Daniel Agar
98a9748bb8
drivers/dshot: use uORB::PublicationMulti for ORB_ID(esc_status)
...
- there can be multiple different outupt modules publishing esc_status (eg dshot & uavcan)
2022-01-14 12:17:49 -05:00
Daniel Agar
81ecd130fc
uavcan: ESC publish esc_status in callback instead of timer
...
- this ensures every ESC status gets published with minimal latency
- also prevents publishing ORB_ID(esc_status) when there's no actual
data (bug)
2022-01-14 12:17:49 -05:00
David Sidrane
25099ce11f
fmurt1062-v1:Added GPS driver dropped in move to boardconfig
2022-01-14 07:04:06 -08:00
Julian Oes
651702c2c1
setup: don't install ccache
...
I don't think the PX4 setup script should decide whether a user is to
use ccache or not. Anecdotally, I've heard from some in the dev team
that they are not using it themselves, so I don't think there is a good
basis to push it onto others.
That being said, we can of course still use ccache as part of the CI
builds nevertheless.
2022-01-14 10:01:23 -05:00
Roman Bapst
dc6067ed12
Update src/modules/fw_att_control/fw_att_control_params.c
...
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2022-01-14 16:34:44 +03:00
RomanBapst
34bb671a73
improve parameter descriptions for fw maximum/minimum roll/pitch angles
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-01-14 16:34:44 +03:00
RomanBapst
555ee371e8
FixedWingPositionControl: consistently use the same roll and pitch angle
...
limits for autonomous and semi-autonomous modes (altitude & position control)
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2022-01-14 16:34:44 +03:00
Thomas Stastny
f8c2ee73db
handle line segment termination in navigator
...
- if following line segment (fixed-wing position control) switch waypoint when in acceptance radius OR passed the second waypoint. this handles the case of being beyond the second waypoint but not within the acceptance radius without the need to fly back to the waypoint (e.g. after a loiter up to waypoint alt)
- sync navigator and fw pos ctrl waypoint acceptance altitude
2022-01-13 13:43:02 +01:00
Claudio Micheli
8a01135a93
Commander: more changes to use events with escs and battery failures
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2022-01-13 08:40:34 +01:00
Claudio Micheli
d122513197
extend support for Battery status message
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2022-01-13 08:40:34 +01:00
Daniel Agar
bb1177d504
sensor_calibration: refactor and centralize calibration slot logic
...
- centralize logic for selecting a preferred calibration slot
- automatically use existing calibration slot if it exists, otherwise
find first available slot, with a preference for a requested index
- existing commander calibration methods rewrite all calibration slots
to match current sensor ordering
2022-01-12 16:16:26 -05:00
alexklimaj
d1304e1ceb
Add CANNODE_GPS_RTCM
2022-01-12 15:30:38 -05:00
Silvan Fuhrer
3cd1e0ce19
MCLandDetector: clean up logic for ground effect
...
Before: in_ground_effect was always true with the default settings (LNDMC_ALT_GND =-1)
and when a distance sensor was present with valid data.
Now: default of LNDMC_ALT_GND is set to 2m by default, and if set to a negative value
then in_ground_effect is never set to true
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-01-12 18:41:16 +01:00
Matthias Grob
443406ea2b
FlightTaskAuto: use longerThan() when possible in vector calculations
2022-01-12 15:12:24 +01:00
bresch
4fc7348582
mpc: leave room for altitude error control during descent and descent
...
Since the same parameter is used to generate the trajectory and to
saturate the controller, there is no additional space for the output of
the position controller once it is filled with the feedforward, letting
the altitude grow uncontrolled.
2022-01-12 13:33:48 +01:00
bresch
ea7d2334c9
mpc: add parameter for ascent/descent speed in auto modes
2022-01-12 13:33:48 +01:00
Daniel Agar
463513f31f
Jenkins: hardware disable auto cal before on board tests
2022-01-11 11:47:02 -05:00
Daniel Agar
2eec7842ae
sensors/vehicle_imu: fix SENS_IMU_AUTOCAL saving logic
...
- on cycles that don't check for updated calibraton (estimated bias) we
check if there's anything valid to save (when disarmed)
2022-01-11 11:47:02 -05:00
romain-chiap
4e06b40e2b
sih: add tailsitter support, disable UAVCAN
2022-01-11 08:29:19 +01:00
Julian Oes
6ed48ad0c0
ROMFS: Remove now unused variable
2022-01-10 23:04:10 -05:00
Julian Oes
b52972f3f8
ROMFS: remove duplicate startup tune
...
This must have come back in a rebase.
2022-01-10 23:04:10 -05:00
Julian Oes
1baecf07ad
Mantis: remove startup tune volume
...
Let's just leave it at the default like the rest of the beeps.
2022-01-10 23:04:10 -05:00
Julian Oes
38439256e5
Mantis: move MIXER vars to airframe init
...
The two were actually conflicting and are now consolidated.
2022-01-10 23:04:10 -05:00
Julian Oes
14fb019821
Mantis: move SYS_DM_BACKEND to board_defaults
...
Otherwise it is set too late and not used during startup.
2022-01-10 23:04:10 -05:00
Julian Oes
feb2987fa8
Mantis: remove unused transition script
...
When coming from the previous stack there are no params anywhere, so
this will not execute anyway.
2022-01-10 23:04:10 -05:00
Julian Oes
a061d7a02a
Mantis: use dataman in RAM
2022-01-10 23:04:10 -05:00
Julian Oes
b3d830dd11
Mantis: move power off tune to commander
...
This way we don't allocate inside the interrupt context.
2022-01-10 23:04:10 -05:00
Julian Oes
372a0da987
Mantis: move upload.sh into boards/atl/mantis-edu
2022-01-10 23:04:10 -05:00
Julian Oes
73044c51f9
vmount: only send CONFIGURE cmd if type changes
...
We don't always have to send MOUNT_CONFIGURE but really only when the
control data type actually changes.
2022-01-10 23:04:10 -05:00
Julian Oes
22180a2639
mavlink: make range params optional
...
If there is no range sensor compiled in, these two params do not seem to
be available. Hence, we need to make them optional.
2022-01-10 23:04:10 -05:00
Julian Oes
0ffdccbd60
Mantis: Add MPC2520 again
2022-01-10 23:04:10 -05:00
Julian Oes
b44f5b49ca
Mantis: add tap_esc to Kconfig
2022-01-10 23:04:10 -05:00
Julian Oes
8331339927
atl_mantis: update bootloader binary again
...
This includes the fix which disables the UART overrun.
2022-01-10 23:04:10 -05:00
Julian Oes
b1a1e4913b
Mantis: rotate flow by 180 degrees
...
This seemed to be exactly inverted.
2022-01-10 23:04:10 -05:00
Julian Oes
28d69d3285
Mantis: fix throttle RC calibration
2022-01-10 23:04:10 -05:00
Julian Oes
b92aa92bec
Mantis: fix mixer loading
...
The ordering before did not work out, and without the sleep it fails.
2022-01-10 23:04:10 -05:00
Julian Oes
06b5b58b3b
Mantis: increase Tx buffer to with gimbal->camera
...
This way log streaming works with much less drops.
2022-01-10 23:04:10 -05:00
Julian Oes
11b60904c3
Mantis: use lower log streaming rate
2022-01-10 23:04:10 -05:00
Julian Oes
ca1fabf80a
logger: add rate factor to slow logging down
...
This is required for the Mantis to reduce the log streaming rate.
2022-01-10 23:04:10 -05:00
Julian Oes
f3a278dce5
Mantis: add comment about boot order.
...
The boot order is now:
1. The PX4 bootloader boots, and starts the camera.
2. The camera starts and sends the boot command to the PX4 bootloader.
3. PX4 starts.
2022-01-10 23:04:10 -05:00
Julian Oes
ecfc7cc24f
Mantis: set bootloader timeout to 180 seconds
...
The first byte 0xb4 is 180. This number is read by the bootloader.
2022-01-10 23:04:10 -05:00
Julian Oes
e15cbc3a6b
Mantis: move tap_esc to extras
...
This way we work around an issue where tap_esc got stuck during bootup
in a cold boot.
2022-01-10 23:04:10 -05:00
Julian Oes
24bdf79180
ROMFS: fix debug output
2022-01-10 23:04:10 -05:00
Julian Oes
c2e0e09b2d
commander: reduce PWM max again
...
This is no longer required now.
2022-01-10 23:04:10 -05:00
Julian Oes
e4763f15f6
Mantis: add RC hacks
...
This changes the way RC is handled for the Mantis:
- The RC values are re-written when arriving over MAVLink. They are
rescaled from 0..4095 to 1000..2000 and the channel bits added to
separate channels. This makes the downstream handling easier.
- Gimbal pitch is moved from Aux1 to Aux2 as that should be the default.
- Aux3 and Aux4 are used for the photo and video trigger.
- The speed button is used as the FLTMODE channel and set to switch
between POSCTL and ALTCTL.
2022-01-10 23:04:10 -05:00
Julian Oes
9fe7a40673
manual_control: enable sending camera commands
2022-01-10 23:04:10 -05:00
Julian Oes
1754e25920
vmount: add param to use RC input for angular rate
...
Until now RC input was translated to angles only. I added the param
MNT_RC_IN_MODE which allows the RC input to be used for angular rate.
2022-01-10 23:04:10 -05:00
Julian Oes
f03990f015
Mantis: prevent output setup from running
...
This is not required as we start tap_esc directly and load the mixer.
2022-01-10 23:04:10 -05:00
Julian Oes
cb15728536
Mantis: save mission in RAM
...
This is using a reduced number of mission items of 1000 instead of 2000
in order to fit in RAM.
2022-01-10 23:04:10 -05:00
Julian Oes
7d09635fb6
ROMFS: add option for dataman args
...
This is required for boards requiring dataman in RAM.
2022-01-10 23:04:10 -05:00
Julian Oes
bb09646b41
ROMFS: allow the output config to be skipped
...
This is required for the ATL Mantis-EDU.
2022-01-10 23:04:10 -05:00
Julian Oes
0fbb03dee1
ROMFS: add option for startup tune volume
...
Otherwise the CBRK_BUZZER param does not work as it should.
2022-01-10 23:04:10 -05:00
Julian Oes
a50f7af3b1
Mantis: update bootloader and SYS_AUTOSTART
...
This adds a check for the previous SYS_AUTOSTART id. If it is still the
old/previous SYS_AUTOSTART id, it will flash the new bootloader as well
as set the proper SYS_AUTOSTART id.
2022-01-10 23:04:10 -05:00
Julian Oes
fa282cfe86
Mantis: make startup less loud
2022-01-10 23:04:10 -05:00
Julian Oes
880292f5d7
commander: relax RC min/max
2022-01-10 23:04:10 -05:00
Julian Oes
2b4b87571c
Mantis: adapt RC calibration
...
This is with a newer RC firmware.
2022-01-10 23:04:10 -05:00
Julian Oes
aa007dadee
commander: fix emergency power off
...
From what I can see the CONFIG_BOARDCTL_POWEROFF is not really used
anywhere, however, the BOARD_HAS_POWER_CONTROL is something that is set,
e.g. for the Mantis, to allow power off.
2022-01-10 23:04:10 -05:00
Julian Oes
6301fa35c1
commander: add command to power off
2022-01-10 23:04:10 -05:00
Julian Oes
4a43155e69
Mantis: remove duplicate define
2022-01-10 23:04:10 -05:00
Julian Oes
7759ffb00e
Mantis: reduce power button hold time
...
This is more intuitive and matches the tune.
Hopefully, it's still long enough to prevent any false positives.
2022-01-10 23:04:10 -05:00
Julian Oes
6960600c28
Mantis: play power off tune
...
To play a power off tune, I needed to convert the file to C++, so that I
could use the uORB::Publication.
The current implementation starts playing the power off sound but then
stops it as soon as the button is released.
The problem is mostly that we only get an interrupt when the button is
pressed or released but we don't seem to be able to poll it, at least
not in the current state.
2022-01-10 23:04:10 -05:00
Julian Oes
860b23dd17
tunes: add tune to power off
...
This is used by the ATL Mantis EDU to help the user realize when the
drone is powered off.
2022-01-10 23:04:10 -05:00
Julian Oes
a21fefda48
tune_control: prevent segfault
2022-01-10 23:04:10 -05:00
Julian Oes
856e229482
ROMFS: reset the startup sound for Mantis
2022-01-10 23:04:10 -05:00
Julian Oes
1be4e35ed4
ROMFS: move startup sound further down
...
This way it works for the Mantis where the tap_esc driver needs to be
running before beeping is posssible.
2022-01-10 23:04:10 -05:00
Julian Oes
76920171c7
tap_esc: fix tunes
...
This removes the redundant _play_tone flag and instead just polls the
next_note() interface to check if there is something to play.
2022-01-10 23:04:10 -05:00
Julian Oes
de1849167d
Mantis: Add upload_wifi target to upload firmware
2022-01-10 23:04:10 -05:00
Julian Oes
185e4cfd48
Mantis: set range finder limits, and min quality
...
The limits might somewhat match the sensor, guessed based on the
original driver.
The quality is set so that spikes when sitting on the ground are not
used.
2022-01-10 23:04:10 -05:00
Julian Oes
dd00e43ca3
mavlink: set signal_quality (and sane variance)
...
Otherwise this distance data is actually not used at all.
2022-01-10 23:04:10 -05:00
Julian Oes
aefbd80b53
mavlink: use optical flow limits from params
...
This makes more sense than hard-coding arbitrary values.
2022-01-10 23:04:10 -05:00
Julian Oes
f48c3a2cc6
mavlink: don't handle RC_CHANNELS
...
This is a status/output but should not be an input for the autopilot.
Instead RC_CHANNELS_OVERRIDE should be used.
2022-01-10 23:04:10 -05:00
Daniel Agar
cc1fee525a
lib/sensor_calibration: handle calibration slot change on parameter update
2022-01-10 17:16:50 -05:00
Daniel Agar
ab547bb982
sensors/vehicle_angular_velocity: RPM notch don't fully disable if first harmonic frequency drops below minimum frequency
...
- keep higher frequency harmonics enabled per ESC
- cleanup timestamp handling (timeouts, etc)
2022-01-10 14:51:29 -05:00
Daniel Agar
b58922a5d7
sensors/vehicle_angular_velocity: notch filters automatically reset on sufficient parameter change
2022-01-10 14:51:29 -05:00
Daniel Agar
7d632254be
NotchFilter push initialization/reset into filter
...
- this simplifies the reset by allowing a notch filter to reset as
needed
- improves cascade initialization, on reset each filter will reset
properly from the previous
2022-01-10 14:51:29 -05:00
Daniel Agar
2e2ac36cab
drivers/uavcan: make firmware server available on both CAN1/CAN2 always (if enabled)
...
- uavcan firmware server no longer shuts down when arming (nodes might restart in flight)
- always handle UAVCAN parameters with or without the FW server active
- remove legacy ESC enumeration in FW server
2022-01-10 11:13:02 -05:00
Daniel Agar
d9e7315420
sensors: automatically set initial accel/gyro calibration if stable bias available
2022-01-10 10:46:37 -05:00
Daniel Agar
e731fcdbc0
sensors (accel/gyro/mag) determine if external with device id
2022-01-10 10:31:07 -05:00
Daniel Agar
45040be669
ekf2: accel/gyro/mag sensor cal minor cleanup
...
- cleanup obsolete comments
- remove debug helpers
- add additional variance requirements to mag bias stable (matching accel & gyro)
2022-01-10 09:55:59 -05:00
Daniel Agar
c3ca40a98f
drivers/px4io: delete monitor command
...
- the px4io console isn't even connected on most flight controllers
2022-01-10 09:51:11 -05:00
Daniel Agar
e5d49f6fff
drivers/px4io: delete unused detect
2022-01-10 09:51:11 -05:00
Daniel Agar
d077ca15fb
delete PWM_SERVO_SET, PWM_SERVO_SET_MODE, systemcmds/motor_ramp, and pwm_out test
2022-01-10 09:51:11 -05:00
Daniel Agar
df44df2df6
delete systemcmds/esc_calib
...
- this is redundant with commander esc_calibration
2022-01-10 09:51:11 -05:00
Daniel Agar
03bdc460d8
drivers/px4io: PWM_SERVO_GET_FAILSAFE_PWM don't get registers directly
2022-01-10 09:51:11 -05:00
Daniel Agar
d3301ba826
delete PWM_SERVO_GET_TRIM_PWM
2022-01-10 09:51:11 -05:00
Daniel Agar
8de59dad32
delete PWM_SERVO_SET_TERMINATION_FAILSAFE
2022-01-10 09:51:11 -05:00
Daniel Agar
1739ecc981
delete PWM_SERVO_SET_FORCE_FAILSAFE
2022-01-10 09:51:11 -05:00
Daniel Agar
649d3e3f55
delete PWM_SERVO_SET_DISABLE_LOCKDOWN/PWM_SERVO_GET_DISABLE_LOCKDOWN
2022-01-10 09:51:11 -05:00
Daniel Agar
b7ed4fd3e0
delete PWM_SERVO_SET_DISARMED_PWM
2022-01-10 09:51:11 -05:00
Daniel Agar
551a31ce2f
delete PWM_SERVO_SET_FAILSAFE_PWM
2022-01-10 09:51:11 -05:00
Daniel Agar
daa925137c
boards: move default battery calibration defines to parameter defaults
2022-01-10 09:49:36 -05:00
Daniel Agar
78b3d22471
lib/mixer_module: consume output_limit library
2022-01-10 11:59:55 +01:00
Daniel Agar
71d8b15b73
commander: fix COM_HOME_EN missing case
...
- VEHICLE_CMD_COMPONENT_ARM_DISARM is yet another path that calls set_home_position()
2022-01-09 20:52:07 -05:00
Daniel Agar
0b1402afe2
Tools/HIL/test_airframes.sh enable all mavlink and GPS
2022-01-08 18:11:43 -05:00
bresch
57fa9c545a
PosControl: fix hover update equation
...
The integrator now absorbs properly the change in hover thrust
2022-01-08 15:42:10 +01:00
Daniel Agar
6c97700eaa
move sensor calibration parameters to yaml
2022-01-07 19:00:41 -05:00
Matthias Grob
bbad4a5397
FlightTaskAuto: Respect altitude with offtrack state
...
To avoid weird cases where the altitude is different enough and
the offtrack state flies to the target altitude instead of the closest
point on the track between the waypoints.
2022-01-07 10:30:39 -05:00
Julian Oes
be0a5b4b32
workflows: Set up batch fuzzing every 24 hours
...
So instead of fuzzing each and every PR for 10minutes, we just fuzz
30mins every 24 hours, at 6am UTC which should be a time when US and
Europe might be least active.
2022-01-07 10:17:12 -05:00
Julian Oes
2cbc993976
Add clusterfuzzlite to fuzz in CI
2022-01-07 10:17:12 -05:00
Julian Oes
9eda5b373c
posix: add fuzz testing using MAVLink messages
...
This adds the env option PX4_FUZZ which runs the LLVM libFuzzer which
throws random bytes at mavlink_receiver using MAVLink messages over UDP.
The MAVLink messages that are being sent are valid, so the CRC is
calculated but the payload and msgid, etc. are generally garbage, unless
the fuzzing gets a msgid right by chance.
As I understand it, libFuzzer watches the test coverage and will try to
execute as much of the code as possible.
2022-01-07 10:17:12 -05:00
Daniel Agar
c17a9e8003
sensors/vehicle_imu: refactor SensorCalibrationUpdate() to separate accel/gyro cal saving
2022-01-07 09:40:51 -05:00
Daniel Agar
aec97e0020
sensors: minor IMU bias saving updates
...
- sensors/vehicle_imu: reset learned cal on any calibration change
during parameter update
- sensors/vehicle_imu: cleanup logic estimated bias -> calibration offset
saving
- don't invalidate saved calibration (the point is to keep the last valid)
- remove old debug code, etc
- sensors/vehicle_imu: notify parameter changes if accel or gyro
calibration has changed
- lib/sensor_calibration: add calibrated() and calibration_index()
getters, keep Accelerometer/Gyroscope/Magnetometer in sync
2022-01-07 09:40:51 -05:00
Silvan Fuhrer
5d7ddf5734
FW Pos Control: use SlewRate library for airspeed setpoint
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-01-07 09:39:10 -05:00
Daniel Agar
30ccfdb2ed
sensors/vehicle_magnetomeer: fix copyright year
2022-01-06 20:27:56 -05:00
Julian Oes
07d75d85cf
mavsdk_tests: trigger flush to stdout every second
2022-01-06 09:24:32 -05:00
Julian Oes
2d8ebc6839
mavsdk_tests: add timestamp to log output
...
The timestamp is added when the output is queued up, rather than later
when the queue is emptied and some time might have passed.
2022-01-06 09:24:32 -05:00
Julian Oes
dd6fb58f82
mavsdk_tests: don't stall mavsdk_tests binary
...
This is an attempt to fix the test failure where PX4 detects an RC
timeout presumably because the tester process mavsdk_tests is stalled
and does not send RC control messages in time.
2022-01-06 09:24:32 -05:00
Julian Oes
952cfe2fd7
ekf2: fix uninitalized memory warning
...
The imu and sensor_combined data should not be used when it has not been
updated yet, otherwise this triggers a memory sanitizer warning:
Conditional jump or move depends on uninitialised value(s)
at 0x2DA7AA: __sanitizer_cov_trace_const_cmp1 (in build/px4_sitl_default-clang/bin/px4)
by 0x3C4E79: EKF2::Run() (src/modules/ekf2/EKF2.cpp:401)
by 0x6EB881: px4::WorkQueue::Run() (platforms/common/px4_work_queue/WorkQueue.cpp:187)
by 0x6ECB9D: px4::WorkQueueRunner(void*) (platforms/common/px4_work_queue/WorkQueueManager.cpp:230)
by 0x4C07258: start_thread (in /usr/lib/libpthread-2.33.so)
by 0x4D415E2: clone (in /usr/lib/libc-2.33.so)
Conditional jump or move depends on uninitialised value(s)
at 0x3C4E7C: EKF2::Run() (src/modules/ekf2/EKF2.cpp:401)
by 0x6EB881: px4::WorkQueue::Run() (platforms/common/px4_work_queue/WorkQueue.cpp:187)
by 0x6ECB9D: px4::WorkQueueRunner(void*) (platforms/common/px4_work_queue/WorkQueueManager.cpp:230)
by 0x4C07258: start_thread (in /usr/lib/libpthread-2.33.so)
by 0x4D415E2: clone (in /usr/lib/libc-2.33.so)
2022-01-05 16:20:06 -05:00
romain-chiap
4264ec992d
Update 1101_rc_plane_sih.hil
...
This bugged me for a while, the sih FW would not takeoff from the ground. Now, I found it!
2022-01-05 16:18:53 -05:00
Silvan Fuhrer
0a82025faf
FW Position Control: some airspeed setpoint handling adaptions
...
- introuce slew rate limiting of airspeed setpoint (with slew rate of 1 m/s/s)
- some refactoring and clean up
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-01-05 17:06:41 +01:00
Silvan Fuhrer
20a1e5f77c
FW Position Control: simplify underspeed disabling logic for tecs
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-01-05 17:06:41 +01:00
Matthias Grob
bbb04ab4b8
Remove relaying of maximum altitude through land detector
2022-01-05 14:54:59 +01:00
Julian Oes
2445fa8b4c
commander: prevent uninitialized warning
...
This prevents a memory sanitizer/valgrind warning:
Conditional jump or move depends on uninitialised value(s)
at 0x2DA536: __sanitizer_cov_trace_cmp4 (in build/px4_sitl_default-clang/bin/px4)
by 0x6590D8: FailureDetector::update(vehicle_status_s const&, vehicle_control_mode_s const&) (src/modules/commander/failure_detector/FailureDetector.cpp:76) by 0x3817DF: Commander::run() (src/modules/commander/Commander.cpp:2605)
by 0x38B10B: ModuleBase<Commander>::run_trampoline(int, char**) (platforms/common/include/px4_platform_common/module.h:180)
2022-01-05 10:53:51 +01:00
Daniel Agar
170849c8f8
ekf2: expand accel bias stability criteria
2022-01-04 13:57:49 -05:00
PX4 BuildBot
846f807eff
Update submodule mavlink to latest Tue Jan 4 12:39:05 UTC 2022
...
- mavlink in PX4/Firmware (a8c88f1c98212e72a266fec8a9e7c0da2a14f3af): https://github.com/mavlink/mavlink/commit/4bc0de9c38626fe3640de266118af5fd64fe6a18
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/75204adad281e017e58e0a68fdb0a478c2b74d6f
- Changes: https://github.com/mavlink/mavlink/compare/4bc0de9c38626fe3640de266118af5fd64fe6a18...75204adad281e017e58e0a68fdb0a478c2b74d6f
75204ada 2022-01-04 Hamish Willee - Add ability to specify axis to autotune (#1759 )
2022-01-04 09:32:43 -05:00
bresch
d094fbbd70
ekf2: fix delta angle coning metric
2022-01-04 09:28:48 -05:00
PX4BuildBot
6fbc0e95d0
[AUTO COMMIT] update change indication
2022-01-04 09:12:45 -05:00
PX4 BuildBot
a89f21d566
Update world_magnetic_model to latest Tue Jan 4 11:14:11 UTC 2022
2022-01-04 09:12:45 -05:00
Daniel Agar
e835a7c4ea
boards: enable readline history and tab completion on newer boards
2022-01-03 10:44:32 -05:00
Daniel Agar
9d1558af25
ekf2: selector use status timestamp for timeout rather than timestamp_sample (delayed time horizon)
...
- update stale checks for publication to use hrt elapsed time from
timestamp sample
2022-01-03 09:20:44 -05:00
Daniel Agar
333edfe12f
ekf2: use delayed IMU timestamp for publication's timestamp_sample
2022-01-03 09:20:44 -05:00
Daniel Agar
35502c249d
ekf2: don't use Vectors for height innovations (baro, rng, etc)
2022-01-03 09:20:20 -05:00
David Sidrane
eac92ec671
imxrt:ADC fix timeouts
2022-01-03 06:02:19 -08:00
Jaeyoung-Lim
bdec85fdd0
Disable local vehicle setpoints while in transition
...
This commit adds disabling vehicle setpoints while in transition
2022-01-03 11:09:06 +01:00
Jaeyoung-Lim
4127dfa791
Log vehicle local position setpoints
...
This commit enables the local position setpoints to be logged by publishing vehicle_local_position_setpoint
2022-01-03 11:09:06 +01:00
Jaeyoung Lim
52418f13b0
Use groundspeed for navigate heading
2022-01-03 10:52:34 +01:00
Jaeyoung-Lim
e66e82228f
Add support for offboard velocity setpoints for fixedwing vehicles
...
This commit adds a velocity controller which the setpoint can be passed using offboard setpoints
2022-01-03 10:52:34 +01:00
Daniel Agar
75bb2f8dd2
Jenkins: hardware temporarily tolerate sd_bench failures on px4_fmu-v5_debug
2022-01-02 14:47:52 -05:00
Daniel Agar
673d4544d1
parameters: verify param backup after export
2022-01-02 10:46:34 -05:00
Daniel Agar
8e26b33009
tinybson: file write error add more detail
2022-01-02 10:46:34 -05:00
Daniel Agar
80ef6e19df
tinybson: explicitly append int32 or int64
2022-01-02 10:46:34 -05:00
Daniel Agar
9cbb5c9920
parameters: fix export shutdown locking
...
- in NuttX bchlib keeps a sector sized buffer that might not be written
out to RAMTRON until the file is closed
2022-01-02 10:46:34 -05:00
Daniel Agar
2153710917
Tools/HIL/monitor_firmware_upload.py don't fail on any ERROR
...
- on first boot we only care that it completes (gets to nsh prompt)
2022-01-02 10:05:30 -05:00
Daniel Agar
c421bff73c
Tools/HIL: use pyserial spy:// to log all serial traffic and dump on failure
2022-01-01 22:25:29 -05:00
Daniel Agar
7df1721d32
ROMFS: rcS disable simplistic SD I/O test
...
- this was added when trying to identify SD card issues at boot and
trigger a format, but didn't provide any value
2022-01-01 18:43:27 -05:00
Daniel Agar
f76aa0e772
cmake: NuttX ARMV7M_STACKCHECK skip ekf2
...
- px4_fmu-v5_stackcheck switch from icm20689 -> bmi055 (lower rate)
- this is to make performance tolerable
2022-01-01 18:43:27 -05:00
Daniel Agar
e9283d90cc
systemcmds/netman: fix code style
2022-01-01 18:40:47 -05:00
Daniel Agar
0029317e55
Jenkins: hardware additional reboots no longer required
2022-01-01 14:06:05 -05:00
Daniel Agar
439ad7daea
Jenkins: hardware disable calib_delay (too slow) and manual SD format
2022-01-01 12:10:28 -05:00
Daniel Agar
501474993e
Tools/HIL: default to USB UART if available
2022-01-01 10:49:30 -05:00
Daniel Agar
77b65ee564
boards: px4_fmu-v5_debug disable stack check
...
- this is redundant with px4_fmu-v5_stackcheck
2021-12-31 19:34:18 -05:00
Daniel Agar
247b975675
Tools/HIL: disable XON/XOFF, consistent timeouts, proper input buffer clear
2021-12-31 19:28:40 -05:00
Daniel Agar
03371f8522
NuttX with bch flush backport
2021-12-31 10:59:56 -08:00
David Sidrane
db159a43cc
test_dataman:Set SEM_PRIO_NONE on all semaphores
2021-12-31 10:27:24 -05:00
Daniel Agar
1b6700592b
parameters: require valid BSON document size
2021-12-30 16:36:23 -05:00
Daniel Agar
3514458f42
Tools/HIL/test_airframes.sh: dump all parameter storage after bootup to verify contents
2021-12-30 12:43:00 -05:00
Daniel Agar
b06215d038
Tools/HIL/test_airframes.sh: run param dump after save to verify BSON
2021-12-30 11:11:14 -05:00
PX4 BuildBot
5fc7e551ab
Update submodule mavlink to latest Wed Dec 29 12:38:13 UTC 2021
...
- mavlink in PX4/Firmware (395eeb440a2ca7503591f872d4f733fcd9867218): https://github.com/mavlink/mavlink/commit/bfaf605bd6f25c8c4843d67e455fe02acb5a9452
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/4bc0de9c38626fe3640de266118af5fd64fe6a18
- Changes: https://github.com/mavlink/mavlink/compare/bfaf605bd6f25c8c4843d67e455fe02acb5a9452...4bc0de9c38626fe3640de266118af5fd64fe6a18
4bc0de9c 2021-12-27 olliw42 - Component Information Basics: add camera cap flag (#1752 )
8035ad4d 2021-12-27 Hamish Willee - GIMBAL_DEVICE_FLAGS_NEUTRAL - note that this can be any angle (#1758 )
2021-12-29 17:16:49 -05:00
Daniel Agar
6706d9b434
Jenkins: always fully clean git workspace
2021-12-29 17:14:11 -05:00
Daniel Agar
6d0339ba0c
I2CSPIDriverBase: sensor start failure ERROR if internal, WARN if external
2021-12-28 11:05:35 -05:00
Daniel Agar
990d7c159d
pwm_out: cleanup and prep for linux compatibility
2021-12-28 11:04:00 -05:00
Daniel Agar
10f4a2e91f
boards: omnibus_f4sd_default disable systemcmds to save flash
2021-12-27 12:19:55 -05:00
Daniel Agar
3ef9c2d16c
boards: holybro_kakutef7_default disable modules/gyro_calibration to save flash
2021-12-27 12:19:55 -05:00
FengShun
8f8719d33b
cmake: use add_definitions instead of add_compile_definitions
...
Using make tests in docker will fail, because the current basic image used by px4io/px4-dev-simulation-bionic is ubuntu18.04, the default version of cmake is 3.10, and the add_compile_definitions command is only available in cmake 3.12+(ubuntu 20.04).
2021-12-27 12:19:31 -05:00
FengShun
65e976bbc2
docker: update px4-dev-simulation-bionic container versions to 2021-12-11
...
The current docker image will cause "make tests" to fail: "kconfiglib is not installed or not in PATH"
2021-12-27 12:19:31 -05:00
Daniel Agar
d94767ef88
cmake: NuttX use cygwin friendly path for linker script
2021-12-27 12:19:12 -05:00
honglang
17a99bc827
mavlink: add HYGROMETER_SENSOR stream
2021-12-27 12:13:09 -05:00
honglang
983867f9af
uavcan: support uavcan hygrometer
2021-12-27 12:13:09 -05:00
honglang
b60e59d9be
msg: new sensor_hygrometer msg
2021-12-27 12:13:09 -05:00
Daniel Agar
3f17acdcc9
boards: mro_ctrl-zerl-h7-oem pin fixes (sync with mro_ctrl-zero-h7)
2021-12-27 09:25:21 -05:00
Daniel Agar
0f4e1dd9f9
boards: mro ctrl-zero-h7 pin fixes
2021-12-27 09:25:21 -05:00
Daniel Agar
236794235a
parameters: export empty BSON document even if there are no parameters to save
...
- otherwise a 'param reset_all' won't be saved until a parameter is changed
2021-12-27 09:17:00 -05:00
Daniel Agar
33d7b42040
parameters: import quietly retry if there's no data (as a precuation)
2021-12-27 09:17:00 -05:00
Daniel Agar
20d3e6f4e1
parameters: add simple BSON verification pass after export
2021-12-27 09:17:00 -05:00
Beat Küng
72065c3d71
fix protocol_splitter: remove timeout, drop buffer if too full instead
...
The existing implementation had a flaw: when the buffer was getting full,
mavlink started to busy-loop, as the uart has data (poll returns immediately)
but no new data was read from the uart due to the buffer being full.
As rtps is running at lower prio, it never got the chance to read again,
making the problem even worse.
After 1s the timeout triggered and the buffer was cleared, so it recovered.
Instead of allowing for CPU spikes, we now immediately clear the buffer
(only as much as we have to), ensuring that new data is read from the uart.
2021-12-24 20:28:43 -05:00
Rui Miguel Carvalho
542ee86bc9
landing_target_estimator: custom irlock frame params ( #18884 )
...
Signed-off-by: ruimscarvalho98 <ruimsc98@gmail.com >
2021-12-24 20:20:35 -05:00
Silvan Fuhrer
28e01c3510
FW Position controller: make loiter switching logic robust against pos_sp with loiter_rad=0
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:17:15 -05:00
Daniel Agar
98d706772e
boards: px4_fmu-v2_rover disable events module to save flash
2021-12-24 20:06:13 -05:00
Beat Küng
d202bf9631
control_allocator: add scope to reduce stack usage by 256B
2021-12-24 20:06:13 -05:00
Silvan Fuhrer
48be55dec8
Tiltrotor: disable tilt/thrust compensation when dynamic allocation is enabled
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:06:13 -05:00
Silvan Fuhrer
31d7328f4d
Tailsitter: invert roll (make it NED-correct) for filling vehicle_torque_setpoint
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:06:13 -05:00
Silvan Fuhrer
1ad66e606b
ControlAllocation: introduce convention for control surface deflection sign
...
- horizontal control surfaces: up=positive deflection
- vertical control surfaces (rudder): right=positive deflection
- mixed (V-Tail): up=positive deflection
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:06:13 -05:00
Beat Küng
5259877b1b
control_allocator: update matrix normalization
...
- only normalize rpy for MC matrices
- for thrust use the 3D vector, so it works for FW and tilt rotors as well
This keeps MC unchanged.
2021-12-24 20:06:13 -05:00
Silvan Fuhrer
460a0df850
tiltrotor: fill out thrust_setpoint[0] also in hover, based on tilt and hover thrust
...
In the tiltrotor case, beside an F_z thrust setpoint also a F_x setpoint must be passed
to the allocator as the matrix has non-zero thrust-x effectiveness when tilts are applied.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:06:13 -05:00
Beat Küng
2333bef670
px4airframes doc: handle common outputs individually
...
preparation for dynamic control allocation, where we won't have MAIN vs
AUX anymore (at least for the generic frames).
2021-12-24 20:06:13 -05:00
Beat Küng
203e253dfe
airframes: sitl boat: switch to dynamic control allocation
2021-12-24 20:06:13 -05:00
Beat Küng
8486ca5766
airframes: sitl cloudship: switch to dynamic control allocation
2021-12-24 20:06:13 -05:00
Beat Küng
9bc9169b77
px4/fmu-v5x: add missing board variants to rc.board_mavlink
2021-12-24 20:06:13 -05:00
Beat Küng
09200b994d
airship_att_control: publish thrust + torque setpoint
2021-12-24 20:06:13 -05:00
Silvan Fuhrer
478724c9fe
EffectivenessTiltrotor: fix logic for matrix update
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:06:13 -05:00
Beat Küng
6c8f322dfe
px4/fmu-v2/test: disable modules to reduce flash
2021-12-24 20:06:13 -05:00
Beat Küng
082cd74cab
holybro/kakutef7: disable IST8310 to reduce flash
2021-12-24 20:06:13 -05:00
Beat Küng
8e04934eab
commander: consider COM_MOT_TEST_EN for COMMAND_ACTUATOR_TEST as well
2021-12-24 20:06:13 -05:00
Silvan Fuhrer
39d441317a
ActuatorEffectivenssTailsitterVTOL: only enable MC yaw control if more than 3 rotors
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:06:13 -05:00
Silvan Fuhrer
426aa76a59
CA/VTOL: change description of VT_ELEV_MC_LOCK as it applies to not just elevons
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:06:13 -05:00
Silvan Fuhrer
18008b2de7
CA module.yaml: add motor direction function also to UI for Tailsitter an Tiltrotor
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:06:13 -05:00
Beat Küng
8743b78474
px4/fmu-v2/rover: disable modules to reduce flash
2021-12-24 20:06:13 -05:00
Beat Küng
8c782b7cd9
control_allocator: add Custom + MC with tilts effectiveness
...
The param group is changed to Geometry, as this reflects the naming in the
QGC UI.
2021-12-24 20:06:13 -05:00
Beat Küng
0818bb4be0
bitcraze/crazyflie{,21}: disable modules to reduce flash
2021-12-24 20:06:13 -05:00
Beat Küng
751539304e
omnibus/f4sd: disable modules to reduce flash
2021-12-24 20:06:13 -05:00
Beat Küng
627ec0df5d
control_allocator: increase STACK_MAIN to 3000
...
It was exceeding 2000
2021-12-24 20:06:13 -05:00
Beat Küng
4d38742371
control_allocator: show VT_ELEV_MC_LOCK for vtol mixers in config ui
2021-12-24 20:06:13 -05:00
Beat Küng
28c4d0b7df
mixer_module: add unit tests
2021-12-24 20:06:13 -05:00
Beat Küng
fe1b726b62
ScheduledWorkItem: do not call ScheduleClear() if not init in destructor
...
This avoids that unit tests trying to access a wq hang.
It still fails with an error currently.
2021-12-24 20:06:13 -05:00
Silvan Fuhrer
07306c4be3
control_allocator: add support for Tailsitter VTOL
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:06:13 -05:00
Silvan Fuhrer
0568cff299
control_allocator: handle thrust allocation for VTOL's properly
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:06:13 -05:00
Silvan Fuhrer
936f2dff52
logger: log both instances of vehicle_thrust/torque_setpoint
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-24 20:06:13 -05:00
Beat Küng
d688e5dee4
sitl airframes: add control allocation config to some airframes (not enabled)
...
To use them, manually set SYS_CTRL_ALLOC
2021-12-24 20:06:13 -05:00
Beat Küng
2362feddac
airframes/uuv_bluerov2_heavy: switch over to control allocation
2021-12-24 20:06:13 -05:00
Beat Küng
4f8e6a9548
control_allocator: do not update params while armed
...
As a precaution
2021-12-24 20:06:13 -05:00
Beat Küng
e04b4a8dbf
control_allocator: add 6DOF configuration
2021-12-24 20:06:13 -05:00
Beat Küng
4c80adfaf1
control_allocator: implement trim + slew rate limits configuration
2021-12-24 20:06:13 -05:00
Beat Küng
301100ce0e
uuv_att_control: publish vehicle_thrust_setpoint & vehicle_torque_setpoint
2021-12-24 20:06:13 -05:00
Beat Küng
590239dedb
work_queue: increase rate_ctrl stack size by 150 B
...
WARN [load_mon] wq:rate_ctrl low on stack! (172 bytes left)
2021-12-24 20:06:13 -05:00
Beat Küng
b5c2cdf6c4
vtol_att_control: do not manipulate PWM outputs if SYS_CTRL_ALLOC == 1
...
Not required anymore
2021-12-24 20:06:13 -05:00
Beat Küng
43e15148f6
rover: switch sitl configs to control allocation
2021-12-24 20:06:13 -05:00
Beat Küng
8d9e2a28c4
control_allocator: add fixed-wing actuator effectiveness
2021-12-24 20:06:13 -05:00
Beat Küng
4d2a403afa
control_allocator: add rover actuator effectiveness
...
This can be generalized later
2021-12-24 20:06:13 -05:00
Beat Küng
ed3a115c8f
control_allocator: add status publication rate limitation comment
2021-12-24 20:06:13 -05:00
Beat Küng
70e46a194f
control_allocator: major refactoring & additions
...
- allow effectiveness matrix to select control allocator method
(desaturation algorithm)
- add actuator_servos publication
- add support for multiple matrices (for vtol)
- add updateSetpoint callback method to actuator effectiveness to allow it
to manipulate the actuator setpoint after allocation
- handle motor stopping & reversal
- add control surfaces & tilt servos
- handle standard vtol + tiltrotor
- rename MC rotors params & class to be more generically usable
- fixes and enables ActuatorEffectivenessRotorsTest
2021-12-24 20:06:13 -05:00
Beat Küng
a81f11acdd
mc_rate_control: don't publish thrust + torque sp if vtol
2021-12-24 20:06:13 -05:00
Beat Küng
28e995ede2
fw_att_control: publish vehicle_thrust_setpoint & vehicle_torque_setpoint
2021-12-24 20:06:13 -05:00
Beat Küng
4becd6e4c7
rover: publish vehicle_thrust_setpoint & vehicle_torque_setpoint
2021-12-24 20:06:13 -05:00
Beat Küng
5da67e2e28
vtol_att_control: publish vehicle_thrust_setpoint & vehicle_torque_setpoint
2021-12-24 20:06:13 -05:00
Beat Küng
d1abdd0f8d
output drivers: add option to generate a separate output range reversing param
...
Makes it a bit easier to configure. Reversing by setting MIN > MAX is still
supported.
2021-12-24 20:06:13 -05:00
Beat Küng
1901edf13c
actuator_motors.msg: add reversible flags & implement in mixer_module
2021-12-24 20:06:13 -05:00
Beat Küng
ccc1f0e8fa
generate_actuators_metadata: minor additions (index_offset, item_label_prefix)
2021-12-24 20:06:13 -05:00
Beat Küng
81cef522fd
generate_params.py: fix bitmask param type
2021-12-24 20:06:13 -05:00
Beat Küng
5bcc5d3a13
generate_actuators_metadata.py: add mixer rules support
2021-12-24 20:06:13 -05:00
Beat Küng
230aae580f
ROMFS: add control_allocator to all types
2021-12-24 20:06:13 -05:00
Beat Küng
86aa9f9336
Makefile: exclude src/lib/crypto/libtommath from validate_module_configs
2021-12-24 20:06:13 -05:00
Beat Küng
9c767ff1ee
control_allocator: make effective source name a class member
2021-12-24 20:06:13 -05:00
Beat Küng
20d96f3bd9
metadata: fix BOARD_WITH_IO detection
...
Wasn't correctly updated during a rebase.
2021-12-24 20:06:13 -05:00
Daniel Agar
712353ea56
gyro_calibration: increase required samples (to be more conservative)
...
- make sure variance is checked across all available sensors
2021-12-24 19:53:44 -05:00
Daniel Agar
3f3836afa8
parameters: simplify import mark_unsaved and don't fail bson decode unnecessarily
2021-12-24 14:32:40 -05:00
Daniel Agar
d1cd4904dc
parameters: param_value_is_default avoid locking if value unchanged
2021-12-24 14:32:40 -05:00
Daniel Agar
c0b8f2952c
parameters: param_get_default_value avoid locking if value is static default
2021-12-24 14:32:40 -05:00
Daniel Agar
27a113ecab
parameters: param_get avoid locking if value is static default
2021-12-24 14:32:40 -05:00
Daniel Agar
cd8ce4d01e
parameters: remove obsolete perf_end
2021-12-24 14:32:40 -05:00
Daniel Agar
38731662c6
parameters use bitset for mark_unsaved
2021-12-24 14:32:40 -05:00
Daniel Agar
0e0639a5bf
Jenkins: hardware don't tolerate logger failures
2021-12-24 14:31:21 -05:00
Daniel Agar
b054fc7b8b
navigator: trivial code style fix
2021-12-24 10:55:20 -05:00
seungjo0109
0f7c850080
Fix typo(at modules/navigator_main)
2021-12-24 08:54:43 -05:00
PX4 BuildBot
7e9cdef57b
Update submodule jMAVSim to latest Thu Dec 23 18:11:33 UTC 2021
...
- jMAVSim in PX4/Firmware (a4040f7afd ): https://github.com/PX4/jMAVSim/commit/b23dc53d558e801b214fbcb605a061c9773105e0
- jMAVSim current upstream: https://github.com/PX4/jMAVSim/commit/66b764ada522893c05224950aa6268c809f8e48a
- Changes: https://github.com/PX4/jMAVSim/compare/b23dc53d558e801b214fbcb605a061c9773105e0...66b764ada522893c05224950aa6268c809f8e48a
66b764a 2021-12-17 romain-chiap - Merge pull request #129 from romain-chiap/tailsitter
71444c6 2021-10-04 romain-chiap - Update x_vert.mtl
4cc100e 2021-08-27 Romain Chiappinelli - tailsitter .mtl updated
561a5c4 2021-08-27 Romain Chiappinelli - tailsitter selection and docs
57fbdb8 2021-08-25 Romain Chiappinelli - tailsitter
2021-12-23 17:50:10 -05:00
Daniel Agar
00eae055ac
lib/sensor_calibration: don't save uninitialized priority parameter immediately
2021-12-23 17:49:11 -05:00
Daniel Agar
e694fa906b
tinybson: add more error output on node name overflow
2021-12-23 17:45:50 -05:00
Daniel Agar
47d6a6c63d
Tools/HIL/test_airframes.sh dump parameters before reboot (for verification)
2021-12-23 17:45:50 -05:00
Daniel Agar
14c2225b1c
ROMFS: rcS dump parameter backup contents before using
...
- this is mainly for debug comparion
2021-12-23 17:45:50 -05:00
Daniel Agar
38af93085b
linux_pwm_out: use PWM_MAIN parameter prefix
...
- this keeps things simpler for now across the old and new output
configuration
2021-12-23 15:57:11 -05:00
Daniel Agar
64e00c41d4
posix-configs: fix bbblue and rpi param import
2021-12-23 15:57:11 -05:00
Daniel Agar
c8f2a29d67
boards: beaglebone_blue_default fix missing linux_pwm_out driver
2021-12-23 15:57:11 -05:00
Daniel Agar
a5f58d321e
boards: emlid_navio_default fix missing drivers/modules
2021-12-23 15:57:11 -05:00
Daniel Agar
7d7d707db9
commander: add COM_HOME_EN parameter to enable/disable home position
2021-12-23 15:46:31 -05:00
Daniel Agar
28c34a0484
Jenkins: hardware don't force tests dataman to pass and add to stackcheck build
2021-12-23 14:50:47 -05:00
PX4 BuildBot
a069a47d50
Update submodule nuttx to latest Thu Dec 23 18:11:37 UTC 2021
...
- nuttx in PX4/Firmware (d0ce5705359f8beeb9faf7fa0d12279e03bb7ac7): https://github.com/PX4/NuttX/commit/d4c06e9dfb7bb14d0f19ef47b94d838b1caf50f3
- nuttx current upstream: https://github.com/PX4/NuttX/commit/378032a44ba1ec0e7e3df16a23d21a6e77a2d816
- Changes: https://github.com/PX4/NuttX/compare/d4c06e9dfb7bb14d0f19ef47b94d838b1caf50f3...378032a44ba1ec0e7e3df16a23d21a6e77a2d816
378032a44b 2021-12-15 David Sidrane - [BACKPORT] stm32f7:sdmmc invalidate before DMA to avoid eviction overwrite
2021-12-23 14:50:47 -05:00
Daniel Agar
a4040f7afd
px4io_serial: always perform full abort DMA on error
...
- enable DMA error perf count
2021-12-23 12:48:42 -05:00
Matthias Grob
f68ae39840
Commander: avoid RC actions during calibration
2021-12-22 09:08:23 -05:00
Beat Küng
89974c46b9
mavlink streams: add return in all cases
...
Generally not needed here, but GCC produced an error when compiling with
-finstrument-functions.
2021-12-22 08:47:33 -05:00
Beat Küng
e29759d877
WorkQueueManager: explicitly convert PTHREAD_STACK_MIN to int
...
fixes a compiler error on GCC 11.2.1:
error: no matching function for call to ‘max(long int, int)’
2021-12-22 08:47:33 -05:00
alessandro
2c8a92c628
sitl config: put model name first
...
Github constructs the workflow names from the
matrix configurations. Having latitude and longitude
in the fist columns makes these names rather cryptic.
2021-12-22 12:48:54 +01:00
Daniel Agar
47fcdb1fdb
sensors/vehicle_angular_velocity: replace ESC/FFT elapsed perf counters with single cycle perf counter
...
- non-trivial perf counters (elapsed & interval) are relatively expensive
- if ESC and FFT notch filtering are enabled this reduces 6 updates (2 per axis) to 1
2021-12-21 14:21:10 -05:00
Julian Oes
5894f302b5
mavlink: add test for zero padding
...
We want to avoid publishing garbage leftover from earlier publications.
2021-12-21 09:40:36 -05:00
Julian Oes
5cfe30fa2e
mavlink: fix include for unit tests
...
This is required to find the include directory for the unit test of the
MavlinkStatustextHandler.
2021-12-21 09:40:36 -05:00
Julian Oes
2e0286e6bb
mavlink: support receiving multi-chunk statustexts
...
This adds support for mavlink statustext messages arriving in multiple
chunks.
2021-12-21 09:40:36 -05:00
Daniel Agar
0029a75ab0
systemcmds: convert c -> c++
2021-12-21 09:22:49 -05:00
Julian Oes
d2e931858d
px4io: remove unused cmake_policy
...
This should fix the build with older cmake versions.
2021-12-21 09:21:25 -05:00
Julian Oes
9686c81f7d
boards: enable flow control on CDCACM
...
This enables flow control on CDCACM for the NuttX boards which fixes a
problem where HITL would stall.
The stall could happen if the hardware would be a bit too slow in
keeping up with the incoming messages. Often, this happened on arming
because the logger would take some time to log all parameters right at
the beginning.
The stall would then not recover due to NuttX bug where the rx interrupt
would not be restored correctly and instead only a slower watchdog would
release the next read. This watchdog takes 200ms which means it's hard
to impossible to get out of the situation without restarting sim and/or
PX4. For more information about the issue, see:
apache/incubator-nuttx#3633
As a workaround, until that bug is fixed, and because it makes sense
anyway, I propose to enable FLOWCONTROL for the serial via USB.
2021-12-21 08:01:38 +01:00
DanielePettenuzzo
88521b0145
print error only if the mavlink command fails
...
In some cases we printed also the mavlink commands that replied
to be unsupported. This is not an error to show in the log.
2021-12-21 07:37:23 +01:00
Julian Oes
199b5e7d48
Revert "mavsdk_tests: retry gz model spawn command"
...
This reverts commit c15d3f7cfa .
2021-12-20 13:05:46 -05:00
Julian Oes
9184038359
mavsdk_tests: try to restart gzserver
...
Sometimes gzserver seems to just not start correctly. With this commit
we try to just restart.
2021-12-20 13:05:46 -05:00
TSC21
9894598b63
mavsdk_tests: update to be able to fetch rtps builds as well
2021-12-20 13:05:46 -05:00
Thomas Debrunner
9312c772f1
mavsdk-tests: Re-try to launch a mission for some time before failing. This mitigates an issue where the flight controller has an uploaded mission, but has not finished the mission feasibility checks yet.
2021-12-20 13:05:46 -05:00
Julian Oes
764af19da4
mavsdk_tests: bump MAVSDK version to v0.48.0
...
This might help with CI tests where we get RC loss because, presumably,
MAVSDK is not sending them in time.
2021-12-20 13:05:46 -05:00
Claudio Micheli
9d02851893
vmount: increase stack size to 2100
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-12-20 13:05:15 -05:00
Julian Oes
90fe4b7a54
vmount: publish gimbal v2 protocol for v1 gimbals
...
This enables the use case where the gimbal v2 protocol is used
between the ground station and the drone, and the gimbal v1 protocol is
used between the drone and the gimbal.
2021-12-20 13:05:15 -05:00
Julian Oes
6d74b390d9
vmount: use absolute angle for location tracking
...
I'm pretty sure it makes more sense to use an absolute angle to track a
lat/lon location.
2021-12-20 13:05:15 -05:00
Julian Oes
d88f9353e8
vmount: improve debug message
...
This should help to figure out when gimbal commands don't work.
2021-12-20 13:05:15 -05:00
Julian Oes
f7c4034f3c
vmount: fix v1 frames with v2 input
...
It looks like the frames for pitch and roll were not set correctly when
v1 is used in v2 input.
2021-12-20 13:05:15 -05:00
Julian Oes
0ce4eae314
vmount: fix v1 frames for v1 input
...
This basically means that we want roll and pitch to be absolute, so
relative to the horizon.
2021-12-20 13:05:15 -05:00
Julian Oes
3c5bf497a3
esc_calib: remove unused variable
2021-12-20 10:56:24 -05:00
Julian Oes
a6431ab8f0
simulator: fix implicit-const-int-float-conversion
2021-12-20 10:56:24 -05:00
Daniel Agar
019eaf7038
multicopter: minimize dt jitter by using estimate timestamp_sample
2021-12-17 17:52:28 -05:00
Julian Oes
dcf69144cb
mavsdk_tests: fix type for mypy check
...
This was probably triggered due to a mypy update.
2021-12-17 17:28:54 +01:00
marcojob
2cfe08b3b1
small typo in vehicle_local_position msg
2021-12-17 15:45:07 +01:00
Igor Mišić
2d680dfd1a
pps_capture: fix PARAM_PREFIX for boards with px4io (CONFIG_BOARD_IO)
2021-12-17 07:56:08 +01:00
Igor Mišić
89f828fba7
pps_capture: advertise for logging
2021-12-17 07:56:08 +01:00
Igor Mišić
17f5df2d3e
pps_capture: add argument guard
2021-12-17 07:56:08 +01:00
Beat Küng
f6ced71d26
pps_capture: make it configurable via output functions
2021-12-17 07:56:08 +01:00
Igor Mišić
0f60e7debf
pps_capture: add kconfig
2021-12-17 07:56:08 +01:00
Michael Schaeuble
064a602962
Add PPS capture message to logged topics, simplify timestamp logic and small cleanup
2021-12-17 07:56:08 +01:00
Michael Schaeuble
5ad8b84dec
Fix PPS based UTC timestamp in camera trigger and capture messages
...
The existing implementation has about 100ms difference to a reference clock. With the changes this error less than 25us.
- Use sensor_gps messages with hrt timestamps as RTC reference and not the system realtime clock. The PPS interrupt can then be aligned with the GPS clock system.
- Keep fallback based on system RTC when no PPS pulse was captured
2021-12-17 07:56:08 +01:00
Michael Schaeuble
ebb657bcf4
Fix camera trigger via MAVLink when camera capture feedback is enabled
...
- camera_trigger module always publishes the camera_trigger msg (independent of the camera feedback)
- Use camera_trigger msg and set the feedback flag
- Subscribing modules determine if the message is relevant based on the feedback message
2021-12-17 07:56:08 +01:00
Michael Schaeuble
3e4031cf0f
Set rtc_edge_time also in capture_callback
...
When using an FMU channel as PPS capture GPIO, the rtc_edge_time is now set as well. The delay between actual capture and callback is compensated with the elapsed time of the rtc clock.
2021-12-17 07:56:08 +01:00
Thomas Debrunner
43bc6db99e
PPS capture: Add a param to enable / disable PPS capture module. This is important, since it takes over an FMU pin which can no longer be used for actuator output.
2021-12-17 07:56:08 +01:00
Igor Mišić
298a8c4637
boards/fmu-v5x: allocating PPS pin
...
- start pps_capture before pwm_out
2021-12-17 07:56:08 +01:00
Igor Mišić
60a212f717
px4_arch: add PX4_MAKE_GPIO_EXTI
2021-12-17 07:56:08 +01:00
Igor Mišić
c6098ef3dd
camera_capture: update to use PPS correction for UTC time
2021-12-17 07:56:08 +01:00
Igor Mišić
8eca35111e
camera_trigger: update to use PPS correction for UTC time
2021-12-17 07:56:08 +01:00
Igor Mišić
72b1db4a63
pps_capture: implementation of pulse per second capture driver
2021-12-17 07:56:08 +01:00
Daniel Agar
43a04c9bca
fix PARAM_PREFIX for boards with px4io (CONFIG_BOARD_IO)
2021-12-16 07:20:12 +01:00
Daniel Agar
ecc2ca7f98
mathlib: int16_t negate explicitly handle both INT16_MIN and INT16_MAX
...
- technically negating INT16_MAX doesn't need special handling, but
this ensures any simple saturation logic downstream works by default
2021-12-15 12:45:58 -05:00
Daniel Agar
d59d16a6cd
drivers/accelerometer: adjust int16_t clipping threshold slightly
...
- consider data clipped/saturated if it's INT16_MIN/INT16_MAX or within 1
- this accommodates rotated data (|INT16_MIN| = INT16_MAX + 1) and sensors that may re-use the lowest bit for other purposes (sync indicator, etc)
2021-12-15 12:45:58 -05:00
Daniel Agar
ea29b45282
ekf2: enable mag check by default, but commander only warn
2021-12-15 09:43:46 -05:00
Daniel Agar
3fba7288af
ekf2: selector use hysteresis for healthy flag
...
- require that an instance is healthy continuously for >= 1s before
allowing it to be used
2021-12-14 09:52:36 -05:00
Thomas Debrunner
eb69f15d3a
health-flags: Increase health flags to 64 bit bit field to support extended sys status mavlink message
...
Add SYS_STATUS flag for parachute
2021-12-14 09:41:12 -05:00
Thomas Debrunner
37099f85b9
mavlink: Update to newest mavlink master
2021-12-14 09:41:12 -05:00
Silvan Fuhrer
e9b9176ce2
param translation: fix for FW_GPSF_LT and FW_GPSF_R
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-14 08:27:04 +01:00
Jukka Laitinen
ce6147f570
uORB: Remove transfer of memory allocation ownership to CDev
...
- Allocate and free the node name in uORBDeviceNode.
- Add protected build support by de-allocating the name with kmm_free, when
running in kernel side. strdup allocates from the kernel heap in NuttX kernel
space.
- Remove the CDev::unregister_driver_and_memory(), it is no longer used
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-12-13 22:52:36 -05:00
Jukka Laitinen
25c10eb124
cdev: build & link fixes for NuttX protected build
...
- Always link to nuttx_fs for register/unregister_driver calls
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-12-13 22:52:36 -05:00
Daniel Agar
acdcc35392
tests: dataman fix ssize_t printf
2021-12-13 22:51:23 -05:00
alexklimaj
6133ef0d63
Dronecan fix beep driver
2021-12-13 14:52:46 -05:00
bresch
67a893ac6d
WelfordMean: remove unnecessary case for first sample
...
setting the mean to the sample value and then adding 0 is the same as
setting the mean to zero and then add the sample value divided by 1
2021-12-13 11:42:48 -05:00
bresch
5468841aa5
WelfordMean: add unit test
2021-12-13 11:42:48 -05:00
Daniel Agar
fc17797548
ekf2: delete obsolete _bad_vert_accel_detected
2021-12-13 09:13:39 -05:00
Daniel Agar
986cf288da
dataman: remove obsolete persistence and reset reason
2021-12-12 12:06:35 -05:00
Daniel Agar
ad1bfb5410
Tools/HIL/reboot.py retry every 90 seconds for up to 5 minutes
2021-12-12 11:53:01 -05:00
96moustafa
63189067f6
set the transponder_report message of uavs with no icao address to be their mav id
2021-12-11 15:29:43 -05:00
Daniel Agar
167edcc77b
simulator: add standalone sensor_gps_sim module
2021-12-11 15:03:15 -05:00
Daniel Agar
95b961c622
simulator: add standalone sensor_baro_sim module
2021-12-11 15:03:15 -05:00
Daniel Agar
4edfb4799f
simulator: add standalone sensor_mag_sim module
2021-12-11 15:03:15 -05:00
Daniel Agar
b71b908ac7
Tools/HIL: explain cmd, use monotonic time
2021-12-11 15:02:49 -05:00
Daniel Agar
0f6e30599c
Jenkins: hardware tolerate px4_fmu-v5_debug dataman failures for now
2021-12-10 10:28:19 -05:00
bresch
66290de745
ekf: improve range primary height source
...
allow range fusion to start with fake measurements if the sensor is
providing bad measurements because too close to the ground
2021-12-10 15:18:10 +01:00
bresch
9147d5ea5c
ekf2: use ground as ekf altitude datum when in range primary hgt mode
2021-12-10 15:18:10 +01:00
bresch
5e790da634
ekf2: reset the timeout timer in the reset function directly
2021-12-10 15:18:10 +01:00
bresch
0d874cf00a
ekf2: move aiding start details in dedicated function
...
When an aiding source needs to be started, simply call the corresponding
starting function and any required reset is handled in there.
2021-12-10 15:18:10 +01:00
Matthias Grob
897775f38d
ManualControlSelector: Allow disabling stick input
2021-12-10 09:11:08 -05:00
Matthias Grob
300e439144
ManualControlSelector: Enable original PX4 default behavior until QGC catches up
2021-12-10 09:11:08 -05:00
Daniel Agar
d961a067b9
navigator: reduce NUM_MISSIONS_SUPPORTED 2000->500 for dataman RAM usability
2021-12-10 09:10:02 -05:00
Daniel Agar
ca3f6f59f9
dataman: add SYS_DM_BACKEND parameter
2021-12-10 09:10:02 -05:00
Beat Küng
f76086ffa1
microRTPS_agent_CMakeLists.txt.em: add install section
2021-12-10 09:03:08 -05:00
Beat Küng
a9e918c7b2
fix ina226: use shunt param value
2021-12-10 09:03:08 -05:00
Beat Küng
a4ca298ee9
simulator_mavlink: handle MAV_TYPE_VTOL_RESERVED3
2021-12-10 09:03:08 -05:00
Beat Küng
7aed8c4f47
sd_bench: print errno on write failure
2021-12-10 09:03:08 -05:00
Beat Küng
80300c36b4
parameter units: add 'A' (Ampere)
2021-12-10 09:03:08 -05:00
Beat Küng
10f49c99ef
px4_add_gtest.cmake: add optional COMPILE_FLAGS, INCLUDES, EXTRA_SRCS and LINKLIBS
2021-12-10 09:03:08 -05:00
Beat Küng
87ec8839c4
px4/fmu-v5x: remove unused base_phy_DP83848C build variant
2021-12-10 09:03:08 -05:00
Igor Mišić
d1aec01b86
uavcan/actuators: stop update esc status if there is no UAVCAN ESCs
2021-12-10 09:03:08 -05:00
Beat Küng
aa96e39306
kconfig: do not inherit for recovery.px4board from default.px4board
2021-12-10 09:03:08 -05:00
Beat Küng
ca6df035b4
px4/fmu-v5x: add arch_io_pins dependency (required in init.cpp)
2021-12-10 09:03:08 -05:00
Beat Küng
0d1d454a4c
mavlink: add missing 'sensor_calibration' lib dependency
2021-12-10 09:03:08 -05:00
alexklimaj
31af09f8e7
Fix uavcan distance sensor not being logged
2021-12-10 07:19:34 +01:00
Silvan Fuhrer
24d871f792
FW land detector: tighten thresholds in airspeed-less case
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-09 20:55:09 -05:00
PX4 BuildBot
16621b19b3
Update submodule sitl_gazebo to latest Fri Dec 10 00:38:56 UTC 2021
...
- sitl_gazebo in PX4/Firmware (95222baa33 ): https://github.com/PX4/PX4-SITL_gazebo/commit/ffb87ef4a312564cf91791bd5a9d683aacd085a6
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/27298574ce33a79ba6cfc31ed4604974605e7257
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/ffb87ef4a312564cf91791bd5a9d683aacd085a6...27298574ce33a79ba6cfc31ed4604974605e7257
2729857 2021-12-06 Silvan Fuhrer - Plane.sdf: reduce flaps and aileron effectiveness by reducing the angle-to-lift ratio
2021-12-09 20:52:31 -05:00
Thomas Debrunner
ade4a1930c
trajectory-planning: Added option for PositionSmoothing library with single target waypoint that disables L1 guidance
2021-12-09 20:51:39 -05:00
Jukka Laitinen
77af102cab
px4_work_queue: Use px4_task_spawn_cmd for WorkQueueRunner in NuttX protected
...
In NuttX protected build there are separate work queues in kernel and user sides.
pthreads are only available in user side, so use tasks and kthreads for
memory protected builds.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-12-09 20:42:28 -05:00
Jukka Laitinen
3aab4d2daf
px4_task_spawn_cmd: launch kernel thread in protected/kernel build on kernel side
...
Also task name is accessible only in kernel side for protected/kernel build
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-12-09 20:42:28 -05:00
Daniel Agar
8185e2a384
boards: board_app_initialize() don't return early on failure
...
- depending on the situation we're more likely to get actionable user
feedback by allowing boot to complete rather than silently failing
2021-12-09 20:41:54 -05:00
Daniel Agar
08ee3208b2
mavlink: stop_command fix potential dead lock
2021-12-09 20:40:55 -05:00
Cindy Hsieh
ca90c785e9
correct pin in the comment, no code changed
2021-12-09 20:40:34 -05:00
Thomas Stastny
95222baa33
fix incorrect L1 period param documentation ( #18811 )
...
* fix incorrect L1 period param documentation
* reduce minimum L1 period
2021-12-08 16:42:50 +01:00
Daniel Agar
8b1543e3b0
mavlink: destroy all instances fix potential dead lock
2021-12-08 09:30:39 -05:00
Silvan Fuhrer
b00ebe53bb
FlightTaskAuto: use MPC_VEL_MAX instead of MPC_XY_CRUISE for emergency braking thresholds
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-08 09:13:01 +01:00
Julian Oes
94884594bb
mavsdk_tests: check gzserver and gz model calls
...
This adds two checks to make sure gzserver has actually started before
continuing, and also whether the gz model call was successful.
2021-12-08 07:26:32 +01:00
Daniel Agar
51c0e5553e
vmount: adjust MNT_RANGE_PITCH and MNT_RANGE_ROLL defaults
...
- this seems like a much more reasonable default
2021-12-08 01:02:46 -05:00
Daniel Agar
3b94742117
vmount: adjust timeout 50 -> 20 ms (50 Hz)
2021-12-08 01:02:46 -05:00
Julian Oes
9cb2bf389c
vmount: add param to use RC input for angular rate
...
Until now RC input was translated to angles only. I added the param
MNT_RC_IN_MODE which allows the RC input to be used for angular rate.
2021-12-08 01:02:46 -05:00
Daniel Agar
08b0ac9654
dataman: retry file read/write failures and report seek errors
2021-12-07 17:03:07 -05:00
Matthias Grob
495f1c9165
battery: don't initialize _source without constructor
2021-12-07 21:06:51 +01:00
Matthias Grob
68e2940f58
math: support max of three values additional to min and use it everywhere
2021-12-07 21:06:51 +01:00
Matthias Grob
e8676fe87a
BATTERY_STATUS: improve filling cell voltage
...
according to review comment
2021-12-07 21:06:51 +01:00
Matthias Grob
b41e345a5b
battery: correct updateBatteryStatus() description
2021-12-07 21:06:51 +01:00
Matthias Grob
ee3bc6673a
AnalogBattery: make update variables const
2021-12-07 21:06:51 +01:00
Matthias Grob
fdc40880d0
battery: separate out publishing from updating
...
to allow smart battery drivers to use the battery class and
filling in additional information in case it makes sense.
2021-12-07 21:06:51 +01:00
Matthias Grob
e70d70468a
battery: pass voltage and current by setter
2021-12-07 21:06:51 +01:00
Matthias Grob
39641494da
battery: pass connected flag in by setter
2021-12-07 21:06:51 +01:00
Matthias Grob
38d23f5345
battery: pass priority in by setter
2021-12-07 21:06:51 +01:00
Matthias Grob
f9fc9a9af6
battery: pass source in by constructor
2021-12-07 21:06:51 +01:00
Matthias Grob
b965923c08
battery: fetch throttle value inside of class
2021-12-07 21:06:51 +01:00
Matthias Grob
ddc6b6bc9c
battery: move MAVLink specific handling out of battery class
2021-12-07 21:06:51 +01:00
Matthias Grob
da2fdf923e
battery parameters: allow usage of 1S battery
2021-12-07 21:06:51 +01:00
Jukka Laitinen
d0d7f29422
platforms/common/shutdown.cpp: Enable boardctl functions for shutdown and poweroff
...
Shutdown and poweroff must go through boardctl in NuttX protected build
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-12-07 09:24:53 -05:00
Daniel Agar
7185bb3243
vmount: output rc simple protections
2021-12-07 13:11:22 +01:00
bresch
c947562183
ekf: get rid of intermediate variable "fuse_height"
2021-12-07 09:16:21 +01:00
bresch
9651f78b0a
ekf: centralize the height fusion decision
2021-12-07 09:16:21 +01:00
bresch
d583ef6b79
ekf2: move height fusion code to separate source file
2021-12-07 09:16:21 +01:00
Daniel Agar
452a7199a6
Jenkins: HIL stop modules before running certain tests
2021-12-06 23:31:49 -05:00
Daniel Agar
f9faa97d85
Tools/HIL/run_nsh_cmd.py increase timeout 3->4 minutes
2021-12-06 17:51:03 -05:00
Daniel Agar
01e60e853e
navigator: increase stack slightly
2021-12-06 15:10:50 -05:00
Daniel Agar
41378fcef9
ms5611: lower SPI clock 20 MHz -> 16 MHz
...
- this was necessary to get the secondary ms5611 working reliably on a
particular CubeOrange
- the sensor is transferring very little data, so lowering the speed by
default everywhere is harmless
2021-12-06 12:51:52 -05:00
Daniel Agar
8cd517f533
dataman: PX4_ERR on create_work_item failure
2021-12-06 10:23:42 -05:00
Daniel Agar
9ab633c18f
drivers/imu/invensense: check register bank during probe if necessary
...
- the WHO_AM_I is only accessible in register bank 0, which might not
be currently selected if the sensor didn't have a clean reset
2021-12-06 10:22:54 -05:00
Daniel Agar
4bf1b46e47
boards: free up flash on crazyflie and omnibus
2021-12-06 09:37:08 -05:00
Daniel Agar
2256def180
Jenkins: hardware run param dump
2021-12-06 09:37:08 -05:00
Daniel Agar
1f6acd0171
parameters: add simple backup and restore mechanism
2021-12-06 09:37:08 -05:00
Daniel Agar
e692f4ca01
ROMFS: rcS param import fail try to gather data
...
- startup tune and console message to notify user
- save dmesg and param bson copy to microsd
- run param dump to show full contents of bson
2021-12-06 09:37:08 -05:00
Daniel Agar
674b92df18
parameters: sleep 10 ms before retrying a failed import/export
2021-12-06 09:37:08 -05:00
Daniel Agar
7bfebf5289
parameters: add param dump to read and decode bson to console
2021-12-06 09:37:08 -05:00
Daniel Agar
7560d45c61
parameters: import tolerate unhanlded BSON types
2021-12-06 09:37:08 -05:00
Daniel Agar
9db5bc0755
px4_mtd: increase retries, wait inbetween, try decreasing frequency
2021-12-06 09:37:08 -05:00
Daniel Agar
1af068179e
parameters: tinybson print errors and count imported types
2021-12-06 09:37:08 -05:00
Silvan Fuhrer
ba1526896d
Navigator: VTOL: remove generate_waypoint_from_heading()
...
The FW Position controller sets the wp to be tracked during a
VTOL front transition, the coordinates sp set here weren't used.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-12-06 16:30:59 +03:00
Matthias Grob
10ceea2fe6
geo: refactoring on comments and usage
2021-12-06 14:30:14 +01:00
Thomas Debrunner
8db7a6225b
geo: Moved the map_projection_* functions and state into a self-contained C++ class
2021-12-06 14:30:14 +01:00
Daniel Agar
fe23718e2c
drivers/gps: require valid device to start
2021-12-06 08:44:50 +01:00
Daniel Agar
3160e7a3cd
Jenkins: run calib_udelay on test rack
2021-12-05 19:42:10 -05:00
PX4 BuildBot
01192e3c37
Update submodule simulation-ignition to latest Sun Dec 5 12:38:56 UTC 2021
...
- simulation-ignition in PX4/Firmware (4e3d944f58 ): https://github.com/PX4/px4-simulation-ignition/commit/0ea4dbe2c3dac84f5927a59b1caf5e5561cf942e
- simulation-ignition current upstream: https://github.com/PX4/px4-simulation-ignition/commit/483193d9b8b89211c3b970c735b4fbb5f724b63a
- Changes: https://github.com/PX4/px4-simulation-ignition/compare/0ea4dbe2c3dac84f5927a59b1caf5e5561cf942e...483193d9b8b89211c3b970c735b4fbb5f724b63a
483193d 2021-11-27 JaeyoungLim - Merge pull request #2 from PX4/pr-upstream-merge
4f3fd67 2021-11-27 Jaeyoung-Lim - Merge remote-tracking branch 'origin/master' into pr-upstream-merge
bd96d89 2021-11-27 Jaeyoung-Lim - Use mavlink develop dialect
bba86d6 2021-11-27 Jaeyoung-Lim - Fix firmware build test on github actions
e78ad94 2021-09-04 Jaeyoung-Lim - Update Readme
63ac33c 2021-09-03 Jaeyoung-Lim - Rename world path to accomodate different models
794a8dc 2021-07-12 Jaeyoung-Lim - Add ignition gazebo firmware build test
2021-12-05 19:23:55 -05:00
Daniel Agar
58421f2edc
Update submodule GPS drivers to latest Fri Dec 3 12:38:58 UTC 2021
...
- GPSDrivers in PX4/Firmware (3e0d06c65167c0bd79c193ea75ca5c7959053ff7): https://github.com/PX4/PX4-GPSDrivers/commit/bd72eb6794e8fb4f2ed3e47311a14c2cec69f60b
- GPSDrivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/d6940d9c8ccb8ab3273c677097a29d46903021ff
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/bd72eb6794e8fb4f2ed3e47311a14c2cec69f60b...d6940d9c8ccb8ab3273c677097a29d46903021ff
d6940d9 2021-12-02 alexklimaj - Update F9P moving base with direct UART2 connection
eb0cb58 2021-11-25 sebastian - always using groundspeed for vel_m_s in ubx driver
0408160 2021-11-18 alexklimaj - Remove extra UART1 baudrate set
2021-12-05 19:23:07 -05:00
Daniel Agar
f63a7642d6
NuttX debug helper improvements
...
- use NuttX gdb script for nxthreads and thread backtrace
- update jlink_gdb_backtrace and jlink_debug_gdb helper targets to use
NuttX gdb script
- Debug/PX4 fix "perf" divide by zero
- Debug/PX4 add "dmesg"
2021-12-05 19:18:56 -05:00
Daniel Agar
10f2564ae8
systemcmds/tests: dataman test use proper signed type for dm_read() return
2021-12-05 18:08:54 -05:00
Daniel Agar
713350930d
boards: px4_fmu-v5 add test variant
2021-12-05 18:08:54 -05:00
Daniel Agar
37c1598f38
boards: cubepilot_cubeorange enable calib_udelay and run on test rack
2021-12-05 14:50:03 -05:00
Daniel Agar
7d515e3d58
boards: cubepilot_cubeorange lower cpu clock 480 -> 400 MHz to reduce temperature
2021-12-05 14:50:03 -05:00
PX4BuildBot
aae794965a
[AUTO COMMIT] update change indication
2021-12-05 11:03:58 -05:00
PX4 BuildBot
4478877820
Update world_magnetic_model to latest Sun Dec 5 11:14:12 UTC 2021
2021-12-05 11:03:58 -05:00
Matthias Grob
4e3d944f58
mixer_module: typo con(s)tructor
2021-12-03 07:40:23 +01:00
Julian Oes
accbdbf129
DEBUG: get some mavsdk_test_runner.py output
2021-12-02 11:40:26 -05:00
Julian Oes
7c0165ea0c
ROMFS: avoid setting none params
2021-12-02 11:40:26 -05:00
Julian Oes
f537b30c86
init.d-posix: exit on error
...
This fixes a case where the px4 startup is not stopped when the
px4 process is killled using -SIGKILL against the px4 deamon.
In that case, the currently executing command/client is killed
and properly shutting down with result -1, however, the next command
is started anyway.
This means that the next time we try to run the simulation we get a
"PX4 daemon already running for instance 0" error and PX4 doesn't start
properly.
By adding exit on error, we properly exit in the case where the startup
script gets stopped/killed.
2021-12-02 11:40:26 -05:00
Julian Oes
c15d3f7cfa
mavsdk_tests: retry gz model spawn command
...
This should help when gzserver does not respond yet and we end up
without a model and hence can't connect later and time out.
This change also required a fix to prevent the tester to hang on
terminating all runners. By using poll instead of only read we can
prevent that and actually properly join the logger thread.
2021-12-02 11:40:26 -05:00
Daniel Agar
2190f66096
sensors/vehicle_magnetometer: add SENS_MAG_AUTOCAL to enable initial auto cal
2021-12-01 20:24:56 -05:00
Daniel Agar
8fbf79527f
magnetometer allow setting initial calibration from bias if available and stable
2021-12-01 20:24:56 -05:00
Daniel Agar
b7efd4f947
ekf2: selector treat combined test ratio > 1 as a warning
...
* ekf2: selector treat combined test ratio > 1 as a warning
* ekf2: wait for 1s of constant warning to trigger an instance switch
Co-authored-by: bresch <brescianimathieu@gmail.com >
2021-12-01 20:22:34 -05:00
Matthias Grob
89892d0d17
px4io: discover PWM_MAIN_TRIMx parameters right away
2021-12-01 20:21:26 -05:00
Julian Oes
a9b9362fea
commander: handle system broadcast commands
...
This changes the command handling logic to accept commands which are
targeted at any system, signaled by target_system set to 0.
2021-12-01 20:17:35 -05:00
Daniel Agar
a2064cceff
boards: enable early MPU reset on any board potentially not using the PX4 bootloader
2021-12-01 20:13:41 -05:00
Peter van der Perk
36ba8cc6dd
UAVCANv1 update FMU-V5 config
2021-12-01 09:29:15 -05:00
Peter van der Perk
ce10dd90e7
Remove ucannode_gps_demo since it's superseded by uavcan_v1
2021-12-01 09:29:15 -05:00
Peter van der Perk
ce909b23b1
UAVCANv1 Node implementation work, PNP, Registers and uORB publisher
2021-12-01 09:29:15 -05:00
Jukka Laitinen
79aa8ee587
src/drivers/sw_crypto: Fix a function call argument type mismatch
...
Fix one function call argument from unsigned -> size_t
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-12-01 09:28:02 -05:00
Jukka Laitinen
9c94e4c5ef
crypto: define XMALLOC & XFREE for sw_crypto
...
Use the same memory allocation in sw_crypto driver as what is used in
src/lib/crypto libraries
In addition, in nuttx protected build, allocate all memory from kernel heap
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-12-01 09:28:02 -05:00
Jukka Laitinen
a537925c3c
Fix a build error with crypto variants
...
There was an error that PX4_CRYPTO was cached accross variants, if it was
defined just for one variant.
This synchronizes the caching of BOARD_CRYPTO with other similar BOARD_ flags;
it is set as INTERNAL and "1" when enabled.
Also remove handling of BOARD_KEYSTORE; it is not used anywhere after
changing the crypto under src/drivers. If a separate keystore driver
is required, it is just selected as any other driver in px4board
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-12-01 09:28:02 -05:00
alexklimaj
2571860ff8
Prevent uavcannode from republishing RTCM data received over uavcan
2021-12-01 09:27:11 -05:00
David Lechner
a29820bdf8
gps: fix compiling on mac
...
This fixes the following compile error on Mac:
src/drivers/gps/gps.cpp:562:23: fatal error: use of undeclared identifier 'B921600'
case 921600: speed = B921600; break;
^
2021-12-01 09:25:40 -05:00
alexklimaj
bfd5a90a5d
UAVCAN Moving Baseline Working
...
Set uavcan publisher priorities
Switch to ardupilot rtcm message and add heading accuracy
2021-11-30 15:59:08 -05:00
Matthias Grob
b59db7dac2
rtl_params: change default and max rtl time margin
2021-11-30 19:46:22 +01:00
Matthias Grob
55dfbdc6a6
Commander: fix remaining flight time user messaging
2021-11-30 19:46:22 +01:00
David Jablonski
4f88c200ec
vmount: fix gimbal_manager_status
2021-11-30 19:35:22 +01:00
Thomas
9345f68a93
reapply PR 18614 to refactored FlightTaskAuto
2021-11-30 14:52:16 +01:00
Beat Küng
cbd6e735ad
fix console_buffer: avoid potential deadlock when using dmesg over MAVLink shell
...
dmesg was locking the console buffer, then writing to stdout (a pipe in
the case of the MAVLink shell).
This might block, waiting for mavlink to read from the pipe. If however
mavlink tries to write to the console at that time, the lock is already
taken.
This patch avoids nested locking by using a separate buffer.
2021-11-30 08:49:52 -05:00
Julian Oes
01db98fccf
vmount: fix RC pitch input scale
...
When scaling manual input, we should only use pitch -90 to +90 instead
of -180 to 180 degrees which leads to weird behavior as it gets passed
on by a quaternion.
2021-11-30 07:50:20 +01:00
David Sidrane
76585409fa
durandal rev 1 has bmi088->icm20602
2021-11-29 21:59:30 -05:00
benjinne
38e7f814d5
mro h7 boards add rtps px4board files
2021-11-29 21:50:32 -05:00
Daniel Agar
e348425279
Jenkins: hardware perform board reset immediately after flashing
2021-11-29 21:49:35 -05:00
Daniel Agar
bc7001ba49
NuttX apps with [REJECTED] mkfatfs DMA memory change
2021-11-29 21:49:35 -05:00
David Sidrane
df1c94dd4e
px4_fmu-v5_debug:Increase stack size
2021-11-29 16:01:08 -05:00
David Sidrane
ade7315e9b
sd_bench:Missing free
2021-11-29 16:01:08 -05:00
Jukka Laitinen
c2cbab1e98
Improve stub_keystore configuration
...
It is possible to either set the keyfile locations in board configuration or
with the same environment variables as before.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-29 11:09:51 -05:00
Jukka Laitinen
929820136a
Move sw_crypto and stub_keystore under src/drivers
...
This is more logical place for the "backend" implementation than
directly under platform.
This also allows making other implementations as "real" drivers, as well as proper configuration via Kconfigs
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-29 11:09:51 -05:00
Daniel Agar
9b7c8c8a8b
boards: px4_fmu-v6x_default enable ethernet by default with NuttX optimizations
2021-11-29 09:08:42 -05:00
Daniel Agar
b9152dc4d0
boards: px4_fmu-v5x_default increase ETH pktsize to max and enable tcp delayed ack
2021-11-29 09:08:42 -05:00
Daniel Agar
bb562a6d10
mavlink: unify find_broadcast_address logic
...
- remove NuttX special handling
2021-11-29 09:08:42 -05:00
Daniel Agar
0459b73520
boards: px4_fmu-v5x enable mavlink ethernet by default
2021-11-29 09:08:42 -05:00
PX4 BuildBot
2870b5bbb1
Update submodule sitl_gazebo to latest Sat Nov 27 12:38:16 UTC 2021
...
- sitl_gazebo in PX4/Firmware (d0c931353b047cfe6340b11866c814aa0d43fd34): https://github.com/PX4/PX4-SITL_gazebo/commit/60d6844e17919e8d57aafb3a0c25064df920cfc3
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/ffb87ef4a312564cf91791bd5a9d683aacd085a6
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/60d6844e17919e8d57aafb3a0c25064df920cfc3...ffb87ef4a312564cf91791bd5a9d683aacd085a6
ffb87ef 2021-11-24 Thomas Stastny - sync baro and diff pres calculations in airspeed and baro plugins
a1d9dfa 2021-11-23 Bearixal - Windy World: Fixed Naming of Parameter according to wind_plugin.cpp and added missing ones. (#830 )
71d8a41 2021-11-17 Jaeyoung-Lim - Remove unused configs in windyworld
2021-11-27 11:14:32 -05:00
PX4 BuildBot
5440802aae
Update submodule libcanard to latest Sat Nov 27 12:38:19 UTC 2021
...
- libcanard in PX4/Firmware (748cbbe79a4f91f472207b8d12e1d01e486a82ab): https://github.com/UAVCAN/libcanard/commit/2a116170285fb47fcaae150ad21c2ccde0756a5f
- libcanard current upstream: https://github.com/UAVCAN/libcanard/commit/2d449453fc8c4060f276c6dc585d4e1e5bf4fd52
- Changes: https://github.com/UAVCAN/libcanard/compare/2a116170285fb47fcaae150ad21c2ccde0756a5f...2d449453fc8c4060f276c6dc585d4e1e5bf4fd52
2d44945 2021-09-18 Kalyan Sriram - Fix sonarcloud issues (#181 )
d64f82f 2021-09-13 Kalyan Sriram - WIP: Migrate to Github Actions (#174 )
2021-11-27 11:11:29 -05:00
David Sidrane
e507563911
uvify_core nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
23c73d4e0b
px4_fmu-v6x nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
51b55533af
px4_fmu-v6u nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
b8bdf7e1c4
px4_fmu-v5x nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
3504541ebd
px4_fmu-v5x base_phy_DP83848C:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
60229c28a8
px4_fmu-v5 uavcanv1:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
01681d6b47
px4_fmu-v5 stackcheck:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
32c2160137
px4_fmu-v5 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
cf36435ed3
px4_fmu-v5 debug:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
a6bc41ef75
px4_fmu-v5 cryptotest:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
0951b9b1e7
px4_fmu-v4pro nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
e957ebac56
px4_fmu-v4 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
c3ae713ec1
px4_fmu-v3 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
394b431364
px4_fmu-v2 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
bddee78412
nxp_fmurt1062-v1 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
fa3027537c
nxp_fmuk66-v3 socketcan:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
38f017b12f
nxp_fmuk66-v3 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
3b6a5dbac3
nxp_fmuk66-e socketcan:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
661512cefe
nxp_fmuk66-e nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
afeb0db666
mro_x21 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
8294b9431a
mro_x21-777 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
55dceae672
mro_pixracerpro nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
861145fcdc
mro_ctrl-zero-h7 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
4f4ada90b1
mro_ctrl-zero-h7-oem nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
1999003cf4
mro_ctrl-zero-f7 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
1179603437
mro_ctrl-zero-f7-oem nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
5fd321ec43
modalai_fc-v2 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
9a9eb35ea8
modalai_fc-v1 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
b7c3d560d3
holybro_pix32v5 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
0bc377ecd3
holybro_kakutef7 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
ddc73b4647
holybro_durandal-v1 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
6921b04600
holybro_can-gps-v1 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
84175eacff
freefly_can-rtk-gps nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
ed473a5ebe
cubepilot_cubeyellow nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
c82e0e0531
cubepilot_cubeorange test:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
6e1500a7de
cubepilot_cubeorange nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
8172a561ca
cuav_x7pro nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
947162f998
cuav_nora nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
63bedd8e4a
cuav_can-gps-v1 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
d30431527c
atl_mantis-edu nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
f59a517be2
ark_can-rtk-gps nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
a3832d3981
ark_can-gps nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
c06e6ffaf7
ark_can-flow nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
8ae0c9aadd
airmind_mindpx-v2 nsh:Remove CONFIG_RAMTRON_WRITEWAIT
2021-11-26 19:27:29 -05:00
David Sidrane
7393a68e28
NuttX with ramtron and BCH backports
2021-11-26 19:27:29 -05:00
Julian Oes
7ddf43b443
mavlink_ftp: fix tests on Nuttx
...
On Nuttx we have an additional check whether the directory is accessible
to check if we are trying to write to storage that is not on the SD
card. This returns the FileProtected error whereas on Linux this just
ends up being a FileNotFound.
The ifdefs around this issue are not pretty but the alternatives of
either removing the tests for /bogus folders, or removing the additional
check on the NuttX side don't seem better either.
2021-11-26 15:50:28 -05:00
Julian Oes
7c90b06628
mavlink_ftp: fix tests after implementation fix
...
In commit 462b572172 the reading operation
on the PX4 side was changed to only read as many bytes as requested
rather than however many fit in the payload data.
This caused the unit tests to fail which this commit here aims to fix.
What is confusing about MAVLink FTP is that there is a size field which
generally signals how many bytes of the payload data are used/set.
However, in the case of a read requst, the size field is used to
indicate how many bytes should be read. The payload data is empty in
that case though.
This case was, from how I understand it, not implemented/tested in the
unit tests and now failed. In order to implement it I had to change a
few things:
- Change _setup_ftp_msg and _send_receive_msg so that the params contain
a data length rather than the size field. The size field itself needs
to be set outside of these methods using payload->size.
- Since we test files smaller, equal, and bigger than one payload data
length, I implemented that we send multiple read requests until we
have the whole file and not just the first part.
- Additionally, I saw a lot of uninitialized warnings in valgrind, and
got rid of them by adding a few zero initializations.
2021-11-26 15:50:28 -05:00
Silvan Fuhrer
42845d6c6e
SITL configs VTOL/plane: improve SITL tuning a bit
...
remvoe some tecs params from configs that acutally lead to worse performance than defaults
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-26 09:24:23 -05:00
Silvan Fuhrer
3a9eef658c
Commander: remove preflight check for transition switch
...
This check enforced setting a VTOL transition switch if an RC as used on a VTOL.
It comes from a time when the only way to transtion was through the RC switch,
whereas now we have also a mavlink message in place for it, so enforcing it is
no longer needed.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-26 11:37:40 +01:00
Daniel Agar
fc1aaa58b2
sensors/vehicle_angular_velocity: fallback sensor selection improvements
...
- avoid unnecessary filter reset on parameter update
- additional minor optimizations (precomputing dt inverse, etc)
- moving filter reset check and dynamic notch filter update checks out of the update loops
- this were necessary previously when the scale factor wasn't applied prior to filtering the otherwise raw data
2021-11-25 22:44:05 -05:00
PX4 BuildBot
2dffb04d61
Update submodule libevents to latest Fri Nov 26 00:39:17 UTC 2021
...
- libevents in PX4/Firmware (239f1c4eadc57f12b43b57d704bb80bc07a07841): https://github.com/mavlink/libevents/commit/5fd19be22dcbeaccb8afeba146f3a7c931a9b5fb
- libevents current upstream: https://github.com/mavlink/libevents/commit/6329c909a7b16bb6f97c94cbb598815635b94982
- Changes: https://github.com/mavlink/libevents/compare/5fd19be22dcbeaccb8afeba146f3a7c931a9b5fb...6329c909a7b16bb6f97c94cbb598815635b94982
6329c90 2021-11-16 Beat Küng - python: pylint fixes
6251f65 2021-11-16 Beat Küng - events_generated.h.jinja: add '_max' field to generated enums
2021-11-25 21:37:59 -05:00
PX4 BuildBot
ffc52cc2fc
Update submodule mavlink to latest Fri Nov 26 00:39:19 UTC 2021
...
- mavlink in PX4/Firmware (2328402f99b8f8931e4148d033e0b9361407d485): https://github.com/mavlink/mavlink/commit/5309ba449a3dc6d7ad84fa7ebeb6deee040e4a04
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/28163a3b39ae6787e7f1fae9e23feef32506a1c4
- Changes: https://github.com/mavlink/mavlink/compare/5309ba449a3dc6d7ad84fa7ebeb6deee040e4a04...28163a3b39ae6787e7f1fae9e23feef32506a1c4
28163a3b 2021-11-25 Julian Oes - dev: add new message for component capability (#1724 )
5534f76b 2021-11-24 olliw42 - adding some missing MAV_TYPEs (#1679 )
2021-11-25 21:37:14 -05:00
Daniel Agar
51da169ccb
cmake: nuttx apps build depend .c and .h files
2021-11-25 17:24:23 -05:00
Daniel Agar
bf3f7da0a2
Jenkins: hardware restore tests file
2021-11-25 13:11:45 -05:00
Daniel Agar
7d985ec7c5
NuttX with Backports for SD fixes
2021-11-25 13:11:45 -05:00
Daniel Agar
c049c26ac5
ROMFS: rcS attempt to format SD if .format file exists
2021-11-25 13:11:45 -05:00
Daniel Agar
585fa12209
Jenkins HIL improve SD testing
2021-11-25 13:11:45 -05:00
David Sidrane
58a9bf0b2e
sd_bench:Add verify and keep options
2021-11-25 13:11:45 -05:00
Thomas Stastny
8defbc8829
update correct airsp scale param string in ekf2
2021-11-25 11:01:04 -05:00
Matthias Grob
c5fb68b7a1
Commander: force disabling the arm stick gesture when arm switch is in use
2021-11-25 07:56:35 +01:00
David Sidrane
e76dda545c
hardfault_log:Fix formatting
2021-11-24 15:00:38 -05:00
Sander Swart
462b572172
Fixed mavlink_ftp read
...
Instead of always reading the max data length, it now properly respects the requested amount of bytes (as per documentation)
2021-11-24 17:51:29 +01:00
David Sidrane
8e3ee9f6cd
omnibus_f4sd:Fit in Flash added No Help
2021-11-24 09:46:23 -05:00
David Sidrane
b1b948f4bc
modalai_fc-v2:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
6327953fe9
modalai_fc-v1:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
83885b0304
cuav_x7pro:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
48b617ee5e
cuav_nora:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
2fb615d7e2
holybro_kakutef7:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
04df95436d
holybro_pix32v5:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
c4ccde51df
holybro_durandal-v1:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
daa1d76909
spracing_h7extreme:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
1922310404
matek_h743-slim:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
5b30d1cd41
av_x-v1:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
d30ef0cac8
atl_mantis-edu:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
511e87f966
mro_ctrl-zero-f7-oem:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
2799a7f436
mro_x21-777:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
5ff96fc77e
mro_ctrl-zero-h7-oem:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
a097cb11cd
mro_pixracerpro:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
0d203deb34
mro_ctrl-zero-f7:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
376e78b801
mro_ctrl-zero-h7:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
bbe0ed8646
cubepilot_cubeyellow:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
e34aacd520
cubepilot_cubeorange:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
228a0ac5ed
px4_fmu-v6u:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
3f67ece322
px4_fmu-v5:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
53b579a79d
px4_fmu-v5x:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
c391d6793c
px4_fmu-v6x:Set CONFIG_MKFATFS_BUFFER_ALIGMENT=32
2021-11-24 09:46:23 -05:00
David Sidrane
3cf901b29c
NuttX Apps with backport CONFIG_MKFATFS_BUFFER_ALIGMENT
2021-11-24 09:46:23 -05:00
Matthias Grob
ea3b99e964
navigator: Remove deprecated RangeRTL unit tests
2021-11-24 14:10:24 +01:00
Matthias Grob
c522a8b15a
Compute RTL time and react if lower than flight time
...
- Compute RTL time also during RTL
- Calculate correct altitude when finding destination
2021-11-24 14:10:24 +01:00
Matthias Grob
5489005e0b
Commander: call battery_status_check on update instead of early return
2021-11-24 14:10:24 +01:00
Beat Küng
5bec3004c3
omnibus/f4sd: disable RGBLED to reduce flash
2021-11-24 11:41:33 +01:00
Jukka Laitinen
5dbbddb13f
EKF2: Use _distance_sensor_subs vector directly
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-24 09:11:45 +01:00
Jukka Laitinen
b66270f8a8
Inline uORBDeviceNode::copy for performance improvement
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-24 09:11:45 +01:00
Jukka Laitinen
3f884c5d24
Inline deviceNodeExists and getDeviceNode in uORB DeviceMaster
...
This gives a small performance improvement
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-24 09:11:45 +01:00
Jukka Laitinen
d9498ade32
EKF2: Allocate distance sensor subscriptions as member variables
...
Just create the subscriptions and keep them, instead of
re-creating them continuously
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-24 09:11:45 +01:00
Jukka Laitinen
bb307cd462
Fix comparing orb_metadata in uORB::DeviceNode::publish
...
Don't compare pointers to metadata, but the metadata contents.
In protected/kernel build there are two sets of metadata, on on kernel
side and another in user side. Thus the comparison of pointers would just
always fail. Compare orb_id instead
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-24 09:11:45 +01:00
Jukka Laitinen
0b9505453d
Clean up interfaces towards uORB
...
Proxy all calls to the DeviceNode through Manager;
- This hides the DeviceNode from publishers and subscribers
- Manager can be made an interface class between user and kernel spaces in protected build
- This doesn't increase code size or harm the performance on flat build
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-24 09:11:45 +01:00
Beat Küng
99d3b2a4e4
omnibus/f4sd: disable modules to reduce flash
2021-11-23 12:40:22 -05:00
Beat Küng
db2a1e5fee
px4/fmu-v2: disable modules to reduce flash
2021-11-23 12:40:22 -05:00
Beat Küng
950767f1af
holybro/kakutefy: disable modules to reduce flash
2021-11-23 12:40:22 -05:00
Beat Küng
4c03def6e9
boards: add CONTROL_ALLOCATOR + ACTUATOR_TEST
2021-11-23 12:40:22 -05:00
Beat Küng
312d84ca23
metadata: run json schema validation for actuators + parameter metadata
2021-11-23 12:40:22 -05:00
Beat Küng
2809dd8944
control_allocator: remove min/max/scale params
2021-11-23 12:40:22 -05:00
Beat Küng
b29d9db7f1
control_allocator: limit status publication rate to 200Hz
...
Reduces CPU load by ~3.5% on F4 @2khz.
And compute getAllocatedControl as needed (~1.5% CPU reduction)
2021-11-23 12:40:22 -05:00
Beat Küng
93a54ee63d
metadata: fix generic param metadata generation
...
Adds the module.yaml params that was previously split into a separate file.
2021-11-23 12:40:22 -05:00
Beat Küng
bcba3dfe52
control_allocator,angular_velocity_controller: run on rate_ctrl wq
2021-11-23 12:40:22 -05:00
Beat Küng
a0e43bca96
msg: remove unused vehicle_actuator_setpoint topic
2021-11-23 12:40:22 -05:00
Beat Küng
52a2ef34fd
mixer_module: add THR_MDL_FAC for SYS_CTRL_ALLOC=1
2021-11-23 12:40:22 -05:00
Beat Küng
357a16aca6
pwm_out_sim: split module.yaml into HIL+SIM files
2021-11-23 12:40:22 -05:00
Beat Küng
b94c5db55d
component_information: add actuators json generation & CI deployment
2021-11-23 12:40:22 -05:00
Beat Küng
70b1b19902
uavcan: add configuration parameter to actuator metadata
2021-11-23 12:40:22 -05:00
Beat Küng
19b89e1d35
output_functions: add notes to camera trigger + capture & exclude from testing
2021-11-23 12:40:22 -05:00
Beat Küng
4346ac4a37
control_allocator: add mixer metadata
2021-11-23 12:40:22 -05:00
Beat Küng
282d35bbf0
esc_calibration: handle SYS_CTRL_ALLOC==1
2021-11-23 12:40:22 -05:00
Beat Küng
490a2cd7ae
dshot: handle VEHICLE_CMD_CONFIGURE_ACTUATOR
2021-11-23 12:40:22 -05:00
Beat Küng
21699935e8
vehicle_command: add VEHICLE_CMD_ACTUATOR_TEST and VEHICLE_CMD_CONFIGURE_ACTUATOR
2021-11-23 12:40:22 -05:00
Beat Küng
6fdcc43ea8
mixer_module: add testing for SYS_CTRL_ALLOC=1 with actuator_test cmd+uorb msg
2021-11-23 12:40:22 -05:00
Beat Küng
36296794c8
module config: add generate_actuators_metadata.py script
2021-11-23 12:40:22 -05:00
Beat Küng
36d9635518
output_functions.yaml: allow single-instance entry with 'start' but no 'count'
...
for other additional data
2021-11-23 12:40:22 -05:00
Beat Küng
5d6e785a4b
mixer_module: remove unneeded test_motor_s force init
2021-11-23 12:40:22 -05:00
Beat Küng
f99c2617ad
control_allocator: add module.yaml, add CA_MC_R_COUNT param & update defaults
2021-11-23 12:40:22 -05:00
Beat Küng
dbc889a2ae
rc.mc_apps: remove 'param set MPC_USE_HTE 0' for control allocation
...
this is working now
2021-11-23 12:40:22 -05:00
Beat Küng
2ff6baa250
actuator params: use module_name as prefix to channel label
2021-11-23 12:40:22 -05:00
Beat Küng
6537f480b1
module.yaml: make long param description optional
...
Some params are very simple and don't need more.
2021-11-23 12:40:22 -05:00
Daniel Agar
1b7f4b6003
Jenkins HIL test loading all airframes
2021-11-23 12:38:41 -05:00
Matthias Grob
0153c870d2
Commander: make sure yaw airmode is not possible while arm gesture is enabled
...
It's unsafe to arm with the gesture when yaw airmode is enabled
because e.g. in Stabilized mode that results in a high yawrate setpoint
that the drone tries to follow even with zero thrust
because of the airmode.
It was handled before by checking the arm switch parameter because that
used to disable the stick arm gesture.
See 24dc316973
2021-11-23 16:03:46 +01:00
Matthias Grob
572890f8c0
ManualControl: add parameter to disable arm/disarm stick gesture
2021-11-23 16:03:46 +01:00
Matthias Grob
468022abba
ManualControl: correct arm hysteresis parameter name
2021-11-23 16:03:46 +01:00
Matthias Grob
c84b1c6566
ManualControl: ignore unassigned mode slots
...
They were resulting in a message
"Switching to Unkown is currently not available".
2021-11-23 16:03:46 +01:00
Jaeyoung-Lim
af7fa63480
Remove kconfig-frontends installation from setup.sh
2021-11-23 15:17:00 +01:00
Silvan Fuhrer
e596607e2e
minor comments update
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-23 14:48:51 +01:00
Daniel Agar
7ff72304b4
sensors/vehicle_imu: improve disabled sensor handling
...
- remove regular callback scheduling when sensor is disabled, register if re-enabled
2021-11-22 21:10:35 -05:00
Daniel Agar
3140bf167c
NuttX submodule update with work_usrthread.c fixes
2021-11-22 17:41:49 -05:00
Daniel Agar
1c6b1f7554
pwm_out: parameter failure error messages
2021-11-22 11:27:45 -05:00
Daniel Agar
c95dbfd7ac
boards: px4_fmu-v5_debug disable debug fs errors
2021-11-22 11:27:45 -05:00
Daniel Agar
c2cbf74351
vscode: cmake variants add px4_fmu-v5_debug for convenient debugging
2021-11-22 11:27:45 -05:00
Daniel Agar
577d926639
commander: improve angular velocity validity and message
2021-11-22 11:27:45 -05:00
Daniel Agar
f058cbd0e0
boards: px4_fmu-v5_debug disable CONFIG_DEBUG_I2C
2021-11-22 11:27:45 -05:00
Daniel Agar
25846f48c4
boards: px4_fmu-v2/v3 use SPI bus power off rather than full reset
2021-11-22 11:27:45 -05:00
Daniel Agar
c4de9f67a1
Jenkins: HIL add simple reboot script that fails on any ERROR
2021-11-22 11:27:45 -05:00
PX4 BuildBot
643002bd86
Update submodule sitl_gazebo to latest Mon Nov 22 12:39:01 UTC 2021
...
- sitl_gazebo in PX4/Firmware (c73028bb1b ): https://github.com/PX4/PX4-SITL_gazebo/commit/607aa4d990ff20b4f8a3a714043d116cf191f8b6
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/60d6844e17919e8d57aafb3a0c25064df920cfc3
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/607aa4d990ff20b4f8a3a714043d116cf191f8b6...60d6844e17919e8d57aafb3a0c25064df920cfc3
60d6844 2021-11-16 wangwwno1 - Format: Remove extra spaces
e233c6d 2021-11-16 wangwwno1 - Enhance: fuse accel rotation
e8a7f89 2021-11-16 wangwwno1 - Fix: convert accel frame to local NED
2021-11-22 09:12:23 -05:00
PX4 BuildBot
88d9ade4d7
Update submodule mavlink to latest Mon Nov 22 12:39:21 UTC 2021
...
- mavlink in PX4/Firmware (0e4e8162407a12dc09c8d17635c60d4036b81bc7): https://github.com/mavlink/mavlink/commit/c3a4b52eb1ac6e8053d64a6a8b6ade887d4fa2d2
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/5309ba449a3dc6d7ad84fa7ebeb6deee040e4a04
- Changes: https://github.com/mavlink/mavlink/compare/c3a4b52eb1ac6e8053d64a6a8b6ade887d4fa2d2...5309ba449a3dc6d7ad84fa7ebeb6deee040e4a04
5309ba44 2021-11-18 Hamish Willee - Remove backticks - these do not render as a style so not helpful (#1745 )
9cac0e5a 2021-11-17 David Jablonski - docs: catch more hyperlinks (#1744 )
ea9349b5 2021-11-16 David Jablonski - common: add SET_FOCUS_TYPE_AUTO (#1741 )
2021-11-22 09:08:50 -05:00
Daniel Agar
8fc3b05491
mavlink: param_get proper type to silence errors
2021-11-22 09:08:38 -05:00
Daniel Agar
cbb743c64d
parameters: param type checking use PX4_ERR and enable in PX4_SITL
2021-11-22 09:08:25 -05:00
Beat Küng
7faaad79d0
generate_params.py: add PWM_AUX_* for boards w/o IO and >8 channels
2021-11-22 09:07:23 -05:00
Igor Mišić
c73028bb1b
iridiumsbd: discard all pending data for flow control enabled
2021-11-22 11:46:15 +01:00
Daniel Agar
7653bd1757
cmake fix NuttX config import for 0 values
2021-11-21 12:33:29 -05:00
wangwwno1
7a1a4ea7a6
Format fix & Remove redundant lines
2021-11-20 16:13:46 +01:00
wangwwno1
51ce8306ee
Remove redundant code out of hil_lpos
2021-11-20 16:13:46 +01:00
wangwwno1
b2c5919d29
Update src/modules/simulator/simulator_mavlink.cpp
...
Co-authored-by: JaeyoungLim <jalim@ethz.ch >
2021-11-20 16:13:46 +01:00
wangwwno1
160fec5f25
Update simulator_mavlink.cpp
2021-11-20 16:13:46 +01:00
wangwwno1
6e2060ddb6
Add accel to vehicle_local_position_groundtruth
...
Related Issue: #18527
According to [this doc](https://github.com/mavlink/c_library_v2/blob/92b1a43468e8737da2d4cc1e72304e6443dcfdd3/common/mavlink_msg_hil_state_quaternion.h#L102 ), the *acc value are mili-Gee, so multiply the value with `CONSTANT_ONE_G/1000.0f` would get the acceleration in `m/s`.
2021-11-20 16:13:46 +01:00
Daniel Agar
505f963dd0
mavlink: receiver fix SENS_FLOW_ROT type
2021-11-19 21:08:04 -05:00
Max Elfgen
7f5fa3d1f7
Using RTPS as a label resulted in the PX4 instance crashing. Removing the label fixed the problem.
2021-11-19 20:30:46 +01:00
Matthias Grob
f912ee2c8b
Commander: send out parachute MAVLink command when kill switch engaged
2021-11-19 17:15:04 +01:00
Matthias Grob
3193b554ca
Add optional preflight check for healthy MAVLink parachute system
2021-11-19 17:15:04 +01:00
Matthias Grob
43c529f294
Add MAVLink parachute system heartbeat detection
2021-11-19 17:15:04 +01:00
Thomas Debrunner
fb54324f56
gyro-fft: Disable asm-operand-widths warning on apple silicon. The warning is caused by unused functions only. As with compiling for x86, the functions containing assembly never get used, but since the apple silicon is also an ARM target, they trigger a warning.
2021-11-19 09:14:11 -05:00
Daniel Agar
24090b724c
cmake: px4_add_module improve unity build dependencies to avoid unnecessary work
2021-11-19 09:13:07 -05:00
Matthias Grob
4c6621f6cf
Commander: Allow arming a rover with the throttle stick in the middle
2021-11-19 10:10:32 +01:00
Jani Paalijarvi
02336acd61
Improve SPI bus implementation
...
Make possible to define chip-select pin for internal SPI.
By defining chip-select pin, it's possible to start specific SPI device only.
This allows to have several same type of sensors on the same bus with different orientation.
2021-11-19 07:47:18 +01:00
Matthias Grob
35d4986ea7
FlightTasks: remove updateFinalize() concept because it got obsolete
2021-11-18 19:12:44 -05:00
Matthias Grob
9eac0edbc0
FlightTaskAuto: remove generateSetpoints function, replace by implementation
2021-11-18 19:12:44 -05:00
Matthias Grob
ece8fdddec
FlightTaskAuto: simplify early setpoint preparation based on triplet type
2021-11-18 19:12:44 -05:00
dagar
9646b49b60
[AUTO COMMIT] update change indication
2021-11-18 13:58:53 -05:00
Daniel Agar
bffd88ad81
ekf2: don't inhibit accel bias when not in air
2021-11-18 13:58:53 -05:00
Daniel Agar
f3472385da
sensors/vehicle_imu: fix accel/gyro learned bias calibration updates
...
- fix confusion between estimated bias and calibration offset when
saving after each flight
- when the stable bias estiamte is retrieved during flight it's
immediately converted to a sensor offset and saved
- fixes https://github.com/PX4/PX4-Autopilot/issues/18658
2021-11-18 10:00:26 -05:00
bresch
fc155bc57e
Ekf2Selector: declare filter unhealthy when high test ratio
...
Request a switch to another instance when the combined test ratio is too high.
2021-11-18 13:29:01 +01:00
bresch
43fb076828
AngularAcceleration: explicitly disable filter when cutoff <= 0
2021-11-18 09:25:47 +01:00
bresch
4a14a8bc7f
AutoLineSV: Always publish a valid yaw setpoint
...
In MPC_YAW_MODE 3 (along trajectory), the flight task is asked to
produce a yaw setpoint. If the previous yaw value was NAN (e.g.: during
early takeoff), the setpoint should then be reset to the current
estimate.
2021-11-16 18:09:37 -05:00
bresch
f751dd2242
FlightTask: set yaw_setpoint to NAN when yaw should not be controlled
2021-11-16 18:09:37 -05:00
bresch
2213343240
ft altitude: use longerThan to save a sqrt operation
2021-11-16 18:09:37 -05:00
bresch
394fa953b8
EKF: get status on yaw alignement in flight
...
1s after the in air mag reset is performed, the final yaw alignment is
complete and the yaw estimate can be used for yaw control.
2021-11-16 18:09:37 -05:00
Matthias Grob
2a5751233a
FlightTasks: remove unused StraightLine library
...
It was meant as an example for an easy to use interface of a
motion primitive with a minimal implementation. But the implementation
is much worse than the jerk optimized trajectory. We rather
work on making it easier to use. #18390 was a first step towards that.
2021-11-16 18:08:27 -05:00
Daniel Agar
e062f4fcf0
mavlink: ORBIT_EXECUTION_STATUS stream limit to 2 instances
2021-11-16 17:10:13 -05:00
Alessandro Simovic
7090e634cc
mission_block: always accept yaw in MC takeoff
2021-11-16 12:35:16 -05:00
Beat Küng
0622cb8857
mavlink_ftp: disallow writes outside of /fs/microsd under NuttX
...
As these files are kept in RAM, it could just fill up the RAM.
2021-11-16 12:34:16 -05:00
Daniel Agar
4e8c234a55
ekf2: only save mag declination if changed
2021-11-16 12:33:48 -05:00
Daniel Agar
96bf3aa5d0
matrix: apply PX4 astyle
2021-11-16 12:30:51 -05:00
Daniel Agar
ab07f5300b
lib/matrix: delete unused and add testing to PX4
2021-11-16 12:27:14 -05:00
Daniel Agar
4a3d64f1d7
consume PX4/Matrix repository and preserve history
2021-11-16 12:24:19 -05:00
Daniel Agar
38516f7e9c
delete matrix submodule
2021-11-16 12:20:57 -05:00
Matthias Grob
b36dbf8de4
Remove AutoLineSmoothVel, merged into Auto
2021-11-16 10:08:47 +01:00
Matthias Grob
179b1cdf56
FlightTaskAuto: merge activate(), reActivate() and update() from FlightTaskAutoLineSmoothVel
2021-11-16 10:08:47 +01:00
Matthias Grob
51ebb0f294
FlightTaskAuto: move in helper methods from FlightTaskAutoLineSmoothVel
2021-11-16 10:08:47 +01:00
Matthias Grob
aa376c5824
FlightTaskAuto: move in parameters from FlightTaskAutoLineSmoothVel
2021-11-16 10:08:47 +01:00
Matthias Grob
50e13f132f
FlightTaskAuto: move in members from FlightTaskAutoLineSmoothVel
2021-11-16 10:08:47 +01:00
Matthias Grob
33e349d71e
FlightTask: remove unused _time
2021-11-16 10:08:47 +01:00
PX4 BuildBot
4a66c8c4c4
Update submodule sitl_gazebo to latest Tue Nov 16 00:39:15 UTC 2021
...
- sitl_gazebo in PX4/Firmware (f5d9b01f5c ): https://github.com/PX4/PX4-SITL_gazebo/commit/1c8c9197103e746a21f2d2d2c844dd2f7e2b036b
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/607aa4d990ff20b4f8a3a714043d116cf191f8b6
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/1c8c9197103e746a21f2d2d2c844dd2f7e2b036b...607aa4d990ff20b4f8a3a714043d116cf191f8b6
607aa4d 2021-11-15 Alexander Funke - Wind Plugin: Fixed typo in windGustVelocityMean. Closes #825 , fixes #812 Fixed the typo in windGustVeloctiyMean to windGustVelocityMean, so that the parameter in the world file can be correctly read and the mean gust velocity properly set to the parameter's value.
2021-11-15 23:13:43 -05:00
PX4 BuildBot
bfcd251a54
Update submodule mavlink to latest Tue Nov 16 00:39:28 UTC 2021
...
- mavlink in PX4/Firmware (2615146a0770ea416aa24dce70bd61845e45b939): https://github.com/mavlink/mavlink/commit/0a728aa8dcea5023b26d0df9f25ba5b2a14a71cd
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/c3a4b52eb1ac6e8053d64a6a8b6ade887d4fa2d2
- Changes: https://github.com/mavlink/mavlink/compare/0a728aa8dcea5023b26d0df9f25ba5b2a14a71cd...c3a4b52eb1ac6e8053d64a6a8b6ade887d4fa2d2
c3a4b52e 2021-11-14 olliw42 - use [value:] invalid attribute style (#1742 )
5f353d79 2021-11-15 Hamish Willee - fix invalid attribute for arrays where first element sets as invalid (#1740 )
b354af1c 2021-11-11 Beat Küng - add actuator test and configuration commands (#1738 )
a8401492 2021-11-11 Beat Küng - Component information: add actuators (#1729 )
2021-11-15 23:13:02 -05:00
Daniel Agar
f5d9b01f5c
NuttX build in place
...
- cmake NuttX build wrapper compile in place instead of copying source tree to build directory
- slightly faster skipping necessary copying (depending on system)
- allows debugging in place
- easier to work directly in NuttX following official documentation
- simplifies overall build which should make it easier to resolve any remaining NuttX dependency issues in the build system
- the downside is switching back and forth between different builds always require rebuilding NuttX, but I think this is worth the improved developer experience
- also no longer builds px4io and bootloader in every single build, for most users these rarely change and we're wasting a lot of build time
2021-11-15 18:47:38 -05:00
Daniel Agar
7b7b7acd36
i2c_spi_buses: respect CONFIG_I2C and CONFIG_SPI
...
- bmp280, dps310, and ms5611 barometers support boards without I2C
2021-11-15 15:57:33 -05:00
Daniel Agar
eade2915c1
cleanup old parameter translation
2021-11-15 10:01:22 -05:00
Matthias Grob
91c48606ee
battery_status: clearly define and handle zero remaining flight time
2021-11-15 15:44:02 +01:00
Matthias Grob
73287e8e8c
battery: compute remaining flight time
2021-11-15 15:44:02 +01:00
Matthias Grob
54f2e91775
battery_status: report remaining flight time in seconds
...
This allows more accurate reporting and is compliant with the
MAVLink interface.
2021-11-15 15:44:02 +01:00
Beat Küng
4ba84d56c9
logger: introduce optional topics
...
The current practice of adding topics to the default set isn't scalable,
as it affects all setups.
By making sure topics are advertised on init, logger can just discard
topics that don't exist. This does not work for all topics, so topics are
specifically marked as optional. It can be extended to more topics later
on though.
This reduces the list of topics by ~35 on a pixracer configured as quad,
and reduces RAM usage by ~1KB.
2021-11-15 09:02:03 -05:00
Daniel Agar
177fe4bade
logger: log write file allow single retry on write failure
2021-11-13 20:32:29 +01:00
alexklimaj
333629ce37
Update Broadcom AFBR to v1.3.5 API
2021-11-13 12:05:08 -05:00
RomanBapst
439400f76e
commander: don't ack gimbal commands
...
- this leads to an unnecessary amount of acks which can in turn overflow
the orb queue
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-11-13 11:59:28 -05:00
Daniel Agar
3cb286abc8
gyro_calibration: reset on any sensor timeout
2021-11-13 10:15:25 -05:00
Daniel Agar
29b9e46664
mavlink_tests: add correct mavlink_c_generate dependency
2021-11-12 13:43:32 -05:00
kevindsp
17ad7071c3
fix the quaternion normalization issue
...
Be course of the numerical computing error . The normalization of the quaternion can't always equal to 1 precisely. It could occasionally trigger the error"attitude estimate no longer valid". So enlarge the threshold to 1e-6f. That keeps it silence.
2021-11-12 16:31:40 +01:00
Daniel Agar
6a60fba96d
boards: holybro_kakutef7_default remove systemcmds/ver to save flash
2021-11-11 11:17:15 -05:00
Daniel Agar
0ec3f0d2cb
mathlib: LowPassFilter2p update cutoff freq min to match NotchFilter
...
- numerically the cutoff frequency not being smaller than 1% of the
sample frequency is probably a better choice, but we're mostly filtering
16 bit data now stored in 32 bit float
2021-11-11 11:17:15 -05:00
Daniel Agar
0d171384b3
update IMU_GYRO_DNF_BW default 8->15 Hz
...
- dshot telemetry feedback can be quite slow (~2 Hz), so I think a
larger default value here makes sense
2021-11-11 11:17:15 -05:00
Daniel Agar
452f15e985
IMU_GYRO_DNF_EN remove from developer category
2021-11-11 11:17:15 -05:00
Daniel Agar
0e2ecdc59a
sensors/vehicle_angular_velocity: perf counter naming consistentcy
2021-11-11 11:17:15 -05:00
Daniel Agar
c60a9e2981
sensors/vehicle_angular_velocity: avoid unnecessary ESC notch filter resets
2021-11-11 11:17:15 -05:00
Daniel Agar
78436e706c
mathlib: NotchFilter add optimized parameter update if only notch frequency changes
2021-11-11 11:17:15 -05:00
Daniel Agar
edce30c6de
sensors/vehicle_angular_velocity: fix ESC RPM notch filter update
2021-11-11 11:17:15 -05:00
Daniel Agar
376b72fb2f
sensors/vehicle_angular_velocity: add new parameter for ESC RPM notch filter BW
2021-11-11 11:17:15 -05:00
Viktor Vladic
02709fcfab
Fixes for MPU6000 and MatekH743-slim board
...
- MPU6000: Added 10us delay for R/W of slow registers
- Board: Fixed DRDY pin from PB1 to PB2
2021-11-11 08:40:41 -05:00
Beat Küng
fdf8461452
ver: print PX4_BOARD_LABEL for 'ver all'
2021-11-11 08:38:42 -05:00
Matthias Grob
dbacdedad1
Remove FlightTaskAutoMapper, merged into AutoLineSmoothVel
2021-11-11 09:14:49 +01:00
Matthias Grob
a94c61b896
FlightTaskAutoMapper: move parameters into FlightTaskAutoLineSmooth
2021-11-11 09:14:49 +01:00
Matthias Grob
59a395f6a0
FlightTaskAutoMapper: move remaining members into FlightTaskAutoLineSmooth
2021-11-11 09:14:49 +01:00
Matthias Grob
f5183348a6
FlightTaskAutoMapper: move remaining methods into FlightTaskAutoLineSmooth
2021-11-11 09:14:49 +01:00
Matthias Grob
0211ef3ba1
FlightTaskAutoMapper: move update() into FlightTaskAutoLineSmooth
2021-11-11 09:14:49 +01:00
Matthias Grob
1cef2ad196
FlightTaskAutoMapper: merge activate() into FlightTaskAutoLineSmooth
2021-11-11 09:14:49 +01:00
wsolichin
e9d50b853a
Adding MAVLink message stream of GPS_RTCM_DATA
2021-11-10 21:15:01 -05:00
David Lechner
d61f5d3d7b
mavlink: fix forwarding to target id >= 128
...
The _MAV_PAYLOAD macro casts the value to a char*. Some compilers treat
char as signed, so we were getting negative system and component ids
if the id was >= 128. This caused later comparisons to fail which
resulted in messages not being forwarded.
2021-11-10 21:14:21 -05:00
Daniel Agar
374d44f38f
mavlink: tests add git_mavlink_v2 dependency to avoid build race
2021-11-10 14:06:40 -05:00
PX4 BuildBot
e0a9ceb2cb
Update submodule mavlink to latest Wed Nov 10 12:39:06 UTC 2021
...
- mavlink in PX4/Firmware (74a33bad350857b6a7dcfe2a6745e8283baa2ce4): https://github.com/mavlink/mavlink/commit/3718ee300bef7a8e7a25314e25e03c11d9f0b180
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/0a728aa8dcea5023b26d0df9f25ba5b2a14a71cd
- Changes: https://github.com/mavlink/mavlink/compare/3718ee300bef7a8e7a25314e25e03c11d9f0b180...0a728aa8dcea5023b26d0df9f25ba5b2a14a71cd
0a728aa8 2021-11-10 Julian Oes - common: request multiple CAMERA_IMAGE_CAPTURED (#1735 )
2021-11-10 14:00:28 -05:00
Daniel Agar
5e3701a365
Tools/check_submodules.sh: perform submodule sync again after first update to reach nested submodules
2021-11-10 13:52:51 -05:00
Jukka Laitinen
be1023f5e9
smbus_sbs: Define linker language for a header-only library
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-10 09:27:21 -05:00
Jukka Laitinen
d02a10b20f
Remove src/lib/drivers/accelerometer and gyroscope linking to drivers__device
...
These are pure uORB publishers, they don't link to drivers__device.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-10 09:26:36 -05:00
Matthias Grob
dd05cb3496
FlightTaskManualPosition: simplify optical flow limiting logic
2021-11-09 21:47:06 -05:00
Claudio Micheli
10e329ce9e
mc_pos_control: correct MPC_XY_CRUISE description
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-11-09 21:47:06 -05:00
Matthias Grob
7ec8dd9d23
vehicle_constraints: remove deprecated speed_xy constraint
2021-11-09 21:47:06 -05:00
Jukka Laitinen
356de6ccf1
Factor cdc_acm_init away from px4_init
...
In protected build, this needs to go to user-space initialization as it
calls apps (sercon) and launches mavlink.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-09 21:28:28 -05:00
Jukka Laitinen
39c0c68167
print_load: Remove reference to CONFIG_MAX_TASKS
...
This is already removed from nuttx, and in posix the size of s->last_times
can be just checked with sizeof()
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-09 21:25:10 -05:00
Jukka Laitinen
9299a5c3f6
hrt: Add interface functions for latency counters
...
Add interface functions for fetching latency buckets and counters and use
those in perf_counter.cpp. This cleans up the usage of perf counters, when variables defined in hrt_drv are not referenced directly from perf.
This also enables implementing kernel-userspace interface for those for
nuttx protected/kernel build.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-09 21:24:25 -05:00
Jukka Laitinen
da51177382
Don't link sensors module to drivers__device
...
sensors module only works on uORB, it doesn't link to drivers__device
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-11-09 12:18:49 -05:00
Matthias Grob
ab9b9b1eac
boards: Add manual_control module to newly added boards
2021-11-09 16:36:42 +01:00
bresch
d47f9f155a
MC mixer: replace multirotor_motor_limits by control_allocator_status
...
CA: fix saturation computation
Since the CA matrix is normalized, the same scale applied to be used when using the effectiveness matrix
MCRateControl: use control_allocator_status to get saturation info
2021-11-09 10:35:10 -05:00
Jaeyoung-Lim
dd83ef1813
Fix fw position controller takeoff
...
This was introduced by a rebase
2021-11-09 10:30:28 -05:00
Matthias Grob
00905973c7
boards/kakutef7: remove dmesg to save flash
2021-11-09 16:05:25 +01:00
Matthias Grob
4aa0756d08
ManualControlSelector: correct parameter for any source according to documentation
2021-11-09 16:05:25 +01:00
Matthias Grob
fabf865411
Use backwards compatible manual_control_setpoint instead of manual_control_input
2021-11-09 16:05:25 +01:00
Matthias Grob
423aadcc4f
ManualControl: fix RC override
2021-11-09 16:05:25 +01:00
Matthias Grob
7e4a079e09
Commander: report when RC selected mode is not available
2021-11-09 16:05:25 +01:00
Matthias Grob
a593a51f05
Commander: fix mode initialization with RC
2021-11-09 16:05:25 +01:00
Matthias Grob
9f17f3b0f3
ManualControl: correct source for RC mode switches without mode slot
2021-11-09 16:05:25 +01:00
Matthias Grob
21739c6937
MulticopterRateControl: Add event for landing gear retraction when landed
2021-11-09 16:05:25 +01:00
Matthias Grob
2b29df06fd
ManualControl: avoid scheduling based on unchosen input
2021-11-09 16:05:25 +01:00
Matthias Grob
48869ed03e
ManualControl: Simplify check if switches updated
2021-11-09 16:05:25 +01:00
Matthias Grob
38ab7e6ab9
Commander: separate function for action request execution
2021-11-09 16:05:25 +01:00
Matthias Grob
820ba07d4b
Fix landing gear processing
2021-11-09 16:05:25 +01:00
Matthias Grob
0a02d8e774
Commander: handle denying disarm when not landed centrally
2021-11-09 16:05:25 +01:00
Matthias Grob
af54ac7cdb
ManualControl: remove unused variables and renaming
2021-11-09 16:05:25 +01:00
Matthias Grob
e73e6a490d
ManualControl: separate function for stick arming
2021-11-09 16:05:25 +01:00
Matthias Grob
a349dae760
Use action_request to command RC VTOL transitions
2021-11-09 16:05:25 +01:00
Matthias Grob
dcd26bd2b8
Commander: fix "Manual control lost" showing double in QGC
...
because of the missing tab in the deprecated message.
2021-11-09 16:05:25 +01:00
Matthias Grob
956997eb1e
Replace arm_request and mode_request with combined action_request
...
Which saves flash space, log size and is extensible to handle e.g.
the VTOL transition and future actions.
2021-11-09 16:05:25 +01:00
Matthias Grob
052e29267d
Use mode_request for RC mode switching
2021-11-09 16:05:25 +01:00
Matthias Grob
f8e4846851
Use arm_request for manual killing
2021-11-09 16:05:25 +01:00
Matthias Grob
af607e3040
Use separate arm_request instead of vehicle_command for RC arming
2021-11-09 16:05:25 +01:00
Matthias Grob
c4473bdab7
ManualControl: clean up arm/disarm gesture
2021-11-09 16:05:25 +01:00
Matthias Grob
48ed350b25
ManualControlSelector: simplification refactoring
...
- clang tidy did't like {bool} == true in a condition
- setpoint_from_input() got small enough ot just put in line
2021-11-09 16:05:25 +01:00
Matthias Grob
cc2ec09659
ManualControl: fix arm button logic during testing
...
The latching logic has to be different than for the arm switch
this difference got lost in the rewrite of the old obfuscated
arming trigger logic.
2021-11-09 16:05:25 +01:00
Matthias Grob
0901b73f50
ManualControlSelector: rename functions and validate chosen inputs all the time
2021-11-09 16:05:25 +01:00
Matthias Grob
28a29ad050
ManualControlSelector: revamp logic to switch when configuration is changed
2021-11-09 16:05:25 +01:00
Matthias Grob
05946ff0c6
mavlink_receiver: remove unused start_helper declaration
2021-11-09 16:05:25 +01:00
Matthias Grob
7a2ef4a917
Commander: don't publish RC_IN_MODE to vehicle_status
...
This just contains the content of the parameter which
is redundant and results in multiple sources of truth.
2021-11-09 16:05:25 +01:00
Matthias Grob
fff2de43a5
commander_params: update description based on ManualControlSelector
2021-11-09 16:05:25 +01:00
Matthias Grob
396bab52ad
ManualControlSelector: refactor selection to chose based on a single condition
2021-11-09 16:05:25 +01:00
Matthias Grob
1bd786c71a
ManualControlSelector: don't invalidate existing setpoint with other invalid input
2021-11-09 16:05:25 +01:00
Matthias Grob
e15f6b27f2
ManualControlSelector: copy manual_control_input struct instead of each individual field
2021-11-09 16:05:25 +01:00
Matthias Grob
63ddb050ef
ManualControlSelector: refactor timeout calculation to be consistent
2021-11-09 16:05:25 +01:00
Matthias Grob
2528e8c572
ManualControl: correct calculation of dt in seconds
2021-11-09 16:05:25 +01:00
Matthias Grob
12bb2de175
state_machine_helper: rever explicitly handling unavaialble mission
...
It was already handled by the existing condition.
2021-11-09 16:05:25 +01:00
Matthias Grob
4dc165efd0
Commander: don't retry to reach the desired_main_state if we reached it
2021-11-09 16:05:25 +01:00
Matthias Grob
d48302c841
Commander: send out manual control lost event
2021-11-09 16:05:25 +01:00
Matthias Grob
93bed7f670
vehicle_command: shorten arming action/origin enum names
2021-11-09 16:05:25 +01:00
Matthias Grob
709c909929
commander_params: correct RC override description
2021-11-09 16:05:25 +01:00
Julian Oes
b3a5072de5
commander/manual_control: use msg enum for params
...
Instead of using a private enum class we should define the enum in the
vehicle_command message and then use it consistently.
2021-11-09 16:05:25 +01:00
Julian Oes
f1b1068824
commander: remove unused mode/main_state methods
...
With the previous changes these seem no longer required.
2021-11-09 16:05:25 +01:00
Julian Oes
42af44700b
mc_rate_control: always allow landing gear control
...
Except of course when landed and we try to put it up.
2021-11-09 16:05:25 +01:00
Julian Oes
486a4b0118
mavlink: reduce calls to hrt_absolute_time
2021-11-09 16:05:25 +01:00
Julian Oes
454aa611ae
manual_control: add missing 7
2021-11-09 16:05:25 +01:00
Julian Oes
2c0fc686a7
manual_control: don't accept outdated input
2021-11-09 16:05:25 +01:00
Julian Oes
4d00a56230
manual_control: method can be static
2021-11-09 16:05:25 +01:00
Julian Oes
6027398459
manual_control: handle invalid rc_in_mode
2021-11-09 16:05:25 +01:00
Julian Oes
50cca204d8
manual_control: add check for instance
2021-11-09 16:05:25 +01:00
Julian Oes
963d15eacc
manual_control: use correct sysid/compid
2021-11-09 16:05:25 +01:00
Julian Oes
cfdb53a4d8
manual_control: don't switch gear on first init
...
This will ignore the first transition from NONE to something.
This matches the behaviour that existed before.
2021-11-09 16:05:25 +01:00
Julian Oes
60de330f18
manual_control: add hysteresis for arm button back
2021-11-09 16:05:25 +01:00
Julian Oes
75209a7552
manual_control: address review comments
2021-11-09 16:05:25 +01:00
Matthias Grob
942eb23248
ManualControlSelector: remove commented stick difference filter draft
2021-11-09 16:05:25 +01:00
Matthias Grob
11a46d3d27
ManualControlSelectorTest: add constantly outdated samples case
...
Reviewing the code I saw this case arising from the order things
get checked.
2021-11-09 16:05:25 +01:00
Julian Oes
39282a795f
manual_control: fix tests
2021-11-09 16:05:25 +01:00
Julian Oes
53bd254502
commander: add valid check
...
Better checking once too much than once too little.
2021-11-09 16:05:25 +01:00
Julian Oes
efd8757fda
manual_control: handle NAN
2021-11-09 16:05:25 +01:00
Julian Oes
374c9f38a7
manual_control: use constrain() instead
2021-11-09 16:05:25 +01:00
Julian Oes
2a41ade223
manual_control: update first, get diff after
...
Not sure why I had this the wrong way round.
2021-11-09 16:05:25 +01:00
Julian Oes
d0fea93d72
manual_control: add reset to diff
...
This should prevent triggering user override right after RC re-appears.
2021-11-09 16:05:25 +01:00
Julian Oes
93c505b163
commander: force arming is not an option from RC
2021-11-09 16:05:25 +01:00
Julian Oes
4a5ef1c81e
ROMFS: whitespace
2021-11-09 16:05:25 +01:00
Julian Oes
6a6b8d49fc
msg: re-use manual_control_input in setpoint
...
This way we avoid duplication between manual_control_input and
manual_control_setpoint.
2021-11-09 16:05:25 +01:00
Julian Oes
baf81abbab
msg: whitespace only
2021-11-09 16:05:25 +01:00
Julian Oes
14cfad74bf
manual_control: remove leftover debug statements
2021-11-09 16:05:25 +01:00
Julian Oes
5ae76bdc17
commander: fix potentially wrong user message
2021-11-09 16:05:25 +01:00
Julian Oes
bd0c1014d9
manual_control: support arming button
...
The arming button required some refactoring in order to support to
toggle arm/disarm using the vehicle_command. Otherwise manual_control
would have to subscribe to the arming topic and we would spread out the
logic again, and risk race conditions.
2021-11-09 16:05:25 +01:00
Julian Oes
9cbfa2ca95
manual_control: ORBIT and PRECLAND not supported
...
ORBIT and PRECLAND are not actually possible on the flight mode switch.
2021-11-09 16:05:25 +01:00
Julian Oes
2e9edfcd89
commander: only override according to param
...
This got lost in the refactor earlier.
2021-11-09 16:05:25 +01:00
Julian Oes
56b2b81600
manual_control: use filter to check user override
...
Instead of only looking at the diff between two RC samples to decide
whether a user wants to override, we now look at the filtered diff over
one second. This should be more robust to RC sent at various or varying
rates.
2021-11-09 16:05:25 +01:00
Julian Oes
97d01f200e
commander: move manual_control and switches out
...
This moves the remaining handling of the manual control stuff out
of commander. All communication between manual control now goes through
vehicle commands, and the landing gear topic.
2021-11-09 16:05:25 +01:00
Julian Oes
e49b596edc
commander: add desired main state
...
This is an intermediate solution to carry forward the initial state of
the mode slot. Basically, it allows that we start up in Stabilized but
switch to POSCTL as soon we have the required GPS.
2021-11-09 16:05:25 +01:00
Julian Oes
b6af068f25
commander: always reset posvel validity
...
I assume reseting posvel validity is ok for any case, not just all cases
except manual, acro, stabilized.
2021-11-09 16:05:25 +01:00
Julian Oes
52563264e6
commander: move valid mission check inside
...
I think it makes more sense to move this check inside of
main_state_transition.
2021-11-09 16:05:25 +01:00
Julian Oes
916ffef04c
manual_control: send initial mode in the beginning
...
In order for commander to know the desired mode we need to send the
initial position of the mode slot.
2021-11-09 16:05:25 +01:00
Julian Oes
a91fa7f3c1
commander: only move to POSCTL when armed
...
I don't think we want to switch to POSCTL when the sticks are moved when
armed.
2021-11-09 16:05:25 +01:00
Julian Oes
66b069e788
commander: move main_state_transition out
...
This is a first step to having a desired main state.
2021-11-09 16:05:25 +01:00
Julian Oes
e2e908d0fc
mavlink: remove unused methods
2021-11-09 16:05:25 +01:00
Julian Oes
97aa06cc19
commander: move switch handling to manual_control
2021-11-09 16:05:25 +01:00
Julian Oes
08e58a44e9
Fix style
2021-11-09 16:05:25 +01:00
Julian Oes
71d6aa913d
manual_control: starting to implement switches
2021-11-09 16:05:25 +01:00
Julian Oes
ac121c676a
commander: check for valid flag for manual_control
2021-11-09 16:05:25 +01:00
Julian Oes
cda6524421
manual_control: move override detection
...
This also removes the option to ignore throttle for the override
detection as it's not really required anymore.
2021-11-09 16:05:25 +01:00
Julian Oes
1c15cc11d8
manual_control: implement (dis)arming via command
2021-11-09 16:05:25 +01:00
Julian Oes
8876af9150
manual_control: add instance to selector
...
This instance is then used to schedule the callback for the
subscription.
2021-11-09 16:05:25 +01:00
Julian Oes
14eb656a59
rc_update: use snake_case for namespace name
2021-11-09 16:05:25 +01:00
Julian Oes
6e8ccf6a45
rc_update: rename update method
...
This reflects better what it actually does.
2021-11-09 16:05:25 +01:00
Julian Oes
723db8bf2a
manual_control: add selector class [WIP]
...
This adds a selector class with unit tests.
The idea is to have a valid flag in manual_control_septoint and set that
according to the selection and/or timeout of manual_control_inputs.
2021-11-09 16:05:25 +01:00
Julian Oes
eeb7682fd9
ROMFS: start manual_control for SITL
2021-11-09 16:05:25 +01:00
Daniel Agar
2d816e0b3e
[WIP] manual_control selector hacks
2021-11-09 16:05:25 +01:00
Daniel Agar
e18cf3da3e
sensors/vehicle_imu: use WelfordMean for online mean and variance
2021-11-09 15:19:35 +01:00
Daniel Agar
a8c3bcca32
boards: disable CONFIG_STM32H7_SPI_DMATHRESHOLD
2021-11-08 19:20:47 -05:00
Daniel Agar
cb34ff1292
posix-configs/SITL/init/test/test_imu_filtering enable gyro dynamic notch filtering by default
2021-11-08 19:14:32 -05:00
Daniel Agar
e0d9ccdc18
sensors/vehicle_angular_velocity: small FFT notch update simplification
2021-11-08 19:14:32 -05:00
Daniel Agar
47afab62e7
gyro_fft: limit noise floor to configured range (IMU_GYRO_FFT_MIN/MAX)
2021-11-08 19:14:32 -05:00
Daniel Agar
dd3e0b723a
gyro_fft: add IMU_GYRO_FFT_SNR parameter
2021-11-08 19:14:32 -05:00
Matthias Grob
6fab6242db
setup/python requirements: add future module
...
which is a requirement for MAVLink header generation.
Found on Ubuntu 20.04 Python 3.
2021-11-08 17:05:30 +01:00
Silvan Fuhrer
b216cddf49
state_machine_helper: add place holder in array nav_state_names for removed LANDGPSFAIL mode
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-08 13:42:55 +01:00
JaeyoungLim
031f7f831b
Fixedwing Pos Control: Handle vehicle transition waypoints outside controllers ( #18503 )
...
* Handle VTOL transition waypoints outside FW auto control modes
2021-11-08 11:21:08 +01:00
Daniel Agar
66ab7e50df
github actions increase NuttX compile ccache limit slightly
2021-11-07 20:37:58 -05:00
Daniel Agar
3b68f8e510
Tools/check_submodules.sh revert attempted submodule improvements
...
- this wasn't helping break out of submodule issues
2021-11-07 20:36:47 -05:00
Daniel Agar
4627f5514e
boards: holybro_kakutef7_default disable load_mon to save flash
2021-11-07 20:36:47 -05:00
Jaeyoung-Lim
6a2ebfc0cc
Handle setpoint types properly for fixedwing position control
...
Handle setpoint types properly for fixedwing position control
2021-11-07 19:21:00 -05:00
Daniel Agar
f43adaeeb5
Tools/check_submodules.sh disable parallel jobs
...
- this is already run separately for each submodule (potentially in parallel)
2021-11-07 18:12:30 -05:00
Silvan Fuhrer
dbd9b88bea
FW position controller: only allow switching to AUTO_ALTITDUE or AUTO_CLIMBRATE if pos_sp_curr_valid
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-07 23:31:21 +01:00
Daniel Agar
2f8cb5a1c2
mavlink: initial support for MAG_CAL_REPORT stream
2021-11-07 16:03:34 -05:00
Daniel Agar
24b00317b5
Tools/check_submodules.sh attempt update before sync to handle changes
2021-11-07 16:00:13 -05:00
Viktor Vladic
5b3e1a2347
boards: add MatekH743-slim support
2021-11-07 15:39:50 -05:00
JaeyoungLim
cda7c6ceaa
Enable offboard actuator setpoints
2021-11-07 15:38:42 -05:00
Guilherme Lawless
47a191489e
cmake: sitl_gazebo build use memory information from the system to estimate the parallel jobs
...
Using cmake_host_system_information, grabs AVAILABLE_PHYSICAL_MEMORY and adds another job for every 1.5GB of available memory.
This is tested on a single system with 16 logical cores and 16GB RAM (~11.5GB available, reported correctly by cmake).
2021-11-07 15:37:48 -05:00
Daniel Agar
68026eadeb
save significant IMU bias changes learned by the EKF
...
* ekf2: make publishing of learned accel biases more robust
* ekf2: reset accel bias if calibration updated
* msg: add separate accel and gyro calibration counters
* ekf2: use separate accel and gyro calibration counters
* ekf2: rework logic to reset biases when calibration counters increment
* sensors: add saving of learned accel biases
* ekf2: generalized saving accel/gyro/mag in flight sensor calibration
* boards: holybro kakutef7 disable systemcmds/perf and systemcmds/top to save flash
Co-authored-by: Paul Riseborough <gncsolns@gmail.com >
2021-11-07 15:34:27 -05:00
Jacob Crabill
5969508fa7
mavlink: cmake generate mavlink headers at build time
...
- mavlink/mavlink is now directly included as a submodule instead of the generated mavlink/c_library_v2
- this also switches to mavlink development.xml by default
2021-11-05 23:01:38 -04:00
Julian Oes
88489ae8bd
mavlink: Check target for mavlink shell
...
The SERIAL_CONTROL MAVLink message now contains a target_system and
target_component field that we should check.
Without this we might be answering to a command on the network that is
meant for another system.
2021-11-05 23:48:44 +01:00
David Sidrane
96101a9c11
NuttX backports of imxrt dcache fixes to support WB & USB
2021-11-05 13:50:02 -04:00
David Sidrane
af6bedaded
nxp_fmurt1062:Needs pwm_out
2021-11-05 13:50:02 -04:00
David Sidrane
ff43923567
nxp_fmurt1062-v1:Use Write Back Dcache
2021-11-05 13:50:02 -04:00
David Sidrane
dedad87e82
nxp_fmurt1062-v1:Force no no-unaligned-access
...
This results in a load saving (no dcache) of 16.82% at a cost
of 0.03% Flash, .07% XIP Flash and .45% SRAM
Forced Alighment
With: -mno-unaligned-access
Memory region Used Size Region Size %age Used
flash: 606568 B 7 MB 8.26%
flashxip: 622920 B 1 MB 59.41%
sram: 640848 B 856 KB 73.11%
itcm: 0 GB 0 GB
dtcm: 0 GB 128 KB 0.00%
PID COMMAND CP
0 Idle Task 87640 20.047 204/ 748 0 ( 0) READY 3
1 hpwork 0 0.000 332/ 1784 249 (249) w:sig 3
2 lpwork 26 0.008 780/ 1616 50 ( 50) w:sig 4
3 init 0 0.000 1980/ 2928 100 (100) w:sem 3
4 wq:manager 0 0.000 508/ 1256 255 (255) w:sem 4
327 navigator 910 0.204 1124/ 1832 105 (105) READY 6
23 wq:lp_default 3479 0.795 1252/ 1920 205 (205) READY 4
30 wq:hp_default 23554 5.415 1332/ 1904 237 (237) READY 4
47 dataman 0 0.000 820/ 1208 90 ( 90) w:sem 4
57 wq:I2C1 26849 6.190 1060/ 2336 246 (246) w:sem 4
60 wq:I2C2 24045 5.440 732/ 2336 245 (245) w:sem 4
86 wq:SPI1 47127 10.804 1352/ 2336 253 (253) w:sem 4
91 wq:I2C3 1935 0.436 980/ 2336 244 (244) w:sem 4
101 wq:SPI3 6932 1.585 1028/ 2336 251 (251) w:sem 4
237 wq:nav_and_controllers 16743 3.832 1236/ 2240 242 (242) w:sem 4
248 wq:rate_ctrl 9008 2.074 1572/ 1952 255 (255) w:sem 4
250 wq:INS0 37182 8.450 4372/ 6000 241 (241) w:sem 4
264 commander 29395 6.732 1260/ 3224 140 (140) READY 5
287 mavlink_if0 60513 13.828 1876/ 2728 100 (100) READY 4
294 mavlink_rcv_if0 5946 1.387 1292/ 4560 175 (175) READY 4
307 wq:UART5 3345 0.770 844/ 1632 229 (229) READY 4
370 log_writer_file 0 0.000 372/ 1176 60 ( 60) w:sem 3
369 logger 2121 0.484 2468/ 3648 230 (230) READY 3
393 top 37523 8.641 3060/ 4080 237 (237) RUN 3
Processes: 24 total, 10 running, 14 sleeping
CPU usage: 77.08% tasks, 2.87% sched, 20.05% idle
DMA Memory: 5120 total, 1024 used 1024 peak
Uptime: 441.946s total, 87.640s idle
Allow Un-Alighment
With Out: -mno-unaligned-access
Memory region Used Size Region Size %age Used
flash: 604008 B 7 MB 8.23% 8.26% +0.03
flashxip: 622240 B 1 MB 59.34% 59.41% +0.07
sram: 636752 B 856 KB 72.64% 73.11% +0.45
itcm: 0 GB 0 GB
dtcm: 0 GB 128 KB 0.00% 0.00%
PID COMMAND CPU(ms) CPU(%) USED/STACK PRIO(BASE) STATE FD
0 Idle Task 2418 3.190 264/ 748 0 ( 0) READY 3
1 hpwork 0 0.000 332/ 1784 249 (249) w:sig 3
2 lpwork 12 0.004 852/ 1616 50 ( 50) w:sig 3
3 init 0 0.000 1932/ 2928 100 (100) w:sem 3
4 wq:manager 0 0.000 548/ 1256 255 (255) w:sem 4
327 navigator 22 0.203 1052/ 1832 105 (105) READY 6
23 wq:lp_default 83 0.743 1252/ 1920 205 (205) READY 4
30 wq:hp_default 637 5.886 1332/ 1904 237 (237) READY 4
47 dataman 0 0.000 820/ 1208 90 ( 90) w:sem 4
57 wq:I2C1 162 1.063 1060/ 2336 246 (246) w:sem 4
60 wq:I2C2 98 0.500 732/ 2336 245 (245) w:sem 4
86 wq:SPI1 1166 10.771 1352/ 2336 253 (253) w:sem 4
91 wq:I2C3 48 0.437 1060/ 2336 244 (244) w:sem 4
101 wq:SPI3 178 1.653 1028/ 2336 251 (251) w:sem 4
237 wq:nav_and_controllers 410 3.781 1324/ 2240 242 (242) w:sem 4
248 wq:rate_ctrl 222 2.050 1572/ 1952 255 (255) w:sem 4
250 wq:INS0 940 8.691 4372/ 6000 241 (241) w:sem 4
264 commander 753 6.475 1472/ 3224 140 (140) READY 5.03
287 mavlink_if0 1440 13.973 1780/ 2728 100 (100) READY 4
294 mavlink_rcv_if0 139 1.304 1276/ 4560 175 (175) READY 4
307 wq:UART5 83 0.785 828/ 1632 229 (229) READY 4
370 log_writer_file 0 0.000 372/ 1176 60 ( 60) w:sem 3
369 logger 54 0.493 2468/ 3648 230 (230) READY 3
393 top 1053 10.015 3060/ 4080 237 (237) RUN 3
396 mavlink_rcv_if1 166 1.608 1380/ 4560 175 (175) READY 4
395 mavlink_if1 2167 23.459 1812/ 2824 100 (100) READY 4
Processes: 26 total, 12 running, 14 sleeping
CPU usage: 93.90% tasks, 2.91% sched, 3.19% idle 77.08% tasks, 2.87% sched, 20.05% idle -16.82%
DMA Memory: 5120 total, 1024 used 1024 peak
Uptime: 18.242s total, 2.419s idle
2021-11-05 13:50:02 -04:00
David Sidrane
4225193456
nxp_fmurt1062-v1:Proper USB HS config
2021-11-05 13:50:02 -04:00
David Sidrane
e2b4e435a9
Build system:Board level control of no-unaligned-access
2021-11-05 13:50:02 -04:00
David Sidrane
af9f8f08c6
NuttX PX4 build - capture log in VERBOSE=True|1
2021-11-05 13:50:02 -04:00
David Sidrane
d4c2476699
nxp_fmurt1062-v1:init Fix Spelling
2021-11-05 13:50:02 -04:00
David Sidrane
46b208ba21
nxp_fmurt1062-v1:init Define ret indepenent of enabled IP Blocks
2021-11-05 13:50:02 -04:00
David Sidrane
29eb27632a
nxpfmurt1062-v1:Add USB dev
2021-11-05 13:50:02 -04:00
RomanBapst
56cf77a74c
addressed review comments
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-11-05 18:04:33 +01:00
RomanBapst
e36e527488
fixed wrong path
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-11-05 18:04:33 +01:00
Roman Bapst
d58d13b2e8
APX4-1617: Fix manual climb rate in TECS ( #1463 )
...
* tecs: workaround for the fact that vel smoothing lib uses a DOWN coordinate system
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-11-05 18:04:33 +01:00
RomanBapst
7cb99f521c
moved ManualVelocitySmoothing to motion_planning lib
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-11-05 18:04:33 +01:00
RomanBapst
924298e9c3
addressed review comments
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-11-05 18:04:33 +01:00
RomanBapst
0ac3077bdc
tecs: use trajectory generation library to compute height rate setpoint
...
- added ability to specify maximum acceleration constraint for height rate setpoint
- added support for locking altitude setpoint when in height rate control
mode and height rate input is zero
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-11-05 18:04:33 +01:00
RomanBapst
6e75b7cffd
FixedWingPositionControl: push altitude setpoint locking into TECS
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-11-05 18:04:33 +01:00
Beat Küng
296db60a58
camera_capture: use output functions for pin configuration if SYS_CTRL_ALLOC==1
2021-11-05 12:36:04 -04:00
Beat Küng
6d993a9301
camera_trigger: use output functions for pin configuration if SYS_CTRL_ALLOC==1
2021-11-05 12:36:04 -04:00
Silvan Fuhrer
f492fa9d3a
fix typo
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 17:58:21 +03:00
RomanBapst
514cf12c57
addressed review comments
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-11-05 17:58:21 +03:00
Silvan Fuhrer
3bd114bf9f
RTL: if vehicle is a VTOL in hover, always consider all safe landing points
...
Unless there is already a mission landing in progress,
in that case stay on the mission landing if RTL_TYPE
isn't set to closest.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 17:58:21 +03:00
Silvan Fuhrer
1163a52c17
Navigator: remove unnecessary (duplicated) info messages for RTL
...
There is already (a more precise) info message on RTL activation.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 17:58:21 +03:00
Silvan Fuhrer
f4f9b8ebf2
RTL: replace deny_mission_landing logic by getDestinationTypeMissionLanding()
...
The rtl instance decides on destination of RTL, and Navigator then switches to
mission mode if required.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 17:58:21 +03:00
Silvan Fuhrer
ab08bbdb58
RTL: improve RTL info message
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 17:58:21 +03:00
Silvan Fuhrer
775a1eb4b6
RTL: remove unused function and non-informative comments
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 17:58:21 +03:00
Silvan Fuhrer
dd987c08a5
RTL: rename enum names for RTLType
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 17:58:21 +03:00
Silvan Fuhrer
a012f01dbc
Navigator: clean up get_rtl_type()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 17:58:21 +03:00
Silvan Fuhrer
8dc6d5f208
RTL: set destination type to mission landing also in MC
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 17:58:21 +03:00
Daniel Agar
9c15be22d6
mc_autotune_attitude_control: add new MC_AT_EN parameter to enable
...
- only enabled by default on boards that aren't memory constrained
2021-11-05 09:52:07 -04:00
bresch
1e94512719
FD: use flags union instead of bitmask
2021-11-05 09:45:52 -04:00
bresch
3f1025fb1e
FD: add dedicated topic to log more internal states
...
log imbalanced propeller check metric
add failure_detector_status message
2021-11-05 09:45:52 -04:00
bresch
b8ed457371
Commander: trigger failsafe action if imbalanced propeller detected
2021-11-05 09:45:52 -04:00
bresch
5dfb8e594a
FD: add imbalanced propeller check
2021-11-05 09:45:52 -04:00
bresch
bf2fb70d67
vehicleIMU: compute and log accel variance
2021-11-05 09:45:52 -04:00
Silvan Fuhrer
f02786d112
Navigator/Commander: make GPS failsafe consitent: switch to Descend also for FW and VTOL
...
- remove GPS failsafe mode
- for VTOL: transition to hover in Descend (unless NAV_FORCE_VT is not set)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 12:09:39 +03:00
Silvan Fuhrer
b77487d69c
Fixed-wing Position controller: add modes for auto altitude and auto descend
...
- bit of clean up
- add GPS failsafe mode auto_altitude, that will keep current altitude with a fixed-bank angle
for some time, then switches to auto_descend that will descend with constant sink rate
of 0.5m/s
- params controlling GPS failsafe are not FW params: NAV_GPSF_R --> FW_GPSF_R and
NAV_GPSF_LT --> FW_GPSF_LT
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-11-05 12:09:39 +03:00
Daniel Agar
c73a1b4c68
update UAVCAN-v0 dsdl to DroneCAN
2021-11-04 21:36:13 -04:00
Daniel Agar
67437396f1
mpu6000: add USER_CTRL I2C_MST_EN bit to checked registers
2021-11-04 21:22:14 -04:00
Daniel Agar
8fbb241c2e
mpu6000: add gyro/accel self test bits to checked registers
2021-11-04 21:22:14 -04:00
Daniel Agar
bffcdd6fad
boards: modalai_fc-v2 fix bootloader board type
2021-11-04 15:43:29 -04:00
Matthias Grob
f55590ce78
FlightTaskOrbit: remove duplicate newlines
2021-11-03 17:37:52 +01:00
Matthias Grob
6cea707330
FlightTaskOrbit: increase acceptance radius from 1 to 2m
...
to avoid reaproaching when tracking is not perfect while
acc/deccelerating by stick.
2021-11-03 17:37:52 +01:00
Matthias Grob
eda9dce033
FlightTaskOrbit: fix direction change via MAVLink command
2021-11-03 17:37:52 +01:00
Thomas Debrunner
d450afead6
FlightTaskOrbit: Direct orbit approach with slowdown at intersection point
2021-11-03 17:37:52 +01:00
Thomas Debrunner
0d0b87e193
Update src/modules/flight_mode_manager/tasks/Orbit/FlightTaskOrbit.cpp
...
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2021-11-03 17:37:52 +01:00
Thomas Debrunner
9bd46be124
Orbit: Switch to PositionSmoothing library.
...
This also fixes the bug with altitude not follows and smoothes orbit approach trajectory
2021-11-03 17:37:52 +01:00
Vatsal Asitkumar Joshi
ea1ae73526
Support for Raspberry PI RP2040 MCU ( #18083 )
2021-11-03 12:14:30 -04:00
Daniel Agar
8f6fd5f37b
sensors/vehicle_angular_velocity: gyro RPM dynamic notch filter handle negative RPM
...
- some UAVCAN ESCs report negative RPM for reverse rotation
- lower hard coded safety limit RPM limit to 10 Hz (600 RPM)
- avoid disabling notch filters that weren't configured
2021-11-02 09:36:02 -04:00
Peter van der Perk
c6f249f7f1
Kconfig merge_config only set to 'n' when BOOL
...
Run make updateconfig to fix delta's of derived configs
2021-11-02 09:34:21 -04:00
Daniel Agar
fec0d6c5ed
ekf2: change indication further reduce data precision
2021-11-02 10:21:54 +01:00
bresch
1317b1a6e1
[AUTO COMMIT] update change indication
2021-11-01 13:59:34 +01:00
bresch
9e54c6d1aa
ekf2: move generic functions to control.cpp
...
these functions aren't specific to GPS fusion
2021-11-01 13:59:34 +01:00
bresch
e90734881b
ekf2_test: add more GPS fusion control tests
2021-11-01 13:59:34 +01:00
bresch
8aae39e82a
ekf2: move GPS control logic to separate source file
2021-11-01 13:59:34 +01:00
bresch
689ab12845
ekf2: refactor gps vel/pos fusion control logic
2021-11-01 13:59:34 +01:00
bresch
9afc390552
ekf2: move gps yaw reset in starting function
2021-11-01 13:59:34 +01:00
Daniel Agar
1461eb0e32
logger: increase optimization to ${MAX_CUSTOM_OPT_LEVEL}
...
- ${MAX_CUSTOM_OPT_LEVEL} is -O2 on boards that aren't flash constrained
2021-11-01 09:13:12 +01:00
Thomas Debrunner
32be88404a
commander: Only run estimator navigation checks when armed
2021-10-28 12:06:31 -04:00
PX4 BuildBot
7006b0aee9
Update submodule jMAVSim to latest Thu Oct 28 12:38:55 UTC 2021
...
- jMAVSim in PX4/Firmware (c9b89ee869 ): https://github.com/PX4/jMAVSim/commit/0a5a8c6d9da05bee5f82faa25430213d97d396b0
- jMAVSim current upstream: https://github.com/PX4/jMAVSim/commit/b23dc53d558e801b214fbcb605a061c9773105e0
- Changes: https://github.com/PX4/jMAVSim/compare/0a5a8c6d9da05bee5f82faa25430213d97d396b0...b23dc53d558e801b214fbcb605a061c9773105e0
b23dc53 2021-10-08 Ilya Petrov - Use low resolution texture also on Windows
2021-10-28 11:41:02 -04:00
Harrison MG
c9b89ee869
fixed ulanding_radar autostart command
2021-10-28 00:01:37 -04:00
Daniel Agar
be5c5856e7
cmake: px4_add_module always add module to PX4_MODULE_PATHS so that parameters aren't pruned
2021-10-27 23:00:40 -04:00
Peter van der Perk
51abb804ac
UAVCANv1 Fix NodeClient header and Kconfig merge logic
2021-10-27 10:07:01 -04:00
Beat Küng
0decdb1c7b
github action: run ./Tools/generate_board_targets_json.py in container
...
As it requires kconfiglib
2021-10-27 15:23:23 +02:00
Silvan Fuhrer
e715e6c245
Fixed-wing position control: set yaw_sp to yaw_current instead of nav_bearing when not controlled
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-27 14:35:00 +03:00
Silvan Fuhrer
b53808d11b
fixed-wing: set yaw_sp to yaw_current instead of 0 when not controlled
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-27 14:35:00 +03:00
Silvan Fuhrer
da4d6dc657
L1: increase the max allowed tangential velocity in the opposite direction to 2m/s
...
There is logic in L1 that prevents the vehicle from trying to achieve
an impossible loiter entry (e.g. due to wind). That check makes the
vehicle track the loiter center if the tangential velocity is in the wrong
direction while loitering. After the vehicle flies through the center, it can
then turn the other way around to join the loiter.
This check is though too sensitive if it purely checks for the wrong direction,
and it can end in delayed loiter entry for no reason.
This commit increases the threshold to 2m/s of tangential velocity
in the wrong direction to trigger the check.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-27 12:32:58 +03:00
RomanBapst
eee5f501cd
navigator: fix flyaway when altitude change is commanded without a valid
...
triplet
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-10-27 11:01:13 +03:00
RomanBapst
bf6a47ba6a
navigator: cleanup of set_loiter_item
...
Unwraps the set_loiter_item() to solve the issue where the altitdue setpoint
in a MC takeoff wasn't correctly used.
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-10-27 11:01:13 +03:00
Silvan Fuhrer
cb78ba34d7
Mission: for tangential loiter exit, set current position setpoint typ to position
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-27 11:01:13 +03:00
Silvan Fuhrer
4b21c0c49e
Fw Pos C: always reset pos_sp type from LOITER to POSITION if far away
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-27 11:01:13 +03:00
RomanBapst
d678e792cc
mission_block: don't require an exiting heading when loitering if the next
...
waypoint is within the loiter radius of the current waypoint
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-10-27 11:01:13 +03:00
Michael Schaeuble
5e1f62e9d0
Add option to warn the pilot in case of strong magnetic interference but still allow arming.
...
This PR changes the COM_ARM_MAG_STR parameter to accept values. If the parameter is set to 2, the check is performed and a warning is logged but the vehicle can still arm.
2021-10-27 09:59:18 +02:00
ponomarevda
2b6bd452df
fix hardpoint hardfault by checking argc before std::strcmp
2021-10-27 08:11:23 +02:00
Beat Küng
de488f0f40
omnibus/f4sd: add topic listener & change timer order
...
So it matches the usage in the channel definition order
2021-10-27 08:03:55 +02:00
Beat Küng
8476875b4d
Kconfig: add missing serial ports
2021-10-27 08:03:55 +02:00
Beat Küng
48344c6e2a
state_machine_helper: add missing 'break' (no behavior change)
2021-10-27 08:03:55 +02:00
Daniel Agar
6d0c6bb6ce
lib/world_magnetic_model: cmake remove helper target BYPRODUCTS
...
- otherwise ninja will try to rebuild these
2021-10-26 18:52:12 -04:00
dagar
a2801bab80
[AUTO COMMIT] update change indication
2021-10-26 14:39:58 -04:00
Daniel Agar
88a979cf1d
lib/world_magnetic_model: add cmake helpers for updating tables
...
- `world_magnetic_model_update` to fetch latest geo_magnetic_tables.hpp
- `world_magnetic_model_tests_update` to fetch latest test_geo_lookup.cpp
2021-10-26 14:39:58 -04:00
Peter van der Perk
24ab430466
Tools/generate_board_targets_json.py: fix json board targets regression from #17100
2021-10-26 16:15:39 +02:00
bresch
d0f89f7fff
ekf2: refactor wind reset functions
2021-10-26 10:18:56 +02:00
bresch
456dfcb4b9
ekf2: update getter for true airspeed
2021-10-26 10:18:56 +02:00
bresch
3927c183de
ekf2_test: adjust airspeed unit test
...
an airpseed of > 2m/s is required to start the fusion (set by param)
fw mode is also required
Given the larger estimated windspeed after those changes, the change of
static pressure is larger and the height estimate takes more time to
reach the final value
2021-10-26 10:18:56 +02:00
bresch
6e8f0e92ff
ekf2: refactor airspeed fusion control logic
2021-10-26 10:18:56 +02:00
bresch
8873e92c7c
ekf: force fallback to baro if GPS is stopped while in GPS height mode
...
Otherwise, no height aiding source is used
2021-10-26 10:05:28 +02:00
bresch
0a140ec59a
ekf2_test: add GPS height to baro fallback
2021-10-26 10:05:28 +02:00
bresch
f4c21cedd9
ekf2_test: use motion_planning for dynamic yaw emergency test
2021-10-25 18:06:38 -04:00
bresch
340a2caa8e
ekf2_test: use motion_planning library
...
The VelocitySmoothing class from the motion_planning library is used to
generate trajectories in order to test the EKF convergence during motion
2021-10-25 18:06:38 -04:00
David Sidrane
38e2e6a01f
Use NuttX MPU Reset ( #18283 )
...
* NuttX with MPU reset backports
* Use NuttX MPU reset
2021-10-25 18:05:31 -04:00
alexklimaj
8088c82b6a
Add CANNODE_FLOW_ROT
2021-10-25 16:31:00 -04:00
Jaeyoung-Lim
5dcaadf492
Fix px4vision defaults
2021-10-25 16:29:52 -04:00
Landon Haugh
24cd0c6fa3
Enablement of PX4 SPI driver for UCANS32K146
2021-10-25 08:36:54 -07:00
Daniel Agar
a548c94230
boards: holybro_durandal-v1_default disable modules to save flash
2021-10-25 13:41:31 +02:00
bresch
6ec9ab11f2
add fw auto-tune module to board configs
2021-10-25 13:41:31 +02:00
bresch
95e2941b17
fw att: inject system identification signal to controller
2021-10-25 13:41:31 +02:00
bresch
6af0856558
add FF to FW rate controllers
2021-10-25 13:41:31 +02:00
bresch
55f0860c31
fw atune: add fixed-wing auto-tuning module
2021-10-25 13:41:31 +02:00
bresch
8dfdb1e3db
compute and publish fixed-wing control power
2021-10-25 13:41:31 +02:00
RomanBapst
d84b0296d2
support orbit command in fixed wing mode
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
commander: support orbit mode for fixed wings
Signed-off-by: RomanBapst <bapstroman@gmail.com >
FwPositionControl: publish orbit status
Signed-off-by: RomanBapst <bapstroman@gmail.com >
commander:reject orbit mode while doing a vtol transition
Signed-off-by: RomanBapst <bapstroman@gmail.com >
FixedWingPositionControl: explicitly cast waypoint for Orbit status
FixedwingPositionControl: fill missing orbit_status fields
navigator_main: handle reposition/orbit corner cases
- set orbit rotation direction correctly
- send mavlink message when orbit is rejected
FixedWingPositionControl: correctly report rotation direction in orbit_status
navigator: hack to not break orbit while doing altitude changes
Signed-off-by: RomanBapst <bapstroman@gmail.com >
navigator: set cruise throttle for orbit command
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-10-25 09:48:27 +02:00
Daniel Agar
93eb0162e5
drivers/uavcan_v1: fix Kconfig trailing whitespace
2021-10-25 08:15:46 +02:00
Silvan Fuhrer
f9cfcc5cfa
AirspeedSelector: add bitmask to enable checks seperately in ASPD_DO_CHECKS
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
73fe300c00
WindEstimator: remove option to disable scale estimation
...
The situation where this would be desired is unclear, plus it's basically
the same as setting ASPD_SC_P_NOISE to a very small value.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
b38bf23d6e
WindEstimator: avoid division by 0
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
c0754cf324
AirspeedValidator: pass vI as reference
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
f9682b86d1
AirspeedSelector: some clean up
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
7537fa36c8
AirspeedValidator: fix airspeed scale validation (feed raw TAS)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
a2faac148f
AirspeedValidator: check_airspeed_innovation() check absolute innovations
...
Do no longer use tas_innovation from wind estimator and test ratio, but calculate
the innovation based on wind estimate, TAS measurement (including currently applied scale)
and ground velocity. Use innovations directly to trigger failure.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
f6d37ecacf
AirspeedSelector: make sure we don't try to access a negative array index
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
ccab93e68b
AirspeedSelector: use Vector3f
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
259b851ba7
WindEstimator: remove filter reset due to airspeed measurement rejection
...
As the purpose of this wind estimator is to (mainly) catch airspeed failures,
we don't value estimator stability as much as the reliability to catch
actual sensor issues, and thus do not reset the filter (as this may hide
a real issue with the sensor)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
3ad901e51d
Wind Estimator: use time_literals
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
cad7851774
AirspeedSelector: add _CAS_scale_validated to airspeed_wind for logging
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
Silvan Fuhrer
625f556b0e
AirspeedSelector: airspeed scale estimation improvements and robustification
...
- run airspeed scale estimation always, not in dedicated mode
- add option to apply scale automatically, with extra feasibility check
- add airspeed scale for all 3 possible airspeed instances
- clean up parameters
- add check for data stuck (non-changing airspeed data)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-22 17:00:35 +02:00
RomanBapst
8e8c6efd66
Mission block: do not care for altitdue acceptance when approaching backtransition point
...
Not accepting the waypoint causes the vehicle to perform a sharp turn after passing
the land waypoint and this causes worse unexected behavior.
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-10-22 15:37:10 +02:00
Matthias Grob
3d50adc5fe
astyle: restore backwards compatibility with old pre-commit hook
...
I removed the filtering logic from the shell script in #18482 because
the new pre-commit hook already takes care of it.
The problem is if you don't update the .git/hooks/pre-commit file and
use the new shell script there's no filtering
of files done and it checks all files for every file.
This commit restores backwards compatibility because it does not hurt
until I have an automatic way to update the pre-commit hook file.
2021-10-22 12:56:21 +02:00
bresch
78fe6e2152
VelocitySmoothing: fix issue when delta vel is the same on all axes
...
When the change in velocity is exactly the same on several axes, the T1
of the recumputed trajectories after time sync was set to 0 because it
was skipping both if and else if.
2021-10-22 10:54:36 +02:00
mcsauder
9301288d1f
Add parameter and logic to set RTL heading mode.
2021-10-22 09:28:30 +02:00
Matthias Grob
6938d24ec7
pre-commit hook: show all style issues, not just the ones from the first file
2021-10-21 19:07:13 -04:00
Matthias Grob
2716ce7a56
pre-commit hook: clear output with error, file name, diff, instructions
2021-10-21 19:07:13 -04:00
Matthias Grob
4454fe9770
pre-commit hook: don't unstage the entire file containing a style issue
2021-10-21 19:07:13 -04:00
Daniel Agar
19952768fb
boards: try to keep test boards in sync
2021-10-21 15:59:15 -04:00
Daniel Agar
6fb1c79ef0
mixer_module: reject mixer load and reset when dynamic mixing is enabled
2021-10-21 11:27:33 -07:00
Daniel Agar
f1016dc32c
boards: add systemcmds/topic_listener to CAN nodes
2021-10-21 14:06:11 -04:00
Daniel Agar
17328bef69
Jenkins attach GDB and print back trace on failure
2021-10-21 14:04:33 -04:00
David Sidrane
258cde668c
nxp_fmurt1062-v1:Pared down boardconfig
2021-10-21 11:04:34 -04:00
David Sidrane
0e29cb31e6
nxp_fmurt1062-v1:Pull more code into XIP Flash
2021-10-21 11:04:34 -04:00
David Sidrane
ff3a76d918
nxp_fmurt1062-v1:Needs to usne ocram Linker script
2021-10-21 11:04:34 -04:00
Daniel Agar
ea9c64dcd9
drivers/uavcan: add new UAVCAN_SUB_* parameters to enable subscriptions
...
- only GPS and mag are enabled by default
2021-10-21 09:55:04 -04:00
Silvan Fuhrer
fd96bbf9b9
Mavlink: bump MAX_REMOTE_COMPONENTS to 16
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-21 07:48:50 +02:00
Daniel Agar
4247e1320b
px4io: allow switching to rate ctrl wq
2021-10-20 09:56:42 -04:00
Beat Küng
c0f75b1c79
dshot: add missing '#pragma GCC diagnostic push'
2021-10-20 08:11:07 +02:00
Daniel Agar
757424c2c0
clang-tidy ignore modernize-raw-string-literal for now
2021-10-20 08:10:05 +02:00
Beat Küng
8a2b310b83
topic_listener: avoid code generation, use existing metadata at runtime
...
This reduces flash size for v5 by ~110KB, the topic listener now only adds
about 1.2KB.
2021-10-20 08:10:05 +02:00
Beat Küng
a0e72b35a4
replay: ignore ULogMessageType::PARAMETER_DEFAULT messages
2021-10-20 08:10:05 +02:00
Beat Küng
4c73ac3805
uorb: use single byte for internal types in o_fields metadata
...
Reduces flash usage by ~9KB.
2021-10-20 08:10:05 +02:00
Landon Haugh
9aaf6e3f3e
[NXP_UCANS32K146] Increase usermain stack size to prevent init overrun
2021-10-19 20:17:11 -04:00
Thomas Debrunner
f4a85fa951
rcS: Allow startup files to be located on SD card
2021-10-19 14:08:38 -04:00
alexklimaj
6daa579e46
Add ARK RTK GPS Debug, turn on UART RX DMA
2021-10-19 13:30:46 -04:00
mcsauder
21163d859e
Whitespace cleanup.
2021-10-19 13:29:26 -04:00
Daniel Agar
4cf8eb8226
ekf2: EKF vehicle_at_rest always require some rotation in addition to vibration metrics
2021-10-18 21:39:40 -04:00
Daniel Agar
33954a904f
lib/tunes: never play tunes if circuit breaker is set
2021-10-18 21:37:09 -04:00
Daniel Agar
b08f20806b
ROMFS: rcS don't play startup tune until after UAVCAN and px4io
...
- fixes potential duplicate startup tune
2021-10-18 21:37:09 -04:00
Tia
6e3e6846f4
Fix srf05 driver.
2021-10-18 21:00:59 -04:00
bazooka joe
b35dd86d04
mc_pos_control: remove unused var
2021-10-18 20:37:18 -04:00
bazooka joe
c8d6f8f5e5
remove proto for unused function limit_thrust_during_landing()
2021-10-18 20:37:18 -04:00
Daniel Agar
9d7c4596f7
navigator: increase stack 1800 -> 1864 bytes
2021-10-18 20:31:35 -04:00
Daniel Agar
b20d8207a7
Jenkins: compile delete obsolete px4_fmu-v5_ctrlalloc
2021-10-18 20:11:58 -04:00
Beat Küng
3e9c88e48e
px4/fmu-v5 test, uavcanv0periph: disable modules to reduce flash
2021-10-18 18:45:19 -04:00
Beat Küng
da1df5352c
fix pwm: only update oneshot timers owned by the current pwm_out instance
...
This fixes the case where oneshot was enabled with multi-instance pwm_out,
triggering oneshot updates too close to each other and as a result could
lead to spinning motors while disarmed.
2021-10-18 18:45:19 -04:00
Daniel Agar
2ed623c8ae
boards: px4_fmu-v6x_default disable modules to save flash
2021-10-18 18:45:19 -04:00
Daniel Agar
be868aae92
boards: px4_fmu-v5_uavcanv0periph disable modules to save flash
2021-10-18 18:45:19 -04:00
Daniel Agar
a7a2aa3b74
boards: px4_fmu-v3_test disable modules to save flash
2021-10-18 18:45:19 -04:00
Beat Küng
cc1d24a5fe
ci compile_nuttx: disable fail-fast
...
So that all failures can be evaluated.
2021-10-18 18:45:19 -04:00
Beat Küng
d01f2b1d40
cubepilot/cubeorange test: disable uavcan to reduce flash usage
2021-10-18 18:45:19 -04:00
Beat Küng
dbd4426271
nxp/fmurt1062-v1: set CONSTRAINED_FLASH
2021-10-18 18:45:19 -04:00
Beat Küng
e36a8f3765
ROMFS: disable vtol airframes for kakutef7
2021-10-18 18:45:19 -04:00
Beat Küng
f1686b1abf
px4io: add dynamic mixing support
2021-10-18 18:45:19 -04:00
Beat Küng
837a1066e0
px4io, pwm_out: update pwm default checking
...
The defaults changed in the previous commit for per-channel params,
so we make sure that the overall params are still used as long as the
per-channel params are default.
2021-10-18 18:45:19 -04:00
Beat Küng
ab1d76ae7d
params: use PWM_MAIN_* instead of PWM_FMU_*
2021-10-18 18:45:19 -04:00
Beat Küng
ba4a1ec6c4
boards/px4/io-v2: swap timer definitions
...
So that the ordering of the generated params make more sense.
TIM1 is now for channels 2-4 instead of 5-8.
2021-10-18 18:45:19 -04:00
Beat Küng
319e90961b
output_groups_from_timer_config.py: fix timer index
...
The implementation assumed timers are defined in the same order as used
in the channels. This could lead to a mismatch between TIMx param and
actual timer config.
Now we use the actual array index, same as in the code.
2021-10-18 18:45:19 -04:00
Beat Küng
183ab8bbe7
control_allocator: avoid default argument for virtual method getEffectivenessMatrix
...
clang tidy error:
/__w/PX4-Autopilot/PX4-Autopilot/src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessMultirotor.cpp:50:34: error: default arguments on virtual or override methods are prohibited [google-default-arguments,-warnings-as-errors]
ActuatorEffectivenessMultirotor::getEffectivenessMatrix(matrix::Matrix<float, NUM_AXES, NUM_ACTUATORS> &matrix,
2021-10-18 18:45:19 -04:00
Beat Küng
563cf61126
module_schema.yaml: add actuator_output section
...
The parameter additions are only used internally for the pwm generator.
2021-10-18 18:45:19 -04:00
Beat Küng
8b3ab7e36d
fix pwm_out: ensure up_pwm_servo_arm() is never continuously called
...
This happened with multi-instance, when the second instance did not load
a mixer. Then the first instance would always return false in
update_pwm_out_state, and continuously call up_pwm_servo_arm.
This led to irregular pulses, e.g. with an output set to fixed 1500us, I
saw pulses of e.g. 1800us occationally (they were in a range of
[1500-2100]).
2021-10-18 18:45:19 -04:00
Beat Küng
838ec5d485
airframes: set output function params for ctrlalloc airframes
2021-10-18 18:45:19 -04:00
Beat Küng
44bbe87165
pwm_out_sim: use PWM_FMU for sitl and HIL_ACT for hitl
...
We might want to change this later, but for now it allows to use the same
airframe configs for sitl/real, and independent hitl configuration.
2021-10-18 18:45:19 -04:00
Beat Küng
2b039b2af8
px4/fmu-v6x: add capture pins to list of pwm pins
2021-10-18 18:45:19 -04:00
Beat Küng
4e0e2dec57
fmu-v6u: add capture pins to list of pwm pins
2021-10-18 18:45:19 -04:00
Beat Küng
4a4acf7ead
px4/fmu-v5x: add capture pins to list of pwm pins
2021-10-18 18:45:19 -04:00
Beat Küng
faf481df31
modalai/fc-v2: remove unused DIRECT_PWM_CAPTURE_CHANNELS define
2021-10-18 18:45:19 -04:00
Beat Küng
d28dd5cc14
holybro/pix32v5: add capture pins to list of pwm pins
2021-10-18 18:45:19 -04:00
Beat Küng
d9bf03b2dc
holybro/durandal-v1: add capture pins to list of pwm pins
2021-10-18 18:45:19 -04:00
Beat Küng
0ab4a24de8
px4/fmu-v5: add capture pins to list of pwm pins
2021-10-18 18:45:19 -04:00
Beat Küng
a01cf2efc0
rc.mc_apps: allow to set COM_PREARM_MODE with control allocation
...
This is safe now.
2021-10-18 18:45:19 -04:00
Beat Küng
21c1671693
pwm_out_sim: add dynamic mixing support
2021-10-18 18:45:19 -04:00
Beat Küng
0871b7974d
uavcan_v1: add dynamic mixing support
2021-10-18 18:45:19 -04:00
Beat Küng
ae15ad14a8
tap_esc: add dynamic mixing support
2021-10-18 18:45:19 -04:00
Beat Küng
35ce6d1b73
pca9685_pwm_out: add dynamic mixing support
2021-10-18 18:45:19 -04:00
Beat Küng
955179e992
linux_pwm_out: add dynamic mixing support
2021-10-18 18:45:19 -04:00
Beat Küng
c1e5e666f0
pwm_out, dshot: add dynamic mixing support
2021-10-18 18:45:19 -04:00
Beat Küng
3ff6014a3c
uavcan: implement servo outputs
2021-10-18 18:45:19 -04:00
Beat Küng
07fa8c5295
uavcan: reduce sensor status output verbosity
2021-10-18 18:45:19 -04:00
Beat Küng
49f8131f82
uavcan: add dynamic mixing support
2021-10-18 18:45:19 -04:00
Beat Küng
5f0781b6e9
output modules: add param prefix argument to MixingOutput
2021-10-18 18:45:19 -04:00
Beat Küng
f5fbcb0770
dshot: handle telemetry index correctly when dynamic mixer is used
2021-10-18 18:45:19 -04:00
Beat Küng
d951c74a7d
spracing/h7extreme: use single-line comments instead of multi-lines
...
Required for output_groups_from_timer_config.py parser
2021-10-18 18:45:19 -04:00
Beat Küng
916447e804
params: add script to parse timer_config.cpp for timer group info
...
This allows to generate pwm params in the form of:
module_name: PWM Output
actuator_output:
output_groups:
- generator: pwm
param_prefix: PWM_FMU
channel_labels: ['PWM Main', 'PWM Capture']
standard_params:
disarmed: { min: 800, max: 2200, default: 900 }
min: { min: 800, max: 1400, default: 1000 }
max: { min: 1600, max: 2200, default: 2000 }
failsafe: { min: 800, max: 2200 }
extra_function_groups: [ pwm_fmu ]
pwm_timer_param:
description:
short: Output Protocol Configuration for ${label}
long: |
Select which Output Protocol to use for outputs ${label}.
Custom PWM rates can be used by directly setting any value >0.
type: enum
default: 400
values:
-5: DShot150
-4: DShot300
-3: DShot600
-2: DShot1200
-1: OneShot
50: PWM50
100: PWM100
200: PWM200
400: PWM400
reboot_required: true
2021-10-18 18:45:19 -04:00
Beat Küng
db28ea9cfa
generate_params.py: extend params 'definitions' section to support a list
...
allows to add multiple entries for a multi-instance param with different
instance_start
2021-10-18 18:45:19 -04:00
Beat Küng
6f01b69f49
mixer_module: add param generation for disarmed, min, max, failsafe
2021-10-18 18:45:19 -04:00
Beat Küng
6424faccb1
generate_params.py: fix parse_yaml_parameters_config
...
Correctly handle multiple parameter sections
2021-10-18 18:45:19 -04:00
Beat Küng
15daded6b0
refactor output_limit: split output_limit_calc_single into separate function
2021-10-18 18:45:19 -04:00
Beat Küng
c55626d2d6
refactor Tools/serial: move non-serial param generation into separate script
2021-10-18 18:45:19 -04:00
Beat Küng
a65533b469
mixer_module: add output functions for servos, landing gear, parachute, RC passthrough & gimbal
2021-10-18 18:45:19 -04:00
Beat Küng
4b37a3d017
mixer_module: generate output_functions header from yaml file
2021-10-18 18:45:19 -04:00
Beat Küng
fd76e5488e
mixer_module: add output functions
2021-10-18 18:45:19 -04:00
Beat Küng
ab3fe77f46
mavlink_receiver: publish MAV_CMD_DO_SET_ACTUATOR command
2021-10-18 18:45:19 -04:00
Beat Küng
5103f00de3
vehicle_command.msg: add VEHICLE_CMD_DO_SET_ACTUATOR
2021-10-18 18:45:19 -04:00
Beat Küng
38fa65a47e
control_allocator: remove direct mixer, add actuator_{motors,servos} instead
2021-10-18 18:45:19 -04:00
Beat Küng
a51c465b54
control allocation: introduce parameter SYS_CTRL_ALLOC & unify build targets
2021-10-18 18:45:19 -04:00
Beat Küng
0c5a79d84d
fix mixer_module: use PRIx32 for debug printf
2021-10-18 18:45:19 -04:00
Beat Küng
ad1bcfd77c
commander: correct lockdown CLI description
2021-10-18 18:45:19 -04:00
AuroraRAS
62dd38fe35
Prepare for Android NDK build
...
Modify CMakeList.txt prepare for Android NDK build
Signed-off-by: AuroraRAS <chplee@gmail.com >
2021-10-18 14:55:56 -04:00
Alex Klimaj
b482986e8e
uavcannode: Add CANNODE_TERM parameter (configure CAN termination on ARK cannodes)
...
- adds functionality to enable the built in can termination on the ARK cannodes
2021-10-15 09:29:56 -04:00
Jari van Ewijk
55910caec5
UCANS32K146: Enable CONFIG_BCH to use EEEPROM as character driver
2021-10-15 05:54:27 -07:00
Silvan Fuhrer
a66b0829b0
Standard VTOL: add airspeed to back transition logic and refactor it a bit
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-15 09:58:48 +02:00
Silvan Fuhrer
358c67226e
Tiltrotor: backtransition logic improvements
...
-use groundspeed in body x for exit condition
-use airspeed for speed exit condition if no valid groundspeed
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-15 09:58:48 +02:00
Silvan Fuhrer
cba80a6338
Tiltrotor: front transition: fade out yaw equally to roll
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-15 09:58:48 +02:00
Silvan Fuhrer
641383cbfb
VTOL backtransition improvements
...
* vtol_type: only allow positive pitch setpoints during backtransition
* vtol params: set default of VT_B_DEC_FF to 0, as for most frames a FF is not necessary
* Tiltrotor: fix throttle during first part of back transition
* Tiltrotor: only enable all motors in second phase of backtransition (tilting phase)
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-15 09:58:48 +02:00
RomanBapst
af291e2040
FlightTaskTransition: Transition improvements
...
- use fw pitch setpoint offset during transition
- take over previous vertical velocity and smooth out over transition
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-10-15 09:58:48 +02:00
Silvan Fuhrer
d39c32619e
Tiltrotor: add minimum throttle of 0.25 during front transition
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-15 09:58:48 +02:00
RomanBapst
f61853d428
vtol: implement throttle blending out and into transition
...
- blend into TECS throttle after front transition
- blend out of TECS throttle during backtransition
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-10-15 09:58:48 +02:00
RomanBapst
8dd76050e0
vtol: take fixed wing attitude setpoint during transition if altitude is
...
not controlled
- required as there is no flightask running if altitude is not controlled
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-10-15 09:58:48 +02:00
Daniel Agar
435e5515df
github actions: increase nuttx and linux ccache max size to 100M
2021-10-14 19:45:29 -04:00
Daniel Agar
7e71b7eafc
github actions: compile nuttx archive bin files and remove duplicate nuttx cannode builds
2021-10-14 19:45:29 -04:00
Daniel Agar
12c7056ae5
drivers/imu: icm20602/icm20649/icm20948 remove timestamp_sample adjustments
2021-10-14 16:37:11 -04:00
Daniel Agar
56823b5ac9
ekf2: EKF control don't allow invalid flow gyro to propagate
2021-10-14 16:31:22 -04:00
Daniel Agar
e8a064af02
github actions: try increasing nuttx ccache limit
2021-10-14 11:54:19 -04:00
Daniel Agar
b88c8eb245
Jenkins: hardware stop commander before sensors module to avoid errors
...
- this is only done to silence timeouts during small benchmarks
2021-10-14 09:17:50 -04:00
Daniel Agar
d35cf78e4a
commander: PX4_ERR if attitude or angular velocity become invalid
2021-10-14 09:17:50 -04:00
Daniel Agar
4559230de6
drivers/imu/invensense: adjust icm20602/icm20649/icm20948 rescheduling logic
...
- this handles the case where the driver might be more than one full
transfer cycle behind
2021-10-14 09:17:11 -04:00
Daniel Agar
ef4d4c3093
sensors/vehicle_imu: fix timestamp_sample increasing check
2021-10-14 09:12:45 -04:00
Jaeyoung-Lim
4535b18a80
Set setpoint type as const
2021-10-14 11:18:02 +02:00
Jaeyoung-Lim
07d72f8604
Fix comments
2021-10-14 11:18:02 +02:00
Jaeyoung-Lim
443666199e
Move setmode outside of control_position
...
This commit moves the position controller mode handling outside of the control_position method.
The control_method is renamed to control_auto
2021-10-14 11:18:02 +02:00
Jaeyoung-Lim
ae9e91f90c
FW Pos controller: fix format in new switch
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-14 11:18:02 +02:00
Silvan Fuhrer
c3e961a1ed
FW Pos C: move setting of control_mode_current to separate function and minor clean ups
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-14 11:18:02 +02:00
Silvan Fuhrer
0cf3ef87e3
FW Position Controller: move nav_speed_2d calculation to function
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-14 11:18:02 +02:00
Jaeyoung-Lim
581ec224be
Encapsulate loiter and position setpoint handling
...
This commit encapsulates the position setpoint and loiter setpoint handling into a single method, in order to make the code easier to understand
4be452
2021-10-14 11:18:02 +02:00
Thomas Debrunner
f08f2a340d
motion_planning: In VelovitySmoothing, mark const functions const
2021-10-13 21:25:43 -04:00
Thomas Debrunner
fed234de81
flight_mode_manager: Extracted position trajectory motion planning into a library
...
Extract the functionality to plan smooth position motion trajectories into a
motion planning library, such that it can be used in other parts of the code as well.
2021-10-13 21:25:43 -04:00
Peter van der Perk
07303af8f8
UAVCANv1 Fix typo in #define
2021-10-13 21:22:15 -04:00
Peter van der Perk
ed394027b1
UAVCANv1 Include Kconfig & Fix #18396
2021-10-13 21:22:15 -04:00
mcsauder
a732ddaefb
Deprecate 4250_teal from CMakeLists.txt.
2021-10-13 17:25:18 -04:00
mcsauder
c1b0d78077
Minimize flash by migrating MIXER quad_x and PWM_OUT 1234 to rc.mc_defaults. Deprecate 4250_teal config file.
2021-10-13 17:25:18 -04:00
Matthias Grob
8b37db7825
Functions: fix corner case x_low == x_high == value resulting in NAN
...
and added unit test to cover it
2021-10-13 17:24:16 -04:00
alexklimaj
f5e1da5b0f
Fix broadcom afbrs50 build
2021-10-13 17:22:26 -04:00
Daniel Agar
7de00469a6
platforms: nuttx px4_init fix USB serial mavlink autodetect
2021-10-13 16:34:45 -04:00
Julian Oes
f91aa76645
boards: add v5x RTPS version again
...
I just copied this from v5 and removed the heater.
2021-10-13 16:20:43 -04:00
David Lechner
426efb515f
setup: fix installing in virtual env on Ubuntu
...
This fixes running the Ubuntu setup script in a Python virtual
environment. This was failing because pip doesn't allow the --user
option in virtual environments.
2021-10-13 16:19:24 -04:00
Jukka Laitinen
351f679c2f
parameters: Use px4::atomic_bool instead of px4::atomic<bool>
...
This enables us to define the actual atomic bool type in px4_platform
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-10-13 15:01:26 -04:00
Jukka Laitinen
e6658547cf
sensors/vehicle_imu: Fix compiler warning for implicit INFINITY double->float cast
...
This pops up on some newer compilers
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-10-13 15:01:26 -04:00
Jukka Laitinen
5509235517
commander: Fix implicit NaN conversion from double to float compiler warning
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-10-13 15:01:26 -04:00
Daniel Agar
41a4045630
boards: nxp_fmuk66 fix serial_dma_poll
2021-10-13 13:45:39 -04:00
Daniel Agar
49a4283d0d
boards: px4_fmu-v5x restore rc.board_mavlink
...
- this was unintentionally removed in https://github.com/PX4/PX4-Autopilot/pull/16180
2021-10-13 17:34:20 +02:00
alexklimaj
ffb47466df
Add ARK GPS passthrough
2021-10-12 22:00:58 -04:00
Mathieu Bresciani
56b0c46444
ekf2: improve optical flow angular rate compensation
2021-10-12 13:17:29 -04:00
Daniel Agar
fab053d33b
mavlink: receiver battery_status prevent out of bounds access
...
- fixes https://github.com/PX4/PX4-Autopilot/issues/18385
2021-10-12 09:20:40 -04:00
Daniel Agar
12670b70f4
Jenkins: hardware quick cal skip sleeps
2021-10-11 15:21:43 -04:00
Silvan Fuhrer
801ef2d520
VTOL main: add local variable for int(vehicle_command.param1 + 0.5)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-11 18:15:18 +02:00
Silvan Fuhrer
342e9900f8
vtol main: only guard against transition to FW in certain flight modes, never to MC
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-11 18:15:18 +02:00
SalimTerryLi
5ebe41efbf
pilotpi: fix upload cmake
2021-10-11 10:43:59 -04:00
RomanBapst
8f8304f31e
FixedWingPositionController: Set l1 variables to NAN if no l1 guidance
...
took place
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-10-11 16:41:42 +02:00
RomanBapst
ae5d3103f4
fw l1 controller: added a flag to indicate if navigation has updated
...
- can be used to check if l1 controller ran during a cycle
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-10-11 16:41:42 +02:00
Jaeyoung-Lim
e2f048f608
Add sitl glider model
...
Add airframe configs for SITL glider model
This commit adds an airframe config for a glider model
2021-10-10 12:33:25 -04:00
Shubham Shah
99b098f608
Update FixedwingAttitudeControl.cpp
2021-10-09 19:39:43 -04:00
Shubham Shah
c92cd65831
Update EKF2.cpp
2021-10-09 19:39:43 -04:00
Shubham Shah
6576e1fda9
Update battery_status.cpp
2021-10-09 19:39:43 -04:00
Shubham Shah
b56bd7cb21
Update AirspeedValidator.cpp
2021-10-09 19:39:43 -04:00
Shubham Shah
47a72a6b7b
Update vtol_att_control_main.cpp
2021-10-09 19:39:43 -04:00
Shubham Shah
9fd19a2c83
Update standard.cpp
2021-10-09 19:39:43 -04:00
Shubham Shah
af34b21ba8
Update tiltrotor.cpp
2021-10-09 19:39:43 -04:00
Jacob Dahl
98f655815a
mavlink: add LAND_TARGET stream
2021-10-09 10:29:02 -04:00
Daniel Agar
4be45229bf
fw_pos_control_l1: fix launch detector dt update
...
- fixes https://github.com/PX4/PX4-Autopilot/issues/18354
2021-10-08 17:34:14 -04:00
Daniel Agar
089f96f800
lib/drivers/{accelerometer,gyroscope} skip obselete Vector3f construction
...
- FIFO clip count only check if value is INT16_MIN/MAX rather than abs() call
2021-10-08 17:33:27 -04:00
Jacob Dahl
fd39d5b9a1
drivers/distance_sensor/lightware_laser_serial: add LW20/C support
2021-10-08 17:30:41 -04:00
Igor Mišić
47dc2ae5a5
Revert "protocol_splitter: delete non rtps or mavlink data from buffer"
...
This reverts commit 0cae3c129d .
2021-10-08 14:35:12 -04:00
alexklimaj
2ba369dd54
Add uavcannode fix2 mode and submode
2021-10-08 11:00:37 -04:00
Peter van der Perk
d8e88aedc6
motor_ramp ram cleanup
2021-10-08 10:51:06 -04:00
Nicolas Martin
ba66f8a1e2
reset hover thrust value in controllers when disarmed
...
During landing, hover thrust value can be very incorrect so it should be
reset before taking off
2021-10-08 10:39:49 +02:00
bresch
ba1b7f3a07
CA pseudo inverse: set all small elements in CA matrix to zero
...
This avoids problems in the sequencial desaturation method where vectors
of the CA matrix are used to desaturate the motors.
2021-10-08 09:35:40 +02:00
bresch
d1a2d6e1aa
h480_ctrlalloc: tune rate controller
2021-10-08 09:35:40 +02:00
bresch
984a698760
matrix: update to include min/max of slices
2021-10-08 09:35:40 +02:00
bresch
21b1f090e6
SITL: add typhoon_h480_ctrlalloc target
2021-10-08 09:35:40 +02:00
bresch
b18b7e84d2
CA pseudo-inverse: normalize control allocation matrix
2021-10-08 09:35:40 +02:00
bresch
927c0c4296
McRateControl: publish torque and thrust setpoint for control allocator
2021-10-08 09:35:40 +02:00
bresch
212df95193
ctrlalloc: use normal rate controller
2021-10-08 09:35:40 +02:00
Peter van der Perk
3de5623556
Kconfig remove defconfig in root directory after gen
...
Cleanup fmu configs
2021-10-07 10:09:01 -04:00
Peter van der Perk
eb8620a0da
Kconfig FMU-V5 flash cleanup
2021-10-07 10:09:01 -04:00
Daniel Agar
cb6b1bd427
boards: delete unused test and debug variants
2021-10-07 10:09:01 -04:00
Peter van der Perk
6b7237aa3a
Kconfig add WIFI serial port option
2021-10-07 10:09:01 -04:00
Peter van der Perk
05d71c8118
Kconfig fix CI issues after rebase
2021-10-07 10:09:01 -04:00
Peter van der Perk
96994b82bb
Kconfig cmake change rm to remove to remain compatible with CMake older then 3.17
2021-10-07 10:09:01 -04:00
Peter van der Perk
ed5fee1a72
Backport #18311 mc atune
2021-10-07 10:09:01 -04:00
Peter van der Perk
454c907b7d
Kconfig backport #18327 mag_bias
2021-10-07 10:09:01 -04:00
Peter van der Perk
36191e649a
Kconfig backport #18289 and other flash size fixes
2021-10-07 10:09:01 -04:00
Peter van der Perk
500d80c329
Kconfig backport 51758bd7e6
2021-10-07 10:09:01 -04:00
Peter van der Perk
bfa87fdac7
Kconfig fix wrong nuttx submodule commit
2021-10-07 10:09:01 -04:00
Peter van der Perk
bb7b033e11
Kconfig backport #18259 & remove contrained flash depedency on NO_HELP
2021-10-07 10:09:01 -04:00
Peter van der Perk
c3c9910f04
Backport #17814 to Kconfig
2021-10-07 10:09:01 -04:00
Peter van der Perk
5e98f38f78
Kconfig rebase backports 26-09-21
2021-10-07 10:09:01 -04:00
Peter van der Perk
6a1675ac28
Backport #17864 to px4board config
2021-10-07 10:09:01 -04:00
Peter van der Perk
60790f7112
Backport boards: modalai_fc-v1 update default.cmake ( #18202 )
2021-10-07 10:09:01 -04:00
Peter van der Perk
9b55a8083a
Backport to kconfig: boards: remove camera_capture from sitl and linux targets
2021-10-07 10:09:01 -04:00
Peter van der Perk
12898ea560
[Kconfig] Update configs 06-09-21
2021-10-07 10:09:01 -04:00
Peter van der Perk
010d854023
[Kconfig] Add extra SITL cmake variables
2021-10-07 10:09:01 -04:00
Peter van der Perk
0571932e7c
[Kconfig] Backport rebase config changes
2021-10-07 10:09:01 -04:00
Peter van der Perk
7c6b995cb4
[Kconfig] Replace find_executable by python module, moved python check before calling kconfig
2021-10-07 10:09:01 -04:00
Peter van der Perk
c6e7b8bae1
[Kconfig] Fix SITL by adding rpm/rpm_simulator
2021-10-07 10:09:01 -04:00
Peter van der Perk
f7803fb686
[Kconfig] Bloaty 2nd pass
2021-10-07 10:09:01 -04:00
Peter van der Perk
2dcfe533d6
[Kconfig] Telemetry don't include iridum by default
2021-10-07 10:09:01 -04:00
Peter van der Perk
33fd65e5fe
[Kconfig] Fix regressions found by bloaty and cleanup unused cmake
2021-10-07 10:09:01 -04:00
Peter van der Perk
43a3de8c18
[Kconfig] Fix px4 fmu configs
2021-10-07 10:09:01 -04:00
Peter van der Perk
a918025adb
[Kconfig] fix fmu-v2 configs
2021-10-07 10:09:01 -04:00
Peter van der Perk
892d673b45
[Kconfig] fix flash overflow test builds
2021-10-07 10:09:01 -04:00
Peter van der Perk
8951ed9f12
[Kconfig] fmu-v5 match cmake configs
2021-10-07 10:09:01 -04:00
Peter van der Perk
1eb9a77a9b
[Kconfig] Added missing sensor drivers
2021-10-07 10:09:01 -04:00
Peter van der Perk
603d0c594d
[Kconfig] fix boards configs
2021-10-07 10:09:01 -04:00
Peter van der Perk
efc91d2b69
[Kconfig] Fixed inclusion of microbench bydefault when TESTING was enabled
...
Added full optimization option
2021-10-07 10:09:01 -04:00
Peter van der Perk
a1247d6bcf
[Kconfig] Backport cmake config changes
2021-10-07 10:09:01 -04:00
Peter van der Perk
9f38553ab0
[Kconfig} update broken board configs px4 fmu-v4/v5
2021-10-07 10:09:01 -04:00
Peter van der Perk
cc752f11df
[Kconfig] python script doesn't remove delta, thus we've to manually add remove deltas
2021-10-07 10:09:01 -04:00
Peter van der Perk
d4fbd5674e
[Kconfig] Change patern matching order so that xx_xx doesnut result xx if it exists
2021-10-07 10:09:01 -04:00
Peter van der Perk
b3e799e277
[Kconfig] Add all distance sensors
2021-10-07 10:09:01 -04:00
Peter van der Perk
5542402ca0
[Kconfig] CI fixes and SITL fix
2021-10-07 10:09:01 -04:00
Peter van der Perk
6d0829c251
[Kconfig] px4 io-v2 fix toolchain
2021-10-07 10:09:01 -04:00
Peter van der Perk
b44c0eb434
[Kconfig] FMUv4 CI fixes
2021-10-07 10:09:01 -04:00
Peter van der Perk
21e6547ac7
[Kconfig] Toolchain & platform fixes, SITL still broken
2021-10-07 10:09:01 -04:00
Peter van der Perk
d1e7642b9a
[Kconfig] temporily updated github actions to latest to test CI
2021-10-07 10:09:01 -04:00
Peter van der Perk
4ba1a2f395
[Kconfig] Fix Posix / SITL build
2021-10-07 10:09:01 -04:00
Peter van der Perk
0400c24af5
[Kconfig] 17-08-21 rebase fixes
2021-10-07 10:09:01 -04:00
Peter van der Perk
c2ad07b983
[Kconfig] Don't inherit kconfig when bootloader (and canbootloader)
2021-10-07 10:09:01 -04:00
Peter van der Perk
6af0477733
[Kconfig] Gnerate px4board from old cmake
...
Added make updateconfig to update all config when default's have changed
Added cmake to px4board conversion script
2021-10-07 10:09:01 -04:00
Peter van der Perk
815617e670
Added common options for sensor drivers
...
uavcan_board_identity check for existance
Added kconfig for compiler definitions
2021-10-07 10:09:01 -04:00
Peter van der Perk
82888d3320
[Kconfig] Merge/diff fixes and added some FMUv5 targets
2021-10-07 10:09:01 -04:00
Peter van der Perk
ea393b54d9
[Kconfig] non-default labels config inherit default.px4board config
2021-10-07 10:09:01 -04:00
Peter van der Perk
b7f03cec5e
[Kconfig] Add FMU-V5 and PX4-IOv2 px4board config
2021-10-07 10:09:01 -04:00
Peter van der Perk
56472eeed7
Completely removed px4_add_board
2021-10-07 10:09:01 -04:00
Peter van der Perk
57593cc56a
Initial attempt to make px4_add_board obsolute
2021-10-07 10:09:01 -04:00
Peter van der Perk
7aa28ba9cd
Kconfig remove clean use configure depends and apps timestamp instead
2021-10-07 10:09:01 -04:00
Peter van der Perk
abd85cd219
Rebase 06-07-21 and add batman Kconfig support
2021-10-07 10:09:01 -04:00
Peter van der Perk
4e4aabc03f
Update Kconfig after rebasing 03-05-21
2021-10-07 10:09:01 -04:00
Peter van der Perk
d5e3e9a7bc
[Kconfig] Decompose Kconfig, now each module has its own Kconfig
...
Which is better for versioning and decomposability
2021-10-07 10:09:01 -04:00
Peter van der Perk
094d3557d7
Add Kconfig for Gyro calibration #17040
2021-10-07 10:09:01 -04:00
Peter van der Perk
a0821afafd
[Kconfig] Move UAVCANv0 num interfaces to Kconfig
2021-10-07 10:09:01 -04:00
Peter van der Perk
16f86a99c2
Swap pwm_out with pwm_sim_out to get same binary output as the non-kconfig build
2021-10-07 10:09:01 -04:00
Peter van der Perk
e4f9fd8f53
[Kconfig] forgot distance sensor furthermore K66 build should be equal now
2021-10-07 10:09:01 -04:00
Peter van der Perk
29c4d234ec
Add make clean after boardconfig configure
2021-10-07 10:09:01 -04:00
Peter van der Perk
787b9b54e1
Board config now saved as defconfig which is smaller and friendlier for version control
2021-10-07 10:09:01 -04:00
Peter van der Perk
8df21b0b42
Changed CMake warning to status to not kill the CI
...
Furthermore removed obsolete uavcanconfig target
2021-10-07 10:09:01 -04:00
Peter van der Perk
7a747b43f6
Initial boardconfig working with FMUK66
2021-10-07 10:09:01 -04:00
Peter van der Perk
4044fbd4a0
Initial Kconfig implementation in CMake
...
Used fmuk66-v3 as test case
2021-10-07 10:09:01 -04:00
Peter van der Perk
4b89ff29ce
PX4 full firmware Kconfig PoC
2021-10-07 10:09:01 -04:00
Peter van der Perk
55aa2e50ff
UAVCANv1 menuconfig make it board label configurable
2021-10-07 10:09:01 -04:00
Peter van der Perk
b9bcb7fe7f
uavcanconfig force CMake reconfiguration after use
2021-10-07 10:09:01 -04:00
Peter van der Perk
95e593f3b8
Added python menuconfig.py fallback
2021-10-07 10:09:01 -04:00
Peter van der Perk
37271d334b
[UAVCANv1] Initial uavcanconfig menuconfig example
2021-10-07 10:09:01 -04:00
Igor Mišić
0cae3c129d
protocol_splitter: delete non rtps or mavlink data from buffer
...
protocol_splitter: add missing buffer_size checker
2021-10-07 09:23:23 -04:00
Silvan Fuhrer
a202bcbc73
VTOL: fix param description concerning VT_PITCH_MIN
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-07 09:22:59 -04:00
Silvan Fuhrer
fb8bf7eaa6
ROMFS: remove default params from configs
...
Remove params from airframe configs that are just set again
to the param default value or to the value that is
specified in the mc_default, fw_default or vtol_default.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-07 09:22:59 -04:00
Beat Küng
393f59ae71
param jsonout: handle @boolean flag
...
This got lost when switching from xml to json metadata
2021-10-07 09:20:50 -04:00
bresch
d03bf42f60
slice: add min and max functions
2021-10-07 09:19:28 -04:00
Daniel Agar
dc9e072e83
github actions ccache set hash_dir=false
2021-10-06 17:55:50 -04:00
Daniel Agar
bbfaa4694c
boards: cleanup serial RX DMA hrt_call_every
...
- remove ts_to_abstime dependency
2021-10-06 14:39:59 -04:00
Matthias Grob
b40dbd3d6f
FlightTaskAuto: hotfix filter for yawspeed feed-forward
...
to get rid of derivative spikes when navigator is
continuously updating the yaw setpoint in the
triplet for a POI but is running at a lower rate.
The proper solution is to generate that yaw setpoint
with high rate in the flight task and have the triplet
just guid to the next waypoint at low rate.
2021-10-06 14:06:58 -04:00
Daniel Agar
3e6ff2451b
github actions increase newly added timeouts
2021-10-06 13:47:12 -04:00
Daniel Agar
6e057a644b
github actions remove ccache from deploy metadata and low priority builds
...
- this is an attempt to preserve our limited amount of github actions
cache storage
2021-10-06 13:46:20 -04:00
Daniel Agar
0bdcd54184
mavlink: reciever trajectory_representation_waypoints resepect valid_points
...
- fixes https://github.com/PX4/PX4-Autopilot/issues/18369
2021-10-06 13:45:15 -04:00
Silvan Fuhrer
31a599f303
Commander: add comment in COM_RC_OVERRIDE that it's always enabled in Descend mdoe
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-06 11:32:23 -04:00
Silvan Fuhrer
eeb6244c6b
Commander: add wind speed warning
...
Publishes periodically (max every 1 min) a warning if the current wind estimate
is above COM_WIND_WARN.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-06 11:31:13 -04:00
Silvan Fuhrer
1a4ce136f3
Tiltrotor: add hover tilt offset to pusher assist tilt
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-06 11:27:19 -04:00
Silvan Fuhrer
4e3fa7cf35
VTOL: rework forward actuation assist
...
-allow positive pitch offsets in hover
-add param for min pitch during LAND
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-06 11:27:19 -04:00
Silvan Fuhrer
f0de88fada
vtol_type: fix motor_state::VALUE
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-06 11:26:39 -04:00
Matthias Grob
a461bb971a
FlightTask: preserve vertical velocity during reactivation
...
to allow descending by stick for reliable land detection.
Issue:
Stick smoothing gets completely reset to state when not taken off
-> downwards velocity setpoint is gone when not taken off
-> in_descend flag of land detection is never true when not taken off
-> when landing but falling out of landing it landing detection fails
bafore taking off and landing again
2021-10-06 11:25:51 -04:00
Matthias Grob
c20e5e3a00
FlightTaskManualAltitudeSmoothVel: remove separate reactivate handling
...
It was added before the activation was able to work with the previous
setpoint.
2021-10-06 11:25:51 -04:00
Matthias Grob
9b92862980
MulticopterLandDetector: correct in_descend comment
2021-10-06 11:25:51 -04:00
Daniel Agar
10bc778651
boards: freefly_can-rtk-gps delete unused include
2021-10-06 10:41:36 -04:00
bresch
d95e387d79
angular acceleration: change 2nd order to 1st order LPF
...
Having a 2nd order low-pass filter in the derivative loop reduces
stability at low cutoff values as too much phase is lost through
the filter. Using a 1st order filter avoids this issue because its
maximum phase loss is 90 degrees instead of 180 degrees for a 2nd order
lpf.
2021-10-06 16:26:03 +02:00
bresch
1b58202b0d
AlphaFilter: add function to set param from cutoff frequency
2021-10-06 16:26:03 +02:00
Daniel Agar
b5d401b20c
drivers/imu: ensure timestamp_sample adjustment isn't done as float (continued)
2021-10-06 10:19:01 -04:00
Daniel Agar
e31dd34388
lib/led: replace subscription missed error with perf count
2021-10-06 09:31:44 -04:00
Daniel Agar
113ea5ea26
github actions add timeout to all_variants nuttx compile job
2021-10-06 09:28:27 -04:00
Daniel Agar
6edb1fa1f8
github actions add timeout to SITL tests run
2021-10-06 09:28:27 -04:00
Daniel Agar
ad27d2c49a
github actions enable ccache hash_dir for SITL tests
2021-10-06 09:28:27 -04:00
Daniel Agar
52fccb1e75
github actions decrease ccache max_size selectively
2021-10-06 09:28:27 -04:00
Daniel Agar
d002002ceb
github actions increase ccache compression level
2021-10-06 09:28:27 -04:00
Daniel Agar
ddd1dea4f0
ekf2: avoid uint64 timestamp conversion to float
2021-10-06 09:27:06 -04:00
Daniel Agar
dc1b423721
drivers/imu: ensure timestamp_sample adjustment isn't done as float
...
- larger HRT timestamps can't be represented exactly when cast to float
2021-10-06 09:26:26 -04:00
Julian Oes
6b8840a01b
commander: fix switch to ALTCTL when RC regained
...
This fixes the case where we sometimes switch to altitude control
instead of position control when RC is regained.
What happens is that we detect that the pilot wants to take over control
right when RC comes back. This means that we try to go in position
control in main_state_transition, however, we are already in position
control because we come back from the failsafe state. The result of
main_state_transition is then TRANSITION_NOT_CHANGED, and therefore we
"fall back" to altitude control even though being already in position
control would have been fine.
This fix checks the return result of main_state_transition correctly and
only reacts to TRANSITION_CHANGED and TRANSITION_DENIED but ignores
TRANSITION_NOT_CHANGED.
2021-10-06 10:30:08 +02:00
Daniel Agar
51758bd7e6
boards: delete unused variants
2021-10-05 23:14:04 -04:00
Daniel Agar
3570e5a4f0
boards: cuav_nora_test disable attitude_estimator_q to save flash
2021-10-05 20:43:43 -04:00
Silvan Fuhrer
2dca51216c
vtol: change message for transition timeout warning
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-05 18:19:33 -04:00
Silvan Fuhrer
bdc57178d4
Tailsitter: add add transition timeout (abort transition after VT_TRANS_TMEOUT, Quadchute)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-05 18:19:33 -04:00
Silvan Fuhrer
1a1bb2629d
tiltrotor: add transition timeout (abort transition after VT_TRANS_TIMEOUT, Quadchute)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-05 18:19:33 -04:00
Daniel Agar
02aed782e3
boards: px4_fmu-v6x_default disable sd_stress to save flash
2021-10-05 18:17:22 -04:00
Daniel Agar
beb358a344
px4_work_queue: adjust status formatting to accommodate longer names (eg mc_autotune_attitude_control)
2021-10-05 18:09:00 -04:00
Silvan Fuhrer
98c7f664c1
FW Position control: add roll slewrate also in manual Position flight mode
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-10-05 18:06:49 -04:00
Matthias Grob
2edd97102b
Sticks/StickYaw: refactor to use constructor properly
2021-10-05 18:05:54 -04:00
Matthias Grob
0cc13f0799
FlightTaskAutoMapper: add horizontal and yaw nudging during final descent
2021-10-05 18:05:54 -04:00
Matthias Grob
bb9f167d79
StickAccelerationXY: add reseting position to specified coordinates
2021-10-05 18:05:54 -04:00
Daniel Agar
578d57a060
Jenkins: hardware disable sd_stress temporarily
...
- currently failing intermittantly when run on the test rack
2021-10-05 17:55:52 -04:00
Daniel Agar
b4d33a36f8
boards: px4_fmu-v6x_default disable examples/fake_gps to save flash
2021-10-05 17:11:47 -04:00
Daniel Agar
2b9ebb7ed6
boards: holybro_kakutef7 disable systemcmds/work_queue to save flash
2021-10-05 17:10:30 -04:00
Thomas Stauber
983dd4db29
don't switch to SETPOINT_TYPE_LOITER during transitions ( #18350 )
2021-10-05 14:40:14 +02:00
Julian Oes
75b8e11b90
commander: make LAND failsafe stick
...
By default we would leave the LAND failsafe as soon as a link comes
back. With this change, we switch to the LAND failsafe like a proper
mode change, immediately disabling the failsafe as such.
This is as the same that is done for RTL in fact.
This is not optimal but a workaround for the problem where we switch out
of failsafe right on landing and then discover takeoff again and start
looping through it again and again without ever disarming.
2021-10-05 14:02:22 +02:00
Daniel Agar
896ad3a627
cmake: fix find_program ozone
2021-10-04 18:27:50 -04:00
Daniel Agar
a519916d79
systemcmds/sd_stress: return -1 on FAIL
2021-10-04 17:38:31 -04:00
Daniel Agar
c271a9e3e6
add sd_stress to all boards and run on test rack
2021-10-04 17:38:31 -04:00
Julian Oes
397b1ed8d6
Add sd_stress command
2021-10-04 17:38:31 -04:00
Julian Oes
4701a513c2
mavlink: fix errno for rename
2021-10-04 17:38:31 -04:00
Julian Oes
59b56dd06f
mavlink: add more error messages
2021-10-04 17:38:31 -04:00
Julian Oes
74b2fe326d
mavlink: don't (mis)use errno as global variable
...
I think it was not the best idea to use errno as a global variable to
keep track of the error code. I saw the errno change from where it was
set to where it was actually used, maybe because part of it is called in
the receive thread and part in the regular update/send() thread.
To be safe, I just created a class variable instead.
2021-10-04 17:38:31 -04:00
Julian Oes
96388f07fd
mavlink: improve debugging around MAVLink FTP
...
- Remove ifdefs with MAVLINK_FTP_DEBUG and use PX4_DEBUG instead
- Add a couple of more PX4_DEBUG lines
2021-10-04 17:38:31 -04:00
Daniel Agar
c35f68b49d
boards: px4_fmu-v5 sync UAVCAN_TIMER_OVERRIDE across all variants
2021-10-04 15:27:15 -04:00
Daniel Agar
00b15798da
Tools/HIL/run_tests.py - temporarily disable flaky dataman test until it can be reviewed
2021-10-04 12:54:01 -04:00
Daniel Agar
1325b9c876
Jenkins: hardware retry checkout if necessary
2021-10-04 12:54:01 -04:00
benjinne
413e15d083
Add vscode cmake-variant for px4_sitl_rtps
2021-10-04 11:58:26 -04:00
Beat Küng
540c024cbb
parameters: avoid printing errors for erased flash devices
...
Errors:
ERROR [parameters] param import failed (-1) attempt 1, retrying
ERROR [parameters] param import failed (-1) attempt 2, retrying
ERROR [parameters] param import failed (-1) attempt 3, retrying
ERROR [parameters] param import failed (-1) attempt 4, retrying
ERROR [param] importing from '/fs/mtd_caldata' failed (-1)
2021-10-04 10:25:32 -04:00
Daniel Agar
cc4152e10d
gyro_fft: require higher SNR for initially tracking a peak
...
- initial frequency peak tracking SNR increased from 10->15 db
- after initial detection the threshold decreases to SNR 5db
- gyro_fft large method refactored into smaller pieces
- sensors/vehicle_angular_velocity: dynamic notch FFT make sample rate
check a percentage and relax lower bound safety threshold
2021-10-04 10:17:16 -04:00
Daniel Agar
6d78054f50
mavlink USB auto start/stop on boards with VBUS
...
- no longer start sercon or mavlink usb by default
- on USB connection (VBUS) monitor serial USB at low rate and start Mavlink if there's a HEARTBEAT or nshterm on 3 consecutive carriage returns
- the mavlink USB instance is automatically stopped and serdis executed if USB is disconnected
- skipping Mavlink USB (and sercon) saves a considerable amount of memory on older boards
2021-10-03 15:32:54 -04:00
bresch
07e307b074
FieldSensorBiasEst: fix bias learning equation
...
Also compensate the tuned learning gains for the new equation to keep
the same tuning
2021-10-02 21:25:21 -04:00
bresch
e0bcc17f5b
mbe: integrate pre-takeoff mag bias estimate in VehicleMagnetometer
2021-10-02 21:25:21 -04:00
bresch
1443f773da
mbe: add module to targets
2021-10-02 21:25:21 -04:00
bresch
ec178c8745
create new mag_bias_estimator module
...
Co-authored-by: Daniel Agar <daniel@agar.ca >
2021-10-02 21:25:21 -04:00
bresch
d858835fd0
mbe: initialize estimator with current measurement
2021-10-02 21:25:21 -04:00
bresch
9067d9cae9
mbe: improve algorithm and fix unit test
2021-10-02 21:25:21 -04:00
Matthias Grob
24dc627e8a
Add MagnetometerBiasEstimator for online magnetometer calibration
2021-10-02 21:25:21 -04:00
bresch
5874b1f87c
mc atune: add module to all targets
...
- adjust flash constrianed targets to fit
2021-10-02 18:12:05 -04:00
bresch
b99dbcc6a7
ModuleDocumentation: add autotune categorie
2021-10-02 18:12:05 -04:00
bresch
61dabca4c8
mavlink_receiver: Add mavlink handler with progress report
2021-10-02 18:12:05 -04:00
bresch
d463dfe2d8
mavlink_receiver: handle auto-tuning command
2021-10-02 18:12:05 -04:00
bresch
cd61065aea
sitl: start MC autotune module
2021-10-02 18:12:05 -04:00
bresch
9681f819a8
mc_att: inject identification signal in att control output
2021-10-02 18:12:05 -04:00
bresch
0498ee92d0
mc atune: add multicopter attitude auto-tuner module
2021-10-02 18:12:05 -04:00
bresch
d3cb806627
pid_design: add model-based PID tuning law based on GMVC
2021-10-02 18:12:05 -04:00
bresch
404145c655
sysID: add system identification library
2021-10-02 18:12:05 -04:00
bresch
d504b49695
mc_rate: compute control energy and publish to status msg
2021-10-02 18:12:05 -04:00
Alex Klimaj
0a662ef22c
Add uavcannode RTCM subscriber
2021-10-01 20:43:49 -04:00
alexklimaj
05ee31072a
Add ARK RTK GPS
2021-10-01 20:34:32 -04:00
Daniel Agar
c1c86bc349
Jenkins: hardware clear ccache stats before compiling
2021-10-01 20:31:29 -04:00
Daniel Agar
a53946649a
sensors/vehicle_magnetometer: only check if sensor enabled after parameters loaded
2021-10-01 20:30:46 -04:00
Daniel Agar
3c8f1f2a50
Jenkins: reduce build agent cpu share
2021-10-01 18:18:51 -04:00
SungTae Moon
2adf3f959b
Update Tools/gazebo_sitl_multiple_run.sh
...
Co-authored-by: JaeyoungLim <jalim@ethz.ch >
2021-10-01 16:09:32 +02:00
stmoon
bc5d55c4a4
fix the problem related to sitl multiple vehicle environment
2021-10-01 16:09:32 +02:00
marcojob
68a13326f0
mavlink: remove unused strncpy ( #18300 )
2021-10-01 10:58:25 +02:00
David Sidrane
7c9903f610
stm32h7:px4io_serial use TRBUFF
...
- includes NuttX with TRBUFF backports
2021-09-29 23:55:00 -04:00
David Sidrane
25a27d26e0
logger:log_writer_file Do not try to store ulog name on systems without hardfault logging
2021-09-29 23:51:25 -04:00
David Sidrane
f56701e72f
micro_hal:Remove px4_savepanic on arch without hardfault logging
2021-09-29 23:51:25 -04:00
David Sidrane
cb47203a9e
NuttX with deglitched GPIO backports
2021-09-29 23:50:11 -04:00
Daniel Agar
f3a904c109
Jenkins: HIL increase timeout
...
- occasionally we have a considerable backlog
2021-09-29 20:37:07 -04:00
David Sidrane
63e29b821c
holybro_can-gps-v1:Ensure sensors are powered
2021-09-29 14:37:17 -04:00
David Sidrane
2abbf791b3
NuttX with deglitched GPIO backports
2021-09-29 14:37:17 -04:00
David Sidrane
70eca23468
ark_can-gps_debug:Fit in Flash w/o loosing tools
2021-09-29 14:37:17 -04:00
David Sidrane
20c1f763d2
px4_fmu-v4:CAN build needs .app_descriptor
2021-09-29 14:34:42 -04:00
David Sidrane
797bd9592b
mxp_ucans32k146:using padding of 8
2021-09-29 14:34:42 -04:00
David Sidrane
f4e9672fde
make_can_boot_descriptor:Add padding argument
2021-09-29 14:34:42 -04:00
Peter van der Perk
360c3781f3
UCANS32K146-01 Add CAN tranceiver self test
2021-09-29 09:36:14 -07:00
Daniel Agar
c39a21aa54
ekf2: selector remove special timeout condition
...
- this mainly produces false positives when disarmed and bench testing
2021-09-29 09:59:08 -04:00
Paul Riseborough
ed7c5991eb
ekf2: Fix dimensional error in gyro and accel bias variance conversions
2021-09-29 09:58:41 -04:00
Hyungsub
5677ab042b
tap_esc: fix resource leak ( #18296 )
2021-09-29 14:51:31 +02:00
Daniel Agar
03bd5e0f48
lib/led: move drivers/lights/rgbled LED_RGB_MAXBRT -> SYS_RGB_MAXBRT
2021-09-28 10:09:55 -04:00
Nicolas Martin
b24e5fc0af
clean remaining offboard_control_signal_found_once
...
offboard_control_signal_found_once is not used any more
2021-09-28 09:25:04 -04:00
Nicolas Martin
417a50b2cc
fix typo in comment
2021-09-28 09:24:47 -04:00
Jukka Laitinen
6cae4c92e7
Add a header to logfile encryption key exchange file
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
9a4ef709ca
Add parameters for configuring the logfile encryption
...
SDLOG_ALGORITHM for selecting the crypto algorithm
SDLOG_KEY for selecting the key in keystore to use with the algorithm.
for symmetric algorithms which are currently supported, this is just a free
slot to be used, the key is generated at logging start
SDLOG_EXCH_KEY for selecting an RSA2048 key for encrypting the SDLOG_KEY
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
1687cab56c
FMUv5: Add a build target for crypto interface testing, px4_fmu-v5_cryptotest
...
To avoid messing with existing targets, and to automatically set the test keys
for the keystore.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
ce76380051
Add a simple script to decrypt ulog files
...
This now only decrypts xchacha20 encrypted logs, where keys are
exchanged with rsa_oaep_sha256 and nonce appended to the end of the
key
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
9472f79307
Take crypto interfaces into use in logger, to encrypt ulog data
...
- Generate a symmetric encryption key and a nonce value
- Use a public key in keystore to encrypt the symmteric key
- Write the encrypted key and the nonce value to disk into .ulgk, name matching with the encrypted log file
- use quick stream encryption to crypt the .ulg file contents
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
6b22fe99b7
Globally define -DPX4_CRYPTO when the board defines some crypto backend
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
3db76d88fe
Add crypto key generation functions
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
4c6779812d
Add keystore_put_key interface function for storing keys permanently
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
fc2668cba1
Add encryption function for the crypto_backend and px4_crypto
...
Take into use libtomcrypt library to add RSA and some other algorithms
for SW ecnryption use case
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
634d911b74
Add a test key for RSA2048
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
40063bd54b
Add libtomcrypt and libtommath submodules
...
These provide e.g. rsa_oaep, which can be used for sw crypto
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
be4f7cabf9
Add compilation of nuttx_crypto
...
NuttX has lots of usable functionality for crypto, such as rng with entropy pool
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
d36a91ceaf
Add generic px4 interface for crypto features
...
Add common functions, implemented for nuttx, and link to architecture specific libraries
Make a separate library to wrap nuttx random number generator as "os_random".
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Jukka Laitinen
aa61bc4942
Add functions for initializing empty crypto backend handles
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-27 17:45:07 +02:00
Julian Oes
9290ea974e
commander: allow force disarming
...
Allows to do commander disarm -f to disarm no matter what.
2021-09-27 09:58:03 -04:00
Daniel Agar
333f539900
mavlink: add simple incoming message stats to status
2021-09-27 09:48:00 -04:00
PX4 BuildBot
feff564882
Update submodule jMAVSim to latest Mon Sep 27 00:38:51 UTC 2021
...
- jMAVSim in PX4/Firmware (592885480e ): https://github.com/PX4/jMAVSim/commit/0a5375a70689aac53143768de9033034f3636022
- jMAVSim current upstream: https://github.com/PX4/jMAVSim/commit/0a5a8c6d9da05bee5f82faa25430213d97d396b0
- Changes: https://github.com/PX4/jMAVSim/compare/0a5375a70689aac53143768de9033034f3636022...0a5a8c6d9da05bee5f82faa25430213d97d396b0
0a5a8c6 2021-09-02 Julian Oes - Merge pull request #130 from PX4/pr-udp-connection
2590b24 2021-09-01 Julian Oes - UDPMavLinkPort: add debug output around wait
7255b28 2021-08-31 Julian Oes - src: enable UDP connection in client and host mode
2021-09-27 08:05:48 +02:00
Daniel Agar
592885480e
boards: ark_can-gps_debug disable perf to save flash
2021-09-26 12:29:11 -04:00
Daniel Agar
9a3fa6199b
uorb top report total publication rate
2021-09-26 12:29:11 -04:00
Julian Oes
e81214a22f
mavlink: avoid double trigger using sequence
...
By adding the sequence number we can avoid double triggering due to
command retransmissions. This is according to the mavlink spec for
MAV_CMD_IMAGE_START_CAPTURE.
2021-09-25 20:18:07 -04:00
bresch
76615f8df3
VTOL: set HTE horizontal speed sensitivity threshold low
2021-09-25 20:07:28 -04:00
bresch
904ed57aba
HTE: decrease sensitivity with speed
...
VTOL planes are getting lift from the wing when flying in MC mode at
high speed. They (and some other drones) also get extra drag when
climbing and descending at high speed, corrupting the hover thrust
estimate.
To avoid this, two speed thresholds (vertical and horizontal) are defined
above which the sensitivity of the estimator is decreased by linearly
increasing the observation noise.
2021-09-25 20:07:28 -04:00
achim
c67d943158
boards: mro_ctrl-zero-h7-oem board.h fix SPI5 ( #18294 )
...
- fix spi pin missmatch PF9=GPIO_SPI5_MOSI_2
2021-09-25 20:05:18 -04:00
Daniel Agar
e4b0fa25a2
systemcmds/tests: remove px4io conv test
2021-09-25 19:15:05 -04:00
Beat Küng
1b0bfd6381
dataman: remove nonexisting SYS_RESTART_TYPE param
2021-09-25 19:15:05 -04:00
Daniel Agar
089c962d92
px4io: moving mixing to FMU side
...
Using mixers on the IO side had a remote benefit of being able to
override all control surfaces with a radio remote on a fixed wing.
This ended up not being used that much and since the original design
10 years ago (2011) we have been able to convince ourselves that the
overall system stability is at a level where this marginal benefit,
which is not present on multicopters, is not worth the hazzle.
Co-authored-by: Beat Küng <beat-kueng@gmx.net >
Co-authored-by: Daniel Agar <daniel@agar.ca >
2021-09-25 19:15:05 -04:00
PX4 BuildBot
f772b0f45d
Update submodule sitl_gazebo to latest Sat Sep 25 12:38:57 UTC 2021
...
- sitl_gazebo in PX4/Firmware (e800e7c27663ae0a08ae1e377cbccd2272657ad0): https://github.com/PX4/PX4-SITL_gazebo/commit/53d606b32f5729cc70d59281085d639bd97b30d7
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/d8366bf2389eae6106d1dbfaac72ebfdf23a5d2d
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/53d606b32f5729cc70d59281085d639bd97b30d7...d8366bf2389eae6106d1dbfaac72ebfdf23a5d2d
d8366bf 2021-09-19 Mohamed ElDewany - Fix gazebo plugin for laser sensor
37a3a64 2021-09-16 Julian Oes - camera: fix stream URI
2561ff0 2021-09-01 Julian Oes - mavlink_interface: enable HITL over UDP
9216dab 2021-09-01 Julian Oes - mavlink_interface: remove poll before writing
8e9eb3f 2021-09-01 Julian Oes - mavlink_interface: clean up switch case
a009174 2021-09-01 Julian Oes - mavlink_interface: use flag from mavlink_interface
6f1243a 2021-09-01 Julian Oes - mavlink_interface: remove redundant inline keyword
2021-09-25 11:56:50 -04:00
David Sidrane
f01cab3be1
px4io:Ensure proper lifecycle of registration of cdev
2021-09-24 19:01:54 -04:00
Igor Mišić
9ad0e5b357
mavlink_receiver: updated sens flow parameters to be dynamically handle
2021-09-23 09:23:22 +02:00
Beat Küng
e73172b537
hrt: remove hrt_elapsed_time_atomic
...
There's no protection on posix
2021-09-23 09:23:08 +02:00
Beat Küng
6f902e54f9
mavlink: correctly lock radio status
...
- hrt_elapsed_time_atomic is not atomic on posix
- other fields like _radio_status_mult need protection as well
2021-09-23 09:23:08 +02:00
Beat Küng
0bfb1a983b
px4iofirmware: avoid using hrt_elapsed_time_atomic
...
It's only ever read and written in controls_tick() after startup
2021-09-23 09:23:08 +02:00
Beat Küng
eec94965f2
serial: add pixhawk payload bus option
2021-09-23 09:23:08 +02:00
Igor Mišić
682db4b8ac
dshot: timeout if commands are not processed
2021-09-23 09:22:49 +02:00
bresch
e53d2907d7
AutoSmoothVel: adjust controller constraints in emergency braking
...
When engaging auto mode at high vertical speed, we don't want to cut the velocity
trajectory setpoint in order to create a smooth deceleration.
2021-09-23 09:22:32 +02:00
bresch
316e0dfeb5
AutoLineSmoothVel: add emergency braking mode
...
Currently only for the Z axis. If the current downward velocity is more
than twice the maximum allowed value, the emergency braking mode is
activated. In this mode, a higher vertical acceleration and jerk is used
until the vehicle stops moving.
2021-09-23 09:22:32 +02:00
Igor Mišić
92696b589f
sdp3x: stop continuous measurement while reconfig
2021-09-23 09:22:09 +02:00
Igor Mišić
3a148bc777
camera_trigger: remove camera trigger secondary
...
camera_trigger: publish trigger when capture feedback is not enabled
2021-09-23 09:21:56 +02:00
Hamish Willee
f41e5985e8
vehicle_local_position: clarify origin of system
2021-09-22 10:14:23 +02:00
Thomas Debrunner
43ece74fa0
ina238: Do not expose raw adc config to user, make specific to ina238
2021-09-22 10:02:17 +02:00
Thomas Debrunner
b8d0bb44c4
ina23X: Support for ina23X power monitors
2021-09-22 10:02:17 +02:00
Daniel Agar
cf5da66e9f
Jenkins: hardware disable gyro auto cal and FFT before running tests
2021-09-21 19:13:30 -04:00
Daniel Agar
87db18c1a0
Jenkins: hardware don't allow board cleanup commands to fail build
2021-09-21 19:13:30 -04:00
Daniel Agar
a92e44c90e
Tools/HIL/run_nsh_cmd.py: echo success cmd twice to avoid missing dropouts
2021-09-21 19:13:30 -04:00
Julian Oes
faca2b17d0
camera_trigger: only get param if available
2021-09-17 12:23:30 +02:00
Daniel Agar
7af5a33ff3
commander: don't play failsafe tune if disarmed
2021-09-16 09:17:00 -04:00
Matthias Grob
ecb1264832
vscode: do not disable autocomplete on enter
2021-09-16 09:11:52 -04:00
Julian Oes
c779946e05
setup: Use available Java version for Ubuntu 20.04
...
14 was not available for me, 16 would have been.
2021-09-16 13:59:27 +02:00
Julian Oes
addb978364
setup: Let's not ignore errors
...
Otherwise the script finishes and you don't know if it worked.
2021-09-16 13:59:27 +02:00
Daniel Agar
3d56836850
boards: nxp_fmurt1062-v1 disable extra barometers to save flash
2021-09-15 12:59:36 -04:00
Thomas Stauber
2b80a6958a
fix disable airspeed check with negative ASPD_FS_INTEG ( #18186 )
...
* fix disable airspeed check with negative ASPD_FS_INTEG
* improve logic when nav velocity data is not good
* simplify logic. Reset integrator state when the check is not run.
2021-09-14 12:13:56 +02:00
Matthias Grob
e7a90bf367
PositionControl: correct horizontal margin calculation
...
It was using the already reduced vertical thrust to do
the horizontal limitation resulting in no margin.
2021-09-14 10:57:38 +02:00
Matthias Grob
d1f1e02afb
Refactor mode button changes
2021-09-14 09:52:32 +02:00
Claudio Micheli
05d40f40d4
Handle rc toggle mode buttons to initialize flight modes
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-09-14 09:52:32 +02:00
Claudio Micheli
c50daae4a3
rc_update: introduce support for toggle buttons via RC channels
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-09-14 09:52:32 +02:00
Daniel Agar
ca2d8f6de2
Update submodule simulation-ignition to latest Tue Sep 14 00:39:01 UTC 2021
2021-09-13 21:09:50 -04:00
Daniel Agar
e6552370ab
imu/invensense: adjust scheduling dynamically if not using data ready interrupt
2021-09-12 17:34:35 -04:00
Claudio Micheli
fa4fc5f347
esc_report: change esc_temperature field to allow negative values
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-09-11 15:14:49 -04:00
David Jablonski
7d7200cf2f
Added yaw to CMD_DO_SET_HOME
2021-09-11 15:14:01 -04:00
Hamish Willee
ce206d992b
RC_FAILS_THR and RC_MAP_FAILSAFE improve parameter description
2021-09-11 15:12:54 -04:00
Daniel Agar
212898ff42
Makefile: fix submodulesupdate
2021-09-11 15:10:56 -04:00
Beat Küng
810d2e9497
ModuleParams: remove parent in destructor
...
This allows for dynamic deletion of children objects (in most cases this
is not used).
Uses ~100B memory.
2021-09-11 15:07:49 -04:00
bresch
f09b34007e
CA: reload CA matrix to newly created CA class properly
...
Also remove the dependency of ActuatorEffectivenessMultirotor
to param update uORB topic; the CA module
sends a "force" parameter when needed
2021-09-11 15:07:49 -04:00
bresch
cf5917d188
control_allocator: restructure param update
...
recompute effectiveness on param change
clear update at the end
2021-09-11 15:07:49 -04:00
David Jablonski
9d974062d0
replay: improved logging for format mismatchs
2021-09-11 14:37:52 -04:00
Beat Küng
bf48057090
px4/fmu-v2_test: disable modules to reduce flash
2021-09-11 14:08:41 -04:00
Beat Küng
946857ddf7
px4/fmu-v6x: disable modules to reduce flash
2021-09-11 14:08:41 -04:00
Beat Küng
673de86553
cubepilot/cubeorange: disable system_time and motor_ramp to reduce flash
2021-09-11 14:08:41 -04:00
Beat Küng
759d03e5f9
nxp/fmurt1062-v1: disable modules to reduce flash
2021-09-11 14:08:41 -04:00
Beat Küng
ce747fac62
cuav/x7pro: disable modules to reduce flash
2021-09-11 14:08:41 -04:00
Beat Küng
3e899564d4
cuav/nora: disable some modules to reduce flash
2021-09-11 14:08:41 -04:00
Beat Küng
c49e78cbac
holybro/durandal-v1: disable modules to reduce flash
2021-09-11 14:08:41 -04:00
Beat Küng
5b674ea831
ROMFS: remove some airframes and mixers on v2 to reduce flash
2021-09-11 14:08:41 -04:00
Beat Küng
1a743e1117
collision_prevention: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
5b70fd4a1d
airspeed_selector: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
5fb16e4395
fw_pos_control_l1: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
0a1ae37c1a
logger: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
38eca0c64b
logger: start session & log index at 100
...
To avoid leading zeros, as the events interface does not support that (yet)
2021-09-11 14:08:41 -04:00
Beat Küng
b31276a4f5
mavlink: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
90940c3672
mc_pos_control: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
79a0edafb5
vehicle_air_data: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
a8cc2f9ef6
vehicle_imu: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
acb73fde14
vehicle_magnetometer: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
f8dc915789
vtol_att_control: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
dc87f8a7a4
events: unescape message to match the behavior of the C++ compiler
2021-09-11 14:08:41 -04:00
Beat Küng
e1b8611323
px4/fmu-v5/optimized: disable some modules to reduce flash
2021-09-11 14:08:41 -04:00
Beat Küng
9bba13f3e2
px4/fmu-v2/multicopter: disable some modules to reduce flash
2021-09-11 14:08:41 -04:00
Beat Küng
1f73294ad7
navigator: switch to events
2021-09-11 14:08:41 -04:00
Beat Küng
5ac43e7236
commander: switch to events
2021-09-11 14:08:41 -04:00
Daniel Agar
8866215d1d
sensors/vehicle_imu: add protections for bad sensor data
...
- check for inconsistent timestamps, zero samples, and numerical issues in online mean
2021-09-11 13:04:46 -04:00
Matthias Grob
3c57c67ce3
Make arch setup script executable
...
I usually called it using `source arch.sh`
but if it's executable it could also be called using `./arch.sh`
and that's also what's done for the ubuntu setup script.
2021-09-10 07:50:23 +02:00
m4v3r
a238965228
boards: modalai_fc-v1 update default.cmake ( #18202 )
...
- makes TELEM/SERIAL-4 (VOXL-Flight J1009) work
2021-09-09 09:03:21 -04:00
Jukka Laitinen
28dbd8dc1d
NuttX at 10.1.0+
...
NuttX backport fixing ARM protected build
2021-09-09 04:43:22 -07:00
Thomas Schneider
2e36fff31d
Implement option to reboot px4 using protocol_splitter format when flashing.
2021-09-09 10:12:11 +02:00
Jukka Laitinen
ffa5abbd65
ci: update container versions to 2021-09-08
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-09-09 09:43:15 +02:00
Beat Küng
c5c80e31b6
boards: remove DIRECT_INPUT_TIMER_CHANNELS from board_config.h
2021-09-08 16:10:24 -04:00
Beat Küng
ae8733c2d4
pwm_input: remove 'test' command and use 'status' instead
2021-09-08 16:10:24 -04:00
Beat Küng
f1aafe83b3
pwm_out: cleanup, remove _output_mask & only update owned channels
...
_pwm_mask reflects the actually owned channels.
2021-09-08 16:10:24 -04:00
Beat Küng
a8e75d174c
boards: remove BOARD_HAS_PWM and use DIRECT_PWM_OUTPUT_CHANNELS
2021-09-08 16:10:24 -04:00
Beat Küng
1ee423e3c8
pwm_out, dshot: remove mode_* handling and capture ioctl's
...
They now use all unused pins, whereas camera_capture, camera_trigger and
pwm_input modules start before to reserve their pins.
2021-09-08 16:10:24 -04:00
Beat Küng
062dd28f4d
camera_capture: use up_input_capture_set directly
...
It reserves the channel and pwm_out will not use it
2021-09-08 16:10:24 -04:00
Beat Küng
78b5cdae4c
s32k1xx: io_timer: reserve pins & timers on first use
2021-09-08 16:10:24 -04:00
Beat Küng
ab828b8e94
kinetis: io_timer: reserve pins & timers on first use
2021-09-08 16:10:24 -04:00
Beat Küng
7d9a3bf29f
imxrt: io_timer: reserve pins & timers on first use
2021-09-08 16:10:24 -04:00
Beat Küng
9a74c6f3c6
stm32: io_timer: lock around io_timer_allocate_channel and io_timer_get_channel_mode
...
This is to avoid potential race conditions during startup.
All startup code runs sequentially atm, so this is just for robustness
for later (e.g. concurrent pwm_out and dshot start).
2021-09-08 16:10:24 -04:00
Beat Küng
847bd120fa
io_timer: reserve pins & timers on first use
...
This allows modules to do a first-come-first-serve pin/timer reservation
on bootup.
E.g. camera trigger reserves any of the pins, and then PWM/DShot output
will just use the rest of the available pins.
2021-09-08 16:10:24 -04:00
Beat Küng
0d7176b766
boards: remove camera_capture from sitl and linux targets
...
It uses io_timer lib
2021-09-08 16:10:24 -04:00
Daniel Agar
422a0f7103
boards: px4_fmu-v5_debug enable more debug errors and warnings
2021-09-08 16:04:45 -04:00
bresch
aad11ecc65
PreFltCheck: do not force to report ekf2 failures on GCS connection
...
EKF2 has a grace period of 10 seconds after boot where it doesn't need
to warn the user while the sensors (especially GNSS) are still
converging.
A connection to a GCS shouldn't skip this grace period but
an arming request should.
2021-09-08 14:41:26 -04:00
Matthias Grob
58ea97a699
MulticopterPositionControl: add horizontal margin for saturation cases
2021-09-08 19:55:27 +02:00
benjinne
06a91ec752
Improve offboard failsafe ( #18160 )
...
* state_machine_helper: improve offboard failsafe
* state_machine_helper: add missing parameter to set_link_loss_nav_state
* state_machine_helper: fix no rc and offboard reason
* Fix offboard test by enabling rcl_except
* mavros_test fix offboard_posctl_test with rcl_except
* autopilot_tester make RcLossException bits explicit
Co-authored-by: Julian Oes <julian@oes.ch >
* autopilot_tester change rcl_except to rc_loss_exception
Co-authored-by: Julian Oes <julian@oes.ch >
* autopilot_tester fix rc_loss_exception renaming errors
Co-authored-by: Julian Oes <julian@oes.ch >
2021-09-08 18:19:53 +02:00
ShiauweiZhao
686bcff8a7
new TDK ICM42670p IMU driver support ( #18141 )
...
Co-authored-by: zhaoxiaowei <zhaoxiaowei@efy-tech.com >
2021-09-08 10:24:22 -04:00
Daniel Agar
000765e9f0
NuttX mount procfs and binfs in px4 init
2021-09-08 10:21:24 -04:00
Daniel Agar
29a91306b5
lib/led: error if dropping ORB_ID(led_control) messages
2021-09-08 10:21:09 -04:00
Daniel Agar
5c7882b787
icm42688p: properly disable anti-aliasing and notch filter
2021-09-08 10:20:57 -04:00
Daniel Agar
4b5a91bf7d
experimental driver for the Tattu 12S 16000mAh Smart Battery on /dev/can0 ( #18164 )
...
- This driver is highly specific to this model of Tattu battery and cannot work with other models without code changes.
- The driver simply reads CAN frames using the NuttX CAN character device interface and converts the data into the proper format as specified in the Tattu datasheet
Co-authored-by: Jacob Dahl <dahl.jakejacob@gmail.com >
2021-09-08 10:20:14 -04:00
Daniel Agar
5eddf32cd3
boards: cubepilot_cubeorange only start ADSB mavlink if console not present
...
- cubepilot_cubeorange_test has the console enabled (used for test rack and bench debugging)
2021-09-06 11:52:58 -04:00
Sander Swart
dbb0974b0c
Removed TEL3 from cube orange default.cmake as it is used for the built in ADS-B receiver
2021-09-06 09:51:38 +02:00
Sander Swart
bce1c06174
Added new line at the end of the file as per code style
2021-09-06 09:51:38 +02:00
Sander Swart
223410e17a
Enable Cube Orange built in ADS-B receiver by default
2021-09-06 09:51:38 +02:00
Daniel Agar
8c47a190ac
Jenkins: hardware stop sensors module before mirobenchmarks
...
- ignore irrelevant sensor timeouts during microbenchmarks
2021-09-05 23:18:28 -04:00
Daniel Agar
cf0a4e06db
boards: px4_fmu-v5x_test disable unused drivers to save flash
2021-09-05 23:18:28 -04:00
Daniel Agar
560ff42923
boards: px4_fmu-v2_test disable ms4525 to save flash
2021-09-05 23:18:28 -04:00
Daniel Agar
56a8f5f73e
boards: px4_fmu-v2_test disable mc_hover_thrust_estimator to save flash
2021-09-05 23:18:28 -04:00
Daniel Agar
3dda360fac
boards: px4_fmu-v5_optmized disable all additional barometers to save flash
2021-09-05 23:18:28 -04:00
Daniel Agar
476e050000
boards: cubepilot_cubeorange_test disable unused modules to save flash
2021-09-05 23:18:28 -04:00
Beat Küng
291ca246d2
matrix: update submodule (improves matrix inversion)
2021-09-05 23:18:28 -04:00
Beat Küng
73ab153fe0
fix test_microbench_math: don't try to measure single instructions
...
The clock is simply not accurate enough to do that.
Plus the measuring overhead is much higher than the executed instruction.
Remaining issue: memory transfers (due to volatile) add non-negligible
overhead and distort the result. Could be solved by using inline assembly.
2021-09-05 23:18:28 -04:00
Daniel Agar
02ca1a6711
Update submodule mavlink v2.0 to latest Sun Sep 5 12:39:18 UTC 2021
2021-09-05 20:42:54 -04:00
PX4 BuildBot
6278c072c9
Update submodule sitl_gazebo to latest Mon Sep 6 00:40:01 UTC 2021
...
- sitl_gazebo in PX4/Firmware (51697b0d07665d85ca1ebd9105e3cdc621b41969): https://github.com/PX4/PX4-SITL_gazebo/commit/7fda4d311a9daff4bec4f2fe83e63fde0b8f04b0
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/53d606b32f5729cc70d59281085d639bd97b30d7
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/7fda4d311a9daff4bec4f2fe83e63fde0b8f04b0...53d606b32f5729cc70d59281085d639bd97b30d7
53d606b 2021-09-01 stmoon - fix the bug for the low real time factor in gazebo
2021-09-05 20:42:33 -04:00
Daniel Agar
a4e9444ca4
Makefile: submodulesupdate include fetching all tags recursively
2021-09-05 14:50:56 -04:00
RomanBapst
93075ad5e8
rtl: fixed computation of return altitude if destination is not home
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-09-05 10:26:24 +02:00
Jaeyoung-Lim
d32f0d6168
Support headless mode for ignition gazebo
...
This adds support for `HEADLESS=1` when starting ignition gazebo with headless mode
2021-09-04 14:01:39 +02:00
Jaeyoung-Lim
3aa3f542ae
Update simulation-ignition submodule
2021-09-03 15:54:46 +02:00
Jaeyoung-Lim
121bdfa630
Add verbose option for ignition gazebo
...
This commit adds verbose option for ignition gazebo
2021-09-03 15:54:46 +02:00
Jaeyoung-Lim
3c57626627
Update world path for ignition gazebo
2021-09-03 15:54:46 +02:00
xdwgood
c35293107d
tailsitter.cpp:If transition timeout,abort transition
2021-09-03 13:41:40 +02:00
Beat Küng
007a7f78ae
CI: switch to github actions
2021-09-03 12:07:26 +02:00
Beat Küng
c96f0a48b6
test: update gtest to v1.11.0
2021-09-03 12:07:26 +02:00
Beat Küng
7c1860f286
geninv(): pass result as argument
...
depending on usage, this reduces stack usage a bit.
2021-09-03 12:07:26 +02:00
Beat Küng
dc7f119b99
geninv(): improve runtime performance and reduce stack usage
...
- use associativity of matrix operations to reduce size of temporary
matrices and number of multiplications in the M <= N case
- minimize the number of temporary matrices required
2021-09-03 12:07:26 +02:00
RomanBapst
92abf0545a
GeofenceBreachAvoidance: fixed bug which caused min vertical distance to fence
...
not to be calculated
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2021-09-02 15:45:19 +03:00
profff
9418d36cc9
Tools/docker_run.sh: use recent docker image to fix missing python jsonschema when compiling linux arm based targets ( #18178 )
2021-09-01 19:11:54 -04:00
Daniel Agar
99d7cf4255
parameters: only warn on invalid parameter import
2021-09-01 15:16:00 -04:00
Daniel Agar
92a48657e3
Jenkins: hardware tolerate listener command failure
...
- these are only for casually inspecting the system
2021-09-01 15:16:00 -04:00
Daniel Agar
86bd6a253b
Jenkins: hardware test rebooting back to back multiple times
2021-09-01 15:16:00 -04:00
Daniel Agar
06c673a94f
Jenkins: hardware move sd_bench to test section
2021-09-01 15:16:00 -04:00
Daniel Agar
478cc576ee
commander: warn on offboard mission init
...
- this could happen because the SD card was formatted
2021-09-01 15:16:00 -04:00
Daniel Agar
347720e049
Jenkins: hardware always reset board when finished
2021-09-01 15:16:00 -04:00
Daniel Agar
e7607b858d
sensors: use vehicle_imu timestamp_sample instead of timestamp
2021-09-01 15:16:00 -04:00
Daniel Agar
45001d1ba4
boards: px4_fmu-v5x_test disable modules to save flash
2021-09-01 15:16:00 -04:00
Daniel Agar
f1d00fe697
Tools/HIL: only print timestamp if newline in output
2021-09-01 15:16:00 -04:00
Daniel Agar
6ee16156bb
Jenkins: hardware only list relevant parameters
2021-09-01 15:16:00 -04:00
Daniel Agar
33a3bc143b
boards: ark_can-gps_debug disable systemcmds to save flash
2021-09-01 15:16:00 -04:00
Daniel Agar
225bd2d5a3
Jenkins: hardware limit stackcheck and debug build cpu usage
2021-09-01 15:16:00 -04:00
Daniel Agar
a5a457d744
sensors: relax default data_validator timeout 20->40ms
2021-09-01 15:16:00 -04:00
Daniel Agar
3ff9295cbd
Jenkins: hardware nxp_fmuk66-v3 limit IMU_GYRO_RATEMAX to save cpu
2021-09-01 15:16:00 -04:00
Daniel Agar
bd8937642f
lib/sensor_calibration: only warn if external rotation resetting
...
- this also happens with the actual default parameter value (-1)
2021-09-01 15:16:00 -04:00
Daniel Agar
40e5477edb
NuttX boards fix mkfatfs and rcS logic
2021-09-01 15:16:00 -04:00
Daniel Agar
65b1a9648d
Tools/HIL/run_nsh_cmd.py: fail if ERROR printed in output
2021-09-01 15:16:00 -04:00
Daniel Agar
2f99857b0a
systemcmds/bl_update: add CONFIG_ARCH_CHIP_STM32F7 file size limit
2021-09-01 15:16:00 -04:00
Daniel Agar
369776cd4e
Jenkins: hardware don't tolerate px4io status on known hardware
2021-09-01 15:16:00 -04:00
Daniel Agar
c6dd03a8aa
Tools/HIL/run_nsh_cmd.py - raise timeout slightly
...
- helps on slower debug builds
2021-09-01 15:16:00 -04:00
Daniel Agar
c508404975
boards/px4/fmu-v4pro: fix incorrectly sized FRAM
2021-09-01 15:16:00 -04:00
Daniel Agar
61931fcbbc
Jenkins: hardware failure allow px4_fmu-v5_debug monitor firmware upload failure
...
- due to reported errors in NuttX low level drivers
2021-09-01 15:16:00 -04:00
Daniel Agar
9e0fa8e82b
boards: set SENS_TEMP_ID defaults
2021-09-01 15:16:00 -04:00
Daniel Agar
5dfc07cb1b
systemcmds/param: add set-default sient (-s) option
2021-09-01 15:16:00 -04:00
Daniel Agar
054d0b995c
px4iofirmware: remove police lights to avoid getting stuck
2021-09-01 15:16:00 -04:00
Daniel Agar
2864735c44
Tools/HIL/monitor_firmware_upload.py - fail if there's an ERROR during startup
2021-09-01 15:16:00 -04:00
Daniel Agar
70831a8e2c
px4io: checkcrc warn on mismatch
2021-09-01 15:16:00 -04:00
Daniel Agar
8434da6f79
px4io: reduce upload retries 5 -> 2
2021-09-01 15:16:00 -04:00
Daniel Agar
6be7926ed3
px4io: add watchdog
...
- F1 iwdg:Support optional configuable init
Co-authored-by: David Sidrane <David.Sidrane@NscDg.com >
2021-09-01 15:16:00 -04:00
Daniel Agar
f856b89723
boards: Holybro H7 boards clear MPU early in board init
...
- needed if the bootloader configures the memory protection unit (MPU)
2021-09-01 08:53:05 +02:00
Daniel Agar
c700ffff92
boards: CUAV H7 boards clear MPU early in board init
...
- needed if the bootloader configures the memory protection unit (MPU)
2021-09-01 08:53:05 +02:00
Lorenz Meier
965f11e923
MRO: Set up MPU after boot to app
...
This is needed in case the bootloader configured the MPU, which could interfere with the app as the bootloader memory map / configuration is different.
2021-09-01 08:53:05 +02:00
Daniel Agar
a819a7b7c4
boards: cube orange fully clear any existing MPU configuration as soon as possible
2021-09-01 08:53:05 +02:00
Daniel Agar
7925787f62
px4io_serial: ensure TX DMA is stopped if exiting early on stream error
...
- otherwise the next retry can happen quickly enough that dma setup
hangs waiting for the stream
2021-08-31 23:11:07 +02:00
Julian Oes
6cb0259b79
commander: improve progress output
...
Instead of outputting progress at weird percentages and dropping 100%,
this now sends the progress every 10 %.
2021-08-30 21:05:40 -04:00
Daniel Agar
ca685490a9
drivers/rc_input: only print vrssi if analog stable
2021-08-30 12:45:56 -07:00
Daniel Agar
15c01a9732
drivers/rc_input: flush buffers when beginning new scan state
2021-08-30 12:45:56 -07:00
Daniel Agar
a305fc9c34
drivers/rc_input: only invert RC when starting/ending SBUS
2021-08-30 12:45:56 -07:00
Daniel Agar
79703c9c7a
drivers/rc_input: don't resume scanning if armed
2021-08-30 12:45:56 -07:00
Daniel Agar
98f89aae9b
drivers/rc_input: always report new lock
2021-08-30 12:45:56 -07:00
Hylke Faas
34483aef0f
Do not resend a mission request if it is not the expected sequence number, this can cause an excessive increase of used bandwith ( #18082 )
2021-08-30 13:39:51 +02:00
Daniel Agar
a917793248
mavlink: only block parameter sync until boot complete
2021-08-30 13:27:51 +02:00
Daniel Agar
ab1c90d831
boards: cubeorange/cubeyellow use amber LED for armed state
2021-08-28 09:15:41 -04:00
Jukka Laitinen
c3c30e5d4f
Fix memory corruption when work queue is being deleted
...
When the last WorkItem is deleted, it is removed from a work queue and the
queue is being stopped. But, the queue itself might get deleted in the middle,
in a higher priority thread than where the WorkItem deletion was performed from
If the WorkQueue::Detach accesses the member variables after this, there is memory
corruption
This happens in particular when launching i2c or spi devices in
I2CSPIDriverBase::module_start:
- The "initializer" is deleted when the instance is not found and the iterator
while loop continues.
- The workqueue is deleted in the middle of "initializer" deletion when the
WorkQueueRunner returns.
This prevents deletion of the WorkQueue before the Detach has been finished,
in the specific case that the ::Detach triggers the deletion
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-08-27 10:43:45 +02:00
Daniel Agar
99463fce48
Update submodule mavlink v2.0 to latest Thu Aug 26 12:39:19 UTC 2021 ( #18153 )
...
- mavlink v2.0 in PX4/Firmware (c6a6403ce2 ): https://github.com/mavlink/c_library_v2/commit/51204fc82bc89b6862ebf03a1f49e80c52feeecc
- mavlink v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/e0e24de6228326101ff85dd5cdea638f2569c70e
- Changes: https://github.com/mavlink/c_library_v2/compare/51204fc82bc89b6862ebf03a1f49e80c52feeecc...e0e24de6228326101ff85dd5cdea638f2569c70e
Co-authored-by: PX4 BuildBot <bot@px4.io >
2021-08-26 11:43:31 -04:00
Daniel Agar
c6a6403ce2
px4io: increase stack 1500 -> 1536 bytes
2021-08-25 21:32:05 +02:00
Daniel Agar
f59b54abd7
boards: io-v2 increase idle thread stack 280 -> 316 bytes
2021-08-25 21:32:05 +02:00
Daniel Agar
22e62a044a
px4iofirmware: never directly touch mixer from isr
2021-08-25 21:32:05 +02:00
Jacob Crabill
1ee5f75aa5
uavcan_v1: Add PublicationManager and uORB Publisher ( #17863 )
2021-08-25 14:56:23 -04:00
Beat Küng
d8214f5e00
component_information: merge extra component_information_header target
...
With Makefile build, generate_component_general.py was called twice during
build, which did not happen with the ninja build.
This created a race condition with the following error in rare cases:
Traceback (most recent call last):
File "/__w/PX4-Autopilot/PX4-Autopilot/src/lib/component_information/generate_component_general.py", line 79, in <module>
save_compressed(filename)
File "/__w/PX4-Autopilot/PX4-Autopilot/src/lib/component_information/generate_component_general.py", line 33, in save_compressed
with open(filename, 'r') as content_file:
FileNotFoundError: [Errno 2] No such file or directory: '/__w/PX4-Autopilot/PX4-Autopilot/build/px4_sitl_default/component_general.json'
make[3]: *** [src/lib/component_information/CMakeFiles/component_information_header.dir/build.make:68: component_general.json] Error 1
Merging the targets avoids the duplicate execution.
2021-08-25 10:04:39 -04:00
Beat Küng
af53b60713
Revert "component_information: add debug instrumentation for FileNotFoundError exception"
...
This reverts commit ca454c93d1 .
2021-08-25 10:04:39 -04:00
Jukka Laitinen
8f03045fb2
Increase micrortps_client_rcv stack for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-08-24 10:16:27 -04:00
Jukka Laitinen
69021dbafa
Increase navigator stack for 64-bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-08-24 10:16:27 -04:00
Jukka Laitinen
e49791cdf2
Increase mavlink stack for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-08-24 10:16:27 -04:00
Jukka Laitinen
523578d2ce
Increase stack size of wq:manager and worker threads for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-08-24 10:16:27 -04:00
Jukka Laitinen
29248cb6b8
Increase gps stack for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-08-24 10:16:27 -04:00
Jukka Laitinen
733b1e9e67
Increase logger stack size for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-08-24 10:16:27 -04:00
Jukka Laitinen
8cf121fc9d
Increase dataman stack size for 64 bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2021-08-24 10:16:27 -04:00
Kjersti Brynestad
62aa9c9f34
Correct conversion from sec to usec
2021-08-23 20:17:26 +01:00
Andrew Brahim
04adf6c9be
drivers/distance_sensor/vl53l1x: added multiple region of interest settings ( #18073 )
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2021-08-23 14:15:41 -04:00
Daniel Agar
a4527485a3
mavlink: update radio status timestamp atomically
...
- this is updated by the mavlink rx thread, but checked in the tx thread
2021-08-23 11:16:10 -04:00
Daniel Agar
61702d0d97
sensors: always start baro/GPS/mag aggregators if SYS_HAS_* set
...
- add new SYS_HAS_GPS parameter
2021-08-23 10:59:58 -04:00
Thomas Stauber
6d3120d00d
lower case c in Quadchute
2021-08-23 09:08:53 -04:00
Thomas
a260ea8233
more consistent quadchute messages
2021-08-23 09:08:53 -04:00
Daniel Agar
2b1c97eb37
Update world_magnetic_model to latest Sun Aug 22 11:14:24 UTC 2021
2021-08-22 16:28:00 -04:00
Daniel Agar
60d50b9d5d
boards: px4_fmu-v6x_default disable batmon to save flash
2021-08-22 14:48:01 -04:00
David Sidrane
1339dd3681
px4_fmuv6x:Use parameter setting for ina22x
2021-08-22 14:48:01 -04:00
David Sidrane
f2925d234e
px4_fmuv5x:Use parameter setting for ina22x
2021-08-22 14:48:01 -04:00
David Sidrane
bf89771710
ina22x:Enabled by paramaters
2021-08-22 14:48:01 -04:00
David Sidrane
f820771ea2
px4_fmuv6x:Add INA228
2021-08-22 14:48:01 -04:00
David Sidrane
7e7cbceaea
px4_fmuv5x:Add INA228
2021-08-22 14:48:01 -04:00
David Sidrane
f819be2075
Support INA228
2021-08-22 14:48:01 -04:00
Beat Küng
fdb92d4746
protocol_splitter: check available bytes before read()
...
This is to avoid blocking in any case.
If we don't do that, ioctl() may signal data available while the other
protocol does a read(), and when the first protocol tries to do a read(),
it would not have data anymore and would block (so this avoids a race
condition).
2021-08-22 10:42:13 -04:00
Beat Küng
5d1e78befb
protocol_splitter: return correct FIONSPACE
...
This is now possible since we don't parse the protocol.
2021-08-22 10:42:13 -04:00
Beat Küng
6edb55c874
protocol_splitter: simplify write()
...
With the protocol header we don't need to parse the protocol anymore.
2021-08-22 10:42:13 -04:00
Beat Küng
868f9cebb0
protocol_splitter: return 0 when no data to read instead of -1
...
This avoids mavlink adding another usleep() due to read error
2021-08-22 10:42:13 -04:00
Beat Küng
375b014444
protocol_splitter: reduce poll timeout from 100ms to 10ms
...
This matches the timeout in mavlink_receiver.
With the higher timeout sending of e.g. mavlink logging was done at a lower
rate.
2021-08-22 10:42:13 -04:00
Beat Küng
00d939995b
fix micrortps_transport: set poll fd when baudrate is 0
2021-08-22 10:42:13 -04:00
Daniel Agar
0885f37667
micrortps_bridge: add "msg/tools/urtps_bridge_topics.yaml" to CMAKE_CONFIGURE_DEPENDS
...
- this is necessary because urtps_bridge_topics.yaml is processed at
cmake configure time (via cmake execute_process)
2021-08-22 10:41:04 -04:00
Daniel Agar
4422030037
micrortps_bridge/micrortps_client: fix topic path dependencies
2021-08-22 10:41:04 -04:00
Christian Llanes
c0efbe1f9c
change PublicationMulti-> Publication as a temporary fix
2021-08-20 19:56:56 +01:00
David Sidrane
376b1c9987
rgbled_ncp5623c:Add comand line mapping of PWM to color
2021-08-20 10:15:57 -04:00
David Sidrane
8e04985940
rgbled_ncp5623c:Needs 2 retries
2021-08-20 10:15:57 -04:00
David Sidrane
74903cf215
rgbled_ncp5623c:Can change address, return actual
2021-08-20 10:15:57 -04:00
David Sidrane
cba78081af
rgbled_ncp5623c:Document support for ncp5623[c|b] parts
2021-08-20 10:15:57 -04:00
David Sidrane
78b76cb636
i2c_spi_buses:Support devices that may change address
2021-08-20 10:15:57 -04:00
David Sidrane
075cb39c34
vcm1193l:Bug Fix set default address
2021-08-20 10:15:57 -04:00
David Sidrane
8f4811daa8
px4_fmu-v5x:Newer HW Start BARRO on bus 2
2021-08-20 10:15:57 -04:00
David Sidrane
566d1499bc
px4_fmu-v6x:Use HB 10pin GPS rotation
2021-08-20 10:15:57 -04:00
David Sidrane
dc5fd25e8c
px4_fmu-v5x:Use HB 10pin GPS rotation
2021-08-20 10:15:57 -04:00
David Sidrane
1618933014
rcS:Scope netman to all 5X and 6X
2021-08-20 10:15:57 -04:00
Daniel Agar
69d1a73f85
Update submodule GPSDrivers to latest Fri Aug 20 12:39:20 UTC 2021 ( #18111 )
...
- GPSDrivers in PX4/Firmware (1cbb007b95d375ababeae79f753cfafae9a9a4de): https://github.com/PX4/PX4-GPSDrivers/commit/8af5336d3f112278fd321e2c512453f23a350540
- GPSDrivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/6fcf06894973240d45dc49d3b31565917dc8f2f6
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/8af5336d3f112278fd321e2c512453f23a350540...6fcf06894973240d45dc49d3b31565917dc8f2f6
6fcf068 2021-08-18 Femtomes - Femto_gps_driver: change UNLOGALL command
c51adac 2021-08-18 Oleg Evseev - nmea: add rtcm parsing and add debug ouput
2021-08-20 10:14:47 -04:00
Daniel Agar
df3608d38a
Update submodule mavlink v2.0 to latest Fri Aug 20 12:39:17 UTC 2021
...
- mavlink v2.0 in PX4/Firmware (31545f85fb ): https://github.com/mavlink/c_library_v2/commit/5095bcd856537330e66e6fc833a1c7bf689bf5ed
- mavlink v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/51204fc82bc89b6862ebf03a1f49e80c52feeecc
- Changes: https://github.com/mavlink/c_library_v2/compare/5095bcd856537330e66e6fc833a1c7bf689bf5ed...51204fc82bc89b6862ebf03a1f49e80c52feeecc
2021-08-20 09:05:23 -04:00
Daniel Agar
31545f85fb
gitmodules update NuttX branches to latest v10.1.0
2021-08-19 13:02:31 -04:00
Beat Küng
c4b91c8558
calibration params: avoid using NaN as default
...
- NaN is not supported by JSON, and leads to parsing failure in QGC.
- fixes https://github.com/PX4/PX4-Autopilot/issues/18095
2021-08-19 11:29:26 -04:00
Daniel Agar
507cce78d5
boards: px4_fmu-v6{u,x} fix test variant flash overflow and sync defaults
2021-08-19 11:25:21 -04:00
Daniel Agar
c4499aa7bb
uavcan: save parameter after successful set
2021-08-19 02:06:02 -07:00
Daniel Agar
06c2d14903
ekf2: multi-mode allow first instance to save EKF2_MAG_DECL
2021-08-19 10:14:35 +02:00
Daniel Agar
1af2ecaff6
boards: px4_fmu-v5_test disable attitude_estimator_q and local_position_estimator to save flash
2021-08-18 19:31:24 -04:00
Christian Llanes
6423ea50e6
add sensor_combined to urtps_bridge_topics.yaml
2021-08-18 23:52:45 +01:00
Daniel Agar
3423c5e48a
boards: nxp_fmurt1062-v1_default disable attitude_estimator_q and local_position_estimator to save flash
2021-08-18 18:06:22 -04:00
Daniel Agar
3fc4ee6c90
boards: px4_fmu-v6x_default disable attitude_estimator_q to save flash
2021-08-18 18:01:14 -04:00
Daniel Agar
4c401b070e
boards: cuav_can-gps-v1 delete unused debug variant
2021-08-18 17:40:33 -04:00
Beat Küng
7b9d16d2f8
fix gps: remove Wno-cast-align & fix it
2021-08-18 12:24:17 -04:00
Beat Küng
4b49f9261e
gps: add generic nmea driver
2021-08-18 12:24:17 -04:00
Beat Küng
22e2fc9465
gps: add missing case & arguments for femtomes driver
2021-08-18 12:24:17 -04:00
Daniel Agar
49f81a9e0e
boards: px4_fmu-v2_default disable load_mon to save flash
2021-08-18 12:20:13 -04:00
Daniel Agar
7b8ef07235
github actions: add all CAN nodes
2021-08-18 12:17:46 -04:00
Claudio Micheli
2607527d63
Commander: improve user notification for yaw emergency
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-08-18 10:16:02 -04:00
Hyungsub
d089d4a6a4
fix memory bugs in replay and bl_update
2021-08-18 07:45:51 +02:00
alexklimaj
810dbbd25b
AFBR mode switching, rate switching, and test
2021-08-17 19:38:33 -04:00
Hamish Willee
c1f588806a
BAT_ADC_CHANNEL should point to BAT1_I_CHANNEL
2021-08-17 19:35:11 -04:00
Daniel Agar
cb610caf1e
drivers: minimize additional I2C retries
2021-08-17 09:54:50 -04:00
Daniel Agar
8a8171c7aa
platforms/nuttx: px4_init initialize and reset all I2C buses
2021-08-17 09:54:50 -04:00
Daniel Agar
2b581ef407
platforms/nuttx: s32k14x & s32k1xx add i2c_hw_description.h
2021-08-17 09:54:50 -04:00
Daniel Agar
29616ec387
Jenkins: remove modalai_fc-v1 temporarily
...
- board test harness needs to be repaired
2021-08-16 21:45:37 -04:00
Beat Küng
474b0188f7
mixer_module: set MAX_CUSTOM_OPT_LEVEL
2021-08-16 11:05:39 -04:00
Beat Küng
f00f3d1a27
dshot: improve performance by removing extra motor_buffer array
...
Reduces CPU load by almost 1.5% @ 2khz on F4 and F7.
This changes the motor ordering on boards where the timer ordering does
not match the order of the timer usage in the channels defintion.
Only omnibus f4sd is affected.
2021-08-16 11:05:39 -04:00
Beat Küng
afed10618b
dshot: inline up_dshot_motor_data_set and up_dshot_motor_command
...
Slight performance improvement (~0.1% @1khz on F4)
2021-08-16 11:05:39 -04:00
Hamish Willee
8aecc64a73
generate uorb - support multiline descriptions
2021-08-16 08:29:44 +02:00
Hamish Willee
9c081ed24b
ekf2_timestamps.msg - make first line a complete sentence
...
Fixes the docs.
2021-08-16 08:29:44 +02:00
Hamish Willee
51fa834ac6
generate_msg_docs: generate better page title
2021-08-16 08:29:44 +02:00
Daniel Agar
ff39e27e2d
sensor calibration: save temperature at calibration time for monitoring
2021-08-15 11:19:24 -04:00
Daniel Agar
a76bcd3e01
CI fix renamed uorb_to_ros_rtps_ids.py -> uorb_to_ros_urtps_topics.py
2021-08-14 15:53:14 -04:00
Daniel Agar
c6931814fa
Jenkins: fix msg docs stash and archive
2021-08-14 15:18:57 -04:00
Daniel Agar
b98656ccb4
Jenkins: fix msg files stash
2021-08-14 14:58:57 -04:00
Daniel Agar
f2bae02f87
msg: purge unused qshell
2021-08-14 12:54:01 -04:00
Daniel Agar
5fb386a1bb
magnetometer/bosch/bmm150: free all perf counters
2021-08-14 11:42:53 -04:00
Daniel Agar
a83675c622
gyro_fft: improve scheduling
...
- move to high priority work queue (from low priority)
- schedule slightly more often to avoid missing messages
- perf counter include all FFT processing work
- lazily allocate gyro gap perf counters on initial sensor selection
2021-08-13 15:00:08 -04:00
David Sidrane
8952fa2935
rc.sensors:Fix Shell Check warning
2021-08-13 14:22:00 -04:00
David Sidrane
3c227b6f76
hardfault_log:Remove verbose output when CONSTRAINED_FLASH_NO_HELP is lit
2021-08-13 14:22:00 -04:00
David Sidrane
53c81d986e
atl_mantis-edu:Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
c4b810eef9
tap_esc_uploader:Use inttypes
2021-08-13 14:22:00 -04:00
David Sidrane
a7123f115c
sih:Fix type mismatch
2021-08-13 14:22:00 -04:00
David Sidrane
e8c418caaf
EKF:Use inttypes
2021-08-13 14:22:00 -04:00
David Sidrane
79f8865e65
px4_fmu-v2:All configs Use NO_HELP option to save flash
2021-08-13 14:22:00 -04:00
David Sidrane
3e9c8e401e
freefly_can-rtk-gps_canbootloader: Stub out printf to remove write dependancy
2021-08-13 14:22:00 -04:00
David Sidrane
518700b39b
platforms/nuttx/CMakeLists:Resolve fs->libc(strcat) libc->fs
2021-08-13 14:22:00 -04:00
David Sidrane
bb913ae11a
system_load:Track Dynamic PID hash
2021-08-13 14:22:00 -04:00
David Sidrane
e6d9c2b734
px4_fmu-v5_optimized: Fit in flash
2021-08-13 14:22:00 -04:00
David Sidrane
cf292bef07
px4_fmu-v6x: Update nsh defconfig NuttX 10.1.0+ CONFIG_NET_SOCKOPTS Automatic
2021-08-13 14:22:00 -04:00
David Sidrane
f5d679fae4
px4_fmu-v5x: Update nsh defconfig NuttX 10.1.0+ CONFIG_NET_SOCKOPTS Automatic
2021-08-13 14:22:00 -04:00
David Sidrane
cab2ba209e
px4_fmu-v5x: Update base_phy_DP83848C defconfig NuttX 10.1.0+ CONFIG_NET_SOCKOPTS Automatic
2021-08-13 14:22:00 -04:00
David Sidrane
53477a1f82
av_x-v1: Update nsh defconfig NuttX 10.1.0+ CONFIG_NET_SOCKOPTS Automatic
2021-08-13 14:22:00 -04:00
David Sidrane
a1c90057cb
px4_fmu-v5:ARM Stack check (debug) needs headroom
2021-08-13 14:22:00 -04:00
David Sidrane
10d3909087
px4_fmu-v5:ARM Stack check needs headroom
2021-08-13 14:22:00 -04:00
David Sidrane
58fc5b21b8
NuttX at 10.1.0+
...
With PX4 contrib for building
2021-08-13 14:22:00 -04:00
David Sidrane
e2d05157dd
afbrs50: Use inttypes
2021-08-13 14:22:00 -04:00
David Sidrane
9455bfd857
px4_fmu-v5: Update uavcanv1 defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
e3104861df
cuav_can-gps-v1: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
8cdea33074
modalai_fc-v2: Update bootloader defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
02ef9dc188
modalai_fc-v2: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
5beda51fa4
modalai_fc-v1: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
b600c7cc55
cuav_x7pro: Update bootloader defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
a0c74a8563
cuav_x7pro: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
51b1cf774c
cuav_nora: Update bootloader defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
b8aa6ccaa1
cuav_nora: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
a73b688566
holybro_kakutef7: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
b3555ada6b
holybro_can-gps-v1: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
7d572c515c
holybro_pix32v5: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
55bf2c7610
holybro_durandal-v1: Update bootloader defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
b45e0dd872
holybro_durandal-v1: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
6b27c28787
uvify_core: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
9e3d275f0c
omnibus_f4sd: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
3c78d7285a
freefly_can-rtk-gps: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
24a263a6bc
av_x-v1: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
9676b3fd27
airmind_mindpx-v2: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
2731238ce3
ark_can-gps: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
7268c344e4
ark_can-flow: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
defbb0e17a
mro_ctrl-zero-f7-oem: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
47f1b934d3
mro_x21: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
0823bb5584
mro_x21-777: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
f527286200
mro_ctrl-zero-h7-oem: Update bootloader defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
5446d4bde8
mro_ctrl-zero-h7-oem: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
e96c3e5093
mro_pixracerpro: Update bootloader defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
1d789863b4
mro_pixracerpro: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
fe8c902f90
mro_ctrl-zero-f7: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
49c85e7713
mro_ctrl-zero-h7: Update bootloader defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
0d47f1a3cb
mro_ctrl-zero-h7: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
181e82dd17
nxp_fmurt1062-v1: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
89c553b161
nxp_fmuk66-v3: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
ea1538a04f
nxp_fmuk66-v3: Update socketcan defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
6ad56c537f
nxp_fmuk66-e: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
71d5de5715
nxp_fmuk66-e: Update socketcan defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
44b29b6126
nxp_ucans32k146: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
cc6d15b4fd
bitcraze_crazyflie: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
655a10ffdd
bitcraze_crazyflie21: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
64bf02384f
cubepilot_cubeyellow: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
281a238bb0
cubepilot_cubeyellow: Update test defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
9c1752bf4d
cubepilot_io-v2: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
d9da05bd02
cubepilot_cubeorange: Update bootloader defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
2a4b4824e5
cubepilot_cubeorange: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
f5b22d8832
cubepilot_cubeorange: Update test defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
9b15d2db10
px4_fmu-v6u: Update bootloader defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
d4d149758d
px4_fmu-v6u: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
ffc9ed8a75
px4_fmu-v5: Update debug defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
3e020a33b9
px4_fmu-v5: Update optimized defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
33897727cd
px4_fmu-v5: Update stackcheck defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
63198fb6cb
px4_fmu-v5: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
0b084461b5
px4_fmu-v4pro: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
6e93251169
px4_fmu-v5x: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
7344c050a8
px4_fmu-v5x: Update base_phy_DP83848C defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
cb150b3ced
px4_fmu-v3: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
c3d9504933
px4_io-v2: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
be479654c2
px4_fmu-v2: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
0316010027
px4_fmu-v6x: Update bootloader defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
639486f4ba
px4_fmu-v6x: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
d709bafa11
px4_fmu-v4: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
2e4e4018b6
px4_fmu-v5:ARM Stack check needs headroom (237 bytes)
2021-08-13 14:22:00 -04:00
David Sidrane
bea495999f
spracing_h7extreme:Update defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
173e5c7554
NuttX:Track Stack naming changes
2021-08-13 14:22:00 -04:00
David Sidrane
069130403d
LoadMon:Support NuttX Dynamic FDs
2021-08-13 14:22:00 -04:00
David Sidrane
4353d0faf3
print_load:Support NuttX Dynamic FDs
2021-08-13 14:22:00 -04:00
David Sidrane
ec61512cdf
NuttX inits null console
2021-08-13 14:22:00 -04:00
David Sidrane
01ef9cf3e6
NuttX at 10.1.0+
...
With PX4 contrib for building
2021-08-13 14:22:00 -04:00
Silvan Fuhrer
40f9b53b90
Remove a couple of unnecessary reboot_required from parameter meta data
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-08-13 10:35:43 -04:00
Jaeyoung-Lim
d30760a2ea
Remove flap scaling to prevent flaps being deployed in manual mode
...
This commit restores the flap scaling since it was always getting deployed in manual flight modes
2021-08-13 15:46:23 +02:00
Beat Küng
72bc8647a9
commander: add sensors reset to factory calibration
2021-08-12 10:20:33 -04:00
Daniel Agar
3f172dbfa7
ROMFS: new parameters for starting differential pressure sensors
2021-08-12 10:11:13 -04:00
romain-chiap
c8346534f1
sih: using Quatf::expq(), fuselage added
2021-08-12 10:10:03 -04:00
Beat Küng
265c77b02a
logger: remove unused topics, move some to debug profile
2021-08-12 10:09:11 -04:00
Beat Küng
c0285611ec
fix logger: turn off lockstep when starting log streaming
...
Lockstep created deadlocks between logger and mavlink, due to logger
waiting for mavlink and mavlink waiting for lockstep.
2021-08-12 10:09:11 -04:00
Beat Küng
f88f224fe6
logger: avoid data bursts by distributing slow subscription updates over time
...
There's an increasing amount of slow logged topics at 1-2Hz, which were all
updated in the same logger iteration, leading to data bursts. For log
streaming this started to exceed uart buffer sizes. By distributing updates
more equal over time those bursts are removed, reducing buffer size
requirements.
Tests showed during steady state a reduction of maximum topic updates per
iteration from 40 down to 17.
Also the SD log buffer fill level is more constant.
2021-08-12 10:09:11 -04:00
Beat Küng
d3c45c00c7
mavlink_ulog_streaming: when stopping, wait after receiving the ack
...
So we log additional data send afterwards
2021-08-12 10:09:11 -04:00
Beat Küng
e1ac6fe297
logger: send post-flight perf data when stopping mavlink log streaming
...
- send out VEHICLE_CMD_RESULT_IN_PROGRESS
- delete the ulog object when receiving the ACK from logger, instead of
the stop command
2021-08-12 10:09:11 -04:00
Beat Küng
0f6bf6bc0e
refactor gps: use enum class for gps_driver_mode_t
2021-08-12 10:06:39 -04:00
Beat Küng
09a42e7af2
gps: extend GPS_DUMP_COMM param to enable RTCM output + logging
2021-08-12 10:06:39 -04:00
Martina Rivizzigno
159c87a6fb
ll40ls: add support for LidarLite V4
...
Co-authored-by: Claudio Micheli <claudio@auterion.com >
2021-08-12 10:05:19 -04:00
Daniel Agar
68dcc25709
flight_mode_manager: ManualAcceleration support weathervane yaw handler
...
- fixes https://github.com/PX4/PX4-Autopilot/issues/17911
2021-08-12 09:58:29 -04:00
TSC21
21953daa3b
microRTPS: transport: fix UART configuration
2021-08-12 08:44:53 +02:00
TSC21
4b6646c5f3
microRTPS: transport: normalize configs with mavlink/mavlink-router
2021-08-12 08:44:53 +02:00
TSC21
af8a6117fa
microRTPS: agent: add missing 'g' option
2021-08-12 08:44:53 +02:00
TSC21
2a368b4db1
uorb_to_ros_urtps_topics: minor cleanup
2021-08-12 08:44:53 +02:00
TSC21
74557c9071
uorb_to_ros_msgs: minor cleanup
2021-08-12 08:44:53 +02:00
TSC21
00ad0d3b82
microRTPS: add make targets to update the PX4-ROS2/microRTPS bridge
...
This allows to easily update the px4_ros_com and/or px4_msgs through a make target and by passing the location of their directories
2021-08-12 08:44:53 +02:00
TSC21
8762dce762
microRTPS: transport: small format fix
2021-08-12 08:44:53 +02:00
TSC21
fae1627d92
microRTPS: client: cleanup and make arguments consistent
2021-08-12 08:44:53 +02:00
TSC21
109b031156
microRTPS: agent: cleanup and make arguments consistent
2021-08-12 08:44:53 +02:00
TSC21
e83a3a6cf7
microRTPS: update RTPS message list naming from 'ids' to 'msgs'
2021-08-12 08:44:53 +02:00
TSC21
0b23679f98
msg: templates: update empy contexts, required fields and license header years
2021-08-12 08:44:53 +02:00
TSC21
ffa70ac0fd
microRTPS: generate_microRTPS_bridge: run fastrtsgen only once for all files
...
Reducing the generation time to a 4th of the time (!!)
2021-08-12 08:44:53 +02:00
TSC21
a8a56a03a4
microRTPS: rename uorb_to_ros_rtps_ids to uorb_to_ros_urtps_topics and remove the 'id' references on it
2021-08-12 08:44:53 +02:00
TSC21
4609949bbb
microRTPS: generate_microRTPS_bridge: only run the generator for the topics that are actually marked to be used
2021-08-12 08:44:53 +02:00
TSC21
695e1fa574
uorb_to_ros_rtps_ids: add an header with a notice regarding the autogneration of the 'px4_ros_com' urtps_bridge_topics.yaml file
...
Although it can be modified manually, we are going to recommend the developer to generate it from the PX4-Autopilot side instead
2021-08-12 08:44:53 +02:00
TSC21
c478e2985a
microRTPS: simplify the attribution of the RTPS IDs by makiing it automatic
...
1. The RTPS IDs are now automatically assigned to the topics
2. Only the topics that get defined to be sent or received in the urtps_bridge_topics.yaml (renamed, since now it doesn't contain IDs) receive the IDs
3. Any addition or removal on the urtps_bridge_topics.yaml file might update the topic IDs - this will require that the agent and the client ID list has to be in sync. This will further require a robustification of the way we check the IDs and the message definitions when starting the bridge.
2021-08-12 08:44:53 +02:00
TSC21
f557fbc99f
protocol_splitter: add perf counters for the stats so they can be logged
2021-08-12 08:44:53 +02:00
TSC21
5a75277ff1
protocol_splitter: update header length and payload length position
...
To match the change on the microRTPS message header, which adds the sys ID as the 5th byte of the header
2021-08-12 08:44:53 +02:00
TSC21
ba3dbbd38d
microRTPS: send the system ID with the RTPS packet header and remove the need for extra id fields in uORB
...
This allows that all messages (not only timesync messages) that get received on the same system that sent them do not get parsed. As the microRTPS agent is built currently, this will only happen right now if someone sets the same UDP port to send and receive data, or by manually changing the agent topics (which were always autogenerated).
2021-08-12 08:44:53 +02:00
TSC21
a10dab516c
timesync: remove system ID field from the timesync message
2021-08-12 08:44:53 +02:00
TSC21
25dbffe1aa
microRTPS: agent: split FMU input from output topics in Pubs/Subs
2021-08-12 08:44:53 +02:00
TSC21
d31b7feb31
microRTPS: agent: publish timesync status
2021-08-12 08:44:53 +02:00
TSC21
a324e5465a
timesync: extend timesync_status message with protocol source field and enum
2021-08-12 08:44:53 +02:00
TSC21
a930edf34b
init.d-posix: rcS: allow to use a different startup config to the micrortps_client in UDP
2021-08-12 08:44:53 +02:00
TSC21
6d4f65a47a
microRTPS: allow timesync using ROS time
2021-08-12 08:44:53 +02:00
TSC21
e762d57222
sitl_run: allow to start required ROS2 plugins with Gazebo when ROS_VERSION is set to 2
2021-08-12 08:44:53 +02:00
Julian Oes
cb2b09b80f
protocol_splitter: implement with one read buffer
...
This is an attempt to implement the protocol_splitter with one
read buffer only. The idea is to prevent additional copy
operations from an incoming buffer to the respective protocol buffer.
Right now the benefit is not really there because we are not using a
ringbuffer and have to shift data around quite a bit.
We also try to parse and copy data to the reader immediately without
doing a read from the device which potentially takes 100ms.
We further use a timeout mechanism to prevent starvation if one reader
disconnects and the buffer would fill up from unread data.
2021-08-12 08:44:53 +02:00
Julian Oes
0c9fefce32
urtps: rectify comment
2021-08-12 08:44:53 +02:00
Julian Oes
31b1241de8
uorb_microcdr: collect all messages
...
Without this we are potentially too slow to collect them all which can
lead to the buffer in protocol_splitter to overflow and be reset.
2021-08-12 08:44:53 +02:00
Daniel Agar
326c4f95ce
ROMFS cmake remove directory VERBATIM
2021-08-11 13:29:14 -04:00
Beat Küng
61e3ec53b0
mixer_module: check for motor test after topic update
...
Otherwise if a module restricts the update rate via setMaxTopicUpdateRate()
and then motor_test is used, the module might run faster than expected.
2021-08-11 12:06:32 -04:00
Claudio Micheli
a6d88cad18
mavlink_main: add ESC_INFO & ESC_STATUS to onboard_lowbandwith configuration
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2021-08-11 17:20:08 +02:00
Oleg Evseev
a93f8dade4
mavlink: receiver fix geo include
2021-08-10 08:18:28 -04:00
PX4 BuildBot
e9a21ee911
Update submodule devices to latest Mon Aug 9 00:39:11 UTC 2021
...
- devices in PX4/Firmware (48b31124a4cdab9f7f91dba14649206f41c30c97): https://github.com/PX4/PX4-GPSDrivers/commit/f51267815db3331723b880ab20afc5a67a87c22b
- devices current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/6815e1d3b294cd6ea583294ebadf191321e4beba
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/f51267815db3331723b880ab20afc5a67a87c22b...6815e1d3b294cd6ea583294ebadf191321e4beba
6815e1d 2021-08-04 zhangft - femtomes: add UAVSTATUS and fall back to 10Hz rate if 20Hz not supported
2021-08-08 22:31:14 -04:00
Daniel Agar
c8366e736e
ROMFS: update ATL Mantis EDU optical flow defaults
2021-08-08 14:21:28 -04:00
Daniel Agar
66cfacaec2
boards: px4_fmu-v6x_test disable attitude_estimator_q to save flash
2021-08-08 14:20:58 -04:00
Daniel Agar
2ad448a4e8
boards: holybro_pix32v5 remove unused test build
2021-08-08 14:20:58 -04:00
alexklimaj
a904bb506f
Fix afbrs50 high cpu load from switching
2021-08-08 11:42:30 -04:00
bresch
741f9c6d1a
Commander: change attitude quaternion check to avoid numerical issues
2021-08-08 11:41:23 -04:00
Daniel Agar
fb4ac0f08c
ekf2: remove redundant IMU vibration metrics
...
- consume IMU vibration metrics from vehicle_imu_status
2021-08-08 06:26:03 -07:00
Daniel Agar
a397004bf8
adis16448: add additional delay after transfer in case of back to back transcations
...
- add verified register read method
2021-08-08 06:25:16 -07:00
Julian Oes
0033c0fc51
navigator: fix param description
2021-08-05 15:18:55 +02:00
bresch
01d0b8800e
commander: report GNSS yaw fault to user
2021-08-05 11:10:02 +02:00
bresch
44219e9f45
EKF: add GNSS yaw to emergency yaw fallback test
2021-08-05 11:10:02 +02:00
bresch
11cd51c132
EKF: allow emergency reset in GNSS yaw and EV yaw aiding modes
2021-08-05 11:10:02 +02:00
bresch
4ebfbc6eab
GNSS yaw: use NIS sequence to detect bias in state
...
A constant large value in the (signed) normalized innovation test ratio is a sign
of bias in the state estimate. This metric can be used to trigger a
covariance boost or reset
2021-08-05 11:10:02 +02:00
bresch
3fe04a91f6
GNSS yaw: add observation jump on ground
...
Some receivers are initializing to some heading and then resetting to
the correct one after a couple of seconds. EKF2 should detect that and
reset to the new value
2021-08-05 11:10:02 +02:00
bresch
30c7a596af
GNSS yaw: allow unlimited resets on ground
2021-08-05 11:10:02 +02:00
bresch
e90e1c7e2a
GNSS yaw: use dedicated observation noise
2021-08-05 11:10:02 +02:00
romain-chiap
718e5b5b5d
sih: add fixed-wing support
2021-08-05 09:16:14 +02:00
PX4 BuildBot
6060ec8c9a
Update submodule matrix to latest Thu Aug 5 00:39:10 UTC 2021
...
- matrix in PX4/Firmware (6be58a88905d2ef63bc3aaa1a01c82346c181742): https://github.com/PX4/PX4-Matrix/commit/b8568a89db8455d0ab2e2e391e2149ba2e5e10dd
- matrix current upstream: https://github.com/PX4/PX4-Matrix/commit/3d1c9b988dff1d95f36cdd1df3e84d7a2365501c
- Changes: https://github.com/PX4/PX4-Matrix/compare/b8568a89db8455d0ab2e2e391e2149ba2e5e10dd...3d1c9b988dff1d95f36cdd1df3e84d7a2365501c
3d1c9b9 2021-08-05 romain-chiap - quaternion exponential (#164 )
2021-08-04 21:59:01 -04:00
romain-chiap
3d1c9b988d
quaternion exponential ( #164 )
2021-08-04 19:04:57 -04:00
Daniel Agar
be2f65be35
drives/tap_esc: refactor to use OutputModuleInterface
2021-08-04 17:15:24 -04:00
Daniel Agar
2e02ad7c4e
atl_mantis-edu front and rear status LEDS
2021-08-04 17:15:24 -04:00
Daniel Agar
89b920333b
boards: px4_fmu-v2_multicopter disable gyro_calibration module to save flash
2021-08-04 17:15:24 -04:00
Daniel Agar
fb3b7a4649
mavlink: receiver handle RC_CHANNELS if from MAV_COMP_ID_SYSTEM_CONTROL
2021-08-04 17:15:24 -04:00
Daniel Agar
2b96e330a5
boards: atl_mantis-edu add bootloader
2021-08-04 17:15:24 -04:00
Daniel Agar
5d06ef8256
drivers/barometer/mpc2520: MaierTek MPC2520 barometer support
...
- used in the Advanced Technolgy Labs (ATL) Mantis EDU
2021-08-04 17:15:24 -04:00
Daniel Agar
6ab8153f32
drivers/tap_esc: Advanced Technology Labs (ATL) Mantis EDU ESC support
...
Co-authored-by: Julian Oes <julian@oes.ch >
Co-authored-by: Daniel Agar <daniel@agar.ca >
2021-08-04 17:15:24 -04:00
Daniel Agar
e900f2ea54
boards: Advanced Technology Labs (ATL) Mantis EDU support and airfarme (SYS_AUTOSTART 4061)
...
Co-authored-by: Julian Oes <julian@oes.ch >
Co-authored-by: Daniel Agar <daniel@agar.ca >
2021-08-04 17:15:24 -04:00
David Sidrane
8f64f7ce90
uavcan_1:Fixed hardfault on stop
2021-08-04 10:40:34 -04:00
Hamish Willee
6aa4e12b5f
Typo in LTEST_MEAS_UNC docs
2021-08-04 08:01:39 +02:00
Hamish Willee
f5dd0edc9f
LTEST_VEL_UNC_IN typo in docs
2021-08-04 08:01:39 +02:00
Hamish Willee
b157bc407e
Typo in docs for LPE_VIS_DELAY
2021-08-04 08:01:39 +02:00
Hamish Willee
b82464f0ef
Parameter typo PLD_MAX_SRCH
2021-08-04 08:01:39 +02:00
Beat Küng
ca454c93d1
component_information: add debug instrumentation for FileNotFoundError exception
...
The following exception occurs in some rare cases (but only with make build: NO_NINJA_BUILD=1 px4_sitl_default):
Traceback (most recent call last):
File "/__w/PX4-Autopilot/PX4-Autopilot/src/lib/component_information/generate_component_general.py", line 79, in <module>
save_compressed(filename)
File "/__w/PX4-Autopilot/PX4-Autopilot/src/lib/component_information/generate_component_general.py", line 33, in save_compressed
with open(filename, 'r') as content_file:
FileNotFoundError: [Errno 2] No such file or directory: '/__w/PX4-Autopilot/PX4-Autopilot/build/px4_sitl_default/component_general.json'
make[3]: *** [src/lib/component_information/CMakeFiles/component_information_header.dir/build.make:68: component_general.json] Error 1
2021-08-03 10:36:25 +02:00
Beat Küng
b9e2d2c0f2
4100_tiltquadrotor: remove LED_RGB_MAXBRT
2021-08-03 10:36:25 +02:00
Beat Küng
95789252d0
airframes: minor param cleanups (remove commented 'param set')
2021-08-03 10:36:25 +02:00
Beat Küng
0e1f3a2d62
px4_add_board: infer VENDOR, MODEL & LABEL from cmake file name
2021-08-03 10:36:25 +02:00
Beat Küng
86dc35022a
generate_msg_docs.py: simplify logic a bit
2021-08-03 07:54:41 +02:00
Beat Küng
45ed1c5b5d
uorb_graph: improve module dependency search
2021-08-03 07:54:41 +02:00
Beat Küng
91cae70097
uorb_graph: fix module scope logic
2021-08-03 07:54:41 +02:00
Hamish Willee
bf59fd84ba
Add simple comment parser
2021-08-03 07:54:41 +02:00
Beat Küng
fccb56d76b
Jenkinsfile: deploy uorb graph
2021-08-03 07:54:41 +02:00
Beat Küng
2320477839
uorb graph: some minor fixes, add full graph w/o mavlink
2021-08-03 07:54:41 +02:00
Beat Küng
da6275e43a
msg: add script structure to generate docs from .msg files
2021-08-03 07:54:41 +02:00
InspiredBrandon
b2def13d6f
NCP5623c RGB LED driver I2C address auto detect
...
* Enables the LED on mRobotics GPS receivers
* Probes I2C addresses and sets colors accordingly
2021-08-02 20:36:09 -04:00
Daniel Agar
93aa6e3f78
ekf2: baro bias publish minor cleanup
...
- naming consistency (estimator prefix as "namespace")
- only publish if baro is available and bias is changing as a small logging optimization
- avoid unnecessary copying (get const reference to status directly)
- trivial code style fixes
2021-08-02 13:59:38 -04:00
Daniel Agar
d997a8d308
mavlink: receiver fix HIL_STATE_QUATERNION map projection init
...
- fixes https://github.com/PX4/PX4-Autopilot/issues/17977
2021-08-02 09:59:09 -04:00
David Jablonski
9c36236565
ekf2: increase stack size to 3600
2021-08-02 09:47:38 -04:00
Hamish Willee
219c9cf4b7
More specific airframe css
2021-08-02 08:26:46 +02:00
Hyungsub
1e2877cedf
Tune down solo roll rate controller
2021-08-02 07:51:13 +02:00
murata
e33d2141ec
px4io: Changing the timeout time description (NFC)
2021-08-01 20:27:25 -04:00
PX4 BuildBot
e01ae95768
Update submodule jMAVSim to latest Sun Aug 1 16:12:33 UTC 2021
...
- jMAVSim in PX4/Firmware (8261aa1f0b ): https://github.com/PX4/jMAVSim/commit/0a816d8100e9860a031ccfccfb9941bcd6eedc81
- jMAVSim current upstream: https://github.com/PX4/jMAVSim/commit/0a5375a70689aac53143768de9033034f3636022
- Changes: https://github.com/PX4/jMAVSim/compare/0a816d8100e9860a031ccfccfb9941bcd6eedc81...0a5375a70689aac53143768de9033034f3636022
0a5375a 2021-07-24 Romain Chiappinelli - vehilce model selectio
5f51d98 2021-07-19 Romain Chiappinelli - added cessna visual model
2021-08-01 17:03:03 -04:00
Daniel Agar
1c48a81993
Jenkins fix compile job
...
- this was broken during the Snapdragon purge (#17921 ) that happened to correspond with the primary Jenkins master (ci.px4.io) being down.
2021-08-01 17:02:47 -04:00
PX4 BuildBot
4ca6e42c47
Update submodule sitl_gazebo to latest Sun Aug 1 16:12:39 UTC 2021
...
- sitl_gazebo in PX4/Firmware (d6eb3b0cb90d4988409b1aaf3e10662ecc361aac): https://github.com/PX4/PX4-SITL_gazebo/commit/b6be00542be4d77f436c66ee48c22ca911601a2a
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/7fda4d311a9daff4bec4f2fe83e63fde0b8f04b0
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/b6be00542be4d77f436c66ee48c22ca911601a2a...7fda4d311a9daff4bec4f2fe83e63fde0b8f04b0
7fda4d3 2021-07-27 Jaeyoung-Lim - Reduce yaw authority for tecpod
6b87853 2021-07-27 Jaeyoung-Lim - Reduce yaw authority on plane
7505aee 2021-07-18 Jaeyoung-Lim - Add glider model
32893bc 2021-07-14 Jaeyoung-Lim - Add control allocation module for the typhoon h480
55e479a 2021-06-12 TSC21 - gazebo_mavlink_interface: get latest occurrence of '::' to obtain the sensor name
f650396 2021-07-13 Jaeyoung-Lim - Add Believer fixedwing model
2021-08-01 13:55:15 -04:00
PX4 BuildBot
8963c403c6
Update submodule v2.0 to latest Sun Aug 1 16:12:42 UTC 2021
...
- v2.0 in PX4/Firmware (c82a4412bd255753bf802b90d2e9bd459ca626aa): https://github.com/mavlink/c_library_v2/commit/94963ac650f39709df20e4fc03c1a9ed8f740b35
- v2.0 current upstream: https://github.com/mavlink/c_library_v2/commit/5095bcd856537330e66e6fc833a1c7bf689bf5ed
- Changes: https://github.com/mavlink/c_library_v2/compare/94963ac650f39709df20e4fc03c1a9ed8f740b35...5095bcd856537330e66e6fc833a1c7bf689bf5ed
5095bcd8 2021-07-29 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/b030a760e8c350aa078542036bd9e8f39a494ac1
f57b9ff5 2021-07-29 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/2cc1a22e30e0f8ef4e119424e968a82877636c67
a3b97841 2021-07-29 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/d484de4eb18906a94104ca56026391304be31aa1
f66b31fc 2021-07-15 PX4BuildBot - autogenerated headers for rev https://github.com/mavlink/mavlink/tree/a764308f30903e269090c8cda87d92f46d318b3e
2021-08-01 13:54:18 -04:00
Daniel Agar
54918f650b
Update world_magnetic_model to latest Sun Aug 1 16:57:37 UTC 2021
2021-08-01 13:53:53 -04:00
Daniel Agar
8261aa1f0b
boards: cuav_nora_test disable local_position_estimator to save flash
2021-07-31 20:59:45 -04:00
Igor Mišić
af2247bd94
mavlink: use dynamic camera comp id instead of hardcoded value
2021-07-31 12:41:49 -04:00
David Sidrane
6379f2b032
px4_fmu-v2:Use NO_HELP option to save flash
2021-07-30 22:35:02 -04:00
David Sidrane
ced366b74e
Add Option NO_HELP for CONSTRAINED_FLASH system
2021-07-30 22:35:02 -04:00
Dima Ponomarev
d08d0443bc
Add internal combustion engine status uavcan bridge and mavlink EFI_STATUS stream
2021-07-30 22:31:43 -04:00
Sam Chamberlin
7764183f89
Broadcom AFBR-S50LV85D Distance Sensor Driver: Automatic Range Mode Switching
2021-07-30 22:27:27 -04:00
bresch
1016600ded
Revert "mc_pos_control: omit initial warning"
...
This reverts commit 446598d003 .
The first warning was due to a race condition that is fixed by the previous commit;
don't omit the first warning anymore
2021-07-30 21:39:18 -04:00
bresch
e7a2c1d88e
MCPosControl: fix invalid setpoint race condition
...
Only modify the _setpoint for takeoff when there is a new uORB message
to avoid a race condition where both vel_sp(2) and accel_sp(2) can be
NAN at the same time.
2021-07-30 21:39:18 -04:00
Silvan Fuhrer
44f12acafe
mavsdk tests: remove hover missions for VTOL
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2021-07-30 21:27:53 -04:00
Daniel Agar
713a1d08a3
sensors: add accel/gyro current priority to sensors_status_imu
...
- later the sensor priorities (user configurable) can be factored into the estimator selection criteria
2021-07-30 21:20:01 -04:00
Daniel Agar
b33fdf704b
boards: px4 fmu-v2/v3 swap external SPI chip select order
...
- fixes https://github.com/PX4/PX4-Autopilot/issues/17858
2021-07-30 09:28:04 -04:00
Ramon Roche
607be59fd5
Github: Issue Template update link to Slack invite
2021-07-28 07:39:20 +02:00
Ramon Roche
5918fe6a37
README: update slack invite and badge
2021-07-28 07:39:20 +02:00
leonardosimovic
e6166dfc76
AirspeedSelector: Improve wording of sensor failure message
2021-07-28 07:37:38 +02:00
bresch
521b9f5dcc
control: do not constantly ask for mag reset if yaw not aligned
...
This also prevents triggering the `_mag_yaw_reset_req` flag in magless
mode; preventing the GNSS fustion from starting.
2021-07-27 13:34:53 +02:00
bresch
639e0a39cf
EKF2: add yaw estimator alignment test
2021-07-27 13:34:53 +02:00
Mathieu Bresciani
17ebcd2456
mag_control: fuse fake heading during leveling fine alignment ( #17964 )
...
Co-authored-by: Daniel Agar <daniel@agar.ca >
2021-07-27 11:50:50 +02:00
Daniel Agar
f2ae8ae814
sensors/vehicle_imu: vibration metrics use acceleration and angular velocity
...
- this avoids any jitter in the integration timespan from impacting the vibration metrics
- vehicle_imu_status vibration metrics are not consumed by anything
(yet), so changing the scaling of the metric shouldn't matter
2021-07-26 13:55:47 -04:00
Daniel Agar
e01b631465
ekf2: change indication test limit float precision to minimize false positives
2021-07-26 13:54:36 -04:00
Daniel Agar
e84c6664bb
ROMFS: update airframes/4901_crazyflie21 legacy battery parameter
2021-07-23 19:58:38 -04:00
Daniel Agar
6f4111e073
ROMFS: update airframes/17003_TF-G2 legacy battery parameter
2021-07-23 19:58:38 -04:00
Daniel Agar
e9f84ba708
keep minimal legacy battery parameters for older QGC usability
...
- BAT_V_EMPTY, BAT_V_CHARGED, BAT_V_LOAD_DROP, BAT_N_CELLS
2021-07-23 15:07:53 -04:00
Daniel Agar
fe1eb8cd62
cmake cleanup jlink flashing helpers
2021-07-23 15:07:25 -04:00
Daniel Agar
7846771c68
sensors: populate sensors_status_imu healthy flags even in multi-EKF mode
2021-07-23 11:17:08 -04:00
Julian Oes
af50e25647
mavsdk_tests: update to MAVSDK v0.41.0
...
This required replacing some of the methods which had been deprecated
and now removed.
2021-07-23 09:05:31 +02:00
Julian Oes
11480cdbc7
mavlink: fix offboard velocity input
...
This reverts the behavior for offboard velocity setpoint.
Back in v1.11, the velocity input in NED_BODY was assumed to be in the
world frame but rotated by yaw to the vehicle frame. With the current
state the frame is completely fixed to the body. While this might be
technically correct, it doesn't seem much intuitive for multicopters
and breaks the MAVSDK offboard velocity API.
So as an example, with a velocity setpoint of 5 m/s forward, the drone
would in
- v1.11: fly forward with 5 m/s
- v1.12: start to fly forward by pitching down but then descend rapidly
as the forward velocity would translate to a setpoint in Z into the
ground as it is pitched down.
This commit restores the behavior to what we had previously.
2021-07-22 09:40:29 +02:00
Daniel Agar
b8568a89db
Euler: improve quaternion constructor
2021-04-14 22:56:03 -04:00
Daniel Agar
1d0e7f1ca1
Matrix: use naive per element copy instead of memcpy call
2021-04-14 15:44:18 -04:00
Daniel Agar
1344ce06fd
Euler: simplify DCM constructor
...
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2021-04-14 15:40:24 -04:00
Daniel Agar
3679f7fd51
add double precision alias declarations and remove typedefs
2021-02-11 12:40:54 -05:00
Julian Kent
977cf52322
Ignore debug line in code coverage
2021-01-22 17:30:00 +01:00
Julian Kent
4837316f9b
Fix small inconsistencies and compiler warnings
2021-01-22 17:30:00 +01:00
Julian Kent
d540ca5de2
Coerce default epsilon values to Type
2021-01-13 10:17:09 +01:00
Julian Kent
054f8b12f4
Use a single inverse implementation for a single matrix size
2021-01-05 09:02:09 +01:00
Julian Kent
15e54ceda1
Rework rank-detection tolerance in pseudoinverse
2020-12-18 12:07:19 +01:00
Julian Kent
d9a5e3dec2
Add test for new cutoff threshold
2020-12-18 12:07:19 +01:00
JacobCrabill
ea43303c1c
test/vector3: Add test for scalar +/- operators
2020-12-17 18:05:46 +01:00
JacobCrabill
158409abce
Vector3f: Add operator+/- for scalars
2020-12-17 18:05:46 +01:00
Mitchell-Lee-93
a504b6e881
precision of tol for float has been changed
2020-11-04 10:00:55 +01:00
Julian Oes
ce6b10b99a
Fix clang-tidy warnings
...
This comes from PX4 CI.
2020-08-27 17:42:42 +02:00
Kamil Ritz
13f092a30f
sparse quadratic form
2020-08-26 19:45:05 +02:00
Julian Oes
3a5bfb2bd1
matrix: inline to prevent multiple definitions ( #147 )
...
Without inline we get multiple definitions during linking.
2020-08-25 12:58:04 +02:00
Julian Oes
e101edc0e7
Matrix: fix warning if M == N ( #146 )
...
This fixes the warning appearing with GCC 10.2:
../../src/lib/matrix/matrix/Matrix.hpp:481:34: error: logical ‘and’ of equal expressions [-Werror=logical-op]
481 | for (size_t i = 0; i < M && i < N; i++) {
|
I would prefered something with if constexpr but we don't have that yet
in because we're using C++14.
2020-08-24 14:19:43 +02:00
Morten Fyhn Amundsen
cd8ad1584c
Make wrap() work with integer types ( #145 )
...
* Make wrap() work with integers
2020-08-24 10:49:12 +02:00
kamilritz
25c0455348
comply with Firmware style requirements
2020-08-10 10:13:40 +02:00
kritz
f981cea2ae
add possibility to iterate over SparseVector data at runtime ( #143 )
2020-08-09 09:44:49 +02:00
kamilritz
e714a28c83
use size_t instead of int in sparseVector
2020-08-07 19:45:02 +02:00
kritz
18699416b0
SparseVector ( #140 )
...
* Add SparseVector
temp
* Add gtest
* Some reworking of the sparse concept
* Change type of M from int to size_t
* Add const modifier
* Add needed declaration for accessing elements of _indices
* Add norm_squared, norm, longerThan
* Add test for all sparse vector functions
* Add missing const to slice's norm_squared, norm and longerThan
* Construction from Vector<M> and carray[N]
* try to fix ci
Co-authored-by: Julian Kent <julian@auterion.com >
2020-08-07 18:44:48 +02:00
kamilritz
6ed5dbc2db
Construct Vector from Slice<1,M> alias row()
2020-08-06 16:15:05 +02:00
Matthias Grob
a126be0882
attitude test: refactoring to avoid identity quaternion confusion
2020-07-20 18:44:08 +02:00
Matthias Grob
572bafb01f
Quaternion: use template type for division by two
2020-07-20 18:44:08 +02:00
Matthias Grob
242b38ee9e
Quaternion: remove deprecated axis_angle conversions
2020-07-20 18:44:08 +02:00
Matthias Grob
7a3009f7a3
Remove asserts for unsigned integer >= 0
...
GCC 10 gives a warning
"comparison of unsigned expression in ‘>= 0’ is always true"
for these asserts since checking if an unsigned integer cannot
be negative and hence the statement gets droped.
2020-07-20 15:10:49 +02:00
Matthias Grob
0fd99c59f1
Switch operator() to return a const reference
2020-07-17 10:43:34 +02:00
kamilritz
8a59b463f2
Quaternion: Use template type instead of single hardcoded type
2020-07-17 10:37:18 +02:00
Julian Kent
9a30828a0a
Add explicit matrix + scalar test
2020-06-30 10:37:10 -04:00
Julian Kent
f3cf615023
Do += -= and scalar *= /= in place
2020-06-30 10:37:10 -04:00
kamilritz
f529358e9a
Add missing const modifier
2020-06-28 14:24:49 +02:00
kamilritz
674bd99f3b
Add operator* and operator/ for slice with type
2020-06-12 11:34:09 +02:00
Nicolas MARTIN
38b3acce96
fix conjugate_inversed comment
2020-06-11 16:17:28 +02:00
Matthias Grob
2bee0d078c
Quaternion: refactor multiplication to matrix multiplication style
...
Most often the multiplication in convention descriptions and papers is
described in matrix multiplication style like this:
q · p := Q(q)p
Q(q) :=
[q0 −q1 −q2 −q3]
[q1 q0 −q3 q2]
[q2 q3 q0 −q1]
[q3 −q2 q1 q0]
I'm just rearanging the terms such that it's easily comparable with
these definitions additional to it being clearly described by
documenting we use the hamilton convention.
2020-05-06 13:17:02 +02:00
kamilritz
d613055462
Add more assignment operators for slices
2020-04-07 09:12:17 +02:00
Matthias Grob
976ada411b
Matrix: min max comments and test style
2020-03-23 09:46:07 +01:00
Matthias Grob
fa7153ecfb
Matrix: omit min max nan case with same result
...
I observed this during review in
https://github.com/PX4/Matrix/pull/105/files#r348386226
2020-03-23 09:46:07 +01:00
Matthias Grob
a32892926c
Matrix: capture stdout for print() test
...
I want to switch the print() function back to use printf()
such that it's fully compatible with all (embedded) platforms.
To still test the print function I'm capturing stdout into a file
such that the print() function can stay unchanged and the result of
the printf()s can be evaluated.
2020-03-12 13:24:08 +01:00
Matthias Grob
c6db357c92
Matrix: correct print buffer size prediction
...
Apparently printf of %8.8g can result in
8 significant digits + dot + scientific notation e.g. "e+12" = 14 bytes
2020-03-12 10:08:04 +01:00
Matthias Grob
2cca35c8fe
AxisAngle: call q.imag().norm() for conversion
...
This is important depending on the platform because norm()
calls matrix::squrt() which dispatches correctly to the implementation
for the used type. Otherwise float squrt()s can get calculated as
double.
2020-03-12 07:35:44 +01:00
kritz
4873dc1c1e
Analytic inverse implementation ( #122 )
...
* Add analytic 2x2 matrix inverse
* Add analytical 3x3 matrix inverse
2020-03-04 09:14:04 +01:00
Julian Kent
649c837b6b
Use faster but less accurate average
2020-02-25 15:08:17 +01:00
kamilritz
a37b91c96a
Type cast remaining integer
2020-01-13 12:21:18 +01:00
Lorenz Meier
3b581fb599
Update .travis.yml
...
Bring Ubuntu and Mac OS toolchains to latest.
2020-01-01 15:53:50 +01:00
Lorenz Meier
efa5580a67
Update CMakeLists.txt
...
Remove non-compatible compile option.
2020-01-01 15:53:50 +01:00
Lorenz Meier
20a9e91d44
Fix CMake configuration for coverage tests on Mac OS
2019-12-31 15:54:51 +01:00
kritz
d18be0d0fa
Fix AngleAxis constructors ( #117 )
2019-12-28 17:18:15 -05:00
kritz
e81483a808
Catch quaternion canonical corner cases ( #116 )
2019-12-18 14:12:47 +01:00
kritz
4f3565da94
Add asserts ( #115 )
...
* Add asserts
* Type cast literals
* asserts for indexing vectors
* include assert
* Fix accessing elements outside of slice
2019-12-09 10:21:27 +01:00
kritz
2f6398168d
Add several functions that are useful for coavriance matrices: ( #114 )
...
* uncorrelateCovariance
* uncorrelateCovarianceSetVariance
* makeBlockSymmetric
* makeRowColSymmetric
* isBlockSymmetric
* isRowColSymmetric
2019-12-06 12:03:26 +01:00
kritz
5cbcf6035a
Set Matrix's col amd row to single value ( #113 )
2019-12-05 18:16:14 +01:00
kritz
ef442fab92
Getter function for the diag elements of slice ( #112 )
2019-12-05 11:39:21 +01:00
kritz
de6a2d31ff
Slice assign value ( #111 )
...
* Assign value to slice
* Readme for formatting
2019-12-04 14:33:33 +01:00
Daniel Agar
a8009a36a3
Quaternion multiply inline return
2019-11-29 14:40:11 -05:00
Daniel Agar
dba84236cb
Vector3f cross product directly return result ( #109 )
2019-11-28 10:36:13 +01:00
Matthias Grob
de85dcff97
Vector: switch read only functions to const ( #108 )
2019-11-26 13:46:45 +01:00
Julien Lecoeur
a172c3cdac
Add implementation of pseudo-inverse ( #102 )
...
* Fix compilation error
* Add implementation of pseudo-inverse
The implementation is based on this publication:
Courrieu, P. (2008). Fast Computation of Moore-Penrose Inverse Matrices, 8(2), 25–29. http://arxiv.org/abs/0804.4809
It is a fully templated implementation to guaranty type correctness.
* Add tests for pseudoinverse
* Apply suggestions from code review
Co-Authored-By: Mathieu Bresciani <brescianimathieu@gmail.com >
* Adapt fullRankCholesky tolerance to type
* Add pseudoinverse test with effectiveness matrix
* Fix coverage
* Fix rebase issue
* Fix SquareMatrix test, add null Matrix test
2019-11-18 14:36:30 -08:00
Daniel Agar
cd185c995b
add braces around statements and cleanup formatting ( #107 )
2019-11-13 10:41:38 -08:00
kritz
38e966cea1
Add min, max, constrain function for Matrix ( #105 )
...
* Add min, max, constrain function for Matrix
* Set individual elements to nan in constrain
* Deal with NANs
2019-11-12 18:57:12 +01:00
kritz
93d42947b6
Add test for setting Quaternion to Identity ( #104 )
2019-11-08 17:27:33 +01:00
Julian Kent
9f46483951
Fix GCC-4.8 bug
2019-11-04 11:11:30 -05:00
Julian Kent
445f58d484
Fix weird C preprocessor conflicts ( #101 )
2019-11-01 14:23:35 +01:00
Julian Kent
215203fc6f
Automatic Differentiation 'Dual' Type ( #100 )
...
* Dual numbers initial implementation
* Add test coverage, with partial derivative example
* Add Jacobian test, fix small issues
* Improve test to demonstrate non-square jacobian
* Better naming for collectReals/Derivatives
* Improve comments
* Potential GCC 4.8 bug workaround
* Add fallback workaround for non-IEEE float platforms
2019-10-23 12:07:51 +02:00
Julian Kent
92d1c8761e
More features: longerThan, norm, copyTo and slice on a Slice ( #97 )
...
* Allow slices of slices, add longerThan to Vector/Slice
2019-10-03 13:47:36 +02:00
Matthias Grob
740324cf1e
Make all array constructors explicit ( #99 )
...
* Make all array constructors explicit
to avoid accidental implicit casts like e.g.
Vector3f v = 0;
assigning nullpointer content.
2019-10-03 13:38:51 +02:00
Julian Kent
7b34c1c51d
Enable branch coverage
2019-10-03 08:32:05 +02:00
Matthias Grob
973999a4d3
Fix some template type conversions and style
2019-09-23 10:59:12 +02:00
Matthias Grob
c34e8dc98f
helper: consider matrices with the same NANs and INFINITYs equal
...
to simplify bulk checks when these values are expected
2019-09-18 09:59:50 +02:00
Matthias Grob
bbaa93880b
helper: consider NAN equal to NAN such that vectors can be compared exactly
2019-09-18 09:59:50 +02:00
Matthias Grob
33a629105c
Matrix: add proper print function testing
...
Before the print function was just implicitly called somewhere
and that's why we had 100% line coverage. With this we have actual
testing of the functions.
2019-09-18 09:59:50 +02:00
Matthias Grob
b0b7d7229a
Multiplication test: fix division resulting in NAN
2019-09-18 09:59:50 +02:00
Matthias Grob
3747232724
LeastSquaresSolver: Fix nasty GCC compile optimization error
...
The original implementation with no wrapping on size_t is more readable
but the compiler errors with:
internal compiler error: in trunc_int_for_mode, at explow.c:55
I read up and it's apparently a loop optimization problem.
Inspired by https://stackoverflow.com/a/27224697/6326048
I used a far less readable implementation that works fine and
wrote a comment to explain it.
2019-09-18 09:59:50 +02:00
Matthias Grob
5844b0e46e
Implement one float equality check and use it everywhere
2019-09-18 09:59:50 +02:00
Matthias Grob
1e80807e8e
test: Add uncovered equality checks with NAN and INFINITE
2019-09-18 09:59:50 +02:00
Matthias Grob
a374f37a54
Include helper_functions like all other library components
2019-09-18 09:59:50 +02:00
James Goppert
60c9c99dcc
Fix type for division.
2019-09-17 11:08:00 -04:00
Julian Kent
b4714e2ed2
Don't lose array sizes in copyTo
2019-09-17 15:09:12 +02:00
Julian Kent
51d2f9f0dc
Remove direct access to internal data
2019-09-16 21:58:32 -04:00
Julian Kent
18218c8f9c
Test non-square matrix multiplication ( #91 )
...
* Test non-square matrix multiplication
2019-09-16 17:40:25 +02:00
Julian Kent
b817e8677d
Add helpers based on Slice: row(), col(), xy()
2019-09-16 16:11:08 +02:00
Julian Kent
82d565f4d9
Add support for Slice to Matrix, SquareMatrix, Vector
2019-09-16 16:11:08 +02:00
Julian Kent
af1378cc55
Add Slice class
2019-09-16 16:11:08 +02:00
Julian Kent
15865b741c
Help compiler with name resolution to avoid overload mixups
2019-09-09 11:18:57 -07:00
Julian Kent
03ffd696a6
Replace pow with sqrt
2019-09-09 02:18:10 -07:00
Julian Kent
22bf63cb71
A smaller codesize wrap, since it gets inlined in many places
2019-09-05 22:31:13 +02:00
Matthias Grob
74ace7d1d5
helper test: cover wrap close to limits cases ( #84 )
2019-09-05 18:02:33 +02:00
Tanja Baumann
26fd962cbe
fix bug in matrix wrap function ( #83 )
2019-09-05 11:21:41 +02:00
Julian Kent
4a4309327a
better API comment
...
Co-Authored-By: Julian Oes <julian@oes.ch >
2019-09-05 10:19:47 +02:00
Matthias Grob
31450c407c
Matrix: use existing print() if isEqual test fails
2019-09-05 10:19:47 +02:00
Matthias Grob
938274fce5
helper test: add extensive wrap tests
2019-09-05 10:19:47 +02:00
Matthias Grob
315010bae1
helper_functions: generalize wrap function to any range
2019-09-05 10:19:47 +02:00
Matthias Grob
007c7c58c4
fix math defines to have M_PI and M_TWOPI
2019-09-05 10:19:47 +02:00
Martina Rivizzigno
cc084e0791
matrix: add method to check all values are nan ( #82 )
2019-08-26 19:27:58 +02:00
kritz
84b3da227c
Canonical Quaternion with tests ( #81 )
2019-08-22 15:05:14 +02:00
Matthias Grob
56b069956d
slice test: fix trailing whitespace style
2019-03-08 20:20:08 +01:00
Oskar Weigl
5ccfa74c72
Fix const error
2019-03-08 19:17:40 +00:00
Oskar Weigl
eea6b59973
Implement slice as copy loop
2019-03-08 19:17:40 +00:00
Oskar Weigl
93375fbd3c
Fix copy-paste error
2019-03-08 19:17:40 +00:00
Oskar Weigl
5872bbc28c
Add slicing tests that are not pure row slicing
...
I had a look at the implementation of `slice`, and I found it odd that it doesn't have a copy loop. The current implementation does a raw memcpy of the underlying contiguous row-major data. As far as I can tell, this could only slice along rows. Interestingly, I found that the tests only tested for slicing along rows, so this bug would go unnoticed.
I added some tests that checks slicing along columns also. I have a feeling this would break, and we need to fix the implementation of `slice`. However I could be wrong, and hence I'm submitting these tests first to verify.
2019-03-08 19:17:40 +00:00
TSC21
ec436d5aee
define FLT_EPSILON; be descriptive about upper_right_triangle() method
2019-02-24 17:14:05 +00:00
TSC21
7355a29a2a
tests: use __FLT_EPSILON__ in comparisons
2019-02-24 17:14:05 +00:00
TSC21
7ab2b24e65
tests: urt: refactor
2019-02-24 17:14:05 +00:00
TSC21
4aab44fe01
Travis CI: update MacOS version to use
2019-02-24 17:14:05 +00:00
TSC21
707967d117
add test to .urt()
2019-02-24 17:14:05 +00:00
TSC21
210c76c04b
add test to setNaN()
2019-02-24 17:14:05 +00:00
TSC21
96cb9ab146
add NaN value set for Matrix; add return of URT of a matrix
2019-02-24 17:14:05 +00:00
Daniel Agar
6b0777d815
stdlib_imports cinttypes currently unavailable in NuttX toolchain ( #79 )
2019-01-21 09:12:36 -05:00
Matthias Grob
18fba8221c
quaternion: improve comments
2018-12-16 20:16:38 +01:00
Matthias Grob
a4f39c0f89
quaternion: reuse existing dot product
2018-12-16 20:16:38 +01:00
Matthias Grob
9c0acfba36
Matrix: remove unsafe copyToRaw method
...
It used a pointer and could therefore not do correct type checking
for index out of bound or struct memebr order.
Has to be considered unsafe and bad practise.
We should switch to arrays as representation for vectors
inside the messages instead of foo_x, foo_y, foo_z fields.
2018-11-20 16:39:44 +00:00
Beat Küng
0d3bff5e00
Vector2: add explicit constructor for Vector3
...
Initialize from the first 2 elements.
2018-10-01 10:17:16 +02:00
Beat Küng
807472bfd7
README: document how to run tests
2018-10-01 10:17:16 +02:00
Bart Slinger
30d5a79432
testing float/double with Type template
2018-09-18 09:39:17 +02:00
Bart Slinger
707e288019
explicit casting
2018-09-18 09:39:17 +02:00
Bart Slinger
480c5f1f8e
static assert M>=N. floats to Type, arguments as const reference
2018-09-18 09:39:17 +02:00
Bart Slinger
7495794386
test zero divisions
2018-09-18 09:39:17 +02:00
Bart Slinger
3f2d3cf58d
fix a div/0 condition
2018-09-18 09:39:17 +02:00
Bart Slinger
983a3f0212
use Matrix and Vector class for A and tau
2018-09-18 09:39:17 +02:00
Bart Slinger
98b8e2d43b
formatting
2018-09-18 09:39:17 +02:00
Bart Slinger
0009328257
least squares solver for MxN matrices using QR householder algorithm
2018-09-18 09:39:17 +02:00
Daniel Agar
dc3af80977
constructors use array size rather than pointers
2018-08-31 08:11:02 +02:00
Daniel Agar
f1bee775a0
use default constructors and skip unnecessary initialization
2018-08-31 08:11:02 +02:00
Daniel Agar
1bcf48bd82
Quaternion from_dcm don't pass by value
2018-08-30 12:07:48 -04:00
Roman Bapst
b815fc97c4
replace quiet_NaN() with INFINITY ( #70 )
...
- solves undefined symbols for QURT
Signed-off-by: Roman <bapstroman@gmail.com >
2018-06-12 12:24:51 -04:00
Daniel Agar
03a3e3ad46
helper_functions add wrap_2pi
2018-06-10 10:56:45 +02:00
Daniel Agar
abc8f82d49
travis-ci add codecov.io ( #69 )
2018-06-09 21:08:56 -04:00
Daniel Agar
21d47424c6
Quaternion mark const helpers const
2018-04-01 17:02:20 -04:00
James Goppert
e7c95fa027
Fix README/cmake format.
2018-03-28 00:11:03 -04:00
James Goppert
d142ac234c
Fix coverage and bug in matrix equal test.
2018-03-28 00:09:01 -04:00
Daniel Agar
50446a55c8
Matrix add == and != operators
2018-03-27 15:05:22 -04:00
Daniel Agar
61af508755
helper_functions include required px4_defines header
2018-03-19 02:24:38 -04:00
Daniel Agar
41a1cc7583
LICENSE minor changes to template
2017-12-05 10:56:04 -05:00
Matthias Grob
f835d39017
Quaternion/Vector: Small refactor for review: put more comments, switched type conversions, took out default destination vector because confusing
2017-12-04 15:34:13 +01:00
Matthias Grob
af2610ec04
Test: added check for quaternion vector to vector rotation constructor
...
including all the parallel vector corner cases
2017-12-04 15:34:13 +01:00
Matthias Grob
84cd7483ae
Quaternion: added constructor which generates the shortest rotation that maps one vector to another
...
including tedious corner case handling for parallel vectors with 180 degree rotations
2017-12-04 15:34:13 +01:00
Matthias Grob
d513c94f85
Test: added check for Vector.norm_squared()
2017-12-04 15:34:13 +01:00
Matthias Grob
5130da206a
Vector: added norm_squared() because sometimes you can safe the sqrt operation
2017-12-04 15:34:13 +01:00
Matthias Grob
41ad2bdea5
Matrix: added copyToRaw method to allow copying to a pointer
...
because most uORB messages still contain all components of a vector one by one after each other
2017-11-17 09:30:56 +01:00
Matthias Grob
308a6c91cb
Test: added copyTo tests for Vector3, Quaternion and Matrix including clolumn-major order
2017-11-16 04:42:54 +01:00
Matthias Grob
1dffd5930b
Matrix: add copyTo copying data to an array and copyToColumnMajor which does the same but with column-major order
...
same functionality explicitly for quaternions can be deleted
2017-11-16 04:42:54 +01:00
Matthias Grob
3bd94fcd6f
Test vector: structured & commented, added normalize and unit_or_zero tests, removed duplicate data preparation
2017-11-06 17:58:52 +01:00
Matthias Grob
9e59691e43
Vector: Additional normalization with check for zero norm because it occurs so many times in applications
2017-11-06 17:58:52 +01:00
Matthias Grob
f4243160e2
Quaternion: changed comments because of typos and unclear inconsistent indexing
2017-10-17 17:37:23 +02:00
Matthias Grob
d259ab2108
Test: add Quaternion rotate() test that catches non-commutating rotations
2017-10-17 17:37:23 +02:00
Matthias Grob
ee2219b836
Quaternion: replace conversion in rotate() with AxisAngle call
2017-10-17 17:37:23 +02:00
Matthias Grob
b241cf5c95
Quaternion: Adjusted rotate() to the Hamilton convention (which we switched to)
...
Note: This error was not caught by a test because the test included only trivial cases which do not explore non-commuting quaternions.
2017-10-17 17:37:23 +02:00
Matthias Grob
6b1fea76d0
Quaternion: added and adjusted comments to further explain conjugation and derivative functionality
2017-10-17 17:37:23 +02:00
Matthias Grob
0527471a52
Matrix: adjust buffer size calculation to account for additional characters
...
Note: If the buffer is too small there's no memory corruption because of the snprintf limit but part of the output gets missing.
2017-10-17 17:37:23 +02:00
Matthias Grob
0a772f59dd
Quaternion: added direct efficient body z-axis calculation with test
2017-09-26 11:20:56 +02:00
Matthias Grob
976461eb0f
Dcm: more efficient conversion from quaternion, extend reuse of multiplications
2017-09-26 11:20:56 +02:00
Matthias Grob
baf54ad29f
quaternion: correcting comments
...
^(-1) went missing and some phrase was inprecise
2017-09-25 12:18:10 +01:00
James Goppert
e595ebb9a7
Switch to Hamilton quaternions and add Cholesky decomposition.
2017-08-31 11:09:20 +02:00
Nate Weibley
471e96ff6f
Provide const dataptr access
2017-03-23 20:22:45 -07:00
Nate Weibley
2ad3ec46b9
Mark simple min, max, abs methods as const
2017-03-23 20:22:45 -07:00
Nate Weibley
66e1b406b8
Remove artifical need to virtualize dtors
2017-03-23 20:22:45 -07:00
Pavel Kirienko
499b897e5f
Style fix
2017-03-17 12:18:39 -04:00
Pavel Kirienko
99b44c0242
NuttX math lib workaround
2017-03-17 12:18:39 -04:00
Pavel Kirienko
8dbe4a7531
NuttX workaround
2017-03-17 12:18:39 -04:00
Pavel Kirienko
23def31d21
Fixed stdlib imports
2017-03-17 12:18:39 -04:00
Pavel Kirienko
e09cf12e2e
Removed all uses of C library from tests
2017-03-17 12:18:39 -04:00
Pavel Kirienko
9ebf5f89db
Removed all use of C library from the matrix namespace
2017-03-17 12:18:39 -04:00
Pavel Kirienko
552dad40a1
Fixed inclusions in matrix/
2017-03-17 12:18:39 -04:00
Pavel Kirienko
b74749fb61
Un-poisoned fabs
2017-03-17 12:18:39 -04:00
Pavel Kirienko
8af7b8c130
Poisoned the C library identifiers
2017-03-17 12:18:39 -04:00
Daniel Agar
cf924956d7
test vector3 using matrix::isEqual
2017-02-24 20:47:41 -05:00
Daniel Agar
d81ddb0f37
travis-ci only check formatting once
2017-02-24 20:47:41 -05:00
Daniel Agar
de3517a5c7
cmake add asan and ubsan
2017-02-24 20:47:41 -05:00
Daniel Agar
cfa68c2196
clang-tidy trivial cleanup
2017-02-24 20:47:41 -05:00
Daniel Agar
5f2f6f0308
rename cmake "Profile" to "Coverage" and add builds
2017-02-24 20:47:41 -05:00
Daniel Agar
fb87165051
cmake add check
2017-02-24 20:47:41 -05:00
Daniel Agar
f00edc9442
update to astyle 2.06 and fix formatting
2017-02-24 20:47:41 -05:00
Daniel Agar
68c7cc5bfd
Quaternion add copyTo
2017-02-24 20:47:41 -05:00
Daniel Agar
e2211c5867
QuRT use __builtin_isfinite
2017-02-15 19:30:19 -05:00
Lorenz Meier
2283e6946a
Matrix inversion: Ensure that null check is done against the same type
2017-02-04 10:42:10 +01:00
James Goppert
843be9418b
Rename isfinite to is_finite to avoid name conflicts.
2017-02-03 18:15:43 -05:00
James Goppert
63aea23f9e
Add cholesky decomp, Closes #30 , and dynamic print buf
2017-02-03 17:54:16 -05:00
James Goppert
a154e14439
Fix coverage for inverse.
2017-02-03 17:24:15 -05:00
James Goppert
db6dfeafbe
Add helper_functions include for inverse and in general header
2017-02-03 16:56:33 -05:00
James Goppert
230e84702a
Fix unit test, create matrix isfinite.
2017-02-03 16:25:55 -05:00
Siddharth Bharat Purohit
7e3eff7b2d
remove unnecessary duplicate matrices from inverse
2017-02-03 16:12:17 -05:00
Matthias Grob
47c0a93140
Quaternion: added tests for the corner cases of Dcm to quaternion conversion
2016-12-14 18:25:06 +01:00
Matthias Grob
2f4427a923
Quaternion: Implemented the largest pivot element method for conversion from Dcm to Quaternion to avoid numerical problems
2016-12-14 17:55:05 +01:00
Matthias Grob
bb1a321639
Changed Dcm to inherit from SquareMatrix because it is square and we can use the trace method
2016-12-14 17:42:45 +01:00
James Goppert
7eff04742c
Fix for zero check on quat from dcm ctor.
2016-12-13 10:21:55 -05:00
James Goppert
74a120f554
Handle some divide by zero edge cases on init.
2016-11-30 01:27:48 -05:00
James Goppert
945edbc58c
Ensure direction is always defined for axis angle.
2016-11-30 00:40:55 -05:00
James Goppert
8a94f0f8ac
Fix axis angle fabsf usage.
2016-11-28 10:43:29 -05:00
James Goppert
bf69be7f17
Fix formatting.
2016-11-22 10:07:08 -05:00
James Goppert
f3e478cbff
Fix matrix inverse pivotting logic.
2016-11-22 10:04:45 -05:00
James Goppert
34fccdd680
add renormalize method ( #32 )
2016-11-02 12:10:30 -04:00
James Goppert
db4374882b
Fix attitude tests.
2016-08-18 16:54:43 -04:00
James Goppert
3aeb099249
Revert "Use Hamilton quaternion definition."
...
This reverts commit 19554c4470 .
2016-08-18 16:51:00 -04:00
James Goppert
4653626d92
Format.
2016-08-16 19:04:23 -04:00
James Goppert
0eb8aa0c0b
Support more of mathlib function for easier swap in px4.
2016-08-16 19:03:54 -04:00
James Goppert
558777f34c
Fix formatting.
2016-08-16 12:43:42 -04:00
James Goppert
262a715d90
Fix some when building in px4.
2016-08-16 12:37:41 -04:00
James Goppert
4be23552c5
Bump version.
2016-08-16 12:13:26 -04:00
James Goppert
9af58f7e08
Coverage fix.
2016-08-16 12:00:37 -04:00
James Goppert
6197515a51
Fix shadow warnings.
2016-08-16 11:50:46 -04:00
James Goppert
f02fb37265
Add Testing to git ignore.
2016-08-16 11:40:14 -04:00
James Goppert
37b00b0880
Added check or consistency of dcm and quaternion product.
2016-08-16 11:37:45 -04:00
James Goppert
1a87564b85
Added dcm quat prod consistency check.
2016-08-16 11:33:56 -04:00
James Goppert
4f13809420
Added axis angle accessors, removed == operator.
2016-08-16 11:05:01 -04:00
James Goppert
19554c4470
Use Hamilton quaternion definition.
2016-08-16 03:59:06 -04:00
James Goppert
e6a6b4680c
Use quaternion multiplaction for quaternion derivative.
2016-08-16 01:03:23 -04:00
James Goppert
c563c41cd4
Fix cmake version.
2016-07-06 01:56:24 -04:00
James Goppert
cbb7e06a1f
Replace float with Type in kalman.
2016-07-06 01:39:06 -04:00
James Goppert
9353e4cb64
Fix bugs in axis angle.
2016-07-06 01:37:50 -04:00
James Goppert
7b7297b674
Fix for ctor comments on axis angle.
2016-07-05 21:30:22 -04:00
James Goppert
fdf00d163c
Small fix to README.
2016-07-05 21:27:42 -04:00
James Goppert
0b1bed6b00
Added deprecation warnings in source code.
2016-07-05 21:16:17 -04:00
James Goppert
b78e124b73
Fix for README.
2016-07-05 21:08:12 -04:00
James Goppert
298e037f3a
Added AxisAngle to README.
2016-07-05 21:06:48 -04:00
James Goppert
0f41af271a
Added axis angle attitude representation. ( #25 )
2016-07-05 20:59:42 -04:00
James Goppert
3320d57f63
Fix format.sh user message.
2016-07-05 17:13:41 -04:00
Beat Küng
42eadb2656
format.sh: better inform the user what to do on style issues ( #24 )
2016-07-05 17:09:25 -04:00
Beat Küng
b1f76782f6
Euler, Quaternion: fix compiler errors for GCC 6.1.1 ( #23 )
...
* Euler, Quaternion: fix compiler errors for GCC 6.1.1
GCC output:
error: implicit conversion from ‘float’ to ‘double’ to match other operand
of binary expression [-Werror=double-promotion]
* astyle: fix formatting for Euler.hpp & Quaternion.hpp
2016-07-05 17:00:35 -04:00
Roman Bapst
3c87ae78ff
added two more examples to the README
2016-05-25 15:24:35 +02:00
Roman
eeb595d1db
applied formatting
2016-05-17 08:27:35 +02:00
Roman
f4e2b21608
- better description for quaternion class
...
- revert conversion functions to constructor
2016-05-16 09:21:44 +02:00
Andreas Bircher
81eacb0cfa
removing body and intertial frame expressions and establishing consistency
2016-05-15 18:42:21 +02:00
Roman
4a405e7f60
make it clear that we are using right hand rotation convention
2016-05-15 18:42:21 +02:00
Roman
10c1b49bde
fix typo
2016-05-15 18:42:21 +02:00
Roman
1033e145a5
fix some typos and better explanation of quaternion ordering
2016-05-15 18:42:21 +02:00
Roman
2b3bdb523d
better description for quaternion class
2016-05-15 18:42:21 +02:00
Roman
3152d3d6cf
better function descriptions for rotation classes:
...
- do not talk specifically about body or earth frame, just use frame 1 and frame 2
2016-05-15 18:42:21 +02:00
Andreas Bircher
e3a1d67444
adding detailed comments on rotation classes
2016-05-15 18:42:21 +02:00
Andreas Bircher
af2e6d952e
correcting comments
2016-05-15 18:42:21 +02:00
Andreas Bircher
34e6e2a941
refactoring rotation classes and adding initial description
2016-05-15 18:42:21 +02:00
jaredkw
3509329f30
Define M_PI float, change logical and to &&
2016-05-11 18:35:05 -04:00
James Goppert
4d33092bcb
Removed lcov testing from travis.
2016-05-09 12:19:26 -04:00
James Goppert
dd8ff8db12
Made coverage html output optional.
2016-05-09 12:13:00 -04:00
James Goppert
061609322a
Added command line output for coverage.
2016-05-09 12:01:20 -04:00
James Goppert
32ad3989f2
Fix lcov install on travis.
2016-05-09 11:55:45 -04:00
James Goppert
f4902fafb9
Added lcov package for coverage test.
2016-05-09 11:53:18 -04:00
James Goppert
155202f6b0
Found a few coverage gaps with local coverage testing.
2016-05-09 11:49:45 -04:00
James Goppert
6efa3c1cb5
Added make coverage to travis.
2016-05-09 11:34:26 -04:00
James Goppert
3f77991388
Merge branch 'MaEtUgR-maetugr-fix2'
2016-05-09 11:24:55 -04:00
James Goppert
8b7eae3b4a
Merge branch 'maetugr-fix2' of https://github.com/MaEtUgR/Matrix into MaEtUgR-maetugr-fix2
2016-05-09 11:24:28 -04:00
James Goppert
bd8420fcf6
Added example of assignment to already created object.
2016-05-09 11:12:06 -04:00
MaEtUgR
b2eb4d13d8
Matrix.setCol off by one bug fixed
...
The Column Vector you are copying from, only has one Column and it is indexed by 0 not 1.
I also completed the unit test stub that would have found this bug.
2016-05-05 13:18:51 +02:00
Matthias Grob
65679fbcbb
Features and fixes
...
* added the trace function for a SquareMatrix
* added Vector3.hat() and it's counterpart Dcm.vee()
for skewsymskew symmetric matrix operations in relation to the cross product
see https://en.wikipedia.org/wiki/Hat_operator
* Matrix::write_string produced runtime errors when I used it in PX4 posix simulation, i simplified it
* a Matrix3f is a SquareMatrix
* added tests for SquareMatrix.trace, Vector3.hat and Dcm.vee
* added a test for quaternion initialisation from array
* preventing buffer overflows in Matrix.write_string method
2016-04-28 15:16:36 -04:00
James Goppert
07fba8322a
Fix for effective cpp.
2016-03-18 20:56:41 -04:00
James Goppert
711b57d2d4
Added unit function that returns normalized vector.
2016-03-15 18:09:48 -04:00
James Goppert
0e14e11183
Added support for attitude_estimator_q functions.
2016-03-15 06:35:13 -04:00
James Goppert
6c04605531
Added conversion for scalar to vector.
2016-02-26 06:10:09 -05:00
James Goppert
2d27cd79d3
Added scalar to matrix conversion.
2016-02-26 05:56:21 -05:00
James Goppert
6974f97b1c
Added scalar const conversion operator.
2016-02-26 05:47:24 -05:00
James Goppert
7b969094cb
Fix for scalar type.
2016-02-26 05:33:16 -05:00
James Goppert
3917ef1992
Merge branch 'master' of github.com:PX4/Matrix
2016-02-26 03:39:28 -05:00
James Goppert
15865897d5
Added pow.
2016-02-26 03:39:04 -05:00
James Goppert
dd30028823
Merge pull request #14 from mcsauder/master
...
Matrix index correction to allow non-square matrices to evaluate properly.
2016-02-25 16:36:14 -05:00
mcsauder
46c83a8c18
Correct a few indexing copy/paste errors that likely previously only functioned properly on square matrices.
2016-02-25 18:51:28 -07:00
James Goppert
95e3d7d6ce
Added set function.
2016-02-16 14:54:15 -05:00
James Goppert
5a01e6c939
Added slice function for matrix.
2016-02-16 12:22:08 -05:00
James Goppert
1ae114b3d2
Improved rk4 integration to allow longer time interval than 1 step.
2016-02-16 10:53:12 -05:00
James Goppert
ce30542dba
Fix output for unit test.
2016-01-25 13:54:13 -05:00
James Goppert
1778ac199c
Fixed euler wrapping.
2016-01-25 13:40:51 -05:00
James Goppert
a92d5c1338
Removed unneeded headers.
2016-01-24 02:44:25 -05:00
James Goppert
e639a3612f
Fix typo.
2016-01-24 02:30:54 -05:00
James Goppert
d8e397c010
Merge pull request #10 from PX4/euler_fix
...
fix euler calculation
2016-01-24 01:52:40 -05:00
James Goppert
5aef810e7c
Fixed euler angles.
2016-01-24 01:50:34 -05:00
James Goppert
6e6033a1af
Merge branch 'master' into euler_fix
2016-01-24 00:41:12 -05:00
James Goppert
b98ac75452
Formatting.
2016-01-24 00:39:59 -05:00
James Goppert
ffbe58ca10
Added better roundtrip euler test.
2016-01-24 00:39:21 -05:00
James Goppert
b9bfadb0cc
Fix for travis.
2016-01-24 00:00:22 -05:00
James Goppert
faee66273b
Turned back on testing flag.
2016-01-23 23:58:43 -05:00
James Goppert
20a1f902b1
Merge branch 'master' into euler_fix
...
Conflicts:
.travis.yml
test/attitude.cpp
2016-01-23 23:56:35 -05:00
James Goppert
cc2804d6a6
Merge pull request #13 from PX4/testing
...
Testing
2016-01-23 23:38:13 -05:00
James Goppert
0969b0ae56
Removed uncessary print.
2016-01-23 23:35:44 -05:00
James Goppert
d761bd3721
Fixed formatting. Made traivs more verbose.
2016-01-23 23:33:25 -05:00
James Goppert
38211e1aff
Fix testing mechanism.
2016-01-23 23:26:26 -05:00
Lorenz Meier
6009709986
Merge pull request #11 from PX4/dspal_fix
...
Added dspal_math.h for missing constants
2016-01-21 23:23:41 +01:00
Mark Charlebois
306f0ac25d
Added dspal_math.h for missing constants
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-01-21 12:45:07 -08:00
Lorenz Meier
48a3288753
Fix QuRT build
2016-01-18 13:39:46 -08:00
James Goppert
fa31c61f2c
Fix for euler.
2016-01-14 15:24:37 -05:00
Roman Bapst
a22a47fe15
fix euler calculation
...
Conflicts:
matrix/Euler.hpp
2016-01-14 15:51:28 +01:00
Lorenz Meier
1d9d8e6f9b
Use a slight ifdef hack to let things default to C++11 for most platforms
2016-01-12 12:14:53 +01:00
Lorenz Meier
187830164d
Fix cast
2016-01-12 11:50:21 +01:00
James Goppert
67c8c8b331
Cast to float for isfinite.
2016-01-12 01:35:33 -06:00
James Goppert
f1968f51d6
Fixed coverage issues.
2016-01-12 01:28:48 -06:00
James Goppert
a90484362f
Merge pull request #8 from PX4/cast_fix
...
added missing cast
2016-01-12 01:09:56 -06:00
Roman
4034c916c7
added missing cast
2016-01-12 07:51:52 +01:00
James Goppert
cc800454d2
Formatting.
2016-01-11 22:05:34 -06:00
James Goppert
684a6b626d
Merge branch 'quaternion'
...
Conflicts:
test/attitude.cpp
2016-01-11 21:59:28 -06:00
James Goppert
0e48d2596c
Merge pull request #6 from thomasgubler/pr1
...
scalar multiplication; std::cout support
2016-01-11 21:47:51 -06:00
Thomas Gubler
45e6012818
matrix scalar pre multiplication and general scalar multiplication for
...
quaternions
2015-12-26 13:15:39 +01:00
Thomas Gubler
99ac532746
remove unnecessary ;
2015-12-26 12:07:12 +01:00
Thomas Gubler
d999923a35
support for std::cout
2015-12-26 12:07:12 +01:00
Roman
cc1658db15
fixed wrong type conversion
2015-12-22 11:23:18 +01:00
Roman Bapst
c3c6a0a9df
fix euler calculation
2015-12-20 06:06:56 +01:00
Roman
10b395a782
added more quaternion methods
2015-12-19 09:47:03 +01:00
jgoppert
9cd6ac3dd9
Fixed coverage.
2015-11-14 09:04:38 -05:00
jgoppert
dc0eb16880
Fixed integration test.
2015-11-14 09:01:09 -05:00
jgoppert
f2c0669c0d
Changed rk4 to use generic matrix interface.
2015-11-14 08:55:34 -05:00
jgoppert
b9924820e1
Work on kalman filter interface.
2015-11-12 16:41:07 -05:00
jgoppert
0a110a1b02
Fixed integration test.
2015-11-12 15:15:31 -05:00
jgoppert
aa3a086cda
Work on rk4 interface.
2015-11-12 15:13:17 -05:00
jgoppert
7656385ea1
Changed rk4 signature.
2015-11-12 10:19:30 -05:00
jgoppert
606eb1dc2b
Added attitude classes to README.
2015-11-12 10:09:54 -05:00
jgoppert
a334cecfa7
Forced function instantiation for coverage testing.
2015-11-12 10:07:09 -05:00
jgoppert
410bbc4c71
Added more to README.
2015-11-12 09:51:11 -05:00
jgoppert
c29c44b450
Added more testing to instantiate some missing templates.
2015-11-12 09:44:30 -05:00
James Goppert
6a351ac050
Merge pull request #1 from PX4/coverage_filter
...
Changed root dir for coverage.
2015-11-12 01:32:08 -05:00
jgoppert
e724ae4078
Set include dir.
2015-11-12 01:29:47 -05:00
jgoppert
8054180e89
Changed root dir for coverage.
2015-11-12 01:27:27 -05:00
jgoppert
10b89a2594
Switching coverage upload mechanism.
2015-11-12 01:22:40 -05:00
jgoppert
787606b6b8
Formatting.
2015-11-11 23:33:26 -05:00
jgoppert
42f2e60b24
Added runge kutta integration.
2015-11-11 23:31:43 -05:00
jgoppert
2c7a375e3d
Fixed kalman correct test.
2015-11-09 19:58:00 -05:00
jgoppert
e972a0a111
Made kalman filter correction function usable.
2015-11-09 19:55:20 -05:00
jgoppert
222a97e73f
Merge ../Firmware/src/lib/matrix
2015-11-08 12:08:52 -05:00
jgoppert
5c573b075f
Fixes for nuttx.
2015-11-08 12:08:19 -05:00
jgoppert
400a9caa47
Merge ../Firmware/src/lib/matrix
2015-11-07 14:27:41 -05:00
jgoppert
9b995e19f3
Added vector2.
2015-11-07 14:27:12 -05:00
jgoppert
1f72309520
Added some docs.
2015-11-07 12:17:45 -05:00
jgoppert
835cdd2f91
README fix.
2015-11-07 12:03:10 -05:00
jgoppert
3a2c3bdae1
README formatting.
2015-11-07 12:00:21 -05:00
jgoppert
9884a4c423
Improved README.
2015-11-07 11:59:30 -05:00
jgoppert
f621f68fe1
Changed license holder to development team.
2015-11-07 11:55:24 -05:00
jgoppert
ace2751715
Badge fix.
2015-11-07 11:29:08 -05:00
Lorenz Meier
f6e8cdd970
First attempt at enabling coveralls
2015-11-07 17:17:37 +01:00
jgoppert
b9e1ccfe00
Merge branch 'master' of github.com:PX4/Matrix
2015-11-07 11:08:33 -05:00
jgoppert
1fb0f33eb4
Removed old references to matrix.hpp.
2015-11-07 11:08:17 -05:00
Lorenz Meier
4058e32f73
Fix include path
2015-11-07 17:06:07 +01:00
Lorenz Meier
222e42f934
Re-add convenience header
2015-11-07 09:43:28 +01:00
Lorenz Meier
6abd2f782a
Re-add Matrix.hpp
2015-11-07 09:42:33 +01:00
Lorenz Meier
713aee154b
Remove both versions of matrix / Matrix
2015-11-07 09:41:38 +01:00
jgoppert
a2696fcee4
Fix for isfinite.
2015-11-06 21:09:34 -05:00
jgoppert
7abbdcd88f
License fix.
2015-11-05 20:27:03 -05:00
jgoppert
32839006f3
Implemented vector 3 cross product.
2015-11-05 20:22:17 -05:00
jgoppert
5b5cfcfeca
Added more vector ctors.
2015-11-05 19:37:31 -05:00
jgoppert
44768fad35
Added vector data ctor.
2015-11-05 19:32:28 -05:00
jgoppert
cefe7b3e80
Cleaned up header includes.
2015-11-05 19:25:44 -05:00
jgoppert
b06c557a2a
Comment fix.
2015-11-05 18:16:07 -05:00
jgoppert
c70994e6a5
Formatting.
2015-11-05 18:10:06 -05:00
jgoppert
4a6369cee5
More coverage testing.
2015-11-05 18:07:05 -05:00
jgoppert
550108cf1d
More testing.
2015-11-05 17:29:57 -05:00
jgoppert
75399fb15e
Cleanup of printing.
2015-11-05 17:13:03 -05:00
jgoppert
455cb58ebf
New tests.
2015-11-05 17:03:22 -05:00
jgoppert
6ff42b7b31
Added some more vectors tests.
2015-11-05 16:59:59 -05:00
jgoppert
7136e5b7d1
More work on gimbal lock case.
2015-11-05 16:54:19 -05:00
jgoppert
d01e0a1038
Formatting.
2015-11-05 15:44:54 -05:00
jgoppert
00a0b36836
Moved inverse outside of matrix definition.
2015-11-05 15:43:36 -05:00
jgoppert
5566b3dc77
expm testing and fixes.
2015-11-05 15:39:41 -05:00
jgoppert
5517532c90
Fixed coveralls build.
2015-11-05 13:37:14 -05:00
jgoppert
6aa8a72651
Renamed coverage option.
2015-11-05 13:34:49 -05:00
jgoppert
31821a44aa
Fixed formatting script.
2015-11-05 13:33:35 -05:00
jgoppert
9af1604daa
Formatting.
2015-11-05 12:45:53 -05:00
jgoppert
537c683d58
More cleanup.
2015-11-05 12:34:14 -05:00
jgoppert
fd64e7e93a
More testing and cleanup.
2015-11-05 12:28:39 -05:00
jgoppert
9d88b0d573
Fix for gcc 4.6
2015-11-05 11:29:18 -05:00
jgoppert
bb6b375390
Travis fix.
2015-11-05 11:25:47 -05:00
jgoppert
5b0ea675c3
Fixed float in square matrix.
2015-11-05 11:23:54 -05:00
jgoppert
cbe8b4ef6f
Travis fix.
2015-11-05 11:21:48 -05:00
jgoppert
b8dc262582
Formatting.
2015-11-05 11:18:33 -05:00
jgoppert
0062cbcbe2
Added more warnings, and fixed issues.
2015-11-05 11:17:54 -05:00
jgoppert
6ba15eeaa0
Formatting.
2015-11-05 10:51:53 -05:00
jgoppert
7c4b2c590e
Update for travis.
2015-11-05 10:46:22 -05:00
jgoppert
f7b1c63b86
Work on testing.
2015-11-05 10:44:21 -05:00
jgoppert
a703c8169e
Working on formatting.
2015-11-04 23:19:20 -05:00
jgoppert
f23bed6823
Explicity disabled sudo.
2015-11-04 22:54:39 -05:00
jgoppert
3fc5ec9751
Tried apt addon.
2015-11-04 22:53:45 -05:00
jgoppert
04f24310b5
Added astyle install to travis.
2015-11-04 22:51:25 -05:00
jgoppert
b818774f6a
Work on format testing.
2015-11-04 22:48:13 -05:00
jgoppert
eddc55827a
More filter testing.
2015-11-04 20:58:56 -05:00
jgoppert
76cf91c5fd
Work on filter.
2015-11-04 20:56:44 -05:00
jgoppert
52956e360a
Added filtering test.
2015-11-04 20:43:22 -05:00
jgoppert
b2e9e1e3c7
Added kalman filter.
2015-11-04 18:58:29 -05:00
jgoppert
7ec13f6282
Updated pdf.
2015-11-04 12:22:07 -05:00
jgoppert
18f80462b7
Got coverage working for templates.
2015-11-04 12:11:32 -05:00
jgoppert
bf6de4b710
Updated travis.
2015-11-04 11:39:49 -05:00
jgoppert
9e37b99d76
Added local coverage tools.
2015-11-04 11:38:55 -05:00
jgoppert
edc356d0db
Added coverage flag.
2015-11-04 11:02:09 -05:00
jgoppert
4bf4611087
Work on coverage.
2015-11-04 10:54:46 -05:00
jgoppert
abd0ef0143
Removed test files from coverage.
2015-11-04 03:39:35 -05:00
jgoppert
88def6b54e
Made instantiation actual test program.
2015-11-04 03:37:33 -05:00
jgoppert
3477ff2adb
Added coverage to build.
2015-11-04 03:29:01 -05:00
jgoppert
6458c0477e
Working on coverage for templates.
2015-11-04 03:16:41 -05:00
jgoppert
ea66d09a8e
Added coverage source.
2015-11-04 03:11:45 -05:00
jgoppert
9b90f223a4
Updated token.
2015-11-04 02:51:42 -05:00
jgoppert
ce719a0fe2
Added cov sources.
2015-11-04 02:29:07 -05:00
jgoppert
8f0448eb91
Coverage fix.
2015-11-04 01:58:48 -05:00
jgoppert
35edae200f
Badge placement.
2015-11-04 01:54:14 -05:00
jgoppert
edd23778ca
Added coverage.
2015-11-04 01:52:19 -05:00
jgoppert
b1ee027f64
Working on coverage.
2015-11-04 01:50:30 -05:00
jgoppert
12713105b8
Fixed quaternion unit test.
2015-11-04 00:48:59 -05:00
jgoppert
c84e934909
Updated vector class.
2015-11-04 00:37:00 -05:00
jgoppert
89851a85c0
Added badge.
2015-11-03 20:31:47 -05:00
jgoppert
33e0272447
Travis fix.
2015-11-03 20:31:10 -05:00
jgoppert
7470134559
Fixed filename.
2015-11-03 20:29:34 -05:00
jgoppert
ad03429ae9
Added readme.
2015-11-03 20:28:48 -05:00
jgoppert
49035ed6a9
Added mode lines for vi.
2015-11-03 20:26:42 -05:00
jgoppert
b842f8d8a5
Added travis.
2015-11-03 20:17:34 -05:00
jgoppert
5369904d27
Fixed default.
2015-11-03 19:50:09 -05:00
jgoppert
a36ff9f1e5
Formatting and added Scalar.
2015-11-03 19:38:31 -05:00
jgoppert
76e86cf937
Initial commit.
2015-11-03 14:46:54 -05:00