46337 Commits

Author SHA1 Message Date
Silvan Fuhrer
9d33f8f3f0 Mission validity checks: make clear that MIS_DIST_1WP only warns, not invalidates
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2024-11-01 16:19:19 +01:00
chfriedrich98
e8f8bc9af7 ackermann: add lateral acceleration setpoint, acro/position mode and updates to auto modes 2024-10-31 16:15:37 +01:00
chfriedrich98
6a7edac10d ackermann: restructure module 2024-10-31 16:15:37 +01:00
RomanBapst
79ec39e561 removed unnecessary case
Signed-off-by: RomanBapst <bapstroman@gmail.com>
2024-10-31 15:39:01 +03:00
RomanBapst
02d344d9d9 FixedWingPositionControl: handle case where we go into descend mode
during the backtransition

Signed-off-by: RomanBapst <bapstroman@gmail.com>
2024-10-31 15:39:01 +03:00
myxxmikeyxx
6385ecd7dd Update README.md
Fixed Simple typo
2024-10-31 13:31:25 +01:00
Julian Oes
b9bca9fa94
boards: Add Holybro H-Flow (#23865) 2024-10-30 13:42:03 -04:00
zhaosheng.tan
4b4a60b54c boards: fixed board ap-h743v2 ADC_BATTERY_CURRENT_CHANNEL issue, the correct channel is 8. 2024-10-30 12:15:41 -04:00
bresch
d579fb540c ekf2-terrain: do not consider negative hagl as valid 2024-10-30 12:14:43 -04:00
Alex Klimaj
4d1c65d722
boards: new ARK FPV FC (#23830)
* add new payload power switch (RC_MAP_PAY_SW)
2024-10-30 11:35:35 -04:00
Julian Oes
951c981d94 Tools: split by | or space to get all commands
This is required in the case where there are 3 commands on one line.
2024-10-30 07:30:29 +01:00
Julian Oes
6509e70306 gimbal: fix device flags for RC gimbals 2024-10-30 07:30:29 +01:00
Julian Oes
e320593983 SITL: forward gimbal messages
A gimbal user needs to be able to receive gimbal device messages such as
GIMBAL_DEVICE_INFORMATION. Therefore, we need to forward this MAVLink
instance.
2024-10-30 07:30:29 +01:00
Julian Oes
c0c412570d gimbal: Fix deg/rad for angular rates
The command is in degrees, but the rest in radians.

Also, set roll to NAN, rather than 0 when not set.
2024-10-30 07:30:29 +01:00
Julian Oes
55ec6df751 gimbal: Add test command for angle rates
This is handy to test angular rate input, not just angles.
2024-10-30 07:30:29 +01:00
Michael Schaeuble
22950a94ec Override vehicle attitude send to gimbals when HIL mode is enabled
The simulated attitude can disturb the gimbal estimator and lead to strange behavior of the gimbal. So, since the hardware is not moving in HIL/SIH, we fake a static attitude towards the gimbal.
2024-10-30 15:25:05 +13:00
Matthias Grob
219c9d6cb9 gimbal: handle angular_velocity setpoint stream timeout
The gimbal would otherwise continue to spin with whatever velocity was commanded
before the input connection was lost.
2024-10-30 15:12:08 +13:00
Matthias Grob
2bccb20ee6 gimbal: introduce timestamp of last setpoint update
To enable implementing a timeout when there's no new setpoint coming in.
2024-10-30 15:12:08 +13:00
Matthias Grob
d5f3e858e8 gimbal: refactor outputs to take current timestamp at the beginning 2024-10-30 15:12:08 +13:00
chfriedrich98
a3a83c718a
mecanum: add cruise control for position mode (#23834) 2024-10-29 16:43:42 +01:00
Matthias Grob
cac0133901 FlightTaskDescned: fix horizontal acceleration overriding vertical one
Also descend with more acceleration again to avoid the risk of ascending instead of descending because of a wrong hover thrust estimate.
2024-10-25 14:06:00 +02:00
Silvan Fuhrer
5a53190ed5 FW Position Control: handle invalid z or vz measurement in case of nav_state DESCEND
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2024-10-25 14:06:00 +02:00
Silvan Fuhrer
c342f9baf7 Commander: remove mode_req_local_alt requirement from DESCEND
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2024-10-25 14:06:00 +02:00
Matthias Grob
37190d4928 navigator: refactor naming of break instead of brake functions 2024-10-25 13:56:20 +02:00
Matthias Grob
b8a602414d navigator land: don't project VTOL braking waypoint without global position 2024-10-25 13:56:20 +02:00
Silvan Fuhrer
b6eb8dbfd9 Navigator: land: set lat/lon fields of triplet to NAN if global position is not valid
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2024-10-25 13:56:20 +02:00
Silvan Fuhrer
3b0dac6840
RTL: fix RTL time estimation (#23807)
* RTL Direct: fix rlt time prediction in final lanidng phase

It was previously checking if RTL was already running through
active(), which though actually is coming from the mission mode
that rtl_direct inherits from.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>

* RTL Direct: remove unnecessary active() check

As the method setRtlPosition() is anyway not called when RTL is active,
plus it checks the wrong thing, as it is the active() method from
the Mission mode.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>

* RTL Direct: remove unnecessary land_detector_sub.update()

It is already getting updated just before the .get()

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>

* RTL time estiate: do not distinguish land from sink for MC

To avoid rtl time prediction jump when entering LAND phase due
to no correct handling of loiter altitude (LAND phase doesn't
have to start only when lower then RTL_DESCND_ALT).

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>

* Revert "RTL Direct: remove unnecessary active() check"

This reverts commit d5165ba902e65839e792cc13197761c7f77748f9.

* Revert "RTL Direct: fix rlt time prediction in final lanidng phase"

This reverts commit 5af7c928fbf86d560dcd35dd9aea3e38f1e4c735.

* RTL: Make sure to call the initialilze function of the Navigator RTL modes

* RTL: use the navigator_mode run function instead of the on_xxx function directly

* RTL: Make sure that for vtol the right vehicle type is used for each RTL state

* RTL: move to loiter distance estimate should substract the loiter radius for fixed wing

* RTL: time prediction: do not assume VTOL is in FW at start of RTL

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>

* RTL: time estimation: fix is_in_climbing_submode

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>

* RTL: time estimation: subtract loiter radius from distance in rtl_direct_mission_land

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>

* RTL direct: poll important topics also on_inactive such that time estimate is correct

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>

* navigator rtl: fix setter spacing

* navigator rtl: check pointer before dereferencing

* RTL: only subract loiter radius when in FW

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>

---------

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
Co-authored-by: Konrad <konrad@auterion.com>
Co-authored-by: Matthias Grob <maetugr@gmail.com>
2024-10-24 17:22:19 +02:00
Julian Oes
84bb6d1730 boards: add Septentrio GNSS drivers to 6XRT 2024-10-23 11:05:49 -04:00
Julian Oes
2e6356bb9f boards: add Sepentrio GNSS drivers to 6C and 6X 2024-10-23 11:05:49 -04:00
Marco Hauswirth
0c451552c7
EKF2: add validity flags to global pos message (#23787)
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com>
2024-10-23 10:19:04 +02:00
Hamish Willee
808153b049
COM_THROW_SPEED - arm or start motors clarification (#23822) 2024-10-23 13:13:56 +11:00
Julian Oes
4d4c5ef7f3
boards: change board ID of KakuteH7 mini (#23832)
* boards: change board ID of KakuteH7 mini

Holybro would like to consolidate the board ID to what is used in
ArduPilot.

* boards: update KakuteH7mini bootloader

This is due to the board ID change.
2024-10-22 09:22:33 +13:00
Julian Oes
efbd01c3c2
Add IMU compatible for KakuteH7Mini (#23831)
Co-authored-by: jamming <jianbing.pan@holybro.com>
2024-10-22 09:22:16 +13:00
Jacob Dahl
965d5b3b95
dexi: parameters for airframe file (#23780)
* added missing parameters for dexi airframe

* dexi: EKF2_HGT_REF and MC_YAWRATE_MAX
2024-10-18 11:42:05 -06:00
Alexander Lerach
3b1d7e20da
Updated NuttX ref to include littlefs fix (#23828) 2024-10-18 17:07:02 +02:00
Daniel Agar
371a99c322
drivers/uavcan: subtree merge last working libuavcan (preserving history) (#23819)
- fully absorb the libuavcan submodule (renamed libdronecan to deconflict) up to our last good working commit and preserve all history (upstream libuavcan was broken and then marked deprecated)
 - fixes https://github.com/PX4/PX4-Autopilot/issues/23727
 - this puts us in a much better position to be able to evolve the library going forward ow that we have full control in tree
2024-10-17 16:20:19 -04:00
Vincent Poon
e2e435af7c kakuteh7: enable EKF2 external vision
to make it consistent with kakuteh7v2/mini 
https://github.com/PX4/PX4-Autopilot/pull/23803
2024-10-17 10:51:46 +02:00
Julian Oes
f55c3b890b Tools: improve uploader output in scripts
When the px_uploader.py is used scripted, so without an interactive
shell, the progress bar doesn't update. Therefore, I suggest to print a
new line instead of a carriage return for the non-interactive shell
case.
2024-10-17 13:53:38 +13:00
Hamish Willee
b390d5876a
AUTOPILOT.capabilities includes gimbal manager protocol bit (#23692)
* AUTOPILOT.capabilities includes gimbal manager protocol bit

Sets MAV_PROTOCOL_CAPABILITY_COMPONENT_IMPLEMENTS_GIMBAL_MANAGER bit in AUTOPILOT.capabilities

* mavlink: update submodule

* mavlink: only set gimbal flag if gimbal param set

We should probably only set the flag if the gimbal manager is actually
set up using the MNT_MODE_IN parameter.

* mavlink: make param optional

If the gimbal module is not built in we don't have the MNT_MODE_IN
param, so we need to deal with that.

* gazebo-classic: update submodule

---------

Co-authored-by: Julian Oes <julian@oes.ch>
2024-10-17 08:41:38 +11:00
Daniel Agar
e59cc9afeb drivers/uavcan: subtree merge last working libuavcan (preserving history)
- upstream libuavcan was broken and then marked deprecated, this fully absorbs the submodule (renamed libdronecan to deconflict) up to our last good working commit and all commit history is kept
 - fixes https://github.com/PX4/PX4-Autopilot/issues/23727 (regression introduced in #23113)
 - this puts us in a much better position to evolve the library as needed now that we have full control
2024-10-16 13:31:17 -04:00
RomanBapst
a0e6f9cd70 commander: try to fix arm authorization spamming
Signed-off-by: RomanBapst <bapstroman@gmail.com>
2024-10-14 14:18:00 +03:00
Julian Oes
e3dd050c91 bootloader: robustify uploader detection
The bootloader can often get stuck parsing random MAVLink traffic,
thinking it had seen a GET_SYNC.

Therefore, this commits adds a two step check which requires a GET_SYNC
followed by a GET_DEVICE to make sure it's really an uploader script
talking to it, and not just random data.
2024-10-14 06:35:55 -04:00
Igor Mišić
b9942ad7e0 lib/mixer_module: remove unused param MOT_SLEW_MAX 2024-10-14 10:03:30 +02:00
Alexander Lerach
dbba9adb14
lib/rc/ghst: Added differentiation between GHST and CRSF (#23805) 2024-10-11 16:17:54 -04:00
Julian Oes
9031f44eba kakuteh7v2/mini: enable EKF2 external vision
We can enable it given there is flash space available.
2024-10-11 13:41:59 -04:00
vertiq-luca
8b032d58d8
actuators/vertiq_io: module.yaml switched bit: values to 0-30 instead of starting at 32 2024-10-11 13:41:29 -04:00
Julian Oes
fd2b3aeec8
fmu-v6x: disable external baro ms5611 (#23650)
Otherwise, this will conflict with the MS5525DSO airspeed sensor.
2024-10-11 11:04:15 +13:00
Julian Oes
01888a3085
mavlink: fix SET_MESSAGE_INTERVAL parsing (#23796)
This fixes the SITL tests that fail in CI because we catch NAN as non
zero after cast to int. To fix this I've added the check whether they
are finite at all.

The checks for param5 and param6 would be a bit trickier because they
can be int or float, so I have omitted them for now.
2024-10-11 09:03:22 +13:00
Julian Oes
9557a2da45
CI: fix Python checks (#23801)
Now that ubuntu-latest has been pushed to Ubuntu 24.04, we need to fix
up the pip install.

While at it, we might as well pin to the ubuntu 24.04 version, so we
don't have this happen to use out of the blue again.
2024-10-11 09:01:51 +13:00
Silvan Fuhrer
34f65682ad Commander: remove -local- from failsafe string to make it simpler to understand
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
2024-10-10 10:28:59 +02:00