RomanBapst
04ea8d26f2
Merge branch 'rwanda_sih' into rwanda_base
2024-10-04 11:08:14 +03:00
RomanBapst
f97ca30c3f
small changes to be able to configure two ailerons
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-10-04 10:03:26 +03:00
RomanBapst
d847f20515
enable sih for v6x
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-10-03 15:09:27 +03:00
RomanBapst
563d0dffd4
enable sih for v6x
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-10-02 17:18:30 +03:00
RomanBapst
27edc5c4d8
added full support for external autostart scripts
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-10-02 08:39:28 +03:00
RomanBapst
84150189d4
added some more changes
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-09-27 14:46:45 +03:00
RomanBapst
0b7cddeca0
reverse pitch
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-09-27 11:36:38 +03:00
RomanBapst
580c196600
all changes
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-09-27 11:29:41 +03:00
RomanBapst
d4defb7a81
commit all changes
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-09-27 09:40:06 +03:00
Claudio Chies
5d2e7c8748
Misc: Matrix: Added Addition and Subtraction to Slices ( #23679 )
...
* Added Addition and Subtraction to Slices
* MatrixSliceTest: refactor Addition/Substraction checks
* Slice: replace operations returning a Matrix with calling the existing Matrix function
---------
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2024-09-18 11:17:37 +02:00
Marco Hauswirth
4a99a51fb1
update upload-artifact v2->v4
2024-09-17 10:55:00 -07:00
chfriedrich98
8aece9bff2
differential: fix CI issue
2024-09-17 09:34:51 -07:00
chfriedrich98
2fd4150b38
differential: Add stabilized and position mode ( #23669 )
...
* differential: add position and stabilized mode
* differential: add hardcoded stick input deadzones
2024-09-16 12:09:51 +02:00
chfriedrich98
81747f35bb
rover: add descend navigation state to land detection
2024-09-16 09:36:38 +02:00
Silvan Fuhrer
1c9c5e51c2
boards: cuav x7pro: remove build of ROVER and Q_ATTITUDE_ESTIMATOR to save flash
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-09-16 09:11:23 +02:00
Konrad
82a7d0410c
DistanceSensorModeChangeRequest: renaming of variable
2024-09-16 09:11:23 +02:00
Konrad
aab2390e51
navigator: publish distance sensor mode change request when in RTL landing phase or during mission landing
2024-09-16 09:11:23 +02:00
Konrad
1755b8304e
RTL direct: Make sure the _rtl_state captures the current status and not the next one
2024-09-16 09:11:23 +02:00
Konrad
e6f07bde2a
lightware_laser: add option to listen to system to enable/disable distance sensor
2024-09-16 09:11:23 +02:00
Silvan Fuhrer
9ca0630376
airframes: SIH_tailsitter: add SENS_DPRES_OFF to bypass airspeed cal
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-09-13 15:53:52 +03:00
RomanBapst
11440cfb45
added some default parameteter that allow the transition to complete
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-09-13 15:53:52 +03:00
RomanBapst
878c8bfcce
SIH: fix airspeed for tailsitter
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-09-13 15:53:52 +03:00
Konrad
4713a6737e
TECS: ramp up fast descend over 2_s to ramp down the throttle command
2024-09-13 14:04:39 +02:00
Konrad
585c92796d
mission_base: do not make terrain avoidance check when mission is not run anymore
2024-09-13 13:59:24 +02:00
Claudio Chies
4ba4b340cc
Reduce the orbit jerk by using a slew rate
2024-09-13 10:28:42 +02:00
Marco Hauswirth
22c2878cf8
send acknowledgement after receiving vehicle wind cmd
2024-09-12 09:34:08 +02:00
chfriedrich98
741ea6b707
differential: add individual parameters for speed and yaw rate feedforward
2024-09-11 13:57:27 +02:00
chfriedrich98
5d8a107925
differential: fix closed loop control
...
removed thresholds for closed loop setpoints and added minimum thresholds for yaw rate and speed measurements instead to avoid moving due to measurement noise
2024-09-11 13:57:27 +02:00
Roman Bapst
c94c1ce4d2
Navigator: Support straight line mission landings ( #23576 )
...
* introduced altitude acceptance radius in position setpoint for fixed
wing guidance
- allows navigator to explicitly set the altitude acceptance radius
- needed for staright line landing support
* added ignore_alt_acceptance to position setpoint message to allow guidance
logic to ignore altitude error on waypoint
- can be useful to prevent loitering at a waypoint within a mission landing sequence
* only set altitude acceptance radius to infinity for a waypoint inside a mission landing
for fixed wing vehicles
* navigator: return altitude acceptance radius from triplet if it's valid
* FixedWingPositionControl: check if alt acceptance radius provided in position setpoint
is larger 0
---------
Signed-off-by: RomanBapst <bapstroman@gmail.com >
Co-authored-by: Alvaro Fernandez <alvaro@auterion.com >
2024-09-10 17:44:24 +02:00
Mathieu Bresciani
03aec2e188
HeadingSmoothing: fix angle wrapping and add unit tests
...
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2024-09-10 15:06:19 +02:00
jmackay2
a5729da4e9
Simplify gz bridge CMakeLists and add GZ Ionic ( #23657 )
...
Co-authored-by: jmackay2 <jmackay2@gmail.com >
2024-09-10 11:53:00 +02:00
bresch
15e9c65a8f
dist-sensor: reduce enum names
2024-09-09 15:40:40 +02:00
bresch
8bca467c15
dist-sensor: use enum instead of integer
2024-09-09 15:40:40 +02:00
chfriedrich98
bb0210ecd7
rover: add rtl as a landed condition for rovers ( #23646 )
...
The RTL sequence from the navigator requires the vehicle to land. This is now handled for rovers by setting its state to landed if it is within the acceptance radius of the home position when in return mode.
2024-09-06 17:21:49 +02:00
Hubert
67ee4817ae
Makefile add micoair h743 bootloader
2024-09-06 11:14:30 -04:00
Hubert
232f699a7f
cmake-variants.yaml add micoair h743
2024-09-06 11:14:30 -04:00
Hubert
c2bd3900be
Jenkins: compile add micoair h743
2024-09-06 11:14:30 -04:00
Marco Hauswirth
44967bdaab
ekf2: uncorrelate position covariance after velocity reset ( #23644 )
2024-09-06 08:51:15 -04:00
RomanBapst
1337fca4d0
vtol backtransition: removed downscaling of fw controls during the backtransition
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-09-06 13:55:48 +03:00
Alexander Lerach
3d36c8519d
drivers/power_monitor: Implement temperature sensor support for INA228 / INA238
2024-09-05 23:09:01 -04:00
Matthias Grob
f98eb067be
logger params: clarify AUX1 logging trigger
2024-09-05 18:06:29 +02:00
Matthias Grob
e4d25df58a
Consistently use "stick gesture" for "rc stick gesture"
2024-09-05 18:06:29 +02:00
Silvan Fuhrer
8eaf93468e
Commander: feedback string for arming/disarming: make clear when from gesture
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-09-05 18:06:29 +02:00
Silvan Fuhrer
d967cdbb48
Manual control: rename SOURCE_RC_STICK_GESTURE to SOURCE_MANUAL_CONTROL_GESTURE
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-09-05 18:06:29 +02:00
Silvan Fuhrer
556a302a09
Logger: replace RC keyword by 'manual control'
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-09-05 18:06:29 +02:00
Silvan Fuhrer
f7c35291ee
Rover Differential: remove RC keyword from params
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-09-05 18:06:29 +02:00
Silvan Fuhrer
81cf6a736d
Commander: add VEHICLE_CMD_EXTERNAL_POSITION_ESTIMATE to list of externaly handled commands ( #23642 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-09-05 11:20:39 +02:00
Silvan Fuhrer
6fa6360aef
Commander: always allow to switch to LAND mode ( #23580 )
...
Special handling for LAND mode: always allow to switch into it such that if used
as emergency mode it is always available. When triggering it the user generally wants
the vehicle to descend immediately, and if that means to switch to DESCEND it is fine.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-09-03 18:10:37 +02:00
Konrad
80d4fad624
DistanceSensorCheck: do not raise a distance sensor failure if the SFXX_MODE is set to 2 and we are in a VTOL FX flight phase
2024-09-03 15:53:09 +02:00
chfriedrich98
a9cdb36d7c
differential: reset integrators when disarmed ( #23637 )
2024-09-03 09:31:39 +02:00
Julian Oes
8f6ce4edbf
mavlink/lib: move open_drone_id helpers to mavlink
...
I could not extract the open_drone_id helpers to a separate lib because
it would require the mavlink headers while the mavlink library would
also depend on it, so it ended up being a circular dependency.
Instead, I'm now just using the headers from within the mavlink module
as well as from the uavcan driver.
2024-09-02 16:20:10 +12:00
Julian Oes
b7c5ba1752
boards: make flash space for remote ID over DroneCAN
2024-09-02 16:20:10 +12:00
Julian Oes
cd63cfed3a
remoteid: implement System as sent from GCS
...
This will send the System message if it is already being sent by a ground
station. Otherwise, it will assemble the message itself using the
takeoff/home location.
2024-09-02 16:20:10 +12:00
Julian Oes
7d1d398984
remoteid: add SelfID message
2024-09-02 16:20:10 +12:00
Julian Oes
04ea4f9b3a
uavcan: add OpenDroneID ArmStatus, operator ID
...
In order to have operator ID be sent by QGC, we need to forward
ArmStatus from the remote ID module (here on DroneCAN) to MAVLink.
2024-09-02 16:20:10 +12:00
Julian Oes
d999258171
uavcan: implement OpenDroneID System
2024-09-02 16:20:10 +12:00
Julian Oes
de00c23e19
uavcan: implement OpenDroneID Location
2024-09-02 16:20:10 +12:00
Julian Oes
cf19764d75
uavcan: implement OpenDroneID BasicID
...
Signed-off-by: Julian Oes <julian@oes.ch >
2024-09-02 16:20:10 +12:00
Julian Oes
87a63e75be
mavlink: extract OpenDroneID function to lib
...
This extracts the function mapping from MAV_TYPE to MAV_ODID_UA_TYPE to
the library, so that it can be re-used later by the remote ID
implementation over DroneCAN.
Signed-off-by: Julian Oes <julian@oes.ch >
2024-09-02 16:20:10 +12:00
Julian Oes
4c63e9e4f9
libuavcan: update DroneCAN submodule
...
Signed-off-by: Julian Oes <julian@oes.ch >
2024-09-02 16:20:10 +12:00
Marco Hauswirth
7dcea6b2e4
EKF2: range measurement rejection in rain/fog ( #23579 )
2024-08-30 17:25:56 +02:00
Benjamin Perseghetti
787fe9590d
Fix typo where 22.04 still says Gz (Garden) ( #23632 )
...
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com >
2024-08-29 20:42:56 +02:00
Daniel Agar
5b0014cb06
ekf2: remove legacy accel z bias checks ( #23341 )
...
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2024-08-29 11:51:27 -04:00
chfriedrich98
f8188f0981
differential: update module ( #23629 )
...
Improve the slow down effect and add support for speed change in mission mode.
Seperate code related to turning setpoints into motor commands into its own folder and refactor code.
2024-08-29 15:27:08 +02:00
Silvan Fuhrer
c86d44f831
Commander: remove 2 decimals from COM_FAIL_ACT_T
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-29 10:56:04 +02:00
Silvan Fuhrer
6b3e3aa363
Commander: improve param description of COM_POSCTL_NAVL and rename Manual-->Stabilized
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-29 10:56:04 +02:00
Mathieu Bresciani
2cda0efd84
Commander: extend COM_ARM_WO_GPS to disable warning ( #23628 )
2024-08-28 17:33:58 +02:00
Jacob Dahl
0f1507c24e
[gz] X500 mono_cam_down and aruco world ( #23450 )
...
* x500 mono cam down and aruco world
* remove duplicate line
2024-08-28 17:23:39 +02:00
bresch
bab256bfe6
ekf2: handle external altitude resets
2024-08-28 11:02:26 +02:00
bresch
cd2170deea
ekf2-origin: backcompute based on lpos validity
2024-08-28 11:02:26 +02:00
bresch
130fefb1e7
ekf2: initialize origin from corrent position when possible
2024-08-28 11:02:26 +02:00
bresch
af752536b9
ekf2: extract setting origin from current lat/lon/alt
...
This is not only needed when GNSS is available but also for other global
sources of position (e.g.: aux global pos and manual pos updates)
2024-08-28 11:02:26 +02:00
bresch
9169a7c5fc
ekf2: split horizontal and vertical origin reset
...
Allow partial resets (only lat/lon or only altitude)
2024-08-28 11:02:26 +02:00
Daniel Agar
f3d58cdf10
ekf2: resetFlowFusion() pass flowSample by const ref
2024-08-27 10:38:17 -04:00
Daniel Agar
6c24413888
ekf2: filter flow vel (used for flow velocity reset)
...
- individual flow samples can be quite erratic
2024-08-27 10:38:17 -04:00
dagar
5ff4eea870
[AUTO COMMIT] update change indication
2024-08-27 16:16:55 +02:00
Daniel Agar
ac48b8b51d
ekf2: mag declination fusion always if there is no aiding
2024-08-27 16:16:55 +02:00
Daniel Agar
2a9e205442
ekf2: fuseDeclination respect mag update_all_states
...
- when both mag_hdg/mag_3d are inactive we should be able to continue
updating mag without any possible impact on other states
2024-08-27 16:16:55 +02:00
Daniel Agar
9d57a3c02f
ekf2: split resetMagCov() and skip mag reset if negligible change
2024-08-27 16:16:55 +02:00
Daniel Agar
bbcf741e9e
ekf2: make mag control responsible for WMM
...
- this further untangles mag control (which requires the WMM) from GPS
2024-08-27 16:16:55 +02:00
sbtjagu
be4d0d351c
ackermann: add speed waypoint support and fix delay detection ( #23572 )
2024-08-27 13:35:48 +02:00
jmackay2
5fff1ad6d1
Fix spelling of airflow sensor msg comments
2024-08-27 09:23:43 +02:00
Jukka Laitinen
f67eb6989d
mavlink: Fix ESC_STATUS sending for batches > 1
...
The indexing was wrong for esc_status sending for ESCs 4->
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2024-08-26 15:06:55 -04:00
LucaS
ca47f6f016
lib/mixer_module: added a constant instance start so that when instance start is changed in actuator yaml files they parameters are able to be used ( #23616 )
...
Co-authored-by: Luca Scheuer <luca.scheuer@iq-control.com >
2024-08-26 14:51:09 -04:00
Ramon Roche
16c77be7c0
tests: loosen radius of vtol rtl landing pos check
2024-08-26 14:05:17 -04:00
Daniel Agar
a75db1286d
logger: automatically limit buffer size to largest available free chunk (NuttX only)
2024-08-26 13:24:39 -04:00
Silvan Fuhrer
8bfd3b0f62
platforms/nuttx/init/stm32f7: rc.board_arch_defaults reduce LOGGER_BUF to 40
...
To get some breathing space on setups with memory-intensive components (e.g. UAVCAN).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-26 13:13:11 -04:00
bresch
9183c479a5
ekf2: correctly compute vel variance from flow variance
...
Co-authored-by: Marco Hauswirth <marco.hauswirth@auterion.com >
2024-08-26 11:28:36 -04:00
Claudio Chies
1a4e8a7341
FLOW: PARAM: GCS Parameter readability
2024-08-26 16:09:21 +02:00
SuddenDeath
510d3cfb39
gz: Fix endless wait for gazebo on different worlds ( #23613 )
...
Co-authored-by: your-sudden-death <noreply@pm.me >
2024-08-24 17:15:41 +02:00
Daniel Agar
ebbb880e92
ekf2: always use corrected accel/gyro for filtered metrics
2024-08-23 17:35:59 -04:00
Daniel Agar
56560726d3
ekf2: sensor simulator fix GPS replay scaling
2024-08-23 14:35:05 -04:00
Daniel Agar
d7b165991f
cmake: relax git tag requirements
...
- default to v0.0.0 if tag isn't available
- src/lib/px_update_git_header.py use same PX4_GIT_TAG as cmake
- update lingering master branch references to main
2024-08-23 12:05:34 -04:00
Ramon Roche
54f7b58007
Commander: lock down mav sys and comp id
...
- keeps them as local params at init
- only allow to set at init
2024-08-23 11:19:25 -04:00
bresch
1a0f97ebbd
ekf2-fake pos: add valid fake position fusion
...
This is similar to fake pos but is only used when the ekf has an
external information telling it that the vehicle is not changing
position. This information can then be used to keep a valid local
position even when the vehicle isn't exactly at rest.
2024-08-23 11:17:21 +02:00
bresch
64b0586dad
ekf2: return validity based on dead-reckoning time only
2024-08-23 11:17:21 +02:00
David Sidrane
cf941b18df
Nuttx with stm32h7: STM32H7X5XX selects hardware files backport
2024-08-23 05:12:28 -04:00
jfbblue0922
13c413622b
Nuttx with stm32h7: STM32H7X5XX selects hardware files backport
2024-08-23 04:48:20 -04:00
Jaeyoung Lim
b1dfe1d731
Update gz version to harmonic
2024-08-22 21:37:00 -04:00
Ramon Roche
00c3017334
ci: add note regarding RunsOn
2024-08-22 12:06:50 -04:00
Ramon Roche
89f29e91de
ci: slow down sitl test realtime
2024-08-22 12:06:50 -04:00
Ramon Roche
7f33dcfcfb
ci: upgrade sitl mavsdk tests workflow
2024-08-22 12:06:50 -04:00
Jaeyoung Lim
d617bf4129
simulation/gz_bridge: Fix build issues with unused variable
2024-08-22 11:48:46 -04:00
Daniel Agar
7250ee1b32
ekf2: organize gyro_bias/accel_bias param yaml
2024-08-22 10:56:16 -04:00
Daniel Agar
ebbd2c1825
ekf2: organize aid source parameters
2024-08-22 10:56:16 -04:00
Claudio Chies
ee022a70c1
Navigator: Land: Improve it for VTOL by taking breaking distance into account ( #23566 )
...
* vtol adjust landing setpoint
* improve comment
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
---------
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-22 14:10:36 +02:00
Silvan Fuhrer
e0bb56b6a7
Commander: Failsafe: set clear condition for action Land like for RTL ( #23569 )
...
For many failsafes, it is possible to select RTL and Land as actions.
In this commit I synchronize the clear condition for these two action
options, to always only clear on Disarm or manual mode change.
Reasoning is that for the user RTL and Land is a similar action and
I would thus expect them to be as similar as possible. And I in general
would rather not clear a failsafe state instead of too often clearing it.
Example: GF failsafe with action Land --> even if the drone is marginally
within the GF again, I want it to proceed with the Landing unless
I manually intervene.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-22 14:03:24 +02:00
Silvan Fuhrer
6ef82ada6e
Navigator: make sure VTOL transitions in Descend mode are alays triggered ( #23578 )
...
It previously didn't catch switches to Descend from a manual mode,
as both modes have navigation_mode_new=nullptr.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-22 14:02:32 +02:00
Konrad
20b6f343a3
mission_base: make sure all mission_items during landing phase have yaw set to NaN
2024-08-22 12:58:44 +02:00
ZeroOne-Aero
02ed1162ed
Update pab_manifest.c ( #23594 )
...
* Update pab_manifest.c
I have rebased on main and squash my commits into 1.
* Update pab_manifest.c
I have updated pab_manifest.c:
// BASE ID 0x150 ZeroOne Pixhawk Baseboard Alaised to ID 0
{HW_BASE_ID(0x150), base_configuration_0, arraySize(base_configuration_0)}, // ZeroOne Pixhawk Baseboard ver 0x150
2024-08-22 04:02:02 -04:00
jmackay2
b33b0398dd
Fix param typo in quadtailsitter airframe ( #23588 )
2024-08-22 10:30:10 +10:00
Jaeyoung Lim
ae16556107
simulation/gz_bridge: follow model in gz GUI ( #22808 )
2024-08-21 11:41:47 -04:00
Ramon Roche
b2f663648e
ci: github actions runs-on Dronecode AWS Infra
...
* ci: try runs-on Dronecode Infra
* ci: comment on how to disable RunsOn
* Update .github/workflows/build_all_targets.yml
2024-08-21 10:56:37 -04:00
KonradRudin
3478765c31
Navigator: MissionFeasibilityCheck: Rework 1st waypoint check ( #23568 )
...
* FeasibilityChecker: only warn when first waypoint is too far, but still accept mission as valid
* feasiblityChecker: make distance to first waypoint check against home position instead of current position, so it is more constant during a flight
* Apply suggestions from code review
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
* feasibilityCheckerTest: update tests to not fail for first waypoint check
* feasibilityChecker: make comment for 1stwaypointcheck event
* Feasibility check unit test: fix comment
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-21 09:08:36 +02:00
Jaeyoung Lim
f252e20eae
Revert "Update GZBridge to be able to use gazebo airspeed. Add quadtailsitter. ( #23455 )" ( #23583 )
...
This reverts commit 7e45f49152 .
Co-authored-by: jmackay2 <1.732mackay@gmail.com >
2024-08-20 19:36:08 -04:00
bresch
0931179579
ekf2: extract WMM update logic
2024-08-20 10:32:27 -04:00
Beniamino Pozzan
98eae3cd4c
fix: make help on Ubuntu 22.04
...
Ubuntu 22.04 uses make 4.3 which broke the current `make help` target
Reference:
https://stackoverflow.com/a/26339924
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2024-08-19 11:19:31 -04:00
Thomas Stauber
f2f4488594
drivers/gps: publish secondary instance satellite_info if main instance is advertised
2024-08-19 11:14:12 -04:00
Niklas Hauser
ecfdbd2e60
littlefs: needs more stack when used
2024-08-19 11:05:50 -04:00
David Sidrane
c60b1d1a5f
board_hw_rev_ver: Support EEPROM-only HW IDs
2024-08-19 11:05:50 -04:00
Niklas Hauser
07734c243f
mtd: Initialized the RAMTRON speed with 30MHz
2024-08-19 11:05:50 -04:00
David Sidrane
072892fbef
romfs: rcS: support storage on other then SD card
2024-08-19 11:05:50 -04:00
Ramon Roche
746ae25768
ci: replace build workflows ( #23550 )
2024-08-19 10:41:25 -04:00
Alexis Guijarro
0481c04b2b
Nuttx with backport (stm32h7x3x): Add External Power Supply option
2024-08-19 09:22:17 -04:00
Claudio Chies
4d21110cfb
Documentation - improved GCS parameter readablity ( #23376 )
...
improved GCS parameter description
Co-authored-by: Hamish Willee <hamishwillee@gmail.com >
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-19 13:36:04 +02:00
jmackay2
7e45f49152
Update GZBridge to be able to use gazebo airspeed. Add quadtailsitter. ( #23455 )
...
* Update GZBridge to be able to use gazebo airspeed. Add gz quadtailsitter.
* Fix formatting
---------
Co-authored-by: jmackay2 <jmackay2@gmail.com >
2024-08-19 08:54:57 +02:00
Claudio Chies
e29a36adb4
Landing horizontal velocity compensation / unsteady landing ( #23546 )
...
* initial working
* implemented feedback
2024-08-19 08:01:43 +02:00
Silvan Fuhrer
435e9665b3
RTL: cone: never climb more than to RTL_RETURN_ALT ( #23558 )
...
This is to prevent that a large NAV_ACC_RAD leads to very high return altitudes.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-19 07:51:33 +02:00
Vilius
ea0ef154d8
Fixes upload.sh for arkv6x ( #23561 )
2024-08-17 13:59:18 -06:00
bresch
ad1d9e1312
failsafe: do not add additional hold delay if failsafe action is hold
2024-08-16 16:26:20 +02:00
bresch
ea673b0b5b
navigator: check hagl failsafe centrally
2024-08-16 16:26:20 +02:00
Silvan Fuhrer
4f66410d24
ROMFS gazebo iris opt flow: increase SENS_FLOW_MAXHGT to 15m ( #23557 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-16 15:58:36 +02:00
Silvan Fuhrer
09638552b7
estimatorChecks: disable warning for imminent position failure if that is disabled ( #23556 )
...
COM_POS_FS_EPH can be set to -1, in which case the actual failure eph is INFINITY.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-16 13:57:37 +02:00
Silvan Fuhrer
4a3cbecf01
Commander: only add *autopilot disengaged* to failsafe notifactions in special cases
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-16 11:04:37 +02:00
Daniel Agar
f7e6e1354a
commander: power check only keep error thresholds
2024-08-15 10:06:56 -04:00
Vilius
2a124fd998
Add Bosch BMM350 magnetometer ( #23362 )
...
* Add Bosch BMM350 magnetometer
* BMM350 replace info messages with debug messages
* BMM350 update measurement interval
* BMM350 fix offsets, update based on review
* BMM350 Update default parameters to 50Hz
* Update OTP Word LSB check
* BMM350 fix styles and formatting
* BMM350 update error checks
2024-08-15 01:29:02 -08:00
Ramon Roche
af0129dab7
github: update bug report template
...
Removes unnecessary required fields
2024-08-14 19:56:49 -04:00
Alexis Guijarro
c8501cc1d0
boards: Support for 3DR Control Zero H7 OEM Rev G board
2024-08-14 19:52:42 -04:00
bresch
4ed3e9e210
navigator: add failure enum
2024-08-14 11:08:02 +02:00
bresch
25fcb3c913
comander: trigger failsafe when navigator reports failure
2024-08-14 11:08:02 +02:00
bresch
9f69e9ee6c
navigator: publish navigator_state
...
feedback to commander
2024-08-14 11:08:02 +02:00
bresch
1fa878ad88
navigator: add navigation state ID to every mode class
2024-08-14 11:08:02 +02:00
murata,katsutoshi
dec550dcb9
navigator: Change IF statement to SWITCH statement ( #23534 )
2024-08-14 09:40:36 +02:00
Hamish Willee
f3a8d05f8c
MPC_ACC_DECOUPLE - better description ( #23518 )
2024-08-14 12:18:14 +10:00
mirusu400
5121358e87
Makefile: Fix error message when cannot find target board
...
not $(MAKE) help|list_config_targets, we should use $(MAKE) list_config_targets
for the desired results.
2024-08-13 21:34:39 -04:00
murata,katsutoshi
a327b14cef
navigator: always fully initialize geofence msg
2024-08-13 21:33:36 -04:00
Jukka Laitinen
0459481cb4
icm40609d: Change FIFO count to samples instead of bytes
...
As the sensor can directly report the amount of samples in the fifo, use it to simplify the logic.
Also combine the fifo empty/fifo overflow checks for interrupt and polling modes.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2024-08-13 21:32:28 -04:00
Jukka Laitinen
cc4d5bd2a6
icm40609d: Add INTF register definition and disable I2C interface
...
Disable I2C to make sure that the sensor doesn't switch to that by accident
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2024-08-13 21:32:28 -04:00
Jukka Laitinen
fd062d0085
icm40609d: Clear interrupt status at FIFO reset
...
If DRDY signal is used, the interrupt status needs to be cleared at FIFO reset
in order to make DRDY go back inactive. Otherwise there won't be a falling edge
interrupt at the next sample.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2024-08-13 21:32:28 -04:00
Stefano Colli
e2c0e5c88a
MissionBase: replay the gimbal and trigger cached items only upon reaching resume waypoint ( #23484 )
...
* Fix: replay the mission cached items only upon reaching resume waypoint
* Refactoring
Split camera mode mission items from gimbal ones so to have a finer control over the relative replays
* Chore: fix formatting
---------
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-13 22:20:28 +02:00
bresch
aad607e0dd
ekf2: send airspeed data to ekf backend regardless of sign
...
On ground the airspeed can sometimes be slightly negative but the ekf
should still know that airspeed data is flowing regularly
2024-08-13 17:43:45 +02:00
Silvan Fuhrer
a0d22a4d21
FW Position Control: make explicit when underspeed detection logic is en-/disabled
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-13 16:55:26 +02:00
Silvan Fuhrer
acc0cd7e8a
FW Position Control: disable underspeed handling during auto takeoff
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-13 16:55:26 +02:00
Silvan Fuhrer
afc360d637
FW Position control: do not invalidate airspeed from negative readings
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-13 16:55:26 +02:00
murata,katsutoshi
db8781e531
navigator: Align MAVLINK message level with EVENT message level ( #23535 )
2024-08-12 19:09:22 +02:00
Jaeyoung Lim
e008ca24f1
Remove euler angles from attitude setpoint ( #23482 )
...
* Remove euler angles from attitude setpoint message
* Remove usage of euler angles in attitude setpoint messages
This commit removes the usage of euler angles in the vehicle_attitude_setpoint messages
* Fix standard vtol
2024-08-12 16:42:51 +02:00
Daniel Agar
c9343ca11d
sitl_gazebo-classic update submodule to latest
2024-08-12 16:26:56 +02:00
Matthias Grob
af06bee8d0
update mavlink & adapt to pymavlink generator reporting failures by default
2024-08-12 16:26:56 +02:00
bresch
478875c006
ekf tools: compare gyro integral with attitude estimate
2024-08-12 15:26:08 +02:00
Matthias Grob
64056fc7bb
SYS_STATUS: fill correct attitude, horizontal position flags
2024-08-09 18:22:09 +02:00
Sergei
1211aad9b0
Reasonable defaults for Lawnmower SITL
2024-08-09 12:18:16 -04:00
Alexis Guijarro
f4f93118e6
mRo boards: Fix for USART clock selection
2024-08-09 11:59:38 -04:00
Matthias Grob
fdfe43471e
mavlink_receiver: limit access through instances with gimbal mode
...
This adds explicit handling for the few things we want to allow through a MAVLink instance dedicated to a gimbal/(camera) payload as per the MAVLink gimbal mode configuration.
2024-08-09 10:13:44 -04:00
bresch
3f17f15505
commander: allow FW manual pos control without global position
2024-08-09 12:51:09 +02:00
bresch
8b12b7c641
commander: extend local position 'relaxed' validity
...
Relaxed position is valid as long as a velocity aiding source is active
(e.g.: optical flow or airspeed+sideslip)
2024-08-09 12:51:09 +02:00
bresch
f04aa2494b
FW pos control: do not requre global pos in manual position control
2024-08-09 12:51:09 +02:00
Matthias Grob
6cf0bf5e19
Support MAVLink extension MANUAL_CONTROL.aux
...
Note that in uORB we don't currently know if the aux fields are
specifically valid or not so we can also not set the corresponding
bits in the field.
2024-08-09 10:49:38 +02:00
Hamish Willee
58a699e3cb
Strip out html escape comments
2024-08-09 09:26:06 +02:00
Hamish Willee
82be5cd44f
Strip short description from long one
2024-08-09 09:26:06 +02:00
Hamish Willee
718d308d91
parameter markdown - correct reboot in tables
2024-08-09 09:26:06 +02:00
chfriedrich98
a294e011ab
purePursuit: fix commenting error
2024-08-08 19:54:42 +02:00
chfriedrich98
1a7717b5d9
ackermann: refactor guidance files
2024-08-08 19:54:42 +02:00
chfriedrich98
1af295f1a9
ackermann: refactor main files
2024-08-08 19:54:42 +02:00
Niklas Hauser
cd231d0eed
fmuv6x: Add GPIO expander to check overcurrent pins
2024-08-08 13:14:11 -04:00
chfriedrich98
a91aa40a3d
battery: only reset soc filter with valid voltage measurement ( #23513 )
2024-08-08 17:09:36 +02:00
Matthias Grob
0381e14822
FlightTaskOrbit: Avoid sending NAN altitude in status telemetry while it's changed by stick
2024-08-08 10:53:18 -04:00
Silvan Fuhrer
a737036633
RTLDirect: check for terrain collision in every state of RTL beside when landing
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-08 13:37:36 +02:00
Silvan Fuhrer
588c4a04c8
RTL direct: publish NavigatorMissionItem
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-08 13:37:36 +02:00
Silvan Fuhrer
b01c179eed
NavigatorMissionItem.msg: remove instance_count
...
This information is duplicate to mission_result/mission_id.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-08 13:37:36 +02:00
Jeremy Zanzig
e2f5debf77
change pairing LED feedback to 20 fast flashes of white
2024-08-08 10:02:36 +02:00
Matthias Grob
a8d54c7fae
mixer_module: Reset RC passthrough functions to disarmed value when no stick input
2024-08-07 19:20:51 +02:00
Julian Oes
2d99ae18ad
stm32h7: Reset USART clock selection ( #23498 )
...
This resets the USARTs' clock source selection to the default, in case
it has been changed by the bootloader.
This is required if booting from the ArduPilot bootloader which happens
to reset the clock selection to PLL.
Without this fix, UARTs (including the console) is garbled, so
presumably at an invalid baudrate.
2024-08-07 11:41:50 -04:00
Jacob Dahl
086c044f47
mavlink: log handler rewrite for improved efficiency ( #23421 )
2024-08-07 11:26:12 -04:00
PX4 BuildBot
a39a3e2099
Update submodule gz to latest Wed Aug 7 12:39:06 UTC 2024
...
- gz in PX4/Firmware (411a328e325e5109a453cf84d0c65393be86bfef): https://github.com/PX4/PX4-gazebo-models/commit/312cd002ff9602644efef58eef93e447c10dcbe8
- gz current upstream: https://github.com/PX4/PX4-gazebo-models/commit/536305adee09b9ace391b16107e625cf7c6db7e7
- Changes: https://github.com/PX4/PX4-gazebo-models/compare/312cd002ff9602644efef58eef93e447c10dcbe8...536305adee09b9ace391b16107e625cf7c6db7e7
536305a 2024-08-07 Claudio Chies - add world for collision prevention (#52 )
36f49cb 2024-07-29 Stefano Colli - Add x500 with gimbal model (#47 )
4ddfc13 2024-07-24 Jacob Dahl - Downward mono cam + aruco tag (#48 )
2024-08-07 11:23:39 -04:00
PX4 BuildBot
b488e45e73
Update submodule sitl_gazebo-classic to latest Wed Aug 7 12:39:04 UTC 2024
...
- sitl_gazebo-classic in PX4/Firmware (28a0de63c5 ): https://github.com/PX4/PX4-SITL_gazebo-classic/commit/67431d233f0f08de647f0eb11239816f9c8bd6c6
- sitl_gazebo-classic current upstream: https://github.com/PX4/PX4-SITL_gazebo-classic/commit/67af3c3a6da493bdc0a0b9de28b01a2a98d38659
- Changes: https://github.com/PX4/PX4-SITL_gazebo-classic/compare/67431d233f0f08de647f0eb11239816f9c8bd6c6...67af3c3a6da493bdc0a0b9de28b01a2a98d38659
67af3c3 2024-07-18 Silvan Fuhrer - model/lidar: incrase range to 50m (#1049 )
2024-08-07 11:23:16 -04:00
chfriedrich98
176f09b48b
gz_bridge: add rover world to cmake
2024-08-07 10:24:02 -04:00
Silvan Fuhrer
876730a9be
FW Position Controller: enable flaps during hand/catapult launch ( #23460 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-08-07 15:38:55 +02:00
Peter van der Perk
588eedb8cb
px4: sitl fix filepath regression ( #23457 )
2024-08-07 15:24:07 +02:00
chfriedrich98
c8ff5909b5
rover: restructure airframes ( #23506 )
2024-08-07 15:16:41 +02:00
Claudio Chies
28a0de63c5
Orbit Yaw Vehicle Parameter ( #23358 )
2024-08-07 11:12:52 +02:00
chfriedrich98
33d99a13e8
differential: restructure and update module ( #23430 )
...
* differential: rename module
* differential: restructure and update module
2024-08-07 09:53:37 +02:00
Beat Küng
bfcd4564a6
fix metadata.cmake: add missing paths to json & xml parameter outputs ( #23464 )
2024-08-07 16:17:03 +10:00
Thomas Frans
3157a4e171
gnss: update supported baud rates ( #23415 )
...
* gnss: update supported baud rates
The Septentrio GNSS driver requires certain baud rates to test all the
supported baud rates of the receiver. Without these changes, certain
"non-standard" ones would print an error to the MAVLink console when the
driver was started through the console.
* platforms: add missing baudrate defines
---------
Co-authored-by: Thomas Frans <franske2000@gmail.com >
Co-authored-by: Julian Oes <julian@oes.ch >
2024-08-07 10:46:18 +12:00
bresch
d2478d00cf
ekf2: only allow ref sensor to reset height
2024-08-06 10:19:13 -04:00
Matthias Grob
8ed3489bd1
hardfault_log: revert to explicit path to not trip the module documentation parser
...
- the module documentation parser can only resolve defines from the same file
- also it cannot deal with defines embeded in strings
- what board should it add for the general documentation anyways?
As a result of these issues I suggest to stay with the original hardcoded
/fs/microsd for the documentation. It's still the most common path as far as
I can see.
2024-08-06 13:43:13 +02:00
Matthias Grob
84d4ee0e60
zenoh-pico: update to correct dev/1.0.0 branch
...
which is up to date containing "Use SO_REUSEPORT only if it exists"
and is advertised by GitHub because the commit is on a branch
2024-08-06 13:42:23 +02:00
sbtjagu
326e2a9f5c
ackermann: add protection against float precision problem in acceptance radius update ( #23478 )
...
* ackermann: add protection against float precision problem in acceptance radius update
* ackermann: protect against divide-by-zero
---------
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2024-08-05 13:02:12 +02:00
Beat Küng
4883f2128a
commander: allow external modes more time for initial response
...
We've come accross a case where a ROS node would consistently take something
over 800 ms until the first arming check request subscription callback was
triggered.
After the first sample, the callback always triggered within the expected
timeframe.
Therefore this patch allows for more time right after registration until
timing out.
2024-08-05 08:43:56 +02:00
Alexis Paques
d4d60a5181
Add missing rc.sysinit file in the ROMFS
2024-08-02 16:01:13 -04:00
Alexis Paques
abc629c2bb
zenoh: update zenoh-pico from 0.7.0 to 1.0.0 ( #23462 )
...
* Update Zenoh-pico from 0.7.0 to 1.0.0
* Update the zenoh-pico version to use PX4/dev/1.0.0-px4
* Remove the rostopic and rt/ prefix
* Unlike zenoh-bridge-dds we were using, zenoh-bridge-ros2dds is now adding the rt/ prefix automagically.
2024-08-02 11:48:55 -04:00
Silvan Fuhrer
75ce550db3
Navigator: add terrain collision avoidance logic for Mission/RTL
...
Avoid flying into terrain using the distance sensor.
Enable through the parameter NAV_MIN_GND_DIST.
Only active during commanded descents with vz>0 (to prevent climb-aways),
excluding landing and VTOL transitions.
It changes the altitude setpoint in the triplet to maintain the current altitude
and republish the triplet. We also change the mission item altitude used for
acceptance calculations to prevent getting stuck in a loop.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-30 17:50:54 +02:00
Silvan Fuhrer
b74e46b1ac
SITL airframes/Navigator: remvoe reference to removed param MIS_LTRMIN_ALT
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-30 17:50:54 +02:00
chfriedrich98
e5657ba011
battery: remove reboot required flag from BAT_N_CELLS
2024-07-30 16:18:47 +02:00
chfriedrich98
9ca9ae5b24
battery: fix initialization for internal resistance estimation
...
Don't run/initialize if number of battery cells is zero and reinitialize whenever this parameter changes.
2024-07-30 16:18:47 +02:00
Matthias Grob
ba579245fb
battery_status: remove unused smart battery mode
2024-07-30 14:37:11 +02:00
Matthias Grob
a18c18e163
battery_status: remove custom_faults
2024-07-30 14:37:11 +02:00
Matthias Grob
72ed160aa9
batteryCheck: fix comment typo hyster{i,e}sis
2024-07-30 14:37:11 +02:00
Matthias Grob
2e66bbdfb8
battery_status: add failed to arm fault instead of duplicate over temperature
2024-07-30 14:37:11 +02:00
Matthias Grob
e06629bfe5
failsafe: unhealthy battery during spoolup leads to disarm
...
battery failures can occur upon arming when the load gets sgnificant.
In that case the safest thing to do is prevent a takeoff before anything
worse happens.
2024-07-30 14:37:11 +02:00
Matthias Grob
0d00543292
batteryCheck: explicitly report missing battery with ID
2024-07-30 14:37:11 +02:00
Matthias Grob
7d79bdfa05
batteryCheck: apply supply circuit breaker also to battery checks
...
This was the case in older versions of PX4.
2024-07-30 14:37:11 +02:00
Matthias Grob
edcda80cb9
Commander: adhere to parameter naming convention ( #23466 )
2024-07-30 14:27:27 +02:00
chfriedrich98
b93dd0e8d4
purePursuit: migrate parameters to library ( #23438 )
2024-07-30 14:16:05 +02:00
bresch
7b3d168af1
baro tuning: make hpf argument optional
...
This filter is often not needed. Setting the default value to -1 makes it
optional.
2024-07-29 14:20:41 +02:00
Silvan Fuhrer
9257744da3
TECS: reduce default of FW_T_SPD_STD to reduce airspeed measurement delay ( #23441 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-29 11:14:59 +02:00
Silvan Fuhrer
d841bf124f
fw_position_control: use time literals
2024-07-26 18:01:44 +02:00
Marco Hauswirth
9d9d8aeb4c
bugfix: wrong reset_counter used
2024-07-26 18:01:44 +02:00
Marco Hauswirth
5808dac4bc
reset position-mode line following after position reset
2024-07-26 18:01:44 +02:00
Silvan Fuhrer
97561d7802
Commander: never allow to switch out of Terminate state with user intend
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-26 09:53:07 +02:00
Silvan Fuhrer
ee8030de56
Commander: do not switch out of Terminte after disarm
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-26 09:53:07 +02:00
bresch
0b1eba948a
ekf2-flow: add param to force using internal gyro
...
In some cases the vibration environment of the optical flow sensor is
worse than near the autopilot.
2024-07-25 19:54:19 -04:00
Hamish Willee
a07c986dbc
Params generated as markdown table ( #23443 )
2024-07-26 07:46:11 +10:00
sbtjagu
85b6b0a406
ackermann: added delay comand support ( #23445 )
2024-07-25 17:13:30 +02:00
oravla5
b76c1c97b3
ekf2: Optical flow enabled by default
2024-07-25 10:01:35 +02:00
Daniel Agar
fd72578e98
ekf2: avoid constraining parameters every iteration
2024-07-25 09:51:35 +02:00
Silvan Fuhrer
ebcfb5348c
Navigator: increase stack by 40 bytes
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-25 09:22:23 +02:00
Peter van der Perk
4ca3e1b6e6
mr_canhubk3: add netman in default.px4board
2024-07-24 11:39:44 -04:00
Peter van der Perk
af36c0b6ec
mr_canhubk3: generate mtd_net when file is missing
2024-07-24 11:39:44 -04:00
David Sidrane
b38305dd21
CONFIG_BOARD_ROOT_PATH is not dependant on Logger only
2024-07-24 11:39:44 -04:00
David Sidrane
ab82c24e3e
systemcmds:Use CONFIG_BOARD_ROOT_PATH instead of string constant
2024-07-24 11:39:44 -04:00
David Sidrane
54b20f1ff3
mavlink:Use CONFIG_BOARD_ROOT_PATH instead of string constant
2024-07-24 11:39:44 -04:00
David Sidrane
ea92c7ffcc
lib:Use CONFIG_BOARD_ROOT_PATH instead of string constant
2024-07-24 11:39:44 -04:00
David Sidrane
d0d9aaa6e9
drivers:Use CONFIG_BOARD_ROOT_PATH instead of string constant
2024-07-24 11:39:44 -04:00
David Sidrane
3fa9cda505
platforms/common:Use CONFIG_BOARD_ROOT_PATH instead of string constant
2024-07-24 11:39:44 -04:00
Peter van der Perk
a99cc0a20b
Remove unused kconfig symbol
2024-07-24 11:39:44 -04:00
Peter van der Perk
46e43ec725
Decouple filepaths from rcS/MTD
2024-07-24 11:39:44 -04:00
bresch
79e0e00d8c
ekf2: block process noise increment without constraining the variance
...
The wind variance can be reset to a value larger than the wind init
variance (e.g.: when the reset occurs when flying close to the N or E
axis). Constraining the variance after a covariance initialization would
artificially increase the correlation and could destabilize the filter.
2024-07-24 17:11:53 +02:00
Marco Hauswirth
39abd87949
set best sensor to -1 after last sensor fails ( #23425 )
2024-07-24 11:24:07 +02:00
Stockton Slack
36d89df0a7
Fix load monitoring inconsistency bug
2024-07-22 10:33:39 +02:00
Daniel Agar
9ff6c4bf28
remove newlines
2024-07-19 18:25:43 -04:00
alexklimaj
b46b2cdf54
airframes: droneblocks dexi 5 default to CRSF on RC input with telemetry
2024-07-19 18:23:25 -04:00
Daniel Agar
85de0ff227
boards: move ARK fmu-v6x/pi6x to dedicated RC drivers
2024-07-19 15:42:05 -04:00
Daniel Agar
3a3f04c0f4
drivers/rc: new standalone ghst_rc driver
...
- extracted from monolithic drivers/rc_input which will eventually be
dropped once all drivers migrated and boards updated
2024-07-19 15:42:05 -04:00
Daniel Agar
7a6c4f0bfa
drivers/rc: new standalone sbus_rc driver
...
- extracted from monolithic drivers/rc_input which will eventually be
dropped once all drivers migrated and boards updated
2024-07-19 15:42:05 -04:00
Daniel Agar
561dceea7b
drivers/rc: new standalone dsm_rc driver
...
- extracted from monolithic drivers/rc_input which will eventually be
dropped once all drivers migrated and boards updated
2024-07-19 15:42:05 -04:00
chfriedrich98
aa0dda7443
ackermann: fix naming conventions
2024-07-19 14:43:40 +02:00
chfriedrich98
f8bebd9e41
ackermann: implement pure pursuit lib
2024-07-19 14:43:40 +02:00
Matthias Grob
f2bca92221
Fix duplicate newlines at the end of files
2024-07-19 14:33:36 +02:00
Matthias Grob
7f14110bb1
Fix missing newlines at the end of files
2024-07-19 14:33:36 +02:00
Matthias Grob
fe3cd4b0cb
Add check for missing or duplicate newlines at the end of files
2024-07-19 14:33:36 +02:00
Roman Bapst
1b9f1b78e5
Added support for resetting wind states to external observation ( #23277 )
...
* added support for resetting wind states to external observation
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* moved wind related functions into separate file
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* added VEHICLE_CMD_EXTERNAL_WIND_ESTIMATE
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* correctly compute variances
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* ekf2: implement wind reset
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* only allow VEHICLE_CMD_EXTERNAL_WIND_ESTIMATE during wind dead-reckoning
and increase horizontal velocity variance to allow velocity states to move
towards solution that is aligned with the newly set wind
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* only reset wind on ground
* still use wind reset using airspeed when it wasn't initialized
* exclude func for rover, change reset interface
* handle wind reset in drag-fusion
* replace state reset with variance reset in sideslip/drag fusion
* remove resetWind function
---------
Signed-off-by: RomanBapst <bapstroman@gmail.com >
Co-authored-by: Marco Hauswirth <marco.hauswirth@auterion.com >
2024-07-19 14:33:08 +02:00
Daniel Agar
ca9948a84d
msgs/EstimatorStatus.msg rename mag_test_ratio -> hdg_test_ratio
...
- this is used for more than just mag
2024-07-18 16:39:18 +02:00
Daniel Agar
eac14b7db2
ekf2/commander: simplify navigation filter preflight checks
...
- remove commander test ratio "tuning knobs" (COM_ARM_EKF_{HGT,POS,VEL,YAW})
- these are effectively redundant with the actual tuning (noise & gate)
in the estimator, plus most users have no idea why they'd be
adjusting these other than to silence an annoying preflight complaint
- remove ekf2 "PreFlightChecker" with hard coded innovation limits
- ekf2 preflight innovation flags are now simply if any active source
exceeds half the limit preflight
2024-07-18 16:39:18 +02:00
chfriedrich98
a42dc2165c
add pure pursuit library
2024-07-18 13:25:05 +02:00
chfriedrich98
08c790217d
battery: increase max value for battery thresholds
2024-07-18 09:46:58 +02:00
chfriedrich98
5083ec52ec
battery: migrate parameters in .c file to .yaml file
2024-07-18 09:46:58 +02:00
Daniel Agar
f8f8ddc101
ekf2: optical flow update last hor vel timestamp on success
2024-07-17 14:46:48 -04:00
Daniel Agar
691fdf713c
ekf2: airspeed update last hor vel timestamp if successfully updating all states
2024-07-17 14:46:48 -04:00
Daniel Agar
57c1ba545f
ekf2: fake_hgt don't use fuseVerticalPosition helper
...
- fake_hgt shouldn't update _time_last_hgt_fuse
2024-07-17 14:46:48 -04:00
Daniel Agar
6fe0fa6d63
ekf2: fake_pos don't use fuseHorizontalPosition helper
...
- fake_pos shouldn't update _time_last_hor_pos_fuse
2024-07-17 14:46:48 -04:00
Daniel Agar
c5c27a87f1
ekf2: track last terrain fuse time and update logic
2024-07-17 10:16:32 -04:00
chfriedrich98
8c4620b77e
battery: simplify battery scale calculation ( #23417 )
2024-07-17 12:22:52 +02:00
bresch
81575049df
ekf2: reword EKF2_GPS_CHECK param
2024-07-16 10:15:19 -04:00
Daniel Agar
f832ae688d
ekf2: require valid filter vz for GPS vspeed check
2024-07-16 10:15:19 -04:00
bresch
20c0d3a096
ekf2: enable all GNSS checks by default
2024-07-16 10:15:19 -04:00
bazooka joe
b48aca10a0
mc_position_control: avoid calculating arw if not needed
2024-07-16 13:30:40 +02:00
Daniel Agar
397ff4a102
ekf2: sideslip symforce increase epsilon to avoid 1/e^2 numerical issues
2024-07-16 11:10:58 +02:00
Daniel Agar
13b62a74d6
ekf2: optical flow adjust jacobian epsilon to avoid numerical issues
...
- in the generated code there's a 1 / eps^2 term if the height and
terrain estimates are the same
2024-07-16 11:10:58 +02:00
Claudio Chies
76cf54c948
adapted UORB Description to match MAVLink
2024-07-16 11:07:03 +02:00
Jacob Dahl
aa8a9e3a06
laser scan subscription optional
2024-07-16 11:07:03 +02:00
Jacob Dahl
fe5a07a96d
gz: added x500_lidar model for publishing obstacle_distance
2024-07-16 11:07:03 +02:00
Daniel Agar
48f1687d3a
ekf2: cleanup legacy EKF solution_status_flags
2024-07-16 10:11:27 +02:00
Daniel Agar
1cd7d54170
ekf2: consolidate GNSS yaw in gnss_yaw_control.cpp and fix naming (GPS->GNSS)
...
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2024-07-15 12:50:51 -04:00
bresch
9d6c2baa90
ekf2-flow: only allow flow when in range
...
Also, as the flow makes the link between range and horizontal velocity,
only allow it to start if at least one of the two is known. Otherwise
the EKF will struggle to estimate both values at the same time.
2024-07-15 11:40:33 -04:00
Daniel Agar
8e5f28f834
ekf2: rng only reset vz as a last resort
2024-07-15 11:39:56 -04:00
Daniel Agar
80ee622f77
ekf2: baro only reset vz as a last resort
2024-07-15 11:39:56 -04:00
Daniel Agar
40349fa3dc
ekf2: EV velocity control should own vertical velocity reset if height failing
2024-07-15 11:39:56 -04:00
Daniel Agar
177613eb68
ekf2: GNSS velocity control should own vertical velocity reset if height faiing
...
- GNSS height control using the velocity sample directly is ignoring
potential position offsets
2024-07-15 11:39:56 -04:00
PX4 BuildBot
9bbfc8715e
Update submodule mavlink to latest Mon Jul 15 12:39:00 UTC 2024
...
- mavlink in PX4/Firmware (abcf9ca6f0aadc91b203342db689f07630ec0e3a): https://github.com/mavlink/mavlink/commit/da3223ff9380bfe8e496fab8df2cbb06d5f8d5c3
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/d65952bacc02c4a5a1ed8249be73e6a66fa800ab
- Changes: https://github.com/mavlink/mavlink/compare/da3223ff9380bfe8e496fab8df2cbb06d5f8d5c3...d65952bacc02c4a5a1ed8249be73e6a66fa800ab
d65952ba 2024-07-05 Peter Barker - common.xml: correct description of GLOBAL_POSIITON_INT.relative_alt frame (#2131 )
5fc2ff8e 2024-06-26 Hamish Willee - Add multiplier field to docs, if present (#2125 )
a13d2317 2024-06-26 Roman Bapst - Added MAV_CMD_EXTERNAL_WIND_ESTIMATE to development (#2122 )
d8af87fd 2024-06-19 jokalode - Update common.xml (#2116 )
2024-07-15 11:18:19 -04:00
Daniel Agar
e03aef616c
ekf2: add terrain/dist_bottom reset deltas (vehicle_local_position/vehicle_global_position)
2024-07-15 10:25:42 -04:00
Daniel Agar
a5a67315fd
ekf2: optical flow magnitude check compensated
...
- additionally don't use flow for reset if magnitude isn't acceptable
2024-07-15 09:46:59 -04:00
Boris
be551097e0
mc_wind_estimator_tuning: Changed Quaternion package installed by requirements.txt
2024-07-15 11:40:12 +02:00
Daniel Agar
dc5f8118b0
ekf2: range finder cleanup duplicate logic
2024-07-15 11:37:36 +02:00
KonradRudin
59b96f4968
tecs: fast descend: do not shut down throttle while still climbing ( #23397 )
2024-07-15 10:42:43 +02:00
Liu1
b1b0032b8d
BMP581: Add Bosch BMP581 barometer ( #23064 )
...
* BMP581: Add Bosch BMP581 barometer
* Copyright:fix copyright header year
* style: not use pointers and Bool returns, Check the failed condition return
* delay: Replace usleep() with ScheduleDelayed()
* definitions: Delete unused definitions
* comment: Delet redundant comments
* constants: Change to uppercase
* BMP581: run make format
2024-07-14 14:08:20 -08:00
Matthias Grob
e2b31454a3
SubscriptionInterval: move updated, update, copy function to a cpp file
...
Saves 17.3 kilobytes of flash 😮
2024-07-12 23:26:24 +02:00
Claudio Chies
33be5d8356
Survey - fix of survey tracking problem on steep slopes ( #23371 )
...
* initial working
* incoperated review
2024-07-11 14:54:22 +02:00
Daniel Agar
9124a7b471
ekf2: add IMU delta_ang_dt/delta_vel_dt safety constrain before pushing into buffer
2024-07-10 21:20:47 -04:00
Daniel Agar
ac77049c47
ekf2: directly use IMU sample to find corresponding aid source sample
...
- I think this helps make it clear we're using a sensor sample
corresponding with a particular IMU sample
2024-07-10 21:20:47 -04:00
Daniel Agar
f93dc61770
ekf2: use bias corrected angular velocity
...
- avoid unnecessarily storing _ang_rate_delayed_raw
2024-07-10 21:20:47 -04:00
Julian Oes
20137bea40
boards: add console build for Cube Orange(+)
...
This adds a build variant which enables the serial console, and
therefore disables the ADSB receiver.
2024-07-10 21:14:08 -04:00
Claudio Chies
57e303b11b
bugfix for failing actions
2024-07-10 21:12:55 -04:00
PX4 BuildBot
e0ea91fc27
Update submodule gz to latest Thu Jul 11 00:39:09 UTC 2024
...
- gz in PX4/Firmware (2c3401dc83 ): https://github.com/PX4/PX4-gazebo-models/commit/881558c8c274d0d9f21970de24333122e050b561
- gz current upstream: https://github.com/PX4/PX4-gazebo-models/commit/312cd002ff9602644efef58eef93e447c10dcbe8
- Changes: https://github.com/PX4/PX4-gazebo-models/compare/881558c8c274d0d9f21970de24333122e050b561...312cd002ff9602644efef58eef93e447c10dcbe8
312cd00 2024-07-08 chfriedrich98 - Add rover ackermann model (#46 )
2024-07-10 21:05:57 -04:00
chfriedrich98
c391509c23
ackermann: add SITL airframe
2024-07-10 21:04:59 -04:00
Matthias Grob
2c3401dc83
uORB: SubscriptionInterval fix timestamp wrapping when initializing less than the interval time after boot ( #23384 )
...
* SubscriptionInterval: ensure _last_update is never before timer start
2024-07-10 12:43:31 -04:00
Daniel Agar
75bb339d94
ekf2: remove warning events logging
...
- some of these warning flags aren't even being used, and most of the rest we can figure out from other sources
2024-07-10 10:43:55 -04:00
Daniel Agar
c29b4ff87e
ekf2: apply astyle formatting and enforce
2024-07-10 10:43:55 -04:00
chfriedrich98
3fe609f769
exclude 4017 from v5x to save flash
2024-07-10 12:06:48 +02:00
chfriedrich98
03ff837c50
ackermann: new features and improvements
...
added return mode support, slew rates for actuators, new ackermann specific message, improved cornering slow down effect and fixed logging issue.
2024-07-10 12:06:48 +02:00
Daniel Agar
223397c20e
ekf2: always add accel/gyro bias process noise
...
- continue adding accel/gyro bias process noise even if inhibited
2024-07-10 11:49:01 +02:00
Marco Hauswirth
419652b9fe
EKF2: Spoofing GPS check ( #23366 )
...
* estimator gps check fail flag for spoofing
* warn whenever spoofing state changes to true, use default hysteresis to completely stop fusion
* dont introduce more GPS namings, GNSS instead
* flash: exclude mantis for cuav_x7pro
2024-07-09 16:31:11 +02:00
Daniel Agar
62ff39a669
ekf2: EV vel (body) update last fuse timestamps
...
- these are set by the NED fuseVelocity() helper so also need to be set in the body frame velocity case
2024-07-09 10:16:12 -04:00
Daniel Agar
5d08b97fd7
ekf2: add vehicle_local_position dist_bottom_var
2024-07-09 10:10:01 -04:00
Daniel Agar
3e3b886b5d
ekf2: add terrain estimator_status_flags
2024-07-09 10:10:01 -04:00
Daniel Agar
64a6971bdb
ekf2: only limit opt flow HAGL if range only terrain
...
- increase HALG limit from 75%->90% of sensor max
2024-07-09 10:10:01 -04:00
Daniel Agar
c56f84fe8a
ekf2: range, check if terrain valid for reset on fusion timeout
2024-07-09 10:10:01 -04:00
Daniel Agar
e52025cc20
ekf2: optical flow fusion timeout only reset if quality is good
2024-07-09 10:10:01 -04:00
Daniel Agar
6be06ecbb3
ekf2: optical flow failing also reset terrain if needed
2024-07-09 10:10:01 -04:00
Daniel Agar
ea8f14b883
ekf2: optical flow logic, timeout if bad_tilt, etc
...
- previously we could get stuck with optical flow still technically
active (_control_status.flags.opt_flow=true), but nothing being
updated due to excessive tilt, etc
2024-07-09 10:10:01 -04:00
Daniel Agar
8bf15b01c4
ekf2: optical flow don't compute innovation variance twice
...
- collapse updateOptFlow() and startFlowFusion() to avoid recomputing H
- this is a relatively expensive call we can easily avoid with the
right structure
2024-07-09 10:10:01 -04:00
Daniel Agar
f709ed409d
ekf2: optical flow stop reset all flags
2024-07-09 10:10:01 -04:00
Daniel Agar
9dfd82ab06
ekf2: optical flow remove _flow_data_ready flag
2024-07-09 10:10:01 -04:00
Daniel Agar
7047f9441c
ekf2: fix calcOptFlowBodyRateComp() gyro bias
...
- adjust flow sample gyro_rate immediately after popping from ring
buffer
- always update flow gyro bias (calcOptFlowBodyRateComp()) regardless
of flow quality or magnitude
2024-07-09 10:10:01 -04:00
Daniel Agar
4d324da9f8
ekf2: update flow aid src status every sample
2024-07-09 10:10:01 -04:00
Daniel Agar
bcd666b3f8
ekf2: fix optical flow start logic
...
- remove fallthrough that enables flow regardless of success
- add appropriate start messages for each case
2024-07-09 10:10:01 -04:00
Daniel Agar
bf4e564b23
ekf2: resetTerrainToFlow() reset aid src status appropriately
2024-07-09 10:10:01 -04:00
Daniel Agar
ced609daa8
ekf2: flow fusion start require valid fusion
2024-07-09 10:10:01 -04:00
Daniel Agar
1df8f3f9d2
ekf2: resetFlowFusion() reset aid src status appropriately
2024-07-09 10:10:01 -04:00
Roman Bapst
8221940b60
Added pitot tube icing detection ( #23206 )
...
* lib: add FilteredDerivative class
* AirspeedValidator: add first principle check
- filters throttle, pitch and airspeed rate, and triggers
if the airspeed rate is negative even though the vehicle
is pitching down and giving high throttle.
Check has to fail for duration defined by ASPD_FP_T_WINDOW
to trigger an airspeed failure.
* AirspeedValidator: define constants for first principle check
* FilteredDerivative: set initialised to false if sample interval is invalid
* airspeed_selector: improved comment
* increase IAS derivative filter time constant from 4 to 5
* use legacy parameter handling for FW_PSP_OFF
* handle FW_THR_MAX as well
* ROMFS/airframes: exclude some airframes for v6x and v4pro to save flash on them
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Signed-off-by: RomanBapst <bapstroman@gmail.com >
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-09 11:16:40 +02:00
Julian Oes
a35cecece4
gnss: add missing include
...
Breaks CLion otherwise.
2024-07-08 20:38:40 -04:00
Peter van der Perk
6bd81f38a6
imxrt dshot timing fix ( #23365 )
...
* imxrt: Change PLL settings for more accurate dshot timing
* Update NuttX submodule
2024-07-08 12:57:15 -04:00
Silvan Fuhrer
77709c2948
FW Position control: clean up param descriptions
...
Mostly to save flash, but also to improve generally.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-08 16:44:09 +02:00
Claudio Chies
aed0fd41cf
SIH - change how LAT and LON is used for Takeoff location ( #23363 )
...
change how lat long is used for SIH
2024-07-08 14:51:08 +02:00
Marco Hauswirth
4bc0286eb8
fix error from refactring commit, fix reset on ground ( #23370 )
2024-07-08 13:55:05 +02:00
Marco Hauswirth
e04c53241a
EKF2: reset position by fusion ( #23279 )
...
* reset position by fusion
* handle local_pos_valid for fixed wing in gnss denied
* [WIP] ekf2: setEkfGlobalOrigin respect current height reference and vertical position aiding
* global origin, also reset vertical pos without gps as ref
* fix wo gnss, that bitcraze ci passes
* revert some changes as requested
* remove duplicate reset messages
* undo unrelated whitespace changes, I'll fix it everywhere in a followup
* [SQUASH] ekf2: add vehicle_command_ack
* resetGlobalPosToExternalObservation consolidate logic
* remove gnss check from local_pos validation check
* reset when 0<accuracy<1, otherwise fuse
* replace gps param with flag
* ekf2: dead reckon time exceeded, respect ZUPT preflight if air data or optical flow expected
* subtract timeout from last inertial dead-reck, change fake pos conditions, save flash
---------
Co-authored-by: Daniel Agar <daniel@agar.ca >
2024-07-07 22:43:55 +02:00
Peter van der Perk
ac1effa32a
fmu-v6xrt: MTD use full FRAM (32KB)
2024-07-05 10:25:08 -04:00
Ryan Johnston
fd8df2e84d
Update int_res_est_replay.py ( #23351 )
...
Pulls cell count, min voltage and max voltage from log file but still allows for over-rides. Also added debug info to tell user what what it found in the log and what it is using
Co-authored-by: chfriedrich98 <125505139+chfriedrich98@users.noreply.github.com >
2024-07-05 11:04:45 +02:00
Marco Hauswirth
a1f43636f3
ekf2: EV fusion in body frame ( #23191 )
2024-07-04 21:17:19 -04:00
Silvan Fuhrer
1f33abb4e9
battery_status.msg: remove unused fields ( #22938 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-04 11:57:26 +02:00
PonomarevDA
4c5ce7af6b
Cyphal: add feedback for 8 ESC
2024-07-03 13:02:18 -04:00
PonomarevDA
8569eeb90c
Cyphal: add *type registers for ESC
2024-07-03 13:02:18 -04:00
PonomarevDA
f81e36a3a0
Cyphal: optimize ESC setpoint
2024-07-03 13:02:18 -04:00
PonomarevDA
41bd6c92e2
Cyphal: add zubax.telega.CompactFeedback
2024-07-03 13:02:18 -04:00
PonomarevDA
515543b1c5
Cyphal: divide EscClient into 2 publishers, so setpoint and readiness are 2 different ports now
2024-07-03 13:02:18 -04:00
Dmitry Ponomarev
52476633a8
Cyphal: use actual time instead of transfer id in uptime field of heartbeat
2024-07-03 13:02:18 -04:00
Dmitry Ponomarev
b063202b45
Cyphal: remove setpoint scaling to 8192
2024-07-03 13:02:18 -04:00
Dmitry Ponomarev
d3480d1302
Cyphal: add port.List
2024-07-03 13:02:18 -04:00
Matthias Grob
c8c46788ed
Autostart: load airframes with priority ROMFS -> SD card
2024-07-03 18:32:16 +02:00
Thomas Frans
c0663ee85c
gnss(septentrio): fix line lenghth of module documentation
2024-07-03 11:21:34 -04:00
Thomas Frans
e27b252433
gnss(septentrio): fix incorrect heading offset configuration
...
Heading offset was configured as radians but should be configured as
degrees on Septentrio receivers. The parameter was already in degrees
but the configuration logic was changing it into radians. Also allow the
entire allowed range of heading offset values for Septentrio receivers.
2024-07-03 11:21:34 -04:00
Thomas Frans
49dc896d20
gnss(septentrio): fix broken heading
...
Heading wasn't working because of an incorrect check during parsing.
2024-07-03 11:21:34 -04:00
Thomas Frans
bfbbf2ff6f
gnss(septentrio): improve SEP_DUMP_COMM parameter documentation
...
The documentation for `SEP_DUMP_COMM` was quite unclear and users had to
use the user guide to find out what exactly it did. The new
documentation tries to make the purpose clearer.
2024-07-03 11:21:34 -04:00
Thomas Frans
7bb239637e
gnss(septentrio): fix error on driver start with same device paths
...
This fixes an incorrect check of the device paths during instantiation
of the Septentrio driver that caused the driver to start and not print
an error message.
2024-07-03 11:21:34 -04:00
Thomas Frans
522a25a410
gnss(septentrio): first batch of bugfixes after internal testing
...
Internal testing revealed usability issues. Those and some other
problems are fixed.
2024-07-03 11:21:34 -04:00
Silvan Fuhrer
33701aa3d5
BatteryStatus: remove voltage_filtered_a
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-03 16:41:49 +02:00
Silvan Fuhrer
c2ae6a7e24
BatteryStatus: remove current_filtered_a
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-03 16:41:49 +02:00
zhangteng0526
e03e0261a1
Fix buffer overflow in mavlink_receive.cpp
2024-07-03 08:11:32 +02:00
chfriedrich98
f65653a391
battery: add internal resistance estimation
2024-07-02 19:05:13 +02:00
chfriedrich98
71029689e7
battery: add replay file for internal resistance estimation
2024-07-02 19:05:13 +02:00
Silvan Fuhrer
6d549811bc
fmu v3: disable GYRO_FFT to save flash
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-07-02 11:44:54 -04:00
Marco Hauswirth
3880073716
ekf2: fix timeout after gps failure ( #23346 )
2024-07-02 10:38:49 -04:00
Daniel Agar
0742d356f5
ekf2: more conservative clipping checks for bad_acc_clipping fault status ( #23337 )
...
- track accel clipping count per axis
- only set bad_acc_clipping fault_status if at least one axis is
clipping continuously or if all have been clipping at warning level
- Note: this doesn't impact the clipping projections that boost the
accel process noise, pause bias estimation, and skip gravity fusion
on a per sample basis
2024-06-28 16:45:08 -04:00
bluedisk
408d8abe95
Tools/setup: fix the wrong - deprecated - expression in the requirements.txt
...
- Fixes matplotlib version expression from ">=3.0.*" ro ">=3.0" which is the right syntax
Fixes issue #23329
Co-authored-by: lee wonwoo <leewonwoo@leeui-MacBookPro.local >
2024-06-28 10:20:26 -04:00
Alex Klimaj
053b4a4423
drivers/uavcan: GNSS set system time based on fix_type instead of valid_pos_cov
2024-06-27 21:35:45 -04:00
Peter van der Perk
58f7c3e9c9
NuttX with imxrt1170 soc vdd backport ( #23333 )
2024-06-27 16:21:45 -04:00
PX4 BuildBot
8b26e5e252
Update submodule libevents to latest Thu Jun 27 12:39:19 UTC 2024
...
- libevents in PX4/Firmware (4e3561cad8d24fefe66d266e969652d7ab20162b): https://github.com/mavlink/libevents/commit/8d5c44661bf79106361eb0b5170025b86e85a525
- libevents current upstream: https://github.com/mavlink/libevents/commit/9474657606d13301d426e044450c4f84de2221be
- Changes: https://github.com/mavlink/libevents/compare/8d5c44661bf79106361eb0b5170025b86e85a525...9474657606d13301d426e044450c4f84de2221be
9474657 2024-06-13 Beat Küng - cmake: add namespaced target & installation include dir
9f2e68d 2024-06-12 Beat Küng - CMakeLists: set CMAKE_CXX_STANDARD if not set
3204e8f 2024-06-12 Beat Küng - parser.h: use std::vector<EventArgumentDefinition>::size_type
eab8144 2024-04-29 Beat Küng - fix parser: avoid signed to unsigned conversion
159f83e 2024-04-29 Beat Küng - cpp: only enable Wall and others for GCC
2024-06-27 16:21:20 -04:00
Matthias Grob
e4446adba1
Add check for high RAM usage
...
We had a case where someone took off with an experimental
system with 100% RAM usage on the embedded system
without noticing. This lead to problems during flight.
Since we already have a CPU load check it seems natural
to also check the reported RAM usage.
2024-06-27 11:20:22 +02:00
Daniel Agar
30b854da35
ekf2: verbose logging control (new EKF2_LOG_VERBOSE)
...
- new parameter EKF2_LOG_VERBOSE to enable (currently enabled by default)
- force advertise topics immediately (based on EKF2_LOG_VERBOSE and per aid source configuration)
- logger optionally log all estimator topics at minimal rate
2024-06-27 01:10:57 -04:00
Patrik Dominik Pordi
8070c70f2c
uxrce_dds_client: dds_topics.yaml add vehicle_land_detected
...
- px4_msgs::msg::VehicleLandDetected has been added to dds_topics.yaml
2024-06-27 01:10:04 -04:00
Daniel Agar
78fd9a15f8
flight_mode_manager: delete unused avoidance waypoint
2024-06-27 01:08:16 -04:00
Daniel Agar
338bcc6ca3
ekf2: disable EKF2_EV_CTRL and EKF2_AGP_CTRL by default
2024-06-26 17:10:28 -04:00
alexklimaj
9cc4e2ac01
boards ark pi6x add vl53l0x
2024-06-26 17:09:37 -04:00
Silvan Fuhrer
1ae96d6509
EKF2: fix builds without CONFIG_EKF2_RANGE_FINDER
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-26 11:05:38 +02:00
bresch
a50ef2eb5e
ekf2-terrain: make terrain validity based on uncertainty
...
When using optical flow for terrain aiding, we cannot assume that the
terrain estimate is valid if flow is fused as is can only be observed
during motion. When no direct observation is available, the terrain is
assumed to be valid if its 1sigma uncertainty is < 10% of the hagl.
2024-06-26 11:05:38 +02:00
bresch
a665764b0e
ekf2: remove unused EKF2_TERR_MASK
2024-06-26 11:05:38 +02:00
bresch
7903ddf5df
ekf2-terrain: terrain is not a separate estimator
2024-06-26 11:05:38 +02:00
bresch
9001c23926
ekf2: clean up hagl vs terrain naming
...
Terrain is the state: terrain vertical position
Hagl (height above ground level) is the vertical distance between the
vertical position and the terrain vertical position
2024-06-26 11:05:38 +02:00
bresch
68980b59e2
ekf2: add terrain state
2024-06-26 11:05:38 +02:00
KonradRudin
09f066a73a
mission: skip a vtol takoff mission item if already in air ( #23319 )
...
* mission: skip a vtol takoff mission item if already in air and a fixed wing
* MissionBase: also skip FW takeoff when already in-air
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* mission: use setNextMissionItem to skip vtol takeoff when already in air
* mission: Only skip the VTOL takeoff in air for mission and rtl mission
If flying RTL mission reverse it must still include the takeoff point.
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-25 16:33:45 +02:00
Nate
6fd0e98a69
Correct units of CRSF GPS altitude
...
Bug fix to correct returning mm units of altitude to m.
2024-06-24 12:27:21 +02:00
David Sidrane
e8e8a60ca8
NuttX with backport of stm32h7 No phy
2024-06-24 06:12:12 -04:00
Matthias Grob
8cc7c99b59
mavlink: report generator error ( #23313 )
...
Without this flag the command silently succeeds even though the logs contains
an error. It's much more developer friendly to fail early in case of an error.
The log path is then also shown in the console output.
2024-06-24 10:00:03 +02:00
Daniel Agar
30ce560e3a
ekf2: mag control reset filtered test ratio on start (if aligning yaw)
2024-06-20 13:41:54 -04:00
Daniel Agar
dcb1103299
ekf2: move estimator_status test ratios to filtered values
2024-06-20 13:41:54 -04:00
fury1895
e4fc3022f2
gimbal - input_mavlink: return NoUpdate by default
2024-06-19 13:52:27 +02:00
Daniel Agar
741c7ab610
Update submodule GPS drivers to latest Wed Jun 19 00:38:26 UTC 2024
...
- GPS drivers in PX4/Firmware (e5d44cc1ba691f075bc2bce52dea7ec88af9e6cd): https://github.com/PX4/PX4-GPSDrivers/commit/0b79ec4dbe3e5ac5925c011067e7e294033a0a32
- GPS drivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/a41210ede8c2d22dd8e9fdcf388fca927c1fc5e1
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/0b79ec4dbe3e5ac5925c011067e7e294033a0a32...a41210ede8c2d22dd8e9fdcf388fca927c1fc5e1
a41210e 2024-06-18 Daniel Agar - sbf: fix code style
2024-06-18 21:03:27 -04:00
Eric Katzfey
c334e488e4
Changed Serial readAtLeast timeout from microseconds to milliseconds
2024-06-18 18:48:56 -04:00
Daniel Agar
e33ba810e9
boards: px4_fmu-v5x_test disable differential_drive module to fix flash overflow
2024-06-18 18:48:13 -04:00
Daniel Agar
69a4a11c7f
boards: cuav/nora disable modules to fix flash overflow
2024-06-18 18:47:42 -04:00
Daniel Agar
81f26be846
Update submodule GPS drivers to latest Tue Jun 18 12:39:32 UTC 2024
...
- GPS drivers in PX4/Firmware (c29d189788090f6994e488f65789a8fe6b835d8d): https://github.com/PX4/PX4-GPSDrivers/commit/d92cf3a2b2704d5509b651bfca33cdfea3a7a18a
- GPS drivers current upstream: https://github.com/PX4/PX4-GPSDrivers/commit/0b79ec4dbe3e5ac5925c011067e7e294033a0a32
- Changes: https://github.com/PX4/PX4-GPSDrivers/compare/d92cf3a2b2704d5509b651bfca33cdfea3a7a18a...0b79ec4dbe3e5ac5925c011067e7e294033a0a32
0b79ec4 2024-04-12 Thomas Frans - sbf: fix issue with automatic base config in QGC
5810dac 2024-04-12 Thomas Frans - style: add editorconfig file for consistent style
915024c 2024-03-26 Julian Oes - sbf: fix subsequent init in QGC
3ea1d76 2024-03-04 Julian Oes - sbf: don't foget to configure RTCM
c6da592 2024-03-04 Julian Oes - sbf: don't change baudrate of USB port
Co-authored-by: PX4 BuildBot <bot@px4.io >
2024-06-18 13:55:02 -04:00
PX4 BuildBot
38956e50ce
Update submodule mavlink to latest Tue Jun 18 12:39:42 UTC 2024
...
- mavlink in PX4/Firmware (7d9b119283b5aff3976431bd48e4308a0bce7b56): https://github.com/mavlink/mavlink/commit/9e0d01df69e2f659114070db5545a35ddf61cae8
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/da3223ff9380bfe8e496fab8df2cbb06d5f8d5c3
- Changes: https://github.com/mavlink/mavlink/compare/9e0d01df69e2f659114070db5545a35ddf61cae8...da3223ff9380bfe8e496fab8df2cbb06d5f8d5c3
da3223ff 2024-06-13 Thomas Frans - gps: add status and integrity information (#2110 )
2024-06-18 11:48:00 -04:00
Daniel Agar
8b9900cce3
mc_pos_control: new velocity low pass and notch filter (optional, disabled by default)
...
- MPC_VEL_LP: new velocity first order low pass filter (off by default)
- MPC_VEL_NF_FRQ/MPC_VEL_NF_BW: new velocity notch filter (off by default)
- MPC_VELD_LP: existing velocity derivative low pass filter, but I've dropped the remaining controllib usage
2024-06-18 11:47:19 -04:00
PX4 BuildBot
ac13fb77a9
boards: update all NuttX defconfigs
2024-06-18 09:37:58 -04:00
PX4 BuildBot
42cdf41d60
update all px4board kconfig
2024-06-18 09:35:41 -04:00
Matthias Grob
9c83f842be
autostart scripts: Reintroduce SYS_PARAM_VER ( #22813 )
...
The case where the airframe maintainer wants to enforce a reset to airframe is
not covered anymore with the `param set-default` mechanism. For products based
on PX4 this is still required to ensure proper functionality after a major update.
2024-06-18 09:32:51 +02:00
Jonas Eschmann
54c8f9e8c9
Adding vehicle_acceleration and actuator_motors to the logged topics for system identification
2024-06-17 22:19:24 -04:00
PX4 BuildBot
ea72d56a00
Update submodule gz to latest Mon Jun 17 12:39:07 UTC 2024
...
- gz in PX4/Firmware (0c18d43657b1b7279b8dce78a6014243cc14d1e2): https://github.com/PX4/PX4-gazebo-models/commit/d754381a1cecdd7f17050acd72bf5bf1327bced6
- gz current upstream: https://github.com/PX4/PX4-gazebo-models/commit/881558c8c274d0d9f21970de24333122e050b561
- Changes: https://github.com/PX4/PX4-gazebo-models/compare/d754381a1cecdd7f17050acd72bf5bf1327bced6...881558c8c274d0d9f21970de24333122e050b561
881558c 2024-05-29 Jacob Dahl - new lidar_v2 model and x500_lidar vehicle
2024-06-17 19:04:15 -04:00
Sihyun
1bc006b4f5
fmu-v6xrt: Fix redundant 'fi'
2024-06-17 17:26:22 -04:00
Jacob Dahl
8a08418a1f
drivers/magnetometer: ist8310: more efficient probe()
2024-06-17 17:01:14 -04:00
Nuno Marques
377e2d7523
src: drivers: uavcan: move UAVCAN_ECU_MAXF and UAVCAN_ECU_FUELT fetch to init and make reboot required
2024-06-17 12:58:46 -07:00
Nuno Marques
cec0d7c66b
src: drivers: uavcan: allow to set the fuel type through a parameter
2024-06-17 12:58:46 -07:00
Nuno Marques
4067ff0a59
fuel_tank_status: do not infer the consumed fuel, as the provided data is measured
2024-06-17 12:58:46 -07:00
Nuno Marques
03920f2ae3
msg: FuelTankStatus: updated field descriptions for clarity, specified default values and handling of NaN and unknown cases
2024-06-17 12:58:46 -07:00
Nuno Marques
450ae033e4
modules: mavlink: only include FUEL_STATUS stream if the dialect includes it
2024-06-17 12:58:46 -07:00
Nuno Marques
a8cb5a7715
Add fuel tank status report support
...
* Adds support to DroneCAN FuelTankStatus messages
* Adds fuel_tank_status uORB message
* Adds FUEL_STATUS MAVLink stream
* Adds parameter to define max fuel tank capacity
2024-06-17 12:58:46 -07:00
Nuno Marques
954225a5c0
submodules: mavlink: bring latest definitions as per Thu, Jun 6 2024
2024-06-17 12:58:46 -07:00
Daniel Agar
206488b844
ekf2: innovation sequence monitoring for all aid sources
...
- add new 'innovation_filtered' and 'test_ratio_filtered' fields to
estimator_aid_source topics
2024-06-17 15:30:42 -04:00
David Sidrane
1c657a59b1
px4_fmu-v5_stackcheck:Fit in flash
2024-06-17 15:21:30 -04:00
David Sidrane
f726c0e187
spracing_h7extreme:rcc Tack upstream name fix
2024-06-17 15:21:30 -04:00
David Sidrane
636cb57f27
NuttX with Backport Adding stm32h755II
2024-06-17 15:21:30 -04:00
Peter van der Perk
aa55a777ba
Add px4_sitl_allyes to CI target
2024-06-17 15:04:31 -04:00
Silvan Fuhrer
c0d693bc50
v5_stackcheck: disable CONFIG_DRIVERS_TONE_ALARM
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-17 12:26:53 -04:00
Thomas Frans
cd4c495377
drivers/gps: extract Septentrio into new standalone drivers/gnss/septentrio module ( #22904 )
...
Having a generic interface over the GPS drivers makes dedicated
functionality for each driver harder. Move the Septentrio driver into
its own module under the `gnss` driver directory, and let it have its
own parameters for only the functionality it requires. This also helps
with adding new features because they only need to be implemented for
the driver that wants it, simplifying testing.
2024-06-17 12:25:24 -04:00
Daniel Agar
f9160853fa
rc_update: purge deprecated RC switch parameters
...
- these are old RC switch configuration parameters that haven't been used for
years, but were hardcoded into old versions of QGC
- RC_MAP_RATT_SW, RC_MAP_POSCTL_SW, RC_MAP_ACRO_SW, RC_MAP_STAB_SW, RC_MAP_MAN_SW deleted
-
2024-06-17 12:03:13 -04:00
Jacob Dahl
2515b8fc63
kconfig: common_distance_sensor: remove MB12XX
2024-06-17 12:01:13 -04:00
Jacob Dahl
96360f3069
boards: fmu-v5: disable FAKE_GPS and SD_BENCH
2024-06-17 12:01:13 -04:00
Silvan Fuhrer
ad58808cf3
update gazebo classic ( #23276 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-17 16:25:56 +02:00
Jacob Dahl
fcb479cd3d
platforms: nuttx: SerialImpl: fix poll timeout and integer underflow ( #23248 )
...
* platforms: nuttx: SerialImpl: fix poll timeout
* platforms: posix: SerialImpl: fix poll timeout
2024-06-14 17:43:15 -08:00
Isidro
4fe0bb4762
fix find in "files_to_check_code_style.sh" ( #23269 )
...
* refactor: not necessary "if [ -f "$FILE" ]"
* fix: exclude directories
---------
Co-authored-by: Isidro Arias <isidro.arias@wslw.es >
2024-06-14 17:41:05 -08:00
Julian Oes
8258cd63ba
ist8310: do reset before WHOAMI call ( #23161 )
...
* ist8310: do reset before WHOAMI call
Apparently, the IST8310's WHOAMI register is writeable. Presumably, this
can get corrupted by bus noise. It is only reset if powered off for 30s.
Therefore, we do a reset before doing the WHOAMI.
* ist8310: improve comment
Co-authored-by: Beat Küng <beat-kueng@gmx.net >
---------
Co-authored-by: Beat Küng <beat-kueng@gmx.net >
2024-06-14 17:22:39 -08:00
Silvan Fuhrer
f646f1ba98
AirspeedSelector: only update with lpos if coming from GNSS ( #23268 )
...
Compared to GNSS, alternate position observation methods are less accurate
and thus generally not good enough to do airspeed validation with.
Airspeed validation is thus disabled if no GNSS fusion is happening.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-14 17:10:08 +02:00
Daniel Agar
c0d6b67633
matrix: Vector2/Vector4 override ops so specific Vector type is returned
...
- mirrored from Vector3
2024-06-14 10:53:27 -04:00
Daniel Agar
783cf9aede
vscode: cmake default status bar visibility
...
- this is important for setting the active PX4 configuration
2024-06-14 10:52:19 -04:00
Silvan Fuhrer
3cbe2ae2b3
v5_default: remove Local Position Estimator from default build
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-14 10:52:02 -04:00
Silvan Fuhrer
f4e76cd392
remove deprecated BAT_ params ( #22872 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-14 14:42:32 +02:00
Hubert
f8a42bcd58
boards: add new board micoair h743
2024-06-13 14:27:33 -04:00
Marco Hauswirth
db2f616400
reduce transition pusher throttle ( #23262 )
2024-06-12 18:10:50 +02:00
Roman Bapst
0ce64e1b92
ekf2: don't fuse optical flow samples when the current distance to the ground is larger than the reported maximum flow sensor distance
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-06-11 21:20:40 -04:00
Silvan Fuhrer
5dd76332ba
Matrix: print full matrix already if only one element is not symmetric
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-11 21:14:13 -04:00
Roman Bapst
8ad93464c7
AirspeedValidator: Remove extra delay from airspeed innovation check ( #23244 )
...
* AirspeedValidator: remove additional one second of hysteresis for triggering
innovation checks
- this check already uses an integrator and so adding more delay just makes
log analysis more difficult and does not really add any value
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* removed unnecessary conditions
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* AirspeedValidator: only disable innov checks if ASPD_FS_INTEG is negative
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* get rid of unnecessary check on innovation threshold parameter
Signed-off-by: RomanBapst <bapstroman@gmail.com >
---------
Signed-off-by: RomanBapst <bapstroman@gmail.com >
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-11 14:09:36 +02:00
Frederik Markus
9ececfdd65
update GCS connection loss failsafe in all gazebo models ( #22299 )
...
* update GCS connection loss failsafe in all gazebo models
Signed-off-by: frederik <frederik@auterion.com >
* cleanup and return of old parameter
Signed-off-by: frederik <frederik@auterion.com >
---------
Signed-off-by: frederik <frederik@auterion.com >
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-11 09:50:55 +02:00
Alex Klimaj
1d8e8a1d8b
boards: ark septentrio change safety led to open drain ( #23247 )
2024-06-10 11:04:55 -08:00
Silvan Fuhrer
30b63f6a82
AirspeedSelector: set default of ASPD_FS_T_STOP to 1 and clean up meta data
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-10 12:42:54 +02:00
Silvan Fuhrer
5513dfa95d
AirspeedSelector: define start/stop delay params as floats
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-10 12:42:54 +02:00
Julian Oes
0932f50d79
mavlink: enable gimbal controls in QGC over USB
2024-06-10 21:56:37 +12:00
Julian Oes
3710a9ef6e
gimbal: fix auto RC and MAVLink mode
...
This fixes various edge cases when input is set to both: RC and
MAVLink gimbal protocol v2.
Specifically:
- We no longer immediately reset primary control if there is no update,
otherwise this will reset immediately after an commands.
- Talking of commands: GIMBAL_MANAGER_CONFIGURE no longer switches
control to MAVLink but only an actual incoming setpoint command does.
- And incoming setpoint command only triggers UpdatedActiveOnce which
means we will check RC again afterwards and if there is big movement
switch back to RC. That's the intuitive thing to do until we have
better reporting about who/what is in control.
- Also, with RC we no longer always set us to be in control but only on
major movement.
2024-06-10 21:56:37 +12:00
Ruoyu Wang
b9aa8818a4
kakute f7/h7/h7mini/h7v2: fix EKF2_IMU_CTRL typo
2024-06-10 11:08:33 +02:00
Beat Küng
52ac9336c4
boards: change default IP from 192.168.0.3 to 10.41.10.2
...
192.168.0.x is often used by routers for WIFI/ethernet networks, and thus
can create conflicts.
This can happen for example if a companion is connected to the FMU via
ethernet and at the same time connects to a WIFI network as DHCP client.
2024-06-10 11:05:50 +02:00
Beat Küng
a90cdcfe80
boards/px4/fmu-v{5,6}x: enable uxrce_dds_client on ethernet by default
2024-06-10 11:05:50 +02:00
Beat Küng
2524ac8c2b
boards/px4/fmu-v{5,6}x: do not enable mavlink on ethernet for skynode
2024-06-10 11:05:50 +02:00
asifpatankar
746322d6d2
Update ubuntu.sh with Linux Mint 21.3 version
2024-06-10 16:20:48 +12:00
Jacob Dahl
2882e5c4e1
platforms: nuttx: SerialImpl: fix hang if baudrate is 0 ( #23238 )
2024-06-07 22:08:21 -06:00
chfriedrich98
5c64a3ed93
Rover Ackermann module ( #23024 )
...
New module handling Ackermann rover guidance and control.
Only enabled in SITL and in the rover builds for now.
2024-06-07 17:15:12 +02:00
Silvan Fuhrer
831160389e
VTOL Tailsitter: remove throttle spike also for quad-chute
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-07 16:11:59 +02:00
Silvan Fuhrer
199a2f43be
VTOL Tailsitter: treat back transition abort like a front transition
...
for throttle blending.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-07 16:11:59 +02:00
Silvan Fuhrer
b5988ed38f
VTOL Tailsitter: add back transition throttle blending
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-07 16:11:59 +02:00
Silvan Fuhrer
f119b15ff1
VTOL Tailsitter: set differential thrust to 0 in first 50ms of front transition
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-07 16:11:59 +02:00
Silvan Fuhrer
77a3099154
VTOL Tailsitter: fix motor spikes to 0 when starting back transition
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-07 16:11:59 +02:00
Silvan Fuhrer
3a2b973aba
VTOL Tailsitter: add front transition throttle blending
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-07 16:11:59 +02:00
Silvan Fuhrer
a081354933
VTOL tailsitter: fix motor spike to 0 when finishing front transition
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-07 16:11:59 +02:00
Silvan Fuhrer
1f7b4843dd
FW position control: specify modes where FW_PN_R_SLEW_MAX applies
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-07 09:32:23 +02:00
Silvan Fuhrer
b8998933c9
AttitudeSetpoint.msg: FRD instead of NED for body frame
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-06-07 09:32:23 +02:00
Silvan Fuhrer
b53d2cdf39
battery: reset current filter when transitioning to FW ( #22256 )
...
VTOLs consume a lot more power in hover copared to fixed-wing fligt.
The remaining flight time thus should reset if one switches from MC to FW,
as otherwise it takes several minutes until the estimate goes down.
2024-06-07 09:28:37 +02:00
Joao Mario Lago
2ce92a678d
arch.sh: Fix syntax error
...
Fix error of script failing with following error:
PX4-Autopilot/Tools/setup/arch.sh: line 99: syntax error near unexpected token `;'
2024-06-06 21:55:05 -04:00
Julian Oes
f6b65e68cc
boards: update all bootloaders
2024-06-07 13:16:17 +12:00
Julian Oes
7137780654
Makefile: add missing bootloader targets
...
Quite a few were missing, and everything on one line was hard to diff.
2024-06-07 13:16:17 +12:00
Chris Lalancette
b1bf0ff888
Remove argparse from the requirements.txt.
...
The argparse module has been builtin to Python since
Python 3.2, released in 2011 (see
https://docs.python.org/3/whatsnew/3.2.html ). Further,
the argparse pip module has not been released or updated
since 2015, and lacks some of the features of the modern,
built-in argparse. Drop the pip installed version in
favor of the built-in version.
Signed-off-by: Chris Lalancette <clalancette@gmail.com >
2024-06-06 10:09:11 -04:00
Daniel Agar
fb659ae200
ekf2: stopMagFusion() reset yaw_align if mag heading was active
...
- we also need to clear mag_aligned_in_flight
2024-06-06 10:08:20 -04:00
Daniel Agar
bfe3c86aeb
ekf2: merge mag yaw angle observability into heading consistency
...
- the additional hyteresis logic for "yaw angle observable" was
needed when it controlled time dependent mag_3d
2024-06-06 10:07:31 -04:00
Rowan Dempster
bc51eb37eb
Only close server when errno is not EINTR
2024-06-06 07:40:12 +02:00
Matthias Grob
68769ea0ec
mavlink: use reference instead of pointer to access the MAVLink instance from protocol classes
2024-06-05 16:13:52 +02:00
Matthias Grob
9a7a977625
mavlink_receiver: put all message handling in the same function
2024-06-05 16:13:52 +02:00
Daniel Agar
157f7cf40b
simplify world_magnetic_model interface (degrees in, degrees out)
...
- this hopefully helps avoid accidental mis-use
- try to clarify units everywhere
2024-06-04 09:14:36 -04:00
Daniel Agar
5fa3b9d86a
lib/world_magnetic_model: fetch_noaa_table.py refactor and scaling improvements
...
- upate to NOAA grid API to build WMM table in one pass
- refactor declination/inclination/totalintensity table printing to
shared method
- compute scaling factor to maximize resolution
2024-06-04 09:14:36 -04:00
Jacob Dahl
22a38c0c6d
drivers/imu: sch16t improvements ( #23221 )
...
* individual perf counters for frame errors
* don't treat saturation as an error
* added parameters for gyro/accel LPF and decimation ratio
2024-06-03 22:15:00 -04:00
Alex Klimaj
36ec576c0f
boards: ark-pi6x remove ekf delay param defaults ( #23177 )
2024-06-03 17:52:17 -08:00
Matteo Del Seppia
a8617cf681
Fix float and uint64_t comparison ( #23199 )
...
fix: ControlAllocator float and int comparison bug
There was an incorrect comparison between a float variable `dt` and a `uint64_t` value representing 5 milliseconds (`5_ms`). As a result, `do_update` could never become true even if the last torque setpoint was received more than 5 milliseconds before.
To solve this, the `5_ms` value has been converted to seconds (0.005f) for the comparison with `dt`.
2024-06-03 17:48:38 -08:00
Alex Klimaj
de0e73d505
vscode cmake-variants fix ark_septentrio-gps ( #23222 )
2024-06-03 19:43:26 -06:00
Matteo Del Seppia
de5087ae3e
Patch for issue #22818 ( #23170 )
...
When calling "differential_drive stop" a missing return statement was causing a segmentation fault due to access to already freed memory.
2024-06-03 21:10:28 +02:00
Peter van der Perk
c22f725d85
fmu-v6xrt: Support RC telemetry
2024-06-03 08:31:18 -04:00
Peter van der Perk
7fab93ede8
fmu-v6xrt: Fix flash configuration
...
Fixes correct dummy cycle count of 20
2024-06-03 08:26:48 -04:00
bresch
0a665a526c
ekf2: add mag type init
...
In this mode, the mag is used to inilialize the heading.
During flight, the heading is predicted using gyros and corrected
by GNSS measurements if available.
2024-06-03 13:28:12 +02:00
Beat Küng
ca112fea8a
fix commander: make sure to count all valid mags in preflight check
...
Previously, if a mag was not required (not index 0 and not used by ekf),
it was not counted in num_enabled_and_valid_calibration.
If a user set SYS_HAS_MAG to e.g. 3, it would then trigger a preflight
failure, even if there were 3 calibrated and enabled mags.
2024-05-31 12:30:34 -04:00
bresch
53210dd8f3
ekf2-mag: with NE aiding, constrain heading drift only before takeoff
...
After takeoff, the heading is easily observable
2024-05-31 10:38:17 -04:00
bresch
3dac9af09e
ekf2-mag: do not reset on WMM change when NE aiding is active
...
The mag field states are observed. No need to reset them.
2024-05-31 10:38:17 -04:00
bresch
ee765e7859
ekf2-mag: do not reset when NE aiding is active
2024-05-31 10:38:17 -04:00
bresch
6515935b52
ekf2-mag: do not limit the earth mag field estimate
...
The EKF can recover from an initial bad earth mag field estimate.
Constraining the field is not necessary and can lead to an unpredicted
behavior of the filter.
Declination fusion is safe to run even when the horizontal field is 0
2024-05-31 10:38:17 -04:00
bresch
774b6ed3b8
ekf2-mag: do not use yaw emergency estimator to reset mag states
...
On slowly moving vehicles (e.g.: boats, rovers), the yaw estimator has
worse convergence than the main EKF. Resetting the mag states using the
yaw estimator as reference can lead to poor heading. Also, the EKF can
recover really well from initially incorrect mag states.
2024-05-31 10:38:17 -04:00
bresch
c3d984703c
ekf2-mag: remove immediate declination fusion after reset
2024-05-31 10:38:17 -04:00
bresch
a6007e4b93
ekf2-mag: turn around update_all_states condition
...
Non-functional
2024-05-31 10:38:17 -04:00
bresch
c11c75d32e
ekf2-mag: always add process noise until initial value
2024-05-31 10:38:17 -04:00
Eric Katzfey
493c9e49db
uORB: ORBSet don't allow duplicate insertion
...
* fixes a small memory leak in uORBManager.cpp (if using ORB_COMMUNICATOR)
2024-05-30 16:53:48 -04:00
asimopunov
42f4e02d7e
bsondump: add check if bson document size is set to zero and set to decoded size ( #23088 )
2024-05-30 14:52:19 +02:00
Peter van der Perk
cd93e2982c
dshot: telemetry esc_status use sequential numbering for each motor
...
channel != telemetry_index, we've to count from 0 and increment for each enabled ESC
2024-05-30 04:56:42 -04:00
Peter van der Perk
7982f54a6a
dshot: refactoring
2024-05-30 04:56:42 -04:00
Peter van der Perk
ff6966da57
imxrt: dshot fix erpm calculation by implementing 3-bit exponent and 9-bit period
2024-05-30 04:56:42 -04:00
Peter van der Perk
3874b4c55d
imxrt: move flexio irq handler to itcm
2024-05-30 04:56:42 -04:00
Peter van der Perk
5d2fda6172
dshot: bdshot fix esc offline/online checks
2024-05-30 04:56:42 -04:00
Peter van der Perk
0e41f9730f
imxrt: dshot improve state machine reduce's no response count
2024-05-30 04:56:42 -04:00
Peter van der Perk
f3ef0d6610
dshot: fix clearing out esc status
2024-05-30 04:56:42 -04:00
Peter van der Perk
b0cb697f71
imxrt: dshot add 1060 support and use channels instead of timers
2024-05-30 04:56:42 -04:00
Peter van der Perk
e2969952d3
drivers: dshot: prepare to extend for bidrectional dshot
2024-05-30 04:56:42 -04:00
Peter van der Perk
2de0af52e8
px4_fmuv6xrt: bidirectional dshot driver
2024-05-30 04:56:42 -04:00
Peize-Liu
2f4d6b6fac
[Fix][hkust_nxt-dual]:board hkust_nxt-dual fix hw_config.h missing APP_RESERVATION_SIZE param ( #23204 )
2024-05-30 10:35:04 +02:00
Silvan Fuhrer
efe2a52eb4
ROMFS: remove MIS_DIST_1WP customizations in airframes
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-05-29 21:00:35 -04:00
Silvan Fuhrer
752051470f
Navigator: increase default of MIS_DIST_1WP to 10km
...
The previous default of 900m leads to many warnings if left
unchanged, especially if the vehicle is already in-air when
the Mission is started.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-05-29 21:00:35 -04:00
bresch
993782cffa
ekf2: only trigger position timeout reset when hpos fusion is active
2024-05-29 20:49:14 -04:00
Silvan Fuhrer
0379048ad2
mavsdk_tests: increase acceptance radius for position check on offboard landing
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-05-29 20:46:26 -04:00
Eric Katzfey
ae34e39b7e
QuRT: Increased the size of the memory heap available to qurt platform ( #23194 )
...
* Increased the size of the memory heap available to qurt platform
2024-05-29 20:44:40 -04:00
Daniel Agar
f3d152741c
boards: sky-drones_smartap-airlink_default disable gyro_fft module to save flash
2024-05-29 20:38:49 -04:00
Daniel Agar
b36f47535e
boards: px4_fmu-v6c_default disable gyro_fft module to save flash
2024-05-29 20:38:49 -04:00
Daniel Agar
a80c96e575
boards: px4_fmu-v5x_test disable payload_deliverer module to save flash
2024-05-29 20:38:49 -04:00
Per Frivik
267cb9906e
integrationtests: mavros increase threshold for yaw_error_std
2024-05-29 11:11:09 -04:00
David Sidrane
f655d1be9b
Update px4_fmu-v6xrt Bootloader
2024-05-29 11:08:49 -04:00
David Sidrane
3beb57aae1
px4_fmu-v6xrt & bootloader:Bootloader enusres that ITCM memory is writable before jump to APP
2024-05-29 11:08:49 -04:00
David Sidrane
d79c5f170b
bootloader/common/bl.c:Fixed Wrong vec_base caculation - only effects imxrt
2024-05-29 11:08:49 -04:00
David Sidrane
04e0d3475f
nxp/imxrt_common/main:Fix Breakage from a9962dc
2024-05-29 11:08:49 -04:00
Matthias Grob
daa89ba30a
Jankinsfile-compile: add missing comma after ark_pi6x_default
2024-05-29 15:42:41 +02:00
Jacob Dahl
a4650fd70d
HealthCheck: added health check for logger to report if it's running ( #22781 )
2024-05-29 11:56:50 +02:00
Hamish Willee
b5627f487f
camera_trigger: module docs for camera trigger driver ( #23104 )
2024-05-29 11:37:27 +02:00
Matthias Grob
d1db0addf9
CameraFeedback: shorten line length such that documentation parser works
...
This broke in 4f64acb352 and was also flagged by CI in the pr and since then.
2024-05-29 11:24:53 +02:00
Silvan Fuhrer
032ae69eee
VTOL: remove _dt passing as it's no longer used (and was wrong)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-05-28 14:54:33 +02:00
Silvan Fuhrer
f8fe7c7aa3
VTOL Standard: fix transition pusher motor slew rate
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-05-28 14:54:33 +02:00
Matthias Grob
dfee9ca4c6
MAVLink: remove never used _mavlink_link_termination_allowed
2024-05-28 10:41:00 +02:00
Silvan Fuhrer
1206005ed2
RTL_status: improve comment
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-05-27 12:03:16 +02:00
Silvan Fuhrer
42bca65cbf
RTL_mission_reverse: start from previous WP if RTL is triggered while in Mission
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-05-27 12:03:16 +02:00
Silvan Fuhrer
b9d3b9f211
RTL_mission_fast: continue mission if RTL is triggered while in Mission
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-05-27 12:03:16 +02:00
bresch
f9e2ab8d44
msg-rates-setpoint: fix frame name NED -> FRD
2024-05-27 09:35:34 +02:00
Jacob Dahl
da35c4adce
cdcacm_autostart: handle USB power only ( #23183 )
2024-05-25 17:16:34 -06:00
bresch
ccbcbbe268
wind_est_replay: report scale instead of inverse_scale
...
The estimator internally estimates the scale inverse, but the interface
should be the scale as "airspeed_corrected = scale * airspeed"
2024-05-24 17:25:39 +02:00
Hamish Willee
4f64acb352
Docs for camera_feedback module ( #23103 )
...
* Docs for camera_feedback module
* Update src/modules/camera_feedback/CameraFeedback.cpp
* Update src/modules/camera_feedback/CameraFeedback.cpp
2024-05-23 08:44:34 +10:00
Beat Küng
e1ffc2cdaa
commander: add check for 5V overcurrent
2024-05-22 09:34:04 +02:00
Julian Oes
a9962dc44d
boards: update all bootloaders
2024-05-22 18:18:55 +12:00
Julian Oes
5bace785e0
px_uploader: catch serial exception correctly
...
Signed-off-by: Julian Oes <julian@oes.ch >
2024-05-22 18:18:55 +12:00
Julian Oes
e4fd80b6ef
bootloader: remove unused/duplicate defines
2024-05-22 18:18:55 +12:00
Julian Oes
6ebb2b33df
bootloader: track ArduPilot protocol
...
Just so we don't conflict on these commands in the future.
2024-05-22 18:18:55 +12:00
Julian Oes
8fe8f2fcb3
px_uploader.py: clean up various tidbits
...
Includes:
- Remove some of the outdated Python2 checks and compatibility.
- Try not catch all exceptions but only the expected ones. Otherwise,
this makes it really hard to debug if anything unexpected actually
goes wrong.
- Make use of fstrings.
- Make output slightly prettier.
Signed-off-by: Julian Oes <julian@oes.ch >
2024-05-22 18:18:55 +12:00
Julian Oes
7c4507b6d6
bootloader: add bootloader version
...
This adds a new protocol extension which allows to get the bootloader
version.
The bootloader version is different from the bootloader protocol
revision which has stabilized at 5 and is not easy to update unless a
bootloader is actually breaking the protocol. The reason being that both
the Python script as well as the uploader used in QGC will not attempt
to load firmware if they don't know the bootloader version, so it could
basically be considered a "breaking" protocol revision.
Signed-off-by: Julian Oes <julian@oes.ch >
2024-05-22 18:18:55 +12:00
Julian Oes
21e550fdba
tools/bootloader: add force-erase option
...
If the STM32H7 fails to program or erase a full chunk of 256 bytes, the
ECC check will trigger a busfault when trying to read from it.
To speed up erasing and optimize wear, we read before erasing to check
if it actually needs erasing. That's when a busfault happens and the
erase time outs.
The workaround is to add an option to do a full erase without check.
Credit goes to:
https://github.com/ArduPilot/ardupilot/pull/22090
And the protocol option added to the bootloader is the same as for
ArduPilot, so compatible.
Signed-off-by: Julian Oes <julian@oes.ch >
2024-05-22 18:18:55 +12:00
Jacob Dahl
4a13e495d7
boards: ark: pi6x: CONFIG_DRIVERS_CDCACM_AUTOSTART=y ( #23163 )
2024-05-21 19:49:40 -06:00
Konrad
664a0f2cda
HomePosition: Add minimum position change needed to be recognised as new home position
2024-05-21 09:11:56 +02:00
alexklimaj
1c213fa760
boards: arkv6x ark_pi6x change mavlink dialect to development
2024-05-20 16:07:34 -04:00
Jacob Dahl
e72ecdbefb
drivers/imu: new Murata SCH16T IMU driver ( #22914 )
...
---------
Co-authored-by: alexklimaj <alex@arkelectron.com >
2024-05-20 14:38:19 -04:00
Jacob Dahl
70304fe715
[mavlink] Parameter to always start on USB ( #22234 )
...
* usb: Added parameter to enable always starting mavlink on USB.
Refactored cdcacm_init into a module and added a paramter to allow always starting mavlink on
USB, also added a paramter to choose the mode. The current default behavior is to wait and listen
for data on USB and auto-detect the protocol (mavlink, nsh, ublox). This results in the mavlink
stream not starting until something else on the mavlink network sends a packet first. The new
default behavior is to always start mavlink.
Added parameters
MAV_USB_ENABLE -- default 1 (always start mavlink on USB)
MAV_USE_MODE -- default 3 (onboard)
* added 3 retries for opening serial port in mavlink, removed sleep before sercon
* added DRIVERS_CDCACM_AUTOSTART to ark-v6x default.px4board
* added CONFIG_DRIVERS_CDCACM_AUTOSTART=y to default.px4board for boards with CONFIG_CDCACM in their nsh/defconfig
* format
* remove PGA460 from COMMON_DISTANCE_SENSOR to save flash
* remove LIS2MDL from COMMON_MAGNETOMETER to save flash
* disable CONFIG_DRIVERS_CDCACM_AUTOSTART for fmu-v5 protected.px4board
* moved and renamed parameters, removed mode logic in mavlink
* changed parameter names, added mode none
* remove parameters from mavlink
2024-05-20 12:35:29 -06:00
Peter van der Perk
6b0ac49daf
hardfault_log: Add jump to 0x0 & write 0x0 faults
2024-05-17 14:43:23 -04:00
Peter van der Perk
ebfa53286f
dronecan: SocketCAN driver check size before copying
...
Avoids memory corruption if we get packets to big
2024-05-17 14:39:52 -04:00
Peter van der Perk
470bea9ba8
Update NuttX
...
Fixes imxrt1170 mpu config for extra checks
2024-05-17 14:32:43 -04:00
Daniel Agar
d359f6236e
ekf2: symforce zero more efficiently ( #23133 )
...
- increase symforce CppConfig zero_initialization_sparsity_threshold so
that a Matrix setZero() call is performed instead of individually zeroing
Co-authored-by: bresch <brescianimathieu@gmail.com >
2024-05-17 11:20:30 +02:00
bresch
ea39032b45
mag_ctrl: combine common conditions for mag_hdg and mag_3d
2024-05-17 11:19:04 +02:00
bresch
d796009302
mag_ctrl: do not fuse synthetic mag but do not zero the innovation
2024-05-17 11:19:04 +02:00
Daniel Agar
bb5dfc7d51
integrationtests: mavros/mission_test.py bump yaw_error_std threshold (heading init is delayed, but not wrong)
2024-05-17 11:19:04 +02:00
Daniel Agar
5173830718
ekf2: mag fusion don't update all states or tilt by default
...
- cleanup some of the legacy mag flags
2024-05-17 11:19:04 +02:00
Daniel Agar
bfc39cf341
ekf2: mag control always populate estimator aid src
2024-05-17 11:19:04 +02:00
Daniel Agar
95ae5a657d
ekf2: merge mag_3d_control + mag_control
2024-05-17 11:19:04 +02:00
bresch
b42799fac2
wind_est_replay: allow setting the initial scale factor
2024-05-17 09:17:08 +02:00
bresch
440465702e
wind_est_replay: fix cov matrix format and data indexing
2024-05-17 09:17:08 +02:00
fury1895
6a966ab065
px4/fmu-v6x: set mavlink dialect to development
2024-05-17 07:51:14 +02:00
Alexis Guijarro
5fe955c243
mRo Control Zero Classic: Definition for GPS2 by default added
2024-05-16 09:45:33 -07:00
alexklimaj
ecf4af7cf7
boards: ark cannode add ADIS16507 driver
2024-05-16 09:56:25 -04:00
Thomas Frans
9fd1c54570
style(editorconfig): update newline setting
...
The setting wasn't consistent with the one used in the Visual Studio
Code settings, which caused different newline formatting depending on
whether the user uses Visual Studio Code or another editor that uses
EditorConfig.
2024-05-15 11:40:11 -04:00
dirksavage88
ee2a8c9bda
increase lp default stack to 2000
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2024-05-15 11:08:48 -04:00
Hamish Willee
2e7a99ac41
VectorNav.cpp - fix docs link to usage guide
2024-05-15 11:07:50 -04:00
Konrad
17916b7fdc
uxcre_dds_client: use topic name as defined in the dds_topics.yaml to register stream
2024-05-15 11:07:01 -04:00
Eric Katzfey
293389abf3
Minor updates to the VOXL 2 board README file
2024-05-14 12:25:22 -04:00
Eric Katzfey
839f5bbb12
Removed obsolete voxl 2 board default parameter setting
2024-05-14 11:08:43 -04:00
Peter van der Perk
253208fdd4
fmu-v6xrt: Add I2C driver launcher
2024-05-08 11:34:13 -04:00
Peter van der Perk
5789803665
fmu-v6xrt: Enable debug features for more verbose hardfault output
2024-05-08 06:14:24 -04:00
Julian Oes
b1b9c8fd99
gps: add note to param
...
This notes the reference yaw angle for the Septentrio Mosaic-H.
It's unfortunately a bit tricky in that Unicore has the main antenna
in front by default while Septentrio decided to put the aux antenna in
front.
Signed-off-by: Julian Oes <julian@oes.ch >
2024-05-07 21:15:44 -04:00
Benjamin Philipp Ketterer
5d025e6d3d
increased uxrce-dds stack size to prevent overflow
2024-05-07 21:13:58 -04:00
alexklimaj
b9a696d025
boards: ark septentrio gps add iis2mdc
2024-05-07 21:12:15 -04:00
RomanBapst
ca9cb2214f
quadchute: fixed sign for handling altitude resets
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-05-07 16:01:09 +02:00
muramura
b5467d88f7
gps: Change the IF statement to a SWITCH statement
2024-05-07 15:58:15 +02:00
Konrad
6984e6da7f
TECS:use tas_setpoint instead of measured tas for specific kinetic energy calculation
2024-05-07 14:20:07 +02:00
Konrad
f56f4c7033
TECS: enable specific energy weights to have a value up to 2
2024-05-07 14:20:07 +02:00
Konrad
f8a20e1964
TECS: increase airspeed control limit for fast descend
2024-05-07 14:20:07 +02:00
Konrad
6a789b54c6
TECS: allow for fast descend up to maximum airspeed. Use pitch control loop to control max airspeed while giving minimal throttle.
2024-05-07 14:20:07 +02:00
Beat Küng
e17faece3d
mavlink_ftp: do not store reply on kErrNoSessionsAvailable
...
This would interfere with an existing ongoing session
2024-05-07 07:26:12 +02:00
Beat Küng
f002b08e6a
mavlink_ftp: ensure there's enough space for the 2. path in _workRename
...
Prevents accessing invalid memory when reading ptr + oldpath_sz + 1 and
oldpath_sz fills out the whole or N-1 bytes of the payload.
2024-05-07 07:26:12 +02:00
Beat Küng
f16115d8be
mavlink_ftp: handle relative paths correctly
...
by ensuring there's a '/' in between when concatenating the path with
_root_dir.
2024-05-07 07:26:12 +02:00
Julian Oes
f04d17d160
Tools: skip submodule check in CLion
...
Same as what's required for VSCode.
Signed-off-by: Julian Oes <julian@oes.ch >
2024-05-05 11:33:24 +12:00
Beat Küng
9e6dcb1f60
fix mavlink: cmd_logging_{start,stop}_acknowledgement flags were not reset
...
Regression from https://github.com/PX4/PX4-Autopilot/pull/23043
Also avoids a race condition by making sure the command ack is handled
before sending out the mavlink message (in case an external component
reacts immediately to the mavlink message).
2024-05-03 06:59:55 +02:00
Alex Klimaj
36ea872e72
drivers: adis16507 reschedule reset after failed self test
2024-05-02 17:52:26 -04:00
Daniel Agar
224d6f2fa7
ekf2: ekf_helper.cpp remove duplicate method comments (comment on declaration only, not definition)
2024-05-02 17:40:58 -04:00
Daniel Agar
c1fc893cca
ekf2: move gyro/accel/wind covariance reset helpers to covariance.cpp
2024-05-02 17:40:58 -04:00
Daniel Agar
63c2ea33c1
ekf2: move Ekf::resetQuatStateYaw() to yaw_fusion.cpp
2024-05-02 17:40:58 -04:00
Daniel Agar
1ca4056b6a
ekf2: delete unused Ekf::resetImuBias()
2024-05-02 17:40:58 -04:00
Daniel Agar
6b3b66619b
ekf2: move baro dynamic pressure compensation to aid_sources/barometer
2024-05-02 17:40:58 -04:00
Daniel Agar
4f0eb72fc9
ekf2: move IMU down sampler to imu_down_sampler/
2024-05-02 17:40:58 -04:00
Daniel Agar
58637d3825
ekf2: move terrain estimator and derivation to terrain_estimator/
2024-05-02 17:40:58 -04:00
Daniel Agar
58de8cbb77
ekf2: move fake_height, fake_pos, zero_innovation_heading to aid_sources/
2024-05-02 17:40:58 -04:00
Daniel Agar
49c782bad9
ekf2: move bias estimators to bias_estimtor/
2024-05-02 17:40:58 -04:00
Daniel Agar
e262fde4dc
ekf2: move aux global position fusion to aid_sources/aux_global_position
2024-05-02 17:40:58 -04:00
Daniel Agar
b8d46e60a5
ekf2: move mag fusion to aid_sources/magnetometer
2024-05-02 17:40:58 -04:00
Daniel Agar
3f6c3e0649
ekf2: move output predictor to output_predictor/
2024-05-02 17:40:58 -04:00
Daniel Agar
24fdd696cb
ekf2: move range finder files to aid_sources/range_finder
2024-05-02 17:40:58 -04:00
Daniel Agar
3dbd3f8a1a
ekf2: move airspeed fusion file to aid_sources/airspeed
2024-05-02 17:40:58 -04:00
Daniel Agar
789b2b3d8a
ekf2: move sideslip fusion file to aid_sources/sideslip
2024-05-02 17:40:58 -04:00
Daniel Agar
eb8ee74066
ekf2: move baro height file to aid_sources/barometer
2024-05-02 17:40:58 -04:00
Daniel Agar
de178b1435
ekf2: move gravity fusion file to aid_sources/gravity
2024-05-02 17:40:58 -04:00
Daniel Agar
78f2ccbb60
ekf2: move optical flow files to aid_sources/optical_flow
2024-05-02 17:40:58 -04:00
Daniel Agar
fcf94e7670
ekf2: move GNSS files to aid_sources/gnss
2024-05-02 17:40:58 -04:00
Daniel Agar
31ae5b77fe
ekf2: move drag_fusion file to aid_sources/drag
2024-05-02 17:40:58 -04:00
Daniel Agar
c3fb0b1090
ekf2: move auxvel file to aid_sources/auxvel
2024-05-02 17:40:58 -04:00
Daniel Agar
b5d1e87368
ekf2: move EV files to aid_sources/external_vision
2024-05-02 17:40:58 -04:00
Peter van der Perk
f382e585e8
sd_bench: Add U option for forcing byte aligned
...
Co-authored-by: David Sidrane <david.sidrane@nscdg.com >
2024-05-02 12:33:25 -04:00
Daniel Agar
c64104e9f1
sensors/vehicle_angular_velocity: silence gyro selection fallback warning (PX4_WARN -> PX4_DEBUG)
...
- this warning was to catch any potential errors in sensor selection
relative to what's actually available, we don't need to complain
about initial selection before the EKF selector is available
2024-05-02 11:53:31 -04:00
David Sidrane
c13e3bae12
px4_fmu-v6xrt:Support_MMCSD_MULTIBLOCK with preflight
2024-05-01 20:45:42 -04:00
David Sidrane
a3e1dcce4b
NuttX with imxrt_sd-preflight backport
2024-05-01 20:45:42 -04:00
Daniel Agar
33234f4dc0
drivers/ins/vectornav: add missing sensor_gps velocity magnitude
2024-05-01 20:40:28 -04:00
Julian Oes
e79993a316
gps: split enum after rebase
...
Signed-off-by: Julian Oes <julian@oes.ch >
2024-05-01 14:42:58 -04:00
alexklimaj
b308c4fbcc
boards: ark rtk gps safety led open drain
2024-05-01 14:42:58 -04:00
alexklimaj
c90ccabbe0
gps: add ZED-F9P-15B
2024-05-01 14:42:58 -04:00
alexklimaj
2498ce6a5c
boards: add iis2mdc mag to ark pi6x
2024-04-30 21:26:42 -04:00
alexklimaj
67b39314bf
boards: update ark_pi6x EKF delays
2024-04-30 21:26:42 -04:00
Daniel Agar
b6da0b141d
ekf2: GPS yaw only invalidate yaw_align if stopping due to fusion failure
2024-04-29 21:04:21 -04:00
Beat Küng
547209e1dc
libevents: update submodule
...
And remove obsolete libevents_definitions.h
2024-04-29 07:22:40 -07:00
bresch
9dc7719d4a
ekf2: Only reset to GNSS heading if necessary
...
When North-East (e.g.: GNSS pos/vel) aiding is active, the heading
estimate is constrained and consistent with the vel/pos aiding. Reset to
GNSS heading should only occur if no N-E aiding is active or if the
filter is not yes aligned. Otherwise, just wait for the consistency
check to pass again (will pass at some point if the heading uncertainty
of the filter is getting too high).
2024-04-29 07:22:01 -07:00
Jukka Laitinen
6435e25929
commander: Use PX4_STACK_ADJUSTED to increase stack for 64-bit targets
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2024-04-29 08:11:54 +02:00
Hamish Willee
902712b97f
LogMessage.msg - expand out descriptive string ( #23054 )
2024-04-29 14:02:09 +12:00
Peter van der Perk
500332e424
imxrt: flexpwm remove 1:1 mapping requirement
2024-04-27 07:57:32 -04:00
Silvan Fuhrer
34cb69898e
FW Position Controller: fix Altitude mode without valid z reference (e.g. no GPS)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-26 10:44:40 +02:00
oravla5
f91103af6e
boards: removed CONFIG_SYSTEMCMDS_REFLECT from Sky-Drones AIRLink board support
2024-04-26 09:42:06 +02:00
oravla5
9d6ac0b87a
mavlink: Added MAV_{i}_HL_FREQ parameter
2024-04-26 09:42:06 +02:00
oravla5
2b2e1c9521
mavlink: Added parsing of CLI option to configure HL frequency
2024-04-26 09:42:06 +02:00
oravla5
e7b4c5903f
px4_cli: Added px4_get_parameter_value function overload for float type
2024-04-26 09:42:06 +02:00
bresch
7cefc3172a
estimatorCheck: get param only if handle is valid
2024-04-25 14:48:23 -04:00
murata,katsutoshi
ba448fb549
MC Auto: add fixed yaw mode
2024-04-25 13:53:05 +02:00
oravla5
98b23e41f7
mavlink: fixed compilation error after var renaming
2024-04-25 08:23:32 +02:00
oravla5
283ae60a15
telemetry: removed iridium driver
2024-04-25 08:23:32 +02:00
oravla5
3cb48feb61
high_latency_stream: minor PR fix
2024-04-25 08:23:32 +02:00
oravla5
bf1266af11
mavlink: added back gimbal v1 protocol command
2024-04-25 08:23:32 +02:00
oravla5
03652beef8
commander: fixed format
2024-04-25 08:23:32 +02:00
oravla5
d0e7f2c368
high_latency_stream: heading taken from vehicle_attitude topic
2024-04-25 08:23:32 +02:00
Igor Mišić
d0532f45b2
telemetry: enable iridium
2024-04-25 08:23:32 +02:00
Igor Mišić
61ca65d863
mavlink: use high_latency_data_link_lost as backup to normal data_link
2024-04-25 08:23:32 +02:00
Igor Mišić
4f8de500af
iridiumsbd: update logic for detecting if the modem is not responsive
2024-04-25 08:23:32 +02:00
Igor Mišić
5be0adc779
mavlink: don't send command ACK for internal commands over Iridium
2024-04-25 08:23:32 +02:00
Igor Mišić
29af189cd0
mavlink: don't send events over Iridium
2024-04-25 08:23:32 +02:00
Igor Mišić
208909d471
mavlink: use high_latency_data_link_lost as backup to normal data_link
2024-04-25 08:23:32 +02:00
Igor Mišić
de23c10b68
commander: improve handling high latency link lost/regain
2024-04-25 08:23:32 +02:00
Igor Mišić
d3b853a7f9
mavlink: fix handling of transmission enable/disable
...
Co-authored-by: RomanBapst <bapstroman@gmail.com >
2024-04-25 08:23:32 +02:00
Igor Mišić
760bcdec2f
high_latency_stream: fixed bug where fields were not updating
...
- topic update was checked twice in the same loop and thus
the second time the topic would never indicate to have updated
Co-authored-by: RomanBapst <bapstroman@gmail.com >
2024-04-25 08:23:32 +02:00
Igor Mišić
df2cc4af05
commander: fix check for availability of high latency link
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-04-25 08:23:32 +02:00
Beat Küng
f543951e10
commander: set correct health component when reporting errors
2024-04-24 16:06:32 -04:00
Jacob Dahl
69e082c83d
drivers/magnetometer: new ST IIS2MDC Magnetometer driver
2024-04-24 13:01:18 -07:00
dirksavage88
6a3e57d428
Shift vertical orientation above scaling yaw operation, cp angle sign change
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2024-04-24 15:58:12 -04:00
dirksavage88
0f6f4c5b07
fix to orientation offsets for scaled yaw, removed unused param
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2024-04-24 15:58:12 -04:00
Thomas Frans
65c7e034dc
VSCode: add EditorConfig extension to recommended and devcontainer.json
2024-04-24 15:52:23 -04:00
Daniel Agar
eb59bb9de9
simulation/gz_bridge: eliminate implicit float conversion
2024-04-24 15:51:30 -04:00
bresch
b508df39a2
imu consistency: don't scale param threshold
2024-04-24 15:51:07 -04:00
bresch
8bf1cf0b15
ekf2_params: reduce "short" description
2024-04-24 15:09:57 -04:00
Silvan Fuhrer
97191bd60f
autopilot_tester: for mission end timeout check take speed factor into account
...
And increase the (simulation time) timeouts.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-23 16:37:31 +02:00
Silvan Fuhrer
818e318334
autopilot_tester: reduce mission distance for wind world
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-23 16:37:31 +02:00
Silvan Fuhrer
59232c27ae
autopilot_tester: use normal VTOL mission for airspeed blockage test
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-23 16:37:31 +02:00
fury1895
2683128205
PM Selector Auterion: remove INA226_SHUNT value reset (skynode only)
2024-04-23 16:02:35 +02:00
Daniel Agar
bfb04ddd19
CMakeLists: install_python_requirements allow --break-system-packages
2024-04-22 12:11:53 -04:00
bresch
4cf51e5833
baro comp: set hpf optional
2024-04-22 15:59:50 +02:00
Tero Salminen
e202e719b0
bmp388: check bus return code after register read
...
Check I2C/SPI bus transfer function return code after register
read operation.
Signed-off-by: Tero Salminen <tero.salminen@unikie.com >
2024-04-22 10:20:40 +02:00
asimopunov
f95a2021cd
adsb: warnings fixes & remove UTM_GLOBAL_POSITION ( #21663 )
...
- warn about full traffic conflict buffer at 1/60hz.
- add conflict expiry for buffer.
- use only events for buffer full warning. mavlink_log_critical no longer needed.
- use icao address for conflict warnings id, stop using uas_id. UTM_GLOBAL_POSITION assumed deprecated.
- stop spamming when buffer is full
- fix warning wording if buffer is full.
- remove UTM_GLOBAL_POSITION
Fixes failing unit test:
* [adsbTest] Reduce conflict timestamps - not enough time has passed in ci
- failed ci output - (passes locally with make tests TESTFILTER=AdsbConflict)
- Timestamp: 6000000000
- Time now: 457720038
- Time since timestamp: 0
- Old Conflict warning expired: 0
- --------------------
- adsb_conflict._traffic_state 0
- ../../src/lib/adsb/AdsbConflictTest.cpp:244: Failure
- Value of: adsb_conflict._traffic_state == TRAFFIC_STATE::REMIND_CONFLICT
- Actual: false
- Expected: true
2024-04-22 10:14:39 +02:00
Juyong Shin
c7725d74b4
fw offboard control mode: altitude control enabled ( #23041 )
2024-04-22 06:57:57 +02:00
Daniel Agar
0a7689f323
drivers/optical_flow/paa3905: fix RegisterRead udelay
2024-04-18 20:57:37 -04:00
Daniel Agar
2a328615ed
drivers/optical_flow/paw3902: fix RegisterRead udelay
2024-04-18 20:57:37 -04:00
Daniel Agar
ec3ceae45e
ekf2: move yaw_estimator and derivation to dedicated folder
2024-04-18 15:14:59 -04:00
Eric Katzfey
2dccd6cacb
Voxl ESC driver update ( #23022 )
...
* Made Serial API open the UART in NON BLOCKING mode
* Updated voxl_esc driver to latest from ModalAI fork
* Ported voxl_esc driver over to new Serial UART API
* Removed voxl_esc serial abstraction since new Serial API is already a serial abstraction
2024-04-17 15:09:35 -04:00
bresch
a8a67fbf8f
ekf2: set horizon using specific parameter
...
Some sensors can have their delay included in the timestamp. In this
case, the buffer cannot be sized using the _DELAY parameter.
2024-04-17 09:16:16 -04:00
Hamish Willee
6796945d0b
Fix up notes boxes for docs ( #22999 )
...
* Fix up notes boxes for docs
* Update markdownout.py
* Update markdownout.py
* Update markdownout.py
2024-04-17 13:28:07 +12:00
Jacob Dahl
ff1da2ba29
remove clip_limit contraint on INT16_MAX
2024-04-16 11:43:55 -04:00
Sergei
b909cc1b5b
Updated GZ submodule to the latest hash (d754381)
2024-04-16 11:36:57 -04:00
Sergei Grichine
c64f5128b4
Update CMakeLists.txt - included lawn world
...
Added lawn world to make process to allow gz sim building like "make px4_sitl gz_r1_rover_lawn"
2024-04-16 11:36:57 -04:00
Beniamino Pozzan
2476883525
logger: add timesync_status to default logged topics
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com >
2024-04-16 11:29:35 -04:00
bresch
7a973eddce
ekf2: migrate param to yaml
2024-04-16 11:14:13 -04:00
bresch
42a16bd91d
order yaml fileds
2024-04-16 11:14:13 -04:00
Kalyan Sriram
2fe4fec491
Add python script to translate C param to new yaml file
2024-04-16 11:14:13 -04:00
JaeyoungLim
05cd850ae3
Document vehicle attitude message
2024-04-16 16:44:56 +02:00
Eric Katzfey
94d496605a
Voxl new board specific module (voxl_save_cal_params) to save calibration parameters ( #22993 )
...
* Added Voxl board specific module to save calibration parameters in QGC format
2024-04-15 16:10:22 -04:00
Eric Katzfey
d908b68c78
lib/rc/dsm: update proto init to have reset incorporated as well ( #22995 )
...
* update voxl2-slpi spektrum_rc driver
2024-04-15 16:09:19 -04:00
Eric Katzfey
0f665f2772
Added high rate esc_status logging to the high rate logging category along with actuator_outputs_debug. Both of these
...
really help diagnosing odd flight behavior / crashes on VOXL2. Also changed the logger start commands in the VOXL2
standard and HITL startup scripts.
2024-04-15 16:07:07 -04:00
Daniel Agar
78bbb66568
delete SYS_MC_EST_GROUP
...
- introduce per module parameters (EKF2_EN, LPE_EN, ATT_EN)
- add basic checks to prevent EKF2 + LPE running simultaneously
2024-04-15 16:06:08 -04:00
alexklimaj
1b1479a92b
airframes: Droneblocks DEXI 5
2024-04-12 14:44:01 -04:00
alexklimaj
528ad1e87d
boards: ARK Pi6X Initial Commit
2024-04-12 14:44:01 -04:00
Jacob Dahl
65cc153d47
remove LIS2MDL from COMMON_MAGNETOMETER
2024-04-12 14:43:20 -04:00
Jacob Dahl
8a8f481c29
remove PGA460 from COMMON_DISTANCE_SENSOR
2024-04-12 14:43:20 -04:00
Silvan Fuhrer
926e7878af
RT: only chose mission RTL if mission is valid
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-11 13:47:17 +02:00
Silvan Fuhrer
5fab21d099
MissionBase: hasMissionLandStart should only return true if mission is valid
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-11 13:47:17 +02:00
Silvan Fuhrer
05672f343d
TECS: check if integrator update is finit prior applying
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-11 10:42:59 +02:00
Silvan Fuhrer
974ead4015
FW position control: catapult/hand-launch: enable without launch detection
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-11 10:42:59 +02:00
Silvan Fuhrer
6fec452c4b
FW position control: catapult/hand-launch: do not cut throttle if not landed
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-11 10:42:59 +02:00
Konrad
6a7555c005
mission_base: fix to set the end of mission item always, if the mission can't be properly loaded or started
2024-04-11 10:21:52 +02:00
alexklimaj
cc11e1fbbf
drivers: broadcom AFBR fix close to ground false readings
2024-04-10 11:47:04 -04:00
Eric Katzfey
b544ea99d5
Enabled voxl2-slpi dsp_sbus driver in build
2024-04-10 11:07:24 -04:00
Eric Katzfey
f8df7d1621
Move Voxl from microdds client to uxrce dds client
2024-04-10 11:06:32 -04:00
Peter van der Perk
7bfad2502b
Update NuttX
2024-04-10 11:04:07 -04:00
Hamish Willee
f9c65cd4c6
Vuepress removal /changes for vitepress ( #22972 )
...
* Vuepress removal /changes for vitepress
* generate_msg_docs.py - README is index in vitepress
2024-04-10 09:08:25 +10:00
Eric Katzfey
d8fabd11d0
Send mavlink manual control buttons field in manual control input topic ( #22988 )
...
Pass along button states from manual control mavlink message in new buttons field in manual control input topic
2024-04-09 12:35:42 -07:00
David Sidrane
a73df4752f
px4_fmu-v6x:Add Holybro Pixhawk Jetson Baseboard ver 0x100
2024-04-09 11:27:29 -04:00
Alex Klimaj
297ddabe70
drivers: rc_input only publish if more than 0 rc channels filled (fixes GHST auto scan)
2024-04-09 11:19:41 -04:00
Silvan Fuhrer
64505b4b9c
Mission params: update description of MIS_TKO_LAND_REQ
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-09 13:24:46 +02:00
Silvan Fuhrer
93ed910977
FeasibilityChecks: only require both or neither TO/LND when landed
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-09 13:24:46 +02:00
Silvan Fuhrer
9f799be855
Navigator: remove unused method
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-09 13:24:46 +02:00
bresch
5f61e3b785
ekf2: update change indicator
2024-04-05 22:26:03 -04:00
bresch
b79d3854e4
ekf2: remove option to continuously fuse mag declination
...
Declination fusion is only used when not observable (no global aiding).
2024-04-05 22:26:03 -04:00
bresch
dae246d7e2
ekf2: do not continuously use mag decl fusion when GNSS fusion is active
...
This prevents over-constraining the heading from mag fusion. An
incorrect mag yaw rotation can be absorbed as a declination error.
2024-04-05 22:26:03 -04:00
bresch
2f51db7284
ekf2: limit mag heading fusion to prevent heading overconfidence
2024-04-05 22:26:03 -04:00
bresch
51883fe5d4
ekf2: integrate mag heading into mag 3D
2024-04-05 22:26:03 -04:00
bresch
0c9e4013d2
ekf2: improve tilt leveling speed
...
Starting with no yaw uncertainty makes the tilt more observable when
using fake position fusion during the quasi-stationary alignment phase.
2024-04-05 22:26:03 -04:00
bresch
12fefbcfbd
ekf2: use global definition of quaternion error
2024-04-05 22:26:03 -04:00
Noe S. Sanchez
3931379efe
msg: update VehicleCommand.msg MAV_CMD_DO_REPOSITION comment
...
Added missing MAV_CMD_DO_REPOSITION parameters, from MAVlink Docs.
2024-04-05 21:29:44 -04:00
Jacob Dahl
7fbbdc31e8
Memsic MMC5983MA magnetometer driver
2024-04-04 21:08:24 -04:00
henrykotze
de9f3a3268
gz-bridge: use correct prev_timestamp for dt calc
...
- with the addition of the navsat plugin in PR#22638, the callback would
reassign the previous timestamp used in the calculations of the
angular_velocity causing derivative type noise in the groundtruth
measurements
2024-04-04 12:09:06 -04:00
Eric Katzfey
0a867b5d1d
Serial: removed the validateBaudrate function from nuttx and posix platforms and just send out a warning it baudrate is non-standard ( #22969 )
...
- Fix some Qurt platform build issues uncovered when changing the posix version of SerialImpl
2024-04-04 12:07:46 -04:00
Peter van der Perk
047e900c2a
px4io: Fix dependency problem caused by #22957
2024-04-04 09:10:09 -04:00
Hamish Willee
8ceeda730d
Jenkinsfile - dual-deploy uorb graph and failsafe to vitepress ( #22943 )
2024-04-03 11:14:30 +11:00
Eric Katzfey
4c2112f46b
boards/modalai/voxl2: added device specifier to gps start line
2024-04-02 19:12:21 -04:00
Matthias Grob
b87c5285e2
battery: weigh voltage based estimate more when it's low
...
This is a minimal change to make it harder to crash a
vehicle with an empty battery if the capacity was set wrong.
The disadvantage is that the state of charge estimate will
fluctuate more under load.
We need better documentation and improvements to the estimation.
2024-04-02 19:22:28 +02:00
Matthias Grob
8579175013
Build new IO firmware binaries
2024-04-02 11:59:56 -04:00
Matthias Grob
ef5569fab3
px4iofirmware: reuse existing disarmed logic for lockdown and should_always_enable_pwm
...
The existing disarmed logic already handles disabled outputs
it makes sense to reuse it and not have lockdown handled
differently resulting in unexpeced corner cases.
2024-04-02 11:59:56 -04:00
Matthias Grob
b714b5461b
px4iofirmware: simplify lockdown logic
2024-04-02 11:59:56 -04:00
Matthias Grob
7f0ec2305c
px4iofirmware: refactor to only have one PWM output code path
...
This removes the duplication with unexpected differences
and allows to consistently handle the output instead of
overriding the output for some specific cases which
leads to unexpected corner cases. E.g. disabled outputs
suddenly outputing PWM in lockdown.
2024-04-02 11:59:56 -04:00
Matthias Grob
ab1087906d
px4io: remove special handling for HITL
...
In HITL the actuators should not be mapped
and they are in lockdown.
We should not reconfigure disarmed, min, max PWM values
without updating the actual output values because the IO
will consider the last outputs before the FMU was rebooted
with the configuration of the new boot. This can result
in spinning motors when switching to SIH.
2024-04-02 11:59:56 -04:00
Silvan Fuhrer
cf87cd27f5
logger: reduce interval of rtl_status logging
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-02 09:49:35 -04:00
Silvan Fuhrer
67fb70a65e
logger: make logging of rtl_status not optional
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-04-02 09:49:35 -04:00
Peize-Liu
f7bc13dab0
boards: new hkust nxt-fc board support ( #22961 )
2024-04-02 09:49:10 -04:00
Eric Katzfey
8e61026511
Port CRSF RC driver to new Serial UART API ( #22917 )
...
* Added implementations of Rx Tx swap and single wire for new UART API needed by CRSF driver
* Added inverted mode to Serial interface API
2024-04-01 22:09:13 -04:00
Peter van der Perk
a9ba0acb2a
cmake: all allyes target for better CI coverage
...
Currently only v6x-rt and SITL are supported
But targets with label allyes will try to enable all kconfig symbols
2024-04-01 22:05:20 -04:00
Peter van der Perk
791d7894c8
modules: zenoh: remove broken serial config and update topics
2024-04-01 22:05:20 -04:00
Peter van der Perk
f082de5db7
kconfig: Add dependencies
2024-04-01 22:05:20 -04:00
Peter van der Perk
8817f59108
v6x-rt: Split ITCM static and auto-generated functions
2024-04-01 22:05:20 -04:00
Peter van der Perk
d5b66cac2c
drivers: cyphal: Fix ARM/x86 printf werror portability error
2024-04-01 22:05:20 -04:00
Peter van der Perk
fe8a5eae99
drivers: bmi088_i2c: Enforce I2C driver can only be used when SPI version isn't selected
...
Solves multiple references compilation errors
2024-04-01 22:05:20 -04:00
Peter van der Perk
127d74f2e1
drivers: vector: Fix PX4 SITL x86 compilation
2024-04-01 22:05:20 -04:00
Peter van der Perk
4889ac0ebb
drivers: uavcan: fix werror uninitialized error
2024-04-01 22:05:20 -04:00
Peter van der Perk
650ea6ef4a
drivers: transponder: don't free pre-allocated memory
2024-04-01 22:05:20 -04:00
Peter van der Perk
0c5b25efc5
systemcmds: reflect: write return needs to be used for werror checks
2024-04-01 22:05:20 -04:00
Peter van der Perk
05badb5d76
systemcmds: microbench: %s doesn't except nullptr use "null" instead
2024-04-01 22:05:20 -04:00
Peter van der Perk
54f044c04a
examples: matlab_csv_serial: fix compilation
...
Update uORB definition and sprintf float formatting
2024-04-01 22:05:20 -04:00
Peter van der Perk
daee37d377
drivers: tap_esc: fix Werror=maybe-uninitialized compilation
2024-04-01 22:05:20 -04:00
Peter van der Perk
461b146ba8
drivers: barometer: ms5837 fix compilation error
...
Fixes MS5837.cpp:343:29: error: 'T' was not declared in this scope by using last temperature instead
2024-04-01 22:05:20 -04:00
Julian Oes
0283dc2459
gps: fix Septentrino serial read ( #22936 )
...
For Septententrino we seem to sometimes fill the buffer pretty full.
If we ask for too much, readAtLeast will fail completely and make the
GPS discovery logic fall over. Therefore, let's not ask for too much and
just read what we can given the available buffer.
Signed-off-by: Julian Oes <julian@oes.ch >
2024-04-01 20:46:53 -04:00
Eric Katzfey
71b074b234
Qurt termios decoy ( #22954 )
...
* Added decoy termios support to Qurt so that ghst parser in RC library can be used. No termios is actually needed but has to be there for the parser to work
2024-04-01 18:33:37 -04:00
Eric Katzfey
ccdf060393
Additions to the Serial UART API ( #22953 )
...
- Added an empty constructor, setPort, and validatePort functions for Serial API
- Changed GPS to not allocate Serial object dynamically
- Moved access check on serial port name into the Serial API
- Improved the Qurt platform validatePort Serial function to implement a more rigorous check. Added safety check
to the setPort Serial function to make sure it isn't called after the port has been already opened.
2024-04-01 12:27:59 -04:00
Matthias Grob
416b6a35a4
failsafe framework: inform about failsafe action
2024-03-27 20:22:04 +01:00
Claudio Micheli
0f9531a526
commander: improve failsafe messaging
...
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2024-03-27 20:22:04 +01:00
David Sidrane
3099eac2ba
NuttX with pr-h7-serial-logic-error backport
2024-03-27 14:43:08 -04:00
Matthias Grob
6e86862b6a
boards: unify comments for voltage deviders
2024-03-27 17:15:39 +01:00
Matthias Grob
4c5f084445
Battery parameters: clarify empty, full voltage description
2024-03-27 17:15:39 +01:00
Julian Oes
868a884131
fw_att_control: bitwise and should be logical and ( #22933 )
...
Signed-off-by: Julian Oes <julian@oes.ch >
2024-03-27 16:29:56 +13:00
murata,katsutoshi
749f88b62b
ekf2: gps control lazily check yaw_failure() only after in_air
2024-03-26 19:50:57 -04:00
jamming
3aac8f36e6
boards/holybro/kakuteh7: fix icm42688p IMU
...
- the mass-produced kakuteH7 did not use ICM20689 IMU
2024-03-26 19:49:11 -04:00
Eric Katzfey
8ade2e5f2d
Add SYS_AUTOSTART touch in voxl-px4-start
2024-03-26 19:35:24 -04:00
enesavcu
fa1885af23
Signal generator ( #22666 )
...
Add option to generate sine chirp signals for fixed-wing system identification
2024-03-26 16:11:32 +01:00
Matthias Grob
b5f6699f2e
mixer_module: send a last sample out after all outputs were disabled
...
This matters for PWM when the last output gets disabled on either FMU or IO
it would just keep on running.
Also when rebooting with a parameters reset or new airframe with no mapped outputs
it would previously keep outputting PWM with the disarmed value of the new airframe
e.g. 1000us which is a safety hazard because servos could break the physical limit of the
model or miscalibrated ESCs spinning motors.
2024-03-25 19:21:54 +01:00
Matthias Grob
1096384a38
px4iofirmware: don't switch to disarmed or failsafe value on disabled PWM outputs
...
If the output is set to 0 then the FMU had this channel disabled/no function mapped
to it. In that case we do not want to suddenly start outputing failsafe or disarmed
signals.
2024-03-25 19:21:54 +01:00
Matthias Grob
999a71c4dd
px4io: don't output on disabled PWM pins
...
Same logic as on the FMU PWM updateOutputs() in PWMOut.cpp
2024-03-25 19:21:54 +01:00
Thomas Frans
bcbae86b9f
code: add more style options in .editorconfig
2024-03-25 09:48:09 -04:00
Eric Katzfey
4a553938fb
VOXL2: HRT updates for synchronization with Qurt time ( #22881 )
...
- Added offset to Posix hrt time to account for synchronization with Qurt hrt time
- Added new Kconfig to configure synchronization of HRT timestamps on VOXL2
- Moved voxl2 libfc sensor library submodule from muorb module to boards directory
- Added check to make sure hrt_elapsed_time can never be negative
2024-03-22 15:24:51 -04:00
Daniel Agar
c024ea396a
boards/px4/fmu-v5x: remove legacy rover_pos_control to reduce flash usage
2024-03-22 15:17:03 -04:00
Eric Katzfey
69028f37a9
New platform independent Serial interface ( #21723 )
2024-03-21 21:00:23 -04:00
Thomas Frans
bb9f4d42f3
gps: fix incorrect task id in module startup
2024-03-21 20:58:59 -04:00
Beat Küng
2e12e14a23
boards/px4/fmu-v5x: remove sd_stress & reflect to reduce flash usage
2024-03-21 20:58:21 -04:00
Thomas Frans
d0251b8688
add .editorconfig for consistent code style across editors ( #22916 )
...
EditorConfig is a well-known convention to share style settings across
different editors. Adding one will make it easier for new contributors
or people who like to use a different editor to contribute.
2024-03-21 20:56:20 -04:00
Eric Katzfey
82a1aa37db
uORB: fix for uORB communicator, only send most recent data for new subscription ( #22893 )
2024-03-21 20:54:43 -04:00
Eric Katzfey
5f6dc1c5d0
uORB: SubscriptionBlocking purged the broken attempt to set the mutex protocol in constructor
2024-03-21 20:53:34 -04:00
Øyvind Taksdal Stubhaug
710286da72
uavcan: publish new can interface status as uorb topic ( #22873 )
2024-03-20 12:38:47 -04:00
Daniel Agar
34c19b2e5a
boards/px4/fmu-v5x: default remove systemcmds/sd_stress to save flash
2024-03-20 12:35:34 -04:00
alexklimaj
af16544809
boards: ark septentrio update flash size and enable ekf2
2024-03-20 11:17:05 -04:00
Daniel Agar
35532609c9
mathlib: utilities refactor float to function template (for optional double precision usage)
...
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2024-03-20 11:10:37 -04:00
bresch
62b8db153b
mpc: fix PositionControl unit test
...
The unit test assumes the position controller is in "decoupled" mode
2024-03-20 14:16:12 +01:00
bresch
638e17d551
ekf: update change indicator
2024-03-20 14:13:49 +01:00
bresch
6d819343aa
ekf2: fix direct state measurement update for suboptimal K case
...
The duration of a unit test had to be increased because the incorrect
covariance matrix update, was making the unit test passing faster
(over-optimistic variance).
2024-03-20 14:13:49 +01:00
bresch
cb2bb2e098
ekf2: add no gyro bias estimate test case
...
This makes the ekf unstable and creates NANs during initialization
2024-03-20 14:13:49 +01:00
bresch
c9221b91ad
ekf2: fix gnss yaw unit test
2024-03-20 14:04:19 +01:00
Drone-Lab
37caddedbb
navigator: update mission after changing home position ( #22834 )
2024-03-20 08:37:19 +01:00
muramura
63850873eb
sd_bench: Display maximum time for maximum write time
2024-03-20 08:35:33 +01:00
Hamish Willee
95627ea098
SMART_BATTERY_INFO to BATTERY_INFO ( #22875 )
...
* Update submodule mavlink to latest Wed Mar 13 01:02:16 UTC 2024
- mavlink in PX4/Firmware (497327e916103ef05ff8f08f47d33b9a19bc28d7): https://github.com/mavlink/mavlink/commit/c4a5c497379ca873f73abe691a033641a6a5a817
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/a3558d6b335d930fc01816fd168d16b3f38ed434
- Changes: https://github.com/mavlink/mavlink/compare/c4a5c497379ca873f73abe691a033641a6a5a817...a3558d6b335d930fc01816fd168d16b3f38ed434
a3558d6b 2024-03-07 Hamish Willee - common - DO_FENCE_ENABLE/PARACHUTE fix (#2090 )
b9730e0f 2024-03-06 olliw42 - update RADIO_RC_CHANNELS to latest, remove all mlrs from storm32.xml (#1919 )
7fed0268 2024-03-06 Patrick José Pereira - common: MAV_CMD_DO_SET_SYS_CMP_ID: Add first version (#2082 )
2909b481 2024-03-06 Hamish Willee - Update Pymavlink (#2089 )
e9b532a9 2024-03-05 Randy Mackay - common: add set-camera-source command (#2079 )
bcdbeb7f 2024-03-01 auturgy - Allow individual fences to be enabled and disabled (#2085 )
2f8403d1 2024-02-29 Hamish Willee - MAV_CMD_ODID_SET_EMERGENCY - (#2086 )
daa59c02 2024-02-22 Peter Barker - common.xml: add a command to deal with safety switch (#2081 )
977332e2 2024-02-14 Hamish Willee - COMPONENT_INFORMATION_BASIC - add manufacturer date (#2078 )
4fef7de2 2024-02-07 Randy Mackay - Common: rename SMART_BATTERY_INFO to BATTERY_INFO and add SOH (#2070 )
3865b311 2024-02-01 Hamish Willee - FLIGHT_INFORMATION - description to match PX4 (#2067 )
f80e6818 2024-01-31 KonradRudin - development.xml: merge both MAV_CMD enums together (#2074 )
* SMART_BATTERY_INFO to BATTERY_INFO on new mavlink module
* Update src/modules/mavlink/streams/BATTERY_INFO.hpp
* fix trivial whitespace
---------
Co-authored-by: PX4 BuildBot <bot@px4.io >
Co-authored-by: Daniel Agar <daniel@agar.ca >
2024-03-20 11:33:37 +13:00
bresch
2e6dd243af
mpc: add possibility to generate tilt using full 3D accel
...
Using full 3D acceleration provides better horizontal acceleration
tracking but also creates a sometimes unwanted behavior because the tilt
is directly coupled with the vertical acceleration setpoint.
2024-03-19 12:29:34 -04:00
muramura
32aa3263a6
EKF: Change a typo
2024-03-18 10:29:44 +01:00
Beat Küng
70346a5b2f
failsafe: set cause to generic when fallback mode is activated
...
Previously when triggering low battery RTL and then losing GPS, the fallback
to Descend would still have low battery as cause.
2024-03-15 14:06:58 +01:00
Silvan Fuhrer
da39d075ac
Commander enums: shorten failsafe event messages
...
Such that the focus is on the important keywords.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-15 10:25:18 +01:00
Silvan Fuhrer
f6430a27d6
Commander enums: capitalize battery level key words
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-15 10:25:18 +01:00
Silvan Fuhrer
4ae2fbd171
Commander enums: capitalize flight mode names
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-15 10:25:18 +01:00
Silvan Fuhrer
6e15dd5328
Commander: trigger warning when arming denied due to check failure
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-15 09:34:11 +01:00
Silvan Fuhrer
d330d47495
EstimatorCheck: GNSS data fusion stopped as INFO if local position is already invalid
...
Helps to reduce spamming of less important warnings.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-15 09:33:56 +01:00
Silvan Fuhrer
6d8273483c
Commander: set vehicle_status.failsafe flag only if action for failed check is more than warning
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-15 09:33:41 +01:00
bresch
7c6ecd95a8
mc_wind_estimator_tuning: optionally use GNSS velocity
...
Sometimes GNSS is logged but not used
2024-03-14 21:06:24 +01:00
bresch
b2f1122372
ekf2: remove old yaw 321 and 312 derivations
2024-03-14 11:33:45 -04:00
bresch
ee63f3e664
update change indicator
2024-03-14 11:33:45 -04:00
bresch
e3f67d5c1a
ekf2: new yaw derivation
...
Instead of euler angles, compute measurement jacobian using a small
global perturbation around the vertical axis
2024-03-14 11:33:45 -04:00
Silvan Fuhrer
6373d8d243
commander: low flight time failsafe: set UserTakeoverAllowed::Auto to enter Hold first ( #22887 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-14 16:30:06 +01:00
Silvan Fuhrer
68fcfc43ef
mro-zero classic: remove gyro fft module to save flash ( #22878 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-14 14:20:51 +01:00
Eric Katzfey
ae947513d7
add load_mon support for Qurt platform ( #22883 )
...
- Added check in commander to see if CPU load monitoring has been disabled before signalling overload
2024-03-13 21:33:58 -04:00
Alexander Lampalzer
ad50afda10
update msg_files to PARENT_SCOPE ( #22800 )
2024-03-13 09:34:47 +01:00
Niklas Hauser
23c5c0b12d
dataman: Add client sync perf counter and increase default timeout to 5s
2024-03-13 09:22:38 +01:00
Daniel Agar
a1cce7e961
uxrce_dds_client: optimizations and instrumentation
...
- skip ping session if data flowing bidirectionally
- add perf counters for loop time and interval
- skip blocking poll if there's input data to read
2024-03-12 16:22:26 -04:00
Daniel Agar
b115d3cd44
uxrce_dds_client: refactor init to retry indefinitely
...
- move init from UxrceddsClient to init() method so that retry is
possible for both serial and UDP init
2024-03-12 16:22:26 -04:00
Silvan Fuhrer
9f4ae0a85d
vtol: only publish generic warning through mavlink to safe flash ( #22870 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-12 13:27:13 +01:00
Silvan Fuhrer
00cc68baa1
Commander: make low remaining flight time configurable and fix clearing condition ( #22863 )
...
* Commander: make low remaining flight time configurable and do not clear
- add _ACT param to disable/warning/RTL this feature
- publish rtl flight time estimate also in RTL, and thus fix re-validation
- make failure message clearer, distinguish from battery low
* battery check: add hysteresis for declaring battery_low_remaining_time false again
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
Co-authored-by: KonradRudin <98741601+KonradRudin@users.noreply.github.com >
2024-03-12 12:56:01 +01:00
Silvan Fuhrer
7fe5ee64fe
rtl_direct: fix on_inactive()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-12 11:27:49 +01:00
Silvan Fuhrer
7f370ac6df
Tiltrotor: disable MC yaw fade out during front transition blending
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-12 11:26:07 +01:00
Thomas Stauber
1ad83a8002
mavlink: OPEN_DRONE_ID_SYSTEM stream publish operator altitude in geodetic frame ( #22866 )
2024-03-11 19:49:11 -04:00
Eric Katzfey
18d53c3bfd
boards/modalai/voxl2: Add new capabilities to Qurt platform HITL driver
...
* Added new sensor control options and test capability in dsp_hitl
* HITL working in VIO mode only
* Fixed units on GPS HIL input
2024-03-11 19:47:15 -04:00
Eric Katzfey
f4ebfa6130
parameters: support for an optional remote parameter database ( #22836 )
...
The voxl2 has a split architecture. PX4 runs on a posix platform and a Qurt platform. The two communicate uorb topics back and forth with the muorb module. But each has it's own parameters database and they need to stay in sync with each other. This PR adds support to keep the 2 parameter databases in sync. The main parameters database running on Linux has file system support while the Qurt one does not. The Linux side is considered the primary and the Qurt side is considered the remote.
2024-03-11 13:52:22 -04:00
Konrad
c5fde63440
mission: The mission check on activation should only be performed for a mission, not RTL.
...
We need to make sure that when the RTL is triggered, it should not reevaluate it, as when it was valid but evaluated to false on activation, it can't do a RTL.
2024-03-11 17:08:56 +01:00
Silvan Fuhrer
cb8520427c
rtl direct: fix setting of previous altitude (abs vs rel)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-11 14:04:02 +01:00
Silvan Fuhrer
86c074378f
rtl_direct_mission_land: fix abs/rel usage of item.altitude
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-11 14:04:02 +01:00
Konrad
e9fda548fa
rtl_direct: Rtl estimate only needs valid destination, not home position
2024-03-11 14:04:02 +01:00
Konrad
91d1342f20
rtl_direct_mission: rtl_estimate for fixedwing land is diagonal
2024-03-11 14:04:02 +01:00
Konrad
89844625b4
rtl: reduce time estimate calculations
2024-03-11 14:04:02 +01:00
Konrad
fde71cd15e
rtl_direct_mission_land: add time estimation for RTL mission land
2024-03-11 14:04:02 +01:00
Konrad
14e4169473
rtl_direct: Move the time estimation calculation into a separate helper class
2024-03-11 14:04:02 +01:00
KonradRudin
8dcfcf5b9e
mission_base: land_start_item invalid only when negative. ( #22856 )
...
rtl: land_start_item invalid only when negative.
Update src/modules/navigator/rtl.cpp
2024-03-11 09:46:16 +01:00
alexklimaj
a80a5a92f4
boards: ARK Flow fix typo
2024-03-09 16:40:59 -05:00
alexklimaj
b81ad8841e
drivers: broadcom AFBR update to API 1.5.6
2024-03-09 16:40:59 -05:00
Eric Katzfey
57df7e35b2
uORB: make queue size (ORB_QUEUE_LENGTH) completely static ( #22815 )
...
Previously uORB queue size was an awkward mix of runtime configurable (at advertise or IOCTL before allocate), but effectively static with all queue size settings (outside of test code) actually coming from the topic declaration (presently ORB_QUEUE_LENGTH in the .msg). This change finally resolves the inconsistency making the queue size fully static.
Additionally there were some corner cases that the muorb and orb communicator implementation were not correctly handling. This PR provides fixes for those issues. Also correctly sets remote queue lengths now based on the topic definitions.
* Made setting of uORB topic queue size in based on topic definition only
* Fixes to the ModalAI muorb implementation
* Removed libfc sensor from format checks
* msg/TransponderReport.msg ORB_QUEUE_LENGTH 8->16 (was set to higher in AdsbConflict.h
---------
Co-authored-by: Eric Katzfey <eric.katzfey@modalai.com >
Co-authored-by: Daniel Agar <daniel@agar.ca >
2024-03-08 16:28:24 -05:00
Alexis Guijarro
006dcfafb7
boards/mro/ctrl-zero-classic: corrections for mRo Control Zero Classic Board ( #22745 )
...
- Build target changed from STM32H743II to STM32H743ZI
- Missing external SPI interface added
- Nonexistent I2C3 interface removed
- I2C4 pins changed
- Red and Green LED lights remapped
- Missing ADC inputs added and already present ones corrected
- CAN Silent interfaces corrected
- Power pins corrected and Level Shifter pin added to enable ICM20948
- Buzzer pin remapped
- HRT channel and PPM pin changed
- RSSI input remapped
- ICM20602 and BMI088 pins corrected
- Serial ports remapped
2024-03-08 14:50:53 -05:00
Silvan Fuhrer
85a882e1ce
FW Position Control: control_backtransition(): always track line from start ( #22853 )
...
Remove option to track from previous wp to reduce complexity and fix
case where prev=current point and the line following broke down.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-08 19:11:08 +01:00
Konrad
04099ed483
mission_base: Force mission validity check on activation
2024-03-08 17:26:04 +01:00
Konrad
1aa26a5a91
missionFeasibilityChecker: Fix tests
2024-03-08 17:26:04 +01:00
Konrad
acd750e033
mission_base: Run feasibility checker only after first global position has been published
2024-03-08 17:26:04 +01:00
Konrad
6c6142ba79
MissionFeasibiltyChecker: Do not delete uorb data on reset.
2024-03-08 17:26:04 +01:00
Konrad
7fb584adbe
MissionResult uorb: fix wrong int types
2024-03-08 17:26:04 +01:00
Konrad
fb3aab1fb0
mission_base: check mission feasibility again, if geofence has changed.
2024-03-08 17:26:04 +01:00
Konrad
1b03ac4d2b
mission_base: Only run mission feasibility if the geofence module is ready
2024-03-08 17:26:04 +01:00
Konrad
815cea2abb
geofence: publish status of loaded geofence
2024-03-08 17:26:04 +01:00
Konrad
51321c605e
mission_base: clean up mission check evaluation
2024-03-08 17:26:04 +01:00
Konrad
a0ae073d8c
mission_base: Do not initialize mission from dataman. only listen on mission topic
2024-03-08 17:26:04 +01:00
Silvan Fuhrer
7884e0a3f7
Navigator: remove vtol_takeoff special handling for RTL ( #22844 )
...
We had a special handling for RTL triggered in vtol_takeoff state.
The idea is to wait until the VTOL Takeoff is completed and only
then switch to RTL. On a second thought this special handling isn't
really necessary and for the sake of simplicity should be removed.
This also removes the side effect of the indicated flight mode
after RTL being set to VTOL_Takeoff again.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-08 11:40:14 +01:00
Silvan Fuhrer
f799141a19
FW Pos Controller: do not publish roll angle constrained warning if landed ( #22850 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-08 09:40:43 +01:00
Eric Katzfey
e20215087f
Moving from Qurt specific icm4266p driver to mainline version
2024-03-07 21:14:49 -05:00
bresch
0d0978b3b9
ekf2: update change indicator
2024-03-07 11:06:31 -05:00
bresch
0639f5370c
ekf2: fix mag and wind covariance prediction
2024-03-07 11:06:31 -05:00
bresch
2bacb4b65d
ekf2: update change indicator
2024-03-07 15:11:47 +01:00
bresch
421f13e4b5
ekf2: fix joseph covariance update for Schmidt-Kalman filter
...
If part of the Kalman gain is zeroed, the first step of the joseph
update does not produce a symmetrical matrix.
2024-03-07 15:11:47 +01:00
Silvan Fuhrer
1e253a9626
VTOL: treat Descend mode as Land ( #22843 )
...
* vtol_type: enable pusher assist also in Descend mode
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* vtol_type: treat Descend as Land for pusher assist
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-07 10:22:25 +01:00
cuav-liu1
bb5efa5577
ICP201: increase config delay
2024-03-06 21:20:51 -05:00
Daniel Agar
1c741836c0
sensors/vehicle_imu: sensor update loop limit iterations
2024-03-06 21:19:38 -05:00
Daniel Agar
8b6c70e0f2
sensors/vehicle_angular_velocity: sensor update loop limit iterations
2024-03-06 21:19:38 -05:00
Daniel Agar
1fc38aab92
sensors/vehicle_air_data: sensor update loop limit iterations
2024-03-06 21:19:38 -05:00
Daniel Agar
2bf1eeb003
sensors/vehicle_acceleration: sensor update loop limit iterations
2024-03-06 21:19:38 -05:00
Daniel Agar
87960c04d8
mag_bias_estimator: sensor update loop limit iterations
2024-03-06 21:19:38 -05:00
Daniel Agar
d96970a2b9
sensor/vehicle_magnetometer: sensor update loop limit iterations
...
- place upper bound to prevent looping indefinitely (high publish rate, etc)
2024-03-06 21:19:38 -05:00
Silvan Fuhrer
c5835a48de
FW Position Controller: do not publish roll angle constrain warning in VTOL transition ( #22842 )
...
* FW Position Control: some cosmetical changes
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* FW Position Control: disable roll constraining warning in VTOL transition
In transitions it is expected that the roll is constrained, and
instead of defining an aribitrary threshold let's rather disable
the user warning in that case.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
* FW Pos C: define magic numbers for roll constraining warning as constants
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
---------
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-03-06 15:51:54 +01:00
bresch
6f9a378247
yaw_est: force set gyro bias when at rest
...
The gyro bias estimate from EFK2 is really good when at rest and should
be used by the yaw estimator to prevent heading drifts due to poor
heading observability.
2024-03-05 14:00:06 -05:00
PX4 BuildBot
67e68783cf
Update submodule gz to latest Tue Mar 5 12:39:22 UTC 2024
...
- gz in PX4/Firmware (5f8f0213a807d327a30a7df05e58f7887cf936ab): https://github.com/PX4/PX4-gazebo-models/commit/222833656802532ec2271986a65fd198cfa48259
- gz current upstream: https://github.com/PX4/PX4-gazebo-models/commit/6b4ed09d1b495fbff663f098979cc046df013abd
- Changes: https://github.com/PX4/PX4-gazebo-models/compare/222833656802532ec2271986a65fd198cfa48259...6b4ed09d1b495fbff663f098979cc046df013abd
6b4ed09 2024-02-23 Sergei Grichine - Added IMU sensor noise to the model, to avoid STALE messages (#34 )
953e02b 2024-02-22 frede791 - add imu sensor model noise
2024-03-05 13:59:22 -05:00
Peter van der Perk
d1ae242a91
v6x-rt: fix rover build regression
2024-03-05 10:21:41 -05:00
Peter van der Perk
9cef834624
fmu-v6xrt: update px4board enables vtol
2024-03-05 08:18:44 -05:00
Sihyun Noh
23a41299fa
mag calibration: minor cleanup ( #22830 )
2024-03-05 09:00:08 +01:00
Niklas Hauser
0186d687b2
Add minimal Skynode RC13 config to the PAB manifest
2024-03-04 13:33:20 -05:00
Peter van der Perk
d28653b605
nuttx: update apps
2024-03-04 13:32:36 -05:00
Peter van der Perk
87d79aeb75
netman: generate default config if file doesn't exist
...
ENOENT returns if the file doesn't exist yet, when using mtd /fs/mtd_net always exist.
On a filesystem you've to generate the file so if ENOENT returns we've to regenerate the default config as well.
2024-03-04 13:32:36 -05:00
Matthias Grob
1bd65f8beb
mantis-edu: remove duplicate RC define
2024-03-04 13:30:28 -05:00
Peter van der Perk
e0b49afe81
bmp388: Driver print out start BMP390 identifier when detected
2024-03-04 02:05:37 -05:00
Don Gagne
f02b44bec5
Update to latest sitl gazebo camera
2024-03-03 12:18:02 +13:00
bresch
28db3e1c8c
ekf2: update change indicator
2024-02-27 12:33:43 -05:00
bresch
e9d43015ce
ekf2: fix unit tests failing due to mag fusion changes
2024-02-27 12:33:43 -05:00
bresch
b46fc9a67d
ekf2 sensor_sim: set correct world mag field
2024-02-27 12:33:43 -05:00
bresch
b80f15f7b5
ekf2-mag_auto: always use mag 3D after takeoff
2024-02-27 12:33:43 -05:00
Silvan Fuhrer
086656dc7f
FW Attitude Controller: fix manual yaw rate setpoint limit ( #22812 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-02-27 17:23:13 +01:00
bresch
051baec9c4
ekf2: allow wind dead-reckoning after manual position reset
...
Reset velocity using airspeed and start navigating
2024-02-27 09:34:05 -05:00
Matthias Grob
2491548a0f
Jenkinsfile: correct typo, missing comma
...
Introduced in
2c81c9fdea
2024-02-27 13:32:46 +01:00
DanielePettenuzzo
18f96c16ce
fix gimbal driver for mavlink gimbal v2 input and AUX output
...
The main problem was that during initial negotiation the client would
request the gimbal_manager_information from px4 but px4 would never send
it because in this configuration the device_compid was set to 0.
2024-02-27 09:53:25 +01:00
GuillaumeLaine
63495ddac3
geo: correct unit test
2024-02-27 09:05:39 +01:00
Peter van der Perk
efbbd64ec0
fmu-v6xrt: Increase lpwork stack size
2024-02-26 14:01:56 -05:00
Daniel Agar
8001132d33
ekf2: ZeroGyroUpdate move to fuseDirectStateMeasurement
2024-02-26 12:32:59 -05:00
bresch
08a2a6c836
update EKF2 change indicator
2024-02-26 12:32:59 -05:00
bresch
d501d8e1d4
ekf2: use Joseph stabilized update in direct state observations
2024-02-26 12:32:59 -05:00
bresch
9d9766c6cf
ekf2: use Joseph stabilized covariance update
2024-02-26 12:32:59 -05:00
makekam
d988005216
Update injectxmlparams.py
...
Add extraction of Boolean attributes in injectxmlparams.py.
2024-02-23 11:06:05 -05:00
Silvan Fuhrer
5dfdf8c071
matrix: remove bold printing of diagonal elements
...
As this was not working in NSH.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-02-23 11:05:09 -05:00
Daniel Agar
b2b7439060
ROMFS: respect kconfig for including romfs files (airframes, etc) ( #22571 )
...
* ROMFS: respect kconfig for including romfs files (airframes, etc)
* ROMFS: only add R1 airframe with differential drive control
* ROMFS: adapt to differential drive module renaming
---------
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2024-02-23 15:40:00 +01:00
bresch
37a40d3fc2
baro static pressure compensation tuning: remove dependency to baro bias
...
`estimator_baro_bias` requires to have GNSS and baro hgt active and GNSS as the reference. This is quite restrictive. Instead, we can simply use a high-passed version of the baro error.
2024-02-23 10:07:13 +01:00
Sergei Grichine
b405d75553
Added Zero Turn Lawnmower model ( #22717 )
...
* Added Lawnmower airframe
* Update 5005_gz_lawnmower
Works all right
* Update 5005_gz_lawnmower
RDD_WHL_SPEED has new name: RDD_WHEEL_SPEED
* Update ROMFS/px4fmu_common/init.d-posix/airframes/5005_gz_lawnmower
Co-authored-by: Per Frivik <94360401+PerFrivik@users.noreply.github.com >
* Update ROMFS/px4fmu_common/init.d-posix/airframes/CMakeLists.txt
Co-authored-by: Per Frivik <94360401+PerFrivik@users.noreply.github.com >
* Renamed 5005_gz_lawnmower to 4011_gz_lawnmower
also pulled latest GZ models hash
---------
Co-authored-by: Per Frivik <94360401+PerFrivik@users.noreply.github.com >
2024-02-22 15:30:12 +01:00
Matthias Grob
4e3bd4f196
MAVSDK tests: shorten Position, Altitude control flights
...
We get more than 5 meter away much quicker.
2024-02-22 15:29:13 +01:00
Matthias Grob
0cc4b41a51
MAVSDK test: Fix fly_forward_in_altctl() timing
2024-02-22 15:29:13 +01:00
Matthias Grob
f602228048
MAVSDK test: increase offboard position threshold
...
This is a workaround to hotfix CI but the root cause is #22792
(MAVSDK test failing after EKF change, accelerometer simulation issues not learned anymore?)
2024-02-22 15:29:13 +01:00
PerFrivik
9b122adae4
Fix fly_forward_in_posctl() timing
2024-02-22 15:29:13 +01:00
Eric Katzfey
1ec0ba4736
Added param system command to voxl2 slpi build
2024-02-21 11:54:02 -05:00
Eric Katzfey
8da8b88a54
Fixed and added Qurt platform dsp_hitl driver
2024-02-21 11:54:02 -05:00
Eric Katzfey
be08c57a0a
Changed order of service startup in SLPI DSP muorb since parameter library now needs work queues
2024-02-21 11:54:02 -05:00
Eric Katzfey
a436a8f3b8
Fixed unresolved symbol error for qurt platform due to missing sbus library
2024-02-21 11:54:02 -05:00
Eric Katzfey
5ad0e68d8e
Fix build error for Qurt platform in pab_manifest.c
2024-02-21 11:54:02 -05:00
Eric Katzfey
f07eeaa776
Added special muorb startup ordering in px4_init for posix platform
2024-02-21 11:52:24 -05:00
Daniel Agar
506c60c471
ekf2: declination fusion don't use uninitialized parameter (EKF2_MAG_DECL)
2024-02-21 09:45:44 -05:00
Niklas Hauser
643d3e3bf3
Navigator: Prevent busy-looping if Dataman read/write times out
...
MissionBase did not initialize its mission data, thus could enter an
infinite loop in updateDatamanCache() if the initMission() failed to
read the mission off, for example, due to the SDCard storage task taking
longer than the timeout to respond.
This change constrains the loading loop and resets the mission data even
if the data write failed.
2024-02-21 13:31:43 +01:00
Daniel Agar
8243b4f474
ekf2: move vel/pos reset helpers
2024-02-20 13:16:24 -05:00
Daniel Agar
22b957696d
ekf2: velocity/position fusion helper minor consistency cleanup
2024-02-20 13:16:24 -05:00
Daniel Agar
c338891677
ekf2: split vel_pos_fusion.cpp
2024-02-20 13:16:24 -05:00
Daniel Agar
c4c41c49e5
ekf2: move fuseVelPosHeight() -> fuseDirectStateMeasurement()
...
- don't bother keeping bad_vel_{N,E,D} and bad_pos_{N,E,D} fault status bits
2024-02-20 13:16:24 -05:00
Daniel Agar
021dd0d0af
ekf2: fix EV height bias predict call
...
- needs to be called every iteration
2024-02-20 11:47:53 -05:00
bresch
c221da27a7
ekf2: set attitude validity flag using centralized function
2024-02-20 11:33:30 -05:00
Matthias Grob
51fe4351c6
StickTiltXY: Fix too high maximum tilt problem
...
And add unit tests.
2024-02-20 14:27:49 +01:00
Silvan Fuhrer
8a75733511
Navigator: fix VTOL land waypoint calculation
...
The setpoint.yaw can be NAN, and this made the calculated land point NAN
as well. Looking at the current yaw is anyway a better way to approximate
the course over ground that fundamentally should be used.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-02-19 14:54:28 +01:00
Daniel Agar
1032dd3470
ekf: fix measurementUpdate comment typo
2024-02-19 09:41:49 +01:00
Konrad
424c3cd2cb
FeasibilityChecker: Add new TakeoffLandAvailable option
...
ADd a new misison feasiblity checker option to check if a proper landing approach is defined when in air. There must be at least a mission landing or a VTOL approach defined in order for the mission to be accepted. Else, use the same logic as in MIS_TKO_LAND_REQ=4
2024-02-16 10:27:22 +01:00
Konrad
68100650da
RTL: publish a status message on currently chosen RTL point
2024-02-16 10:27:22 +01: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