Matthias Grob
5c9fac79ae
Vector2: Add function to rotate a 2D vector
2023-03-03 19:03:00 +01:00
Silvan Fuhrer
7edce94b93
v2_default: disable hover thrust estimator to safe flash
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-02 12:22:18 -05:00
Daniel Agar
74130d7f71
ucdr msg template add timestamp protections
...
- if timestamp (or timestamp_sample) unpopulated fill it with current hrt_absolute_time()
- if using provided timestamp don't allow it to exceed current hrt_absolute_time()
2023-03-02 09:52:53 -05:00
Matthias Grob
0770478dc7
FlightTaskDescend: Enable nudging by sticks when it's enabled
...
and stick input is available.
2023-03-02 12:06:40 +01:00
Matthias Grob
728570828f
FlightTaskManualAltitude: use StickTiltXY for horizontal stick mapping
2023-03-02 12:06:40 +01:00
Matthias Grob
21d580293a
StickYaw: use consistently for all flight tasks
...
- Switching to the first order filter that was previously
only in FlightTaskManualAltitude.
- Moving the scaling of full stick deflection to
radians per second into the class.
2023-03-02 12:06:40 +01:00
Matthias Grob
0c1f340154
StickAccelerationXY: improve comments
2023-03-02 12:06:40 +01:00
Matthias Grob
a29d02fd62
MulticopterRateControl: don't instaciate unused parameter
2023-03-02 12:06:40 +01:00
Matthias Grob
da4644c20a
Sticks: only use stick input if flagged valid
...
and add a function for just pitch roll stick input
2023-03-02 12:06:40 +01:00
Matthias Grob
1dada5daf4
Add StickTiltXY utility class to FLightTasks
...
to map stick input to vehicle tilt consistently and reliably across modes.
2023-03-02 12:06:40 +01:00
Silvan Fuhrer
0c4b288973
RTL: only do calculations in is-inactive if global position is recent ( #21208 )
...
* RTL: only do calculations in is-inactive if global position is recent
* RTL: refactor calcRtlTimeEstimate to only calc and not pub
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-02 11:09:32 +01:00
Beniamino Pozzan
458c351585
setup/ubuntu.sh: Only install Gazebo Garden for Ubuntu 22.04 ( #21173 )
...
* Tools/setup/ubuntu.sh: Only install Gazebo Garden on Ubuntu 22.04
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
* Apply suggestions from code review
---------
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
Co-authored-by: Hamish Willee <hamishwillee@gmail.com >
2023-03-02 10:51:29 +11:00
Andrew Brahim
184c7fe79d
drivers/distance_sensor: Lightware Lidar SF45/B rotating sensor serial driver ( #19891 )
...
Signed-off-by: dirksavage88 <dirksavage88@gmail.com >
2023-03-01 16:16:25 -05:00
Daniel Agar
bde194fb12
simulation/gz_bridge: local_position_groundtruth include heading ( #21224 )
2023-03-01 18:44:31 +01:00
Beat Küng
e129534a58
fix ROMFS: add rc.autostart_ext to cmake
2023-03-01 08:53:17 -05:00
Daniel Mesham
fe48de6240
Check position subscriber before force-send flag when sending GPS global origin stream
2023-03-01 08:52:41 -05:00
DanielePettenuzzo
539f874325
mavlink main - enable gps global origin stream also on mavlink low bw mode and change all rates to 1Hz
2023-03-01 08:52:41 -05:00
DanielePettenuzzo
6bf19ebe23
gps global origin stream - make sure we can always send out the message at least once on request
...
When requesting a message from a stream that is not active we start the
stream with interval=0 and call the request method once. For all streams
this works fine except the gps_global_origin. For this one the request method
is actually overidden to throttle down the rate and not just send out the message.
This will cause this message to never being sent on request if the stream
is not active by default.
2023-03-01 08:52:41 -05:00
Silvan Fuhrer
76116d79f9
TECS: remove umcommanded_descent flag
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-01 10:39:09 +01:00
Silvan Fuhrer
527225357b
TECS: remove unused TECS_MODE_CLIMBOUT
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-03-01 10:39:09 +01:00
Tony Samaritano
2b73b6df70
commander: fixes valid mag count in HIL
2023-03-01 08:05:23 +01:00
Junwoo Hwang
d6b523b574
Update README: Maintainers, Boards, Roadmap ( #21030 )
...
* Update README: Maintainers, Boards, Roadmap
- First step after the community coordination call from January 30th
* README: Fromat list & remove discontinued boards & add others
- Addressed comments
* README: Add Simulation, remove QGC
- Only leave the PX4 specific categories (QGC is not)
* Add Beniamino as ROS2 maintainer
* README: Add note that README is main source of truth for maintainers
- We need to have a source of truth, we can use Github README for that.
2023-02-28 19:06:09 +01:00
Marco Räth
bdb0fe77d0
v6x: fix mag orientation for V6X009010 and V6X010010 ( #21194 )
2023-02-28 11:01:16 +01:00
João Neto
58000ff61c
Tools/setup/ubuntu.sh: remove comment from continued line ( #21191 )
...
Comment broke script
2023-02-28 08:12:20 +01:00
Daniel Agar
b5a6d6db0d
ekf2: fix controlEvYawFusion() yaw reset
2023-02-24 16:59:59 -05:00
Daniel Agar
a06a635da3
drivers/inv/vectornav: fix official vectornav library NuttX support
...
- vectornav library (libvnc) fixed for NuttX
- open serial port O_NONBLOCK (like __APPLE__)
- set serial port baud rate with cfsetspeed (like __APPLE__)
- vectornav backend thread increase stack and run at higher priority (SCHED_FIFO)
2023-02-24 16:59:38 -05:00
Silvan Fuhrer
837095b9a8
tecs: use FW_T_SINK_MIN for STE_rate_min ( #21190 )
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-24 15:46:41 +01:00
Roman Bapst
33b54f7c57
vtol_att_control: Consolidate logic for front transiton completion ( #21107 )
...
* vtol_att_control: consolidate logic for front transiton completion
Signed-off-by: RomanBapst <bapstroman@gmail.com >
* addressed review comments
Signed-off-by: RomanBapst <bapstroman@gmail.com >
---------
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-24 15:52:27 +03:00
Silvan Fuhrer
4259b5adac
Commander: copy sensor_gps in HomePosition::update() and store relevant fields in separate variables
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-24 13:32:38 +01:00
Silvan Fuhrer
006321e278
Commander: remove unused param COM_POS_FS_EPV
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-24 13:32:38 +01:00
Silvan Fuhrer
526e066d9a
Commander: rework GPS invalid warning to use estimator feedback instead of separate GPS quality thresholds
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-24 13:32:38 +01:00
Silvan Fuhrer
e6af8b9aa6
Commander: Home Position: move gps checks on when to allow setting home pos inside HomePosition class
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-24 13:32:38 +01:00
Igor Mišić
352f773ec4
systemcmds/mtd: fix rwtest - force data to/from the device
...
Block Device driver uses a buffer so we need to ensure data is written or read to the device and not to the buffer so we can be sure if the device works properly
2023-02-24 08:08:19 +01:00
Dmitry Ponomarev
a1efafc42b
drivers/cyphal: incremental fixes for fmu-v5 ( #20671 )
...
* Cyphal: fix comparing floating-point issue
* Cyphal: fix setpoint serialization
* Cyphal: fix bug with wrong comparasion of param name and pub/sub name: remove prefix from UavcanPublisher::updateParam and UavcanDynamicPortSubscriber::updateParam and PublicationManager::updateDynamicPublications
* Cyphal: integrate UavcanEscController with PublicationManager, remove second instance of UavcanEscController from CyphalNode
* Cyphal: publish readiness with minimal frequency because according to UDRAL The drive shall enter STANDBY state automatically if the readiness subject is not updated for CONTROL_TIMEOUT
* Cyphal: increase setpoint publish rate from ~75 to 200 by removing PX4_INFO (it really significantly react on the the output rate) and changing the mixing output rate and the shedule interval
* Cyphal: restore prefix because we need it for uorb over uavcan/cyphal and add udral prefix for non uorb pub/sub
* Cyphal: fix DynamicPortSubscriber subscription: if it has multiple subscribers, it should call subscription only after updating of all port subscribers port identifiers
* Cyphal: fix SubscriptionManager: we should take care about prefix
* Cyphal: fix readiness for test motor mode
* [Cyphal] Fix dynamicsubscription, improve printinfo, enable MR-CANHUBK3 config
---------
Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com >
2023-02-23 10:57:50 -05:00
Matthias Grob
013365d6c8
ubuntu.sh: source the .profile after changing it
...
such that the arm toolchain is available in that terminal without
relogin for convenience.
2023-02-23 09:58:10 +01:00
Matthias Grob
22030c1b8c
ubuntu.sh: add libfuse2 to general packages
...
to allow running QGroundControl app image out of the box.
2023-02-23 09:58:10 +01:00
Matthias Grob
dabf33759b
ubuntu.sh: only add gazebo source once on 22.04
2023-02-23 09:58:10 +01:00
Hamish Willee
76aac7a5e5
VehicleCommandAck typo on module docs
2023-02-23 08:19:11 +01:00
Hamish Willee
4daa63afc2
Sensors.cpp - case the uorb topics like SensorGyro
2023-02-23 08:18:39 +01:00
Alejandro Hernández Cordero
ea6814d258
Simulation Gazebo: Use Gazebo Airpressure sensor ( #21176 )
...
* Simulation Gazebo: Use Gazebo Airpressure sensor
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
* Fixed build
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
* Added feedback
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
* make linters happy
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
---------
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
2023-02-22 19:32:25 +01:00
Beat Küng
06dfd1726f
microdds_client: fix -l flag and add -c for custom participant configuration
...
Allows to use a custom FastDDS configuration on the Agent side.
2023-02-22 11:15:29 -05:00
Daniel Agar
98263de17b
ekf2: move aux vel helpers to auxvel_fusion.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
a199df78cc
ekf2: move mag control helpers to mag_control.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
c20e4e4421
ekf2: move stopFlowFusion() to optical_flow_control.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
3a317ec18c
ekf2: move gps helpers to gps_control.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
9ec3f30ae1
ekf2: move gps buffer pop to controlGpsFusion()
...
- controlGpsFusion() now owns yaw estimator update
2023-02-22 09:08:33 -05:00
Daniel Agar
a867bb7d88
ekf2: let controlAirDataFusion() update yaw estimator TAS
2023-02-22 09:08:33 -05:00
Daniel Agar
60856ebe62
ekf2: move range buffer pop to controlRangeHeightFusion()
2023-02-22 09:08:33 -05:00
Daniel Agar
08f111f694
ekf2: consolidate airspeed fusion logic and helpers
...
- pass new airspeed sample around when available
- can't completely eliminate _airspeed_sample_delayed until resetWind()
called from sideslip fusion is updated
2023-02-22 09:08:33 -05:00
Daniel Agar
241cee2bb7
ekf2: move airspeed buffer pop to controlAirDataFusion
2023-02-22 09:08:33 -05:00
Daniel Agar
0711a34d0e
ekf2: move flow buffer pop to controlOpticalFlowFusion
2023-02-22 09:08:33 -05:00
Daniel Agar
ed8cef6cf0
ekf2: move controlAuxVelFusion control.cpp -> auxvel_fusion.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
b4e845d7c0
ekf2: move controlDragFusion control.cpp -> drag_fusion.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
c08a387c5a
ekf2: move controlBetaFusion control.cpp -> sideslip_fusion.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
d61b8c21b2
ekf2: move controlAirDataFusion() control.cpp -> airspeed_fusion.cpp
2023-02-22 09:08:33 -05:00
Daniel Agar
d840f7f39f
ekf2: move controlGpsYawFusion() control.cpp -> gps_control.cpp
2023-02-22 09:08:33 -05:00
Hamish Willee
b66e15c4b9
generate_msg_docs.py - fix path to messages
2023-02-22 09:32:05 +01:00
Matthias Grob
f887ad6ebf
mc_att_control: allow commanding a yaw rate with zero throttle
...
Still avoiding to build up absolute yaw error in that case.
2023-02-21 19:33:28 +01:00
Matthias Grob
2b0f7879bc
mc_att_control_main: separate yaw rate setpoint generation from absolute yaw reset
2023-02-21 19:33:28 +01:00
Matthias Grob
ce5cff55b7
mac_att_control: heading lock in stabilized only after ekf final yaw alignment
2023-02-21 19:33:28 +01:00
Silvan Fuhrer
f0571de731
MCAttitudeController: remove reset of yaw_sp when landed
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-21 19:33:28 +01:00
Beat Küng
fe3c1d0a92
logger: do not try to wait for mavlink ack when writing watchdog data
...
As it might block for 2.5s (if mavlink is blocked) and therefore would not
write to file before restoring the priorities.
2023-02-21 11:32:30 -05:00
Beat Küng
66b0f6eb35
log_writer_file: call fsync after reliable transfer
...
ensures watchdog data is flushed immediately
2023-02-21 11:32:30 -05:00
Beat Küng
e4cef9f303
logger: update watchdog
...
- reduce boost priority to PX4_WQ_HP_BASE - 6
- add cli command 'trigger_watchdog' to manually trigger watchdog
- add perf counters when triggering watchdog
- reduce top measurement to 300ms
- restore priorities after 1.5s
There are precautions in case the SD card code itself has a busy-loop.
2023-02-21 11:32:30 -05:00
Beat Küng
015ba62727
log_writer_file: do not call close() with mutex held
...
Generally not an issue, but if close() takes long, or even busy-loops due
to an underlying bug in the OS, it will block the main thread too.
2023-02-21 11:32:30 -05:00
Jaeyoung Lim
5676cc32bc
Optionally enable sensor simulations
2023-02-21 11:16:25 -05:00
Leonardo Garcia
3bdb42b6a7
mro/pixracerpro: add missing px4_platform_configure() call ( #21158 )
2023-02-21 09:30:39 +01:00
MAD-CRAZY-MAN
3ab34fe5b1
ci: build thepeach FCC-K1 & FCC-R1
2023-02-20 21:56:08 -05:00
Silvan Fuhrer
94be17af8f
FWPositionControllre: only check acceptance radius to swich to loiter to reach WP alt
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 21:55:27 -05:00
Julian Oes
9ec6a4b1d7
icm42688p: fix comment about gyro and accel bits
...
This really confused me.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-20 21:47:11 -05:00
Silvan Fuhrer
2008a447c3
FW PositionController: circular landing: publish orbit status
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
485785d81d
FW PositionController: circular landing: enable automatic landing aborts
...
Enable automatic landing abort on timed out distance sensor reading also for
the circular landing. Do not enable the no-terrain timeout check, as, opposed
to the straight landing, we here don't know when to expect the distance sensor
to get valid.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
37b6dccda9
Land: use MIS_LND_ABRT_ALT also in non-mission Land
...
As we don't know the landing point altitude in non-mission landings, assume
the worst case (abort right before touchdown) and thus always climb
MIS_LND_ABRT_ALT on triggering an abort.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
c47210fc77
FWPositionController: add support for circular landings
...
Add method for circular landing, that is used instead of the straight fixed-wing
landings in case the landing is not part of a mission landing.
Use straight landing if previous WP is valid, and the ciruclar otherwise.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
50d75c537e
FWPositionController: auto_landing(): move non-position handling to top
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
b94ed34406
FW Position Control: initializeAutoLanding(): pass only alt value of pos_sp_curr
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
805de8a6d9
Navigator: set position setpoint to current location instead of to NAN
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
Silvan Fuhrer
eaa4180920
Navigator: remove ununsed argument from set_land_item()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 17:04:39 +01:00
David Sidrane
1fb6b003fc
NuttX with backport ioexpander/gpio:Add gpio_pin_register_byname
2023-02-20 04:14:01 -08:00
Silvan Fuhrer
167e58abba
AirspeedSelector: remove unused variable
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 11:35:24 +01:00
Silvan Fuhrer
1acb07c600
Navigator: set _land_start_index to first item with a position after the marker
...
_land_start_index is used to to start the mission from this item index, and to
avoid to publish a triplet.current.type=IDLE, we need to fill it with the actual
position setpoint that the vehicle should go to at the start of a mission landing.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-20 06:50:53 +01:00
bresch
fafcdbf4ed
tests: empty parentheses were disambiguated as a function declaration
2023-02-17 21:10:44 -05:00
bresch
8ebf47edb1
ekf2: stop mag fusion when there is no data anymore
2023-02-17 08:51:55 -05:00
Silvan Fuhrer
deabe9a38d
Navigator: accept yaw immedietaly if the flag heading_good_for_control is not set
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-17 13:34:30 +01:00
David Sidrane
d291207b9f
NuttX with mmcsd backports to prevent system hang on error
2023-02-17 10:16:15 +01:00
RomanBapst
b00efcd966
cleanup
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
7ef2bff0a2
FeasibilityChecker: Fixed bug and added unit test for it
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
2e50277695
improved function naming
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
8ecb550331
cleanup
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
00b1968a5c
more clang tidy stuff
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
b8d0a8821a
fixed clang tidy
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
c09263d53c
use correct type
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
11fd3ef71a
use legacy parameter system and cleaned up vehicle type
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
741fbb931d
fixed land requirement for VTOL
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
6e07af959f
fixed bug in Matrix library
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
925ad97ff3
added unit tests
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
11143def82
tried to add functional unit test
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
RomanBapst
ceb8f6e1d5
started with feasibility checks
...
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2023-02-16 11:28:41 +01:00
Christian Rauch
d6bb19e11b
drivers/linux_pwm_out: link mixer_module
2023-02-15 16:04:31 -05:00
Jaeyoung Lim
0e1e1afcf9
Correct dates in the license headers
2023-02-15 01:37:32 +09:00
Jaeyoung Lim
0b3f4dd385
Inject failure for airspeed sim
2023-02-15 01:37:32 +09:00
Jaeyoung Lim
3f50bd051f
Optionally enable airspeed sensor sim
...
Enable and disable sensor sim module with parameter
2023-02-15 01:37:32 +09:00
PX4 BuildBot
192764387d
Update submodule mavlink to latest Tue Feb 14 12:38:55 UTC 2023
...
- mavlink in PX4/Firmware (e7a5dedf48f967465d1f9e6c96a9bf304e1a74b1): https://github.com/mavlink/mavlink/commit/e3b8756e37cd2cd01ba658461bb4dbffb2fdf914
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/2bdcab78b53d1e349079b43c9d726036abe0617c
- Changes: https://github.com/mavlink/mavlink/compare/e3b8756e37cd2cd01ba658461bb4dbffb2fdf914...2bdcab78b53d1e349079b43c9d726036abe0617c
2bdcab78 2023-02-09 Hamish Willee - undo last commit
9c60f17a 2023-02-09 Hamish Willee - param_id char[] description
841b7683 2023-02-08 Alessandro Ros - remove invalid enum reference from storm32.xml (#1947 )
8d4e50ee 2023-02-08 Julian Oes - scripts: install npm dependencies first
72a9b2c3 2023-02-08 Julian Oes - pymavlink: update submodule
2023-02-14 09:53:11 -05:00
Knut Hjorth
db539d15bd
mavlink: fix bug when opening /dev/null as default stdin/stdout/stderr
...
Prior commit added opening of /dev/null as 0, 1 and/or 2 file
descriptors, if they where not present. However, if the temporary
file descriptor used to open /dev/null matched the target file
descriptor, it would be immediately closed again. This commit fixes that,
and does not duplicate and close the temporary file descriptor if it is
already at the correct number.
2023-02-14 08:18:01 +01:00
Christian Rauch
5880fe4153
remove deprecated check for CONFIG_STM32_STM32F4XXX in STM32F1 micro_hal.h
2023-02-14 08:08:24 +01:00
Daniel Agar
b3eb563db4
boards: cubepilot_cubeorange_test restore sd_bench (used on test rack)
2023-02-13 23:53:54 -05:00
Julian Oes
5803f692b9
boards: update CubePilot+ test defconfig
...
This is tracking upstream changes and making it build.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-13 22:36:22 -05:00
Julian Oes
01a9563955
cubeorangeplus: remove some modules to save flash
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-13 22:36:22 -05:00
Julian Oes
9d8fa38793
cubeorange: remove some modules to save flash
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-13 22:36:22 -05:00
Julian Oes
69cb1da3cc
workflows: add CubeOrange+ to CI build
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-13 22:36:22 -05:00
alexklimaj
e5a957ae63
boards: arkv6x add pulldowns to GPIO pins UART7 RTS and UART7 CTS
2023-02-13 22:35:23 -05:00
Daniel Agar
2ea25804a1
ekf2: allow filter init with only IMU ( #21041 )
...
- if mag enabled heading init is now pushed to controlMagFusion()
2023-02-13 22:07:15 -05:00
Julian Oes
d69d99b191
kakuteh7v2/mini: switch on VTX+
...
This just always switches the VTX+ power on.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-02-13 22:00:49 -05:00
Alex Klimaj
3ed1c688bf
drivers: icm42688p and iim42652 enable notch and AAF
2023-02-13 21:08:37 -05:00
Daniel Agar
a18e07e525
drivers/imu/bosch/bmi088: add more time between configure and FIFO_READ
...
- new FIFO_RESET state used to give the sensor more time after successful configuration before sampling begins
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com >
2023-02-13 21:01:50 -05:00
Daniel Agar
1134d5338f
boards: sky-drones_smartap-airlink_default disable modules to save flash
2023-02-13 20:58:17 -05:00
Daniel Agar
4d95150e18
boards: px4_fmu-v4pro_test disable gyro_fft to save flash
2023-02-13 20:56:19 -05:00
Daniel Agar
299cb32aa8
boards: nxp_fmuk66-v3_test disable gyro_fft to save flash
2023-02-13 20:55:06 -05:00
Daniel Agar
bc5f4f8377
boards: mro ctrl-zero-h7 and pixracer disable modules to save flash
2023-02-13 20:53:52 -05:00
Daniel Agar
70a7edbcd0
boards: cubepilot_cubeorange_default disable SIH simulator to save flash
2023-02-13 20:47:26 -05:00
Daniel Agar
b14e0c21b6
boards: px4_fmu-v2_default disable sensors/vehicle_airspeed and sensors/vehicle_optical_flow to save flash
2023-02-13 20:45:28 -05:00
Beniamino Pozzan
ea91dbb0f5
gazebo-classic_iris_vision: fix airframe include and default parameters
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-02-14 03:26:56 +09:00
Jaeyoung Lim
3efc42cb14
Add standard vtol model
...
Add standard vtol model sdf
2023-02-13 13:00:39 -05:00
Jaeyoung Lim
65c287781f
Set prearm mode
2023-02-13 13:00:39 -05:00
Jaeyoung Lim
df4083265f
Add standard vtol airframe configs
2023-02-13 13:00:39 -05:00
Jaeyoung Lim
d5ddb44241
Add sensor airspeed sim
...
This commit adds the airspeed sensor sim to simulate airspeed sensors
2023-02-13 13:00:39 -05:00
Matthias Grob
6f4d903f45
Battery: address two comments from #2242
...
- use a constant instead of magic number
- fix code comment typo
2023-02-13 13:27:08 +01:00
Hamish Willee
edb6c635d5
EKF2_MAG_TYPE - fix typos ( #20808 )
2023-02-10 14:39:57 +01:00
Konrad
b9f9f25b48
parameter_translation: Add parameter translation for renamed L1 parameters
2023-02-09 17:51:55 +01:00
Konrad
92277ebb96
FixedwingPositionControl: Explicitly set wind to zero when it is not valid.
2023-02-09 17:51:55 +01:00
Konrad
de4b139540
FwPosControl: Update behavior of navigating to a waypoint when the previous waypoint is not valid. Go along the line of the current aircraft position to the desired waypoint.
2023-02-09 17:51:55 +01:00
Konrad
d5025810b4
FixedWingPositionControl: remove get_nav_speed_2d function as npfg can handle this internally.
2023-02-09 17:51:55 +01:00
Konrad
6bdeb43e0d
fw_path_navigation: Remove explicit L1 mentioning.
2023-02-09 17:51:55 +01:00
Konrad
3e200bca0d
fw_pos_control_l1: renaming to fw_path_navigation, l1 control is not used anymore, use a more generic naming.
2023-02-09 17:51:55 +01:00
Konrad
aa3af7f707
fw_pos_control: purge L1 controller
2023-02-09 17:51:55 +01:00
Knut Hjorth
fbc80c9bf5
RTL fixes and improvements for VTOL vehicles ( #21011 )
...
* rtl: remove unconditional transition to land after descent
This was a bug, as it renders the above code lines useless.
This would cause a undesired FW landing for VTOL vehicles if
RTL_LAND_DELAY is above 0.
* rtl: head to center after loiter in VTOL FW
To get the same behavior for RTL with and without loiter before land for
VTOL drones.
* rtl: always go to descend state after return
Previously, the state would change directly to land if in MR and
RTL_LAND_DELAY was 0.0, but we will still wish to descent to
RTL_DESCEND_ALT at descent speed, instead of using landing speeds.
* rtl: mark head to center state as part of vtol transition
The next step in the sequence is transition to MC. By setting
vtol_back_transition we ensure that the acceptance radius is adapted to
the expected transition distance.
2023-02-08 11:07:39 +01:00
Knut Hjorth
99cf1cfdfe
mavlink: use /dev/null as default stdin, stdout and stderr
...
If 0, 1 and/or 2 file descriptors are not open when mavlink module
starts (as might be the case for USB auto-start), use default /dev/null
so that these numbers are not used by other other files.
2023-02-08 10:38:20 +01:00
Knut Hjorth
6c7ae3d845
mavlink: generate new log list for request start index 0
...
Instead of interpret a request for "more logs than currently exists" as
a new request, use a request for index 0, which is more likely to be
the first request.
2023-02-08 10:38:20 +01:00
KonradRudin
c5d041a2f7
Rearrange npfg use path input ( #21071 )
...
* [npfg]: Remove the guideToPoint function and replace with guideToPath
* [npfg]: remove unused navigateXXX functions
* [npfg]: Move navigateXXX Function into FWPoscontrol
* [FixedwingPositionControl]: Set default flaps and spoilers in attitude setpoint topic, and only change if necessary.
2023-02-08 08:54:00 +01:00
jonasbouchraiet
9ac27c9413
Update rtl_params.c
2023-02-07 22:37:19 -05:00
Beat Küng
83c8c79af5
commander failsafe: add API to defer failsafes
2023-02-07 19:27:51 -05:00
Beat Küng
a727bddc19
microdds_client: set queue depth for incoming topics according to msg definition
...
Otherwise the FMU might miss publications from 2 different publishers at
the same time.
2023-02-07 19:12:10 -05:00
Beat Küng
3f2336af32
navigator: add ModeCompleted signalling topic
2023-02-07 19:11:52 -05:00
Beat Küng
f05e8a699e
ROMFS: enable COM_LOW_BAT_ACT by default for SITL
2023-02-07 19:11:29 -05:00
Beat Küng
ebc1d7544e
battery_simulator: add support for failure injection
...
For failsafe triggering in automated tests
2023-02-07 19:11:08 -05:00
Eric Katzfey
ddd1527305
Qurt PX4_INFO_RAW send to apps for display ( #21080 )
2023-02-07 17:22:09 -05:00
Eric Katzfey
db24c2b233
Qshell static subscription ( #21081 )
...
* Changed QShell uorb subscription to be static to avoid the duplicate sequence number error
2023-02-07 17:18:01 -05:00
Daniel Agar
7b3befded5
ekf2: disable new gravity fusion by default
2023-02-07 13:57:10 -05:00
Daniel Sahu
fa6fda6cce
ekf2: new gravity observation ( #21038 )
...
Signed-off-by: Daniel M. Sahu <danielmohansahu@gmail.com >
2023-02-07 13:28:58 -05:00
alessandro
3e149ee6c5
FlightTaskAuto: landing position updates for precision landing ( #20951 )
...
- precision landing works incorrectly, target position is not updated during the descent above target
- _prepareLandSetpoints needs to update _land_position continuously
Co-authored-by: kapacheuski <kapacheuski@gmail.com >
2023-02-07 12:07:26 -05:00
Jukka Laitinen
deb6053d56
Update status leds every time when prearm check status changes
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-02-07 08:02:32 +01:00
Christian Rauch
ef5761c223
add SPI to stm32f1
2023-02-07 07:54:38 +01:00
Christian Rauch
2f21c590b0
remove some vscode settings
2023-02-06 17:25:36 -05:00
JaeyoungLim
01c5b3934e
Tune GZ plane (rc_cessna) to fly nicely ( #21077 )
...
* Increase control surface joint controller gains
* Enable prearm mode and disable airpspeed checks for gz plane
2023-02-06 16:24:01 -05:00
Daniel Agar
661eb2adb4
lib/sensor_calibration: BiasCorrectedSensorOffset() don't incorporate thermal offsets
...
- the thermal offsets are an optional correction applied to the raw data, so when updating an existing calibration offset with new learned bias we don't want this incorporated
2023-02-06 15:09:07 -05:00
Silvan Fuhrer
e153d1defc
ROMFS: fix PY asymmetry (motor 1 was wrongly placed twice as far from the CG as 0)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-04 16:08:40 +01:00
Daniel Agar
04d3e549f5
ekf2: resetQuatStateYaw() set _time_last_heading_fuse
2023-02-03 10:03:09 -05:00
Daniel Agar
66ad7fd06c
ekf2: include 0 timestamp checks in helpers (isTimedOut(), isRecent(), etc)
...
- EKF isTimedOut(), isRecent(), and isNewestSampleRecent() need to handle the case where the timestamp has never been set
- reset() more thoroughly reset fields (mainly impacts unit tests)
2023-02-03 10:00:51 -05:00
Daniel Agar
264a99fb77
ekf2: new EKF2_IMU_CTRL parameter and gyro bias inhibit mechanism
...
- EKF2_AID_MASK accel bias inhibit moves to EKF2_IMU_CTRL
2023-02-03 09:52:24 -05:00
Daniel Agar
f668ea5aa6
ekf2: RingBuffer add reset method
2023-02-03 08:49:44 -05:00
Daniel Agar
e3d73cd837
ekf2: mag control reset mag_lpf on first sample
2023-02-02 16:12:09 -05:00
Michał Barciś
c2f13dbccf
setup/ubuntu.sh modified to correctly install all required dependencies for gazebo
...
Signed-off-by: Michał Barciś <michal.barcis@tii.ae >
2023-02-02 10:02:47 -05:00
ShiauweiZhao
35080504f7
drivers/drv_sensor.h fix device type duplicate definition
2023-02-02 09:54:47 -05:00
Vincent Poon
a90bae9e50
ci: build and deploy kakuteh7v2 & Kakuteh7mini
...
Adds Holybro kakuteh7v2 & Kakuteh7mini to Travis CI for building and deployment to S3 for QGC
2023-02-02 09:51:53 -05:00
Hamish Willee
2938db1c60
Apply suggestions from code review
2023-02-02 15:20:34 +01:00
Hamish Willee
7cea384404
Update src/modules/fw_autotune_attitude_control/fw_autotune_attitude_control_params.c
2023-02-02 15:20:34 +01:00
Hamish Willee
d65e5969e1
FW_AT_MAN_AUX - define what an Aux input is
2023-02-02 15:20:34 +01:00
Silvan Fuhrer
ba1d02ee75
MPC: improve description of MPC_LAND_RC_HELP
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-02 14:31:22 +01:00
小光
849fbabc47
px4_mtd: the address of 'instances' will never be NULL ( #21039 )
...
Signed-off-by: AuroraRAS <chplee@gmail.com >
2023-02-02 08:06:00 +01:00
Silvan Fuhrer
d9a4d1d5c4
Commander: use FW_AIRSPD_MAX as threshold for airspeed preflight checks
...
Check fails if airspeed reading is above FW_AIRSPD_MAX.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 20:43:38 -05:00
Robbie Drage
cb4235887f
vscode: change cubeorange build target
...
- Fixes typo in Cube Orange build target config
Fixes issue #17745
2023-02-01 18:17:45 -05:00
Silvan Fuhrer
32cab66c44
Commander: hide hint to param in low position accuracy event for end users
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 16:47:11 +01:00
Silvan Fuhrer
9b3a28dff5
Commander: add local_position_accuracy_low flag, incl. warning and RTL
...
Set this flag to true if local position is valid but accuracy low, such that
the operator can be warned before system switches to position-failure failsafe.
Additionally, switch to RTL if currently in Mission or Loiter to try to reach home
or fly out of GNSS-denied area.
Set low accuracy threshold to 50m by default for FW and VTOL.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 16:47:11 +01:00
Silvan Fuhrer
3ca126cc46
Commander: improve description of COM_FS EPH, EPV, VEL_EVH params and increase FW and VTOL defaults
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 16:47:11 +01:00
Silvan Fuhrer
cbc4c35bcf
Commander params: improve meta data for max flight time and wind
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 08:48:09 +01:00
Silvan Fuhrer
6d84da5cf1
Commander: add max flight time warning (starting at 90%)
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-02-01 08:48:09 +01:00
Beat Küng
b1709743f7
commander: add wind or flight time limit exceeded mode requirement
...
This prevents switching into any of these modes once the condition is set.
2023-02-01 08:48:09 +01:00
Beat Küng
a8628c9d9c
fix commander: clear takeoff_time only on disarm
...
Otherwise the flight time restriction flag gets cleared too early, before
disarming (which puts the vehicle into the previous mode and it might
take off again).
2023-02-01 08:48:09 +01:00
Beat Küng
8e4c5884ec
fix commander: need to check for valid mode change even if already the same
...
Fixes the following case:
- user intention set to X
- failsafe triggers, mode = Y
- can_run for X becomes false
- user tries to switch to X
-> need to re-evaluate can_run
2023-02-01 08:48:09 +01:00
Beat Küng
7988491e37
failsafe simulator: improve spacing for multi-line checkboxes
...
Reduces line-height to 100% in that case.
2023-02-01 08:48:09 +01:00
ShiauweiZhao
931f602995
drivers/imu/invensense: new IAM-20680HP IMU driver ( #21025 )
2023-01-31 09:33:26 -05:00
Daniel Agar
2be701f902
platforms/nuttx: cmake debug pass GDB path and set RTOS plugin file extension
2023-01-30 20:19:38 -05:00
Eric Katzfey
a4aa76f0ac
VOXL2 board updates and new Kconfig option for ROOTFSDIR
...
- also includes a couple of miscellaneous changes to VOXL2 support to show Qurt messages on px4 console and put logs in the proper spot
2023-01-30 12:03:40 -05:00
Julian Oes
b1fc0ca0d0
mavlink: always forward messages to/from USB
...
Previously, it was not possible to enable forwarding of messages to/from
teh USB instance because it does not have a param for it, like the
serial instances have.
With this commit, we change the default to always set forwarding on for
the USB instance as that is likely desired.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-30 10:46:14 -05:00
Julian Oes
0446292c75
mavlink: always use public method
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-30 10:46:14 -05:00
Julian Oes
7b8cf4913e
mavlink: show forwarding status
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-30 10:46:14 -05:00
Daniel Agar
47215bb625
lib/wind_estimator: symforce codegen remove reserved identifier naming
...
- from the C standard, "All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use"
2023-01-30 09:24:32 -05:00
Daniel Agar
efe1d43550
ekf2: symforce codegen remove reserved identifier naming
...
- from the C standard, "All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use"
2023-01-30 09:24:32 -05:00
Beat Küng
0687fd2689
lockstep_scheduler: avoid pthread_cond_destroy on at_exit
...
The static object is destroyed on at_exit while threads might still be
inside a CS. This can lead to a hanging process.
Cleaner would be to gracefully stop the threads.
According to https://linux.die.net/man/3/pthread_cond_destroy :
Attempting to destroy a condition variable upon which other threads are
currently blocked results in undefined behavior.
2023-01-30 11:45:02 +01:00
Hamish Willee
f25abbc80a
Fix magnetometer typo
2023-01-30 10:24:16 +01:00
Daniel Agar
8da993c30e
Update world_magnetic_model to latest Sat Jan 28 11:14:05 UTC 2023
...
Co-authored-by: PX4 BuildBot <bot@px4.io >
2023-01-28 11:41:03 -05:00
PX4 BuildBot
88038717dc
update all px4board kconfig
2023-01-28 11:39:51 -05:00
Roman Bapst
4646762f9d
Use multiplication instead of division
2023-01-28 10:31:17 -05:00
Silvan Fuhrer
0c735dea2e
AirspeedSelector: use scientific notation for small param
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-28 10:31:17 -05:00
Silvan Fuhrer
d32f400851
WindEstimator: use isAllFinite()
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-28 10:31:17 -05:00
Silvan Fuhrer
a6d14796e4
WindEstimator: add consts, fix float comparison to 0 and use consistently floats in division
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-28 10:31:17 -05:00
Silvan Fuhrer
15335b194a
WindEstimator: use state indexing enum consistently
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-28 10:31:17 -05:00
PX4 BuildBot
21ddb04856
Update submodule mavlink to latest Sat Jan 28 00:39:00 UTC 2023
...
- mavlink in PX4/Firmware (fa65292bb7542cb1f2a4cdaac10738fa17777a6d): https://github.com/mavlink/mavlink/commit/74dee05f0cd121ae27e021d011a04b161c9d0440
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/e3b8756e37cd2cd01ba658461bb4dbffb2fdf914
- Changes: https://github.com/mavlink/mavlink/compare/74dee05f0cd121ae27e021d011a04b161c9d0440...e3b8756e37cd2cd01ba658461bb4dbffb2fdf914
e3b8756e 2023-01-25 olliw42 - update storm32.xml (#1941 )
2023-01-27 21:14:07 -05:00
Silvan Fuhrer
48f2b42e12
FWPositionController: remove factor of 2 for switching to LOITER if altitude is not reached
...
Instead check if system has previously switched into LOITER to acheive the current
WP of type POSITION, and in that case stay in LOITER until altitude is reached.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-27 16:51:30 +03:00
Eric Katzfey
e862fde084
ver: use PX4_INFO_RAW and add vendor version ( #21008 )
2023-01-27 07:13:37 +01:00
Silvan Fuhrer
d53d200aa5
Update msg/TecsStatus.msg
...
Co-authored-by: KonradRudin <98741601+KonradRudin@users.noreply.github.com >
2023-01-26 17:04:43 +01:00
Silvan Fuhrer
88ec117e59
TECS: rename tecs_status.altitude_filtered to altitude_sp_ref
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-26 17:04:43 +01:00
Silvan Fuhrer
06f4195663
PositionControllerStatus.msg: add comments
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-26 17:04:43 +01:00
Silvan Fuhrer
fc1c5da92c
tecs_status.msg: add comments to states
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-26 17:04:43 +01:00
Silvan Fuhrer
5099a91f87
TECS: keep _pitch_integ_state in radians
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-26 17:04:43 +01:00
Silvan Fuhrer
e16f98c2b6
FW Position controller: remove unused climbout arguments
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-26 17:04:43 +01:00
Eric Katzfey
aae431e4d5
Removed unused variables in LED driver that were causing fatal build errors on Qurt platform ( #21007 )
2023-01-25 16:35:56 -08:00
PX4 BuildBot
d6d41af9a4
Update submodule nuttx to latest Wed Jan 25 12:38:18 UTC 2023
...
- nuttx in PX4/Firmware (d3b7112dd9 ): https://github.com/PX4/NuttX/commit/f80785664fcd99e36835dcb7e9b9b97cd5e9cf8d
- nuttx current upstream: https://github.com/PX4/NuttX/commit/35997053c5f61039e542c01440feb10baba5049d
- Changes: https://github.com/PX4/NuttX/compare/f80785664fcd99e36835dcb7e9b9b97cd5e9cf8d...35997053c5f61039e542c01440feb10baba5049d
35997053c5 2023-01-23 David Sidrane - [BACKPORT] s32k1xx:serial Do not use TC use TDRE & TIE
2023-01-25 14:48:22 -05:00
PX4 BuildBot
cc5509381a
boards: update all NuttX defconfigs
2023-01-25 14:47:48 -05:00
PX4 BuildBot
03f681ebf8
update all px4board kconfig
2023-01-25 12:57:17 -05:00
Silvan Fuhrer
a210c96aa9
Commander: ssimplify error messages for LOITER rejection
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-25 16:40:27 +01:00
Silvan Fuhrer
148ffe4e25
add support for DO_CHANGE_ALTITUDE
...
Do the same as DO_REPOSITION wit only the altitude field populated
and MAV_DO_REPOSITION_FLAGS set, which means:
- switch to Loiter mode if not already in it
- set the current altitude to what is specified in the altitdue field,
keep current altitude setpoint otherwise
- keep current position setpoint
- fall back to current estimated position in case a position setpoint
is not finite
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-25 16:40:27 +01:00
Daniel Agar
0bdec5bcc0
cmake: nuttx fix jlink-nuttx dependency
2023-01-25 09:06:35 -05:00
KonradRudin
d3b7112dd9
[TECS]: If in airspeedless mode, add the throttle integrator term to the throttle setpoint, if the integrator term is positive. This should avoid reducing airspeed when switching to airspeedless mode. ( #20987 )
2023-01-25 09:16:11 +01:00
modaltb
20b7a8c9f6
drivers/actuators/modalai_esc --> modal_io and rename UART_ESC prefix to MODAL_IO ( #20995 )
2023-01-24 20:24:58 -05:00
Benjamin Perseghetti
60de5b3ea4
simulation/gz_bridge: remove proceeding px4_ from servos in gazebo model ( #20998 )
...
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com >
2023-01-24 19:56:11 -05:00
Benjamin Perseghetti
684b4a4b8a
simulation/gz_bridge: rc_cessna plane model working, Gazebo Garden updates, and prepare for proper airspeed ( #20989 )
...
Co-authored-by: Benjamin Perseghetti <bperseghetti@rudislabs.com >
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
2023-01-24 19:01:45 -05:00
modaltb
fbd2e111d0
boards/modalai/fc-v1: revert DMA changes on FCv1 for now (from #20956 )
2023-01-24 14:50:05 -05:00
alexklimaj
0776c47d88
Enable ARK CANnode pwm outputs 7 and 8
2023-01-24 14:49:21 -05:00
alexklimaj
ac7dc030c3
Add ARK CANnode ver command
2023-01-24 14:49:21 -05:00
Daniel Agar
64c2ec5eea
simulation/gz_bridge: remove cmake CONFIGURE_DEPENDS
...
- PX4 build system simulation targets are optional and no longer
strictly required
2023-01-24 13:58:30 -05:00
Daniel Agar
9cb6de8010
simulation: relax jmavsim java requirements (finding vecmath.jar)
2023-01-24 13:56:24 -05:00
Daniel Agar
3b543c7700
mavlink: serialize mavlink generation to prevent broken output
...
- let uAvionix generation fully complete before generating CONFIG_MAVLINK_DIALECT
2023-01-24 13:49:28 -05:00
JaeyoungLim
644aeb9153
support fixed-wing in new Gazebo (gz or ignition gazebo) ( #20939 )
...
* Add gz plane airframe config
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com >
Co-authored-by: Benjamin Perseghetti <bperseghetti@rudislabs.com >
2023-01-24 09:22:53 -05:00
Jiangxuan Chen
c31867f104
support for KakuteH7v2, KakuteH7mini, and BMI270 IMU driver ( #20545 )
...
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-22 19:41:39 -05:00
Daniel Agar
7c9dcd1985
drivers/uavcan: silence noisy libuavcan cmake version deprecation warning for now
...
- keep drivers/uavcannode cmake in sync with drivers/uavcan
2023-01-22 14:48:43 -05:00
Daniel Agar
1b46028fd3
mavlink: generate mavlink quiet by default (stdout redirected to log file)
2023-01-22 14:45:41 -05:00
bresch
6e30f8f5cb
ekf2: use dedicated aid_src message for flow for terrain aiding
2023-01-21 15:31:19 -05:00
bresch
b4b48cae75
ekf2: terrain flow - migrate to Symforce
2023-01-21 15:31:19 -05:00
Daniel Agar
3f842f01a0
simulator/gz_bridge: split actuator outputs for ESCs and servos ( #20979 )
...
- existing SIM_GZ outputs -> SIM_GZ_EC (ESCs)
- new SIM_GZ_SV for servos (not fully implemented)
2023-01-21 14:44:09 -05:00
berkercanatar
9ac6b3d3c5
Update current year in LICENSE
...
Update year to match with the current year 2023 in LICENSE file.
2023-01-21 12:57:27 -05:00
modaltb
c0e8508b01
actuators/modalai_esc/modalai_esc: fix ESC ID to Motor remap regression ( #20977 )
2023-01-21 12:57:02 -05:00
Daniel Agar
a93ef657d1
HIL/test_airframes.sh allow 'gps' and 'mavlink' status to fail
...
- we're only looking for debug info if/when things go wrong later
2023-01-21 11:38:39 -05:00
Daniel Agar
fb000e874f
boards: px4_fmu-v5_debug quiet RTC debug errors
...
- test rack CUAV v5 plus is producing false positives (in this particular situation) that are failing the overall testing
2023-01-21 11:14:28 -05:00
Daniel Agar
6b13fb8b86
HIL/test_airframes.sh check mavlink and gps status before stopping all
...
- occasionally these fail on the test rack (cube orange), so try to
gather more information
2023-01-21 11:06:23 -05:00
FriedrichTuttas
1830195d30
boards: px4_fmu-v6x add pulldowns to GPIO pins UART7 RTS and UART7 CTS ( #20974 )
...
- https://github.com/PX4/PX4-Autopilot/issues/20762
Co-authored-by: David Sidrane <David.Sidrane@Nscdg.com >
2023-01-21 10:19:57 -05:00
Daniel Agar
1aa8ec4537
drivers: initial VectorNav (VN-100, VN-200, VN-300) support
2023-01-20 19:09:30 -05:00
Daniel Agar
bd9d09663f
commander: avoid uint64 timestamp implicit float conversions
...
- 64 bit time in microseconds stored in a 32 bit float quickly becomes problematic
- fixes https://github.com/PX4/PX4-Autopilot/issues/20944
2023-01-19 17:48:40 -05:00
Daniel Agar
3822ef1519
boards: update all in tree bootloaders
2023-01-19 17:25:39 -05:00
PX4 BuildBot
c4127813b3
Update submodule sitl_gazebo-classic to latest Thu Jan 19 12:38:59 UTC 2023
...
- sitl_gazebo-classic in PX4/Firmware (f3cdf70732 ): https://github.com/PX4/PX4-SITL_gazebo-classic/commit/1a725dd858a3a7c15e79e8e40aa91f4fad9128e5
- sitl_gazebo-classic current upstream: https://github.com/PX4/PX4-SITL_gazebo-classic/commit/9343aaf4e275db48fce02dd25c5bd8273c2d583a
- Changes: https://github.com/PX4/PX4-SITL_gazebo-classic/compare/1a725dd858a3a7c15e79e8e40aa91f4fad9128e5...9343aaf4e275db48fce02dd25c5bd8273c2d583a
9343aaf 2023-01-15 JaeyoungLim - Fix model prefix for user camera plugin (#948 )
e5836d3 2023-01-13 Simone - Added robot namespace to the model (#941 )
2023-01-19 12:33:53 -05:00
PX4 BuildBot
d2240c0c48
Update submodule nuttx to latest Thu Jan 19 12:39:05 UTC 2023
...
- nuttx in PX4/Firmware (0e2eed62f9a9b44cefc9765fd21aac1a368e4314): https://github.com/PX4/NuttX/commit/d43edd7879fb398de9abcc9d58e8a65c9ed254db
- nuttx current upstream: https://github.com/PX4/NuttX/commit/f80785664fcd99e36835dcb7e9b9b97cd5e9cf8d
- Changes: https://github.com/PX4/NuttX/compare/d43edd7879fb398de9abcc9d58e8a65c9ed254db...f80785664fcd99e36835dcb7e9b9b97cd5e9cf8d
f80785664f 2023-01-16 Julian Oes - [FIX] Add missing define condition
1751c2c7cb 2023-01-16 Julian Oes - [BACKPORT] stm32h7: add SMPS PWR option for STM32H7X7
2023-01-19 12:33:27 -05:00
PX4 BuildBot
8d6a336b2c
boards: update all NuttX defconfigs
2023-01-19 12:32:57 -05:00
PX4 BuildBot
898dbb96b4
update all px4board kconfig
2023-01-19 12:32:09 -05:00
Silvan Fuhrer
f3cdf70732
VTOL: Quad-chute: rework loss of altitude condition
...
Previously the condition was based on hard coded height rate estimate and
setpoint values and an altitude error threshold. That showed to be leading
to false positives when the vehicle doesn't tightly follow the altitdue
ramp given by TECS to achieve a new altitude setpoint, and has become
completely infeasibly with the latest TECS rework that leads to non-ramped
altitude setpoint changes in the tecs_status message.
The new check no longer checks the altitude error but only the height rate
instead. It begins to integrate the height rate error once it detects an
uncommanded descend condition (height rate negative while setpoint is
positive). Integral threshold can be tuned by user (VT_QC_HR_ERROR_I).
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-19 09:36:09 +01:00
Silvan Fuhrer
36dc75bedf
VTOL: introduce new quad-chute check for altitude loss during front transition
...
By default the threshold is set to 10m.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-19 09:36:09 +01:00
Beat Küng
98705ced2f
lightware_laser_i2c: fix unreliable startup detection
...
In rare occasions asking for the protocol values after setting it returned
[0, 0]. I did not see any documentation for having to wait, but adding a
short wait period fixes it.
2023-01-18 23:02:56 -05:00
modaltb
05d828642d
boards/modalai: FCv1 DMA optimiziation for 2Mbit UART ( #20956 )
...
- disable unused SPI3 DMA
- enable USART2 RX/TX, UART5/6 TX, UART4 RX
2023-01-18 23:01:57 -05:00
Daniel Agar
9d7c4b8273
boards: ark_can-flow_default disable sensors/vehicle_acceleration to save flash
2023-01-18 22:58:19 -05:00
Daniel Agar
ffa9d61065
boards: px4_sitl_default include gz_bridge by default
2023-01-18 22:56:17 -05:00
Daniel Agar
2b5722786b
cmake: fix and update packaging
2023-01-18 22:51:12 -05:00
alexklimaj
5eb13e4448
ARKV6X bootloader init all pwm outputs as input pulldown
2023-01-18 21:52:11 -05:00
alexklimaj
7c2da8d1ef
Enable ARKV6X SPIX SYNC, enable icm426889 and iim42652 CLKIN
2023-01-18 21:52:11 -05:00
Daniel Agar
967c37ac17
boards: mro_pixracerpro_default disable examples/fake_gps to save flash
2023-01-18 21:44:09 -05:00
Daniel Agar
6a64e74ef3
icm42688p: fix register bank selection
...
* icm42688p: clear INT_CONFIG1 INT_ASYNC_RESET for proper INT1/INT2 pin operation
2023-01-18 11:08:03 -05:00
Daniel Agar
95300d5637
ekf2: refactor output predictor to class
...
- refactor all EKF backend output predictor pieces into new OutputPredictor class
- output states are now calculated immediately with new high rate IMU rather than after EKF update
- IMU delayed sample is passed as around as control data to avoid storing an extra copy and make the requirement clear
2023-01-18 10:59:34 -05:00
murata
c054ca20cc
logger: Add arm to shutdown
2023-01-18 07:47:36 +01:00
Julian Oes
35d6b734f5
perf: avoid leaks in dtor
...
From what address sanitizer tells me, we need to tell delete what type
it is deleting.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-17 21:20:51 -05:00
modaltb
8123090571
boards: modalai FCv2 BSP updates ( #20958 )
...
- FCv2 MR1
- configure TELEM2 for VOXL use case by default
- use ICP201XX baro by default
2023-01-17 21:20:16 -05:00
Siddharth Bharat Purohit
1c63d5666b
boards: add support for CubeOrange+ ( #20304 )
...
Co-authored-by: Julian Oes <julian@oes.ch >
2023-01-17 20:55:57 -05:00
Daniel Agar
71d916dbcd
ekf2: PreFlightChecker fix vel_ne_innov_lpf index
2023-01-17 13:03:38 -05:00
modaltb
6f718cd48d
drivers/actuators/modalai_esc: update to use mixer module and control allocator properly
...
- update motor mapping to use new UART_ESC_FUNC* auto generated params
- add support for actuator_test msg to support Actuator Testing in QGC
- modalai_fc-vX targets start driver if configured
- keep track of ESC spin direction in own param
- set ramp up param in MixerOutput to false
2023-01-16 21:46:37 -05:00
Beniamino Pozzan
2a64145dcd
microdds_client: add _subs reset method to allow reconnections
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-01-16 21:43:49 -05:00
Alex Klimaj
00bfd5436a
ekf2: increase optical flow preflight check innovation limit ( #20940 )
2023-01-15 17:52:12 -05:00
Daniel Agar
6991ac014c
rename 'gazebo' simulation to 'gazebo-classic' ( #20936 )
...
- use `gazebo-classic` everywhere consistently referring to the original Gazebo (eg version 9,10,11)
- additional `gazebo_*` helper targets added for compatibility, but warn about deprecation and tell you the new target naming
- use `gz` everywhere when referring to Gazebo (aka Ignition Gazebo or new Gazebo)
2023-01-15 11:36:12 -05:00
Daniel Agar
6605378d0d
boards: px4_fmu-v6c_default disable systemcmds/serial_test to save flash
2023-01-14 19:24:47 -05:00
Daniel Agar
30a240a7a4
boards: modalai_fc-v2_default disable examples/fake_gps to save flash
2023-01-14 19:23:19 -05:00
Daniel Agar
52b9b9ba2f
simulation: restore 'gazebo' alias for 'gazebo_iris'
...
- only create helper targets if Gazebo 11 found on system
2023-01-14 17:03:18 -05:00
murata
82ecbccd85
distance_sensor: Add TF02 Pro I2C
2023-01-14 09:28:33 -05:00
Jukka Laitinen
2985b5b9c2
msg/ActuatorTest.msg: Use default queue size the same as MAX_NUM_MOTORS
...
For the esc_calibration code, the actuator test is published for each motor
in a row. If the orb queue size is too small, messages are lost and not
received in mixer_module.
Set the default orb queue size of ActuatorTest high enough to keep the commands
for all motors in the queue.
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2023-01-14 09:19:10 -05:00
Daniel Agar
45912066d2
fix copyright header year range
2023-01-14 09:16:16 -05:00
Daniel Agar
674a59e48f
ekf2: new gyro bias limit parameter EKF2_GYR_B_LIM
...
- default is now a more conservative 0.15 rad/s (~8.6 deg/s) instead of the previous hardcoded 20 deg/s
2023-01-14 09:15:46 -05:00
Andrew Wilkins
22f7d913bd
rover_pos_control: thrust normalization for joystick input ( #20885 )
2023-01-13 20:11:39 -05:00
Peter van der Perk
7d92d4893e
VSCode C/C++ include path and config hints
2023-01-13 20:03:53 -05:00
Daniel Agar
c97381c97f
mavlink: streams SCALED_IMU fix gyro dt
2023-01-13 20:01:41 -05:00
Daniel Agar
5942194c66
iridiumsbd: advertise status topic immediately and log by default
2023-01-13 20:01:03 -05:00
Eric Katzfey
ac80dcd7a8
Voxl2: add qurt i2c driver support and first i2c driver voxlpm
2023-01-13 19:59:41 -05:00
Julian Oes
1e93ae3148
jsbsim: take FG_BINARY env var into account
...
This is just to match the docs.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-13 17:07:20 -05:00
Silvan Fuhrer
7c766692c4
FW Att and Rate Controller, Tailsitter: fix tailsitter frame transformations
...
Strictly follow the following convention for tailsitter:
FW Attitude and FW rate controller always operate in the FW frame, meaning that roll is
roll in FW, which for tailsitter means around the yaw axis in the body frame. The interfaces
between modules is though always in body frame.
That enables us to do the axis transformations for tailsitter, that are currently distributed
all over the controller (attitude, rate, vtol module), only at the input and output data of modules.
Side effect is that the FW rate control tuning gains meanings change: while before the roll gains
where meant for the body axis, they are now always applied for the FW roll axis (also in hover). So
the naming now is correct for FW, while before it was for Hover.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 18:18:11 +01:00
Silvan Fuhrer
edb59a9000
VTOL: improve QC parameter meta data
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
Silvan Fuhrer
544be72503
VTOL: improve messaging for quad-chute triggered error messages
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
Silvan Fuhrer
623c1418bb
Commander: improve messaging for vtol fixed-wing system failure arming check
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
Silvan Fuhrer
303b879748
VTOL/Commander: rename transition_failsafe to vtol_fixed_wing_system_failure
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
Silvan Fuhrer
2d4be68e00
VTOL: reset quad-chute failsafe flag when user triggeres a new transition to FW
...
This failsafe flag is currently used for not allowing to re-transition to FW, as well
as disabling pusher assist in hover. Till now it was only possible to reset it with
a commanded transition to MC, which many ground station interfaces didn't allow
as the system, after a quad-chute, already was in MC mode.
Hereby it is changed to reset when a new transition to FW is triggered (either via
RC switch or MAVLink command). It is the users responsibility to assess the situation
after a quad-chute happened to try to transition to FW again, manually proceed/land
the vehicle in MC, or let it finish the defined behavior after a quad-chute.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
Silvan Fuhrer
8a680a3153
VTOL: fix quad-chute max altitude limit
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-13 19:02:21 +03:00
bresch
3d50a7ce44
CAL_MAG_SIDES: do not save with factory cal
2023-01-13 10:48:01 -05:00
bresch
3d73e273e6
MAG_SIDES: don't spam user to not change parameter
...
otherwise this will always show up on every boot if factory calibration
was done in an earlier release
2023-01-13 10:48:01 -05:00
Tanja Baumann
0099523710
v6x: fix IMU rotations for V6X009010 and V6X010010 ( #20901 )
...
And add V6X000010 (pixhawk base board)
2023-01-13 14:09:35 +01:00
bresch
ced41febb7
hide legacy read-only parameter under Developer category
2023-01-13 11:40:56 +01:00
Matthias Grob
a7c03de434
StickAccelerationXY: apply jerk limit after drag
2023-01-13 10:19:43 +01:00
Eric Katzfey
2a315f86ca
Qurt specific drivers for testing and some updates to the startup process ( #20917 )
...
* Added a couple of Qurt specific drivers for testing and some updates to Qurt startup code
2023-01-12 20:17:30 -05:00
Mathieu Bresciani
767fcb2774
sensors: prefix mag config param SENS instead of CAL ( #20723 )
...
* sensors: prefix mag config param SENS instead of CAL
* mag sides: keep CAL_MAG_SIDES required by QGC
2023-01-12 09:42:36 -05:00
Daniel Agar
635daeed8a
NuttX push jlink-nuttx into cmake and enable CONFIG_DEBUG_TCBINFO by default
2023-01-12 09:05:26 -05:00
Daniel Agar
5453630a6d
Jenkins: hardware test rack ignore irrelevant sensor timeouts
2023-01-11 16:56:19 -05:00
Peter van der Perk
8b5f35b3fe
Add S32K3 vscode support add Jlink rtos vscode support
2023-01-11 16:15:13 -05:00
Jaeyoung Lim
16d6e699bb
Update sitl_gazebo submodule
2023-01-11 14:39:05 -05:00
Daniel Agar
0f9bc351f1
ekf2: fix global_pos alt_reset_counter publish ( #20906 )
...
- fixes #20900
2023-01-11 14:15:07 -05:00
SiHyun Noh
714b3d82fb
thepeach: update px4board kconfig to fix missing fw_rate_control module ( #20898 )
2023-01-11 10:02:46 -05:00
Eric Katzfey
89180ac0f9
Fixed Kconfig and px4board files for voxl2
2023-01-11 09:53:18 -05:00
Julian Oes
72d36fc874
sensors: Add param for VL53L0X to startup
...
It turns out there was no param to enable starting the VL53L0X at
startup.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-11 09:52:27 -05:00
David Jablonski
c6239ce8c2
replay: fix replay msg ids larger than 128 ( #20865 )
2023-01-11 09:13:53 -05:00
Silvan Fuhrer
bc9abf8c36
Commander: always update parameters, not just if disarmed
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-11 10:01:08 +01:00
alexklimaj
e19c7ca18b
Add reboot command to ark flow
2023-01-11 08:11:18 +01:00
Beniamino Pozzan
af336719e6
gz_bridge: fix world selector environment variable
...
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@phd.unipd.it >
2023-01-08 00:15:35 -05:00
PX4 BuildBot
e6c4416250
update all px4board kconfig
2023-01-07 21:53:01 -05:00
Daniel Agar
618288cca9
SITL Gazebo classic make airframes simulator specific
2023-01-07 17:00:35 -05:00
Daniel Agar
97c8a60d67
SITL gz make airframes simulator specific
2023-01-07 17:00:35 -05:00
Daniel Agar
ae4cb24100
SITL flightgear make airframes simulator specific
2023-01-07 17:00:35 -05:00
Daniel Agar
1abe35c220
SITL jsbsim make airframes simulator specific
2023-01-07 17:00:35 -05:00
Daniel Agar
75125da34c
SITL sihsim make airframes simulator specific
2023-01-07 17:00:35 -05:00
Daniel Agar
95a6eba36c
SITL jmavsim make airframes simulator specific
...
-cleanup and simplify jmavsim SITL launch and debug
2023-01-07 17:00:35 -05:00
Daniel Agar
760fff7d89
Kconfig: fix missing SERIAL_EXT2 (fmu-v5x/v6x)
2023-01-07 12:10:52 -05:00
Daniel Agar
dc5ce9b0ce
boards: NuttX increase default CONFIG_ARCH_INTERRUPTSTACK 512->768 bytes
...
- during casual testing on default configs the stack was penetration was reaching ~90% which is a bit too close for comfort
- increasing by 50% to be conservative
2023-01-07 12:07:35 -05:00
Daniel Agar
7f7dfea998
drivers/imu/analog_devices: experimental support for new ADIS16507 IMU (untested)
2023-01-07 10:56:30 -05:00
Daniel Agar
f520d4b3be
Update submodule mavlink to latest Sat Jan 7 12:38:21 UTC 2023
...
- mavlink in PX4/Firmware (8bc88ed526044a864427a4b65135c3baffabb2ef): https://github.com/mavlink/mavlink/commit/0c7792edfeee7cf08e531cb4ce5b4f01854e5724
- mavlink current upstream: https://github.com/mavlink/mavlink/commit/74dee05f0cd121ae27e021d011a04b161c9d0440
- Changes: https://github.com/mavlink/mavlink/compare/0c7792edfeee7cf08e531cb4ce5b4f01854e5724...74dee05f0cd121ae27e021d011a04b161c9d0440
74dee05f 2023-01-04 Beat Küng - component_metadata: add translation schema (#1934 )
0267c4cf 2023-01-04 Bob Long - common.xml: add fuel_pressure ext. to EFI_STATUS (#1938 )
c64818e8 2023-01-04 Mathieu Mirmont - common.xml: fix typos in AIS_TYPE enumerate (#1939 )
2306bf79 2023-01-04 Hamish Willee - Update pymavlink (#1940 )
0077129b 2022-10-06 Peter Hall - Development: update airspeed message
fbf84c64 2022-10-05 Peter Hall - gitignore: add /.vscode
817c44d8 2022-12-15 Mathieu Mirmont - Add the MAV_TYPE_VTOL_TILTWING aircraft type (#1933 )
Co-authored-by: PX4 BuildBot <bot@px4.io >
2023-01-07 10:55:05 -05:00
Julian Oes
243caac44a
mavlink: filter command_acks by target
...
When we receive a command_long or command_int message to
answer, it arrives with a source sysid/compid, so this means we can send
the command_ack back on the appropriate MAVLink instances instead of all
of them.
This commit filters outgoing command_ack messages, so they are only sent
on the MAVLink instances where the sysid/compid has been seen in the
past.
This means that a command_ack is likely still sent on multiple links for
a setup with redundant links.
This should also prevent command_acks from being blasted on Iridium links
when it's not required.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-07 10:39:08 -05:00
Matthias Grob
19cee04f3a
ubuntu.sh: always install "Gazebo" next to "Gazebo classic" on 22.04
2023-01-07 10:37:02 -05:00
Marcin
91e97eded9
setup ubuntu.sh; fix legacy gazebo for ubuntu22.04
2023-01-07 10:37:02 -05:00
murata,katsutoshi
d821404e4f
commander: failsafe define enums for actions ( #20880 )
2023-01-07 10:10:57 -05:00
bresch
49f8bcfc69
ekf2: purge old ekf2 derivation
2023-01-06 18:35:19 -05:00
Peter van der Perk
d1b95a21e4
Fixes MR-CANHUBK3 FMU build and adds it to the CI targets
2023-01-06 18:02:45 -05:00
Hamish Willee
1551e2f15c
MIS_TKO_LAND_REQ - improve English for value 4
2023-01-06 09:43:16 +01:00
Julian Oes
7e3dcd7be4
sensors: fix overlapping ifdef
...
This fixes the case where vehicle_angular_rate is no longer started when
airspeed is not enabled.
Signed-off-by: Julian Oes <julian@oes.ch >
2023-01-05 21:09:14 -05:00
bresch
26122886ae
ekf2: drag fusion - improve parameter description
...
The user should refer to the online documentation for tuning guidelines
and not the parameter description.
2023-01-05 12:03:24 -05:00
bresch
06ef39d05e
ekf2: MC drag fusion - interpolate between X an Y "b" coefficients
...
Use the current sideslip angle to generate a drag coefficient that is a
mixture of X and Y coefficients, creating an elliptic distribution.
2023-01-05 12:03:24 -05:00
bresch
420f5ef2b7
ekf2: migrate drag fusion derivation to SymForce
2023-01-05 12:03:24 -05:00
bresch
04f76c932e
ekf2: decompose drag vector into x-y components
...
The drag force is a vector.
drag_x = drag.norm() * vx / v.norm()
2023-01-05 12:03:24 -05:00
Paul Riseborough
1a9c358858
ekf2: Add unit tests for drag fusion
2023-01-05 12:03:24 -05:00
bresch
0509f612dd
ekf2: fix drag data downsampling
...
setDragData needs the imu data at full speed to downsample it without
skipping samples.
2023-01-05 12:03:24 -05:00
Daniel Agar
34c57cc5b5
px4-rc.simulator shellcheck fixes
2023-01-04 17:35:41 -05:00
bresch
14bf04b9a4
SIH: add to px4_fmu-v5_default and auto start GPS sim driver
...
- add simulator kconfig dependencies
- exclude SIH (+deps) where sufficient flash isn't available
2023-01-04 16:26:15 -05:00
Peter van der Perk
fa87375d0c
Add hardfault log progmem flash backend
2023-01-04 12:52:01 -05:00
Daniel Agar
ca9ae80b10
px4-rc.simulator support launching new Gazebo Garden vs Fortress ( #20864 )
...
- "ign gazebo" command is now "gz sim" as of Gazebo Garden
2023-01-04 12:39:06 -05:00
JaeyoungLim
21e88f64b4
Add new fixed wing rate control module (fw_rate_control)
...
* Fixedwing rate control into a separate module
* Start fw_rate_control for vtol
* Move over airspeed related parameters to fw_rate_control
Co-authored-by: Silvan Fuhrer <silvan@auterion.com >
2023-01-04 11:14:00 -05:00
Peter van der Perk
4c2c06060d
PX4Board kconfig add dependency chain for QURT & POSIX modules
2023-01-04 09:40:17 -05:00
Peter van der Perk
ddaa3c24eb
Fix MR-CANHUBK3
2023-01-04 05:52:58 -05:00
frederictaillandier
315c075e5c
updating the sitl-gazebo-sniffer to allow a vehicle name in the serialized object
2023-01-03 17:00:48 +01:00
bresch
28d664aed5
EKF2: purge outdated matlab scripts
...
Those files are no longer maintained and will just confuse new users
2022-12-30 13:01:58 -05:00
Daniel Agar
cc1b043e18
cmake/kconfig.cmake: fix whitespace
2022-12-30 13:01:30 -05:00
dagar
618ce9a865
[AUTO COMMIT] update change indication
2022-12-29 16:37:34 -05:00
Daniel Agar
20a1c73cf0
ekf2: reinit baro height on sensor or calibration change
...
- handle reset on delayed time horizon
2022-12-29 16:37:34 -05:00
Silvan Fuhrer
0e2df5a152
remove drivers/pca9685
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-12-29 12:57:41 -05:00
Silvan Fuhrer
348dcf11c8
remove examples/hwtest
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-12-29 12:57:11 -05:00
bresch
3e4e5c991c
ekf2: add mag unit tests
2022-12-29 12:56:36 -05:00
bresch
657bd6cf72
ekf2: stop mag fusion when inhibited for too long
...
Also do not try to run anything if mag is inhibited
2022-12-29 12:56:36 -05:00
bresch
c75a9058a5
EKF2: only fuse zero innovation if yaw var is large
2022-12-29 12:56:36 -05:00
Daniel Agar
40e3503c39
boards: fix all NuttX configs (CONFIG_SMALL NuttX upgrade migration)
2022-12-29 12:50:37 -05:00
Daniel Agar
0fbb6db6d4
boards: update all NuttX defconfig (make all_olddefconfig)
2022-12-29 12:50:37 -05:00
Daniel Agar
c2f15f5957
boards: update all px4boards (make all_px4_savedefconfig)
2022-12-29 12:50:37 -05:00
Daniel Agar
0204a55354
Makefile: add all_olddefconfig and all_px4_savedefconfig helpers for updating all boards
2022-12-29 12:50:37 -05:00
Daniel Agar
f37eb55e19
platforms/nuttx: FATAL error if NSH enabled and SET disabled
2022-12-29 12:50:37 -05:00
Peter van der Perk
964e9dd8c4
Fix MRO NuttX defconfig
2022-12-28 17:00:58 -05:00
Peter van der Perk
f7c183edd3
Update NuttX kernel for K3 changes
2022-12-28 10:21:58 -05:00
Peter van der Perk
5e3165af70
S32K3 Enable dflash progmem
2022-12-28 10:21:58 -05:00
Peter van der Perk
2fde13c07d
S32K3 EMAC TJA1103 Support
2022-12-28 10:21:58 -05:00
Peter van der Perk
2f1a165d85
S32K3 Enable IRQ stack
2022-12-28 10:21:58 -05:00
Benjamin Perseghetti
c3174b5dec
Tools/setup/ubuntu.sh: Fixes install for 22.04 gazebo ( #20833 )
...
Fixes ubuntu installation script for 22.04 to only install gazebo.
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com >
2022-12-28 10:16:43 -05:00
Peter van der Perk
beabe56253
S32K3XX call functional reset on board_reset
2022-12-27 08:33:24 -05:00
Yannick Fuhrer
98529a5b49
Battery: delay initialization of SoC ( #20729 )
...
* Battery: delay initialization of SoC
* battery: rework of battery initialization delay
Co-authored-by: Matthias Grob <maetugr@gmail.com >
2022-12-26 18:44:22 +01:00
PX4 BuildBot
54d825730e
Update submodule libcanard to latest Sat Dec 24 00:39:03 UTC 2022
...
- libcanard in PX4/Firmware (280ef8935565d4a13e0780c926e1707fa5a90118): https://github.com/opencyphal/libcanard/commit/2e3b11f6b8325080c160d38521b169b0bbb6b1c7
- libcanard current upstream: https://github.com/opencyphal/libcanard/commit/5c69d451ab0787a81dcb615692d707f2a286f5e5
- Changes: https://github.com/opencyphal/libcanard/compare/2e3b11f6b8325080c160d38521b169b0bbb6b1c7...5c69d451ab0787a81dcb615692d707f2a286f5e5
5c69d45 2022-11-03 John Vishnefske - Add sanitizers to unit test cmake build (#205 )
989124d 2022-10-30 Pavel Kirienko - Fix 203 (#204 )
f85103b 2022-10-13 joshvazquez-amzn - Fix warnings in test helpers (#202 )
2022-12-23 22:36:09 -05:00
PX4 BuildBot
b6eb5ba790
Update submodule sitl_gazebo to latest Sat Dec 24 00:39:01 UTC 2022
...
- sitl_gazebo in PX4/Firmware (bb591c6c29 ): https://github.com/PX4/PX4-SITL_gazebo/commit/049b667d5e86fa71bd47c41dd10e911a0e2681b0
- sitl_gazebo current upstream: https://github.com/PX4/PX4-SITL_gazebo/commit/d44ce17f4368ab961f87fcc59845647fb629033f
- Changes: https://github.com/PX4/PX4-SITL_gazebo/compare/049b667d5e86fa71bd47c41dd10e911a0e2681b0...d44ce17f4368ab961f87fcc59845647fb629033f
d44ce17 2022-12-19 Frederic Taillandier - fixing macos test build (#935 )
7f9239c 2022-12-19 Daniel Mesham - Add safe landing world (#932 )
61b1fc1 2022-12-19 Daniel Mesham - Update depth camera to match the RealSense D455 (#933 )
2022-12-23 22:34:32 -05:00
Julian Oes
bb591c6c29
mavlink_shell: fix stall on CubeOrange
...
On CubeOrange where no console is configured by default, starting
MAVLink shell just stalls, and doesn't work.
Also, logfile download has been reported not to work, and again, seems
to work with this change.
Signed-off-by: Julian Oes <julian@oes.ch >
2022-12-23 11:00:20 -05:00
bresch
86a3d2459a
ekf2: remove old yaw estimator generated code
2022-12-23 10:28:19 -05:00
bresch
0388c161e7
ekf2: compare yaw estimator sympy vs symforce
2022-12-23 10:28:19 -05:00
bresch
7c33019510
EKF2: move yaw estimator to symforce
2022-12-23 10:28:19 -05:00
alexklimaj
2f1b3142a6
Decrease PAW3902 and PAA3905 backup schedule to 200ms
2022-12-22 20:46:19 -05:00
Eric Katzfey
c3e70b03aa
Add more to Voxl2 build and fix associated build errors ( #20821 )
...
- Do not pull in PWM parameters when DISABLE_PARAMS_MODULE_SCOPING is TRUE since VOXL2 has no PWM nor any of the required timer_config files that go along with that
- Replace non-standard M_PI constants with PX4 defined M_PI_F constants
- Include missing header file for function hrt_absolute_time declaration
- Add new PX4_SOC_ARCH_ID for the VOXL2 board
2022-12-22 15:44:19 -05:00
alexklimaj
35a9dba6e6
Enable ARKV6X heater
2022-12-22 15:12:32 -05:00
Daniel Agar
03c0808ae6
vscode/settings.json: add .sdf and Jenkinsfile associations
2022-12-21 16:46:25 -05:00
Silvan Fuhrer
aff3f2e77f
boards: disable gyro fft module for v5 and v5x to safe flash
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-12-21 10:17:59 -05:00
Daniel Agar
f2cd7667dc
systemcmds/bsondump: new command line utility (extracted from parameters)
2022-12-21 10:14:00 -05:00
Konrad
f5524fa605
TECS: Combine both airspeed and airspeed derivative filters in TECS into one MIMO filter using a steady state Kalman filter.
2022-12-21 09:04:19 +01:00
Konrad
08c36612b3
TECS: Updated throttle control for airspeed sensorless vehicles. It includes the P gain controller instead of feedforward only. I term is still disabled.
2022-12-21 09:04:19 +01:00
Konrad
77539d4dac
TECS: Rearrange setpoint input. If an altitude rate is given, use this as a feedforward term in the altitude control. If an altitude setpoint is given use a reference model to get a smooth altitude setpoint.
2022-12-21 09:04:19 +01:00
Konrad
8c6dfc840b
TECS: Fix bug to reset airspeed derivative and energy rate low pass filters at every time step.
2022-12-21 09:04:19 +01:00
Konrad
7a3e0f53c2
TECS: Replaced old tecs by cleaned up version.
2022-12-21 09:04:19 +01:00
Konrad
991689d3cd
TECS: Add new tecs library in parallel to old tecs in the position control library for comparison.
2022-12-21 09:04:19 +01:00
Konrad
c64e111d8e
TECS: Rearranged the TECS library into submodules.
2022-12-21 09:04:19 +01:00
Daniel Agar
54a32eb2f7
ekf2: EV overhaul yaw and position fusion ( #20501 )
...
- move EV yaw and EV position to new state machines
- EV yaw and EV pos now configured via EKF2_EV_CTRL (migrated from EKF2_AID_MASK)
- new EV position offset estimator to enable EV position while GPS position is active (no more EV pos delta fusion)
- yaw_align now strictly means north (no more rotate external vision aid mask)
- automatic switching between EV yaw, and yaw align north based on GPS quality
2022-12-20 10:23:56 -05:00
Silvan Fuhrer
20342216e2
Airspeed Selector: use better density source and only save scale parameter if valid ( #20764 )
...
* AirspeedSelector: use vehicle_air_data.rho for calculating groundspeed-wind CAS
Previously the vehicle_air_data.temperature and pressure was used, instead of the
density field directly.
Only makes a difference if there is an airspeed sensor connected to provide
the air temperature.
* AirspeedSelector: only safe estimated scale in param if airspeed is valid
* AirspeedSelector: remove 0.01 cliff for saving learned scale to param
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2022-12-20 15:52:54 +01:00
David Sidrane
efbb2cf2e3
nxp_ucans32k146:Add LPSPI DMA
...
nxp_ucans32k146:Add Dready
2022-12-20 09:31:05 -05:00
David Sidrane
b7ea31ceed
s32k1xx:Add gpiosetevent
2022-12-20 09:31:05 -05:00
David Sidrane
da536b3a82
nxp_ucans32k146:Add PROBEs for debugging
2022-12-20 09:29:07 -05:00
David Sidrane
e8aa54e7bb
nxp_ucans32k146:Use GPIO based RTS (Buffer not character)
2022-12-20 09:29:07 -05:00
David Sidrane
fe7d761a11
nxp_ucans32k146:Use serial DMA
2022-12-20 09:29:07 -05:00
David Sidrane
39822ef5a1
nxp_mr-canhubk:lpuart0 use Serial HW flow control
2022-12-20 09:27:40 -05:00
David Sidrane
6a7f5a339b
nxp_mr-canhubk3:fmu use Serial DMA
2022-12-20 09:27:40 -05:00
David Sidrane
022e941ebe
NuttX with s32k3 Serial DMA
2022-12-20 09:27:40 -05:00
Igor Misic
52275923ad
adsb: add support for callsign
2022-12-20 08:18:09 +01:00
Eric Katzfey
678607117a
Qurt UART ESC driver support ( #20784 )
2022-12-20 01:25:12 -05:00
PX4 BuildBot
da7d52e302
Update submodule libevents to latest Tue Dec 20 00:39:10 UTC 2022
...
- libevents in PX4/Firmware (26f3fea7ebb328ef58d4d592dae0559c91f13c1c): https://github.com/mavlink/libevents/commit/0c8bc543db2f8c78f59214d5bcf959bdadd96677
- libevents current upstream: https://github.com/mavlink/libevents/commit/8d9c5551273a52e22253ea6abf28d9e4b05e0ab7
- Changes: https://github.com/mavlink/libevents/compare/0c8bc543db2f8c78f59214d5bcf959bdadd96677...8d9c5551273a52e22253ea6abf28d9e4b05e0ab7
8d9c555 2022-12-13 Beat Küng - README: clarify use of component ID
2022-12-20 01:24:15 -05:00