Mahima Yoga
defccfa99b
Collision Prevention: Scale obstacle distance with vehicle attitude for varying sensor orientations ( #24107 )
2024-12-20 14:47:22 +01:00
Roman Bapst
b765769f50
Navigator: Set altitude acceptance radius to infinity when moving to land point after transition ( #24115 )
...
* Navigator: set alt acceptance radius to infinity
for land waypoint after backtransition -> avoid
vehicle with depleted battery from not reaching the alt
setpoint and getting stuck
Signed-off-by: RomanBapst <bapstroman@gmail.com >
2024-12-20 09:21:32 +01:00
Matthias Grob
61961350f9
mavlink_receiver: don't publish out of range joystick input
...
Note that the MAVLink definition explicitly writes
"A value of INT16_MAX indicates that this axis is invalid."
which before this change was happily executed.
2024-12-19 17:59:41 +01:00
Matthias Grob
5cf85e320a
offboardCheck: acceleration setpoints only require vehicle attitude control
2024-12-19 17:58:38 +01:00
Matthias Grob
ad799b64b7
mc_pos_control: shorten parameter descriptions to a readable size
2024-12-19 16:12:43 +01:00
Matthias Grob
1239f0aaed
FlightTaskTransition: Comment why using invalid horizontal velocity works
2024-12-19 16:00:21 +01:00
Matthias Grob
34bcc277a5
FlightTaskTransition: keep high decelration when overshooting the transition target
2024-12-19 16:00:21 +01:00
Matthias Grob
11d7dd41fd
FlightTaskTransition: clean up and simplify
2024-12-19 16:00:21 +01:00
Matthias Grob
839010eeab
Navigator: make ADSB handling optional
2024-12-19 15:30:34 +01:00
Silvan Fuhrer
367a8a7fc4
update gz submodule to get new tiltrotor sim
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-12-19 09:57:55 +01:00
Pernilla
1f48448beb
Update other airframes with min max values different than default
2024-12-19 09:57:55 +01:00
Pernilla
be42c7c88a
Adding min-max angles to use for normalized servo outputs
2024-12-19 09:57:55 +01:00
Pernilla
f1855de006
Adding tiltrotor model
2024-12-19 09:57:55 +01:00
Matthias Grob
c69f96ec04
ADSB: replace last excess hrt_absolute_time() in the loop
2024-12-19 09:35:38 +01:00
Silvan Fuhrer
30e51cb80e
ADSB: improve readability of unit tests
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-12-19 09:35:38 +01:00
Silvan Fuhrer
1a1fd59302
ADSB: pass now timestamp as arguemnt of send_traffic_warning()
...
Saves some flash and CPU by not having to call hrt_absolute_time().
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-12-19 09:35:38 +01:00
Silvan Fuhrer
741e3e8589
ADSB: pass now timestamp as arguemnt of get_traffic_state()
...
That enables us to time the unit tests better plus saves some flash and CPU.
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-12-19 09:35:38 +01:00
Marco Hauswirth
bdc6957c11
dont use BROACAST_MODE_ON during unit testing
2024-12-19 07:44:45 +01:00
Matthias Grob
077ade4f8f
Add IO timer channel mode for RPM and also sync up rpi configuration to work with all these drivers
2024-12-19 07:30:25 +01:00
Matthias Grob
b85ad98a98
Use defines instead of hardcoded magic values for maximum number of output channels and rpm filter time constant
2024-12-19 07:30:25 +01:00
Matthias Grob
8ce6ad6662
camera_capture: refactor to simplify capture channel initialization
2024-12-19 07:30:25 +01:00
Matthias Grob
267fa06da8
RPMCapture: fix copyright year, improve comments
2024-12-19 07:30:25 +01:00
Matthias Grob
f4c8e0e35f
RPMCapture: fix dt should not have a minimum which would limit to 6000rpm
2024-12-19 07:30:25 +01:00
Matthias Grob
b7b384ab2e
RPMCapture: add back filter reset on timeout
2024-12-19 07:30:25 +01:00
Matthias Grob
d027f8bf39
RPMCapture: publish outliers in rpm message but don't update the filters and estimate
2024-12-19 07:30:25 +01:00
Matthias Grob
9ca06be4f5
RPMCapture: refactor to clarify scheduling
2024-12-19 07:30:25 +01:00
Matthias Grob
c406e0a3a2
RPMCapture: refactor to clarify when an interrupt happened
2024-12-19 07:30:25 +01:00
Matthias Grob
ec4ed75264
RPMCapture: define period as UINT32_MAX when timed out
2024-12-19 07:30:25 +01:00
Matthias Grob
825dc47fad
RPMCapture: fix pulses per revolution parameter name, description, type -> use module params
2024-12-19 07:30:25 +01:00
oravla5
d31271c38e
RPMCapture: added pulse per rev parameter. Do not publish if pulses are to fast
2024-12-19 07:30:25 +01:00
bresch
1b105c937d
RpmControl: remove raw RPM spikes using median filter
2024-12-19 07:30:25 +01:00
Silvan Fuhrer
f687e3d8a4
RPM capture: publish every 1s without new data
...
Signed-off-by: Silvan Fuhrer <silvan@auterion.com >
2024-12-19 07:30:25 +01:00
Matthias Grob
6241db74db
mavlink: stream RAW_RPM message for ONBOAR_LOW_BANDWIDTH
2024-12-19 07:30:25 +01:00
Matthias Grob
8486f74b2a
RPMCapture: much better timeout scheduling
...
Not timing out based on a random interval but based
on the time after the last inerrupt.
2024-12-19 07:30:25 +01:00
Matthias Grob
c463cc42d0
RPM: clean up message
2024-12-19 07:30:25 +01:00
Matthias Grob
a60591378c
RPMCapture: switch to PublicationMulti to be compatible with the existing rpm drivers
2024-12-19 07:30:25 +01:00
Matthias Grob
41b55724bc
RPMCapture: Detect rpm sensing timeout
2024-12-19 07:30:25 +01:00
Matthias Grob
1bcdb3ef8c
RPMCapture: add hardcoded rpm processing
...
Such that we can continue development on this part.
The implementation was already used before porting things into the RPM capture module.
2024-12-19 07:30:25 +01:00
Beat Küng
491ee01ac4
rpm_capture: add rpm capture driver, publising pwm_input (for now)
2024-12-19 07:30:25 +01:00
Matthias Grob
ef823e5bb1
gz submodule: switch to hash on submodule main branch
...
after https://github.com/PX4/PX4-gazebo-models/pull/71 was merged
2024-12-18 18:06:37 +01:00
Perre
8a9391321d
Adding gimbal rate in gz simulation ( #24125 )
...
* Adding gimbal rate in gz simulation
* add submodule
2024-12-18 16:25:12 +01:00
bresch
6b10f1ca12
ekf: update change indicator
...
The calculation of "alpha" in the accel_horiz and height_rate lowpass
filters is slightly different than before.
2024-12-18 14:11:08 +01:00
bresch
480c232bfd
ekf2: use alpha filter class
2024-12-18 14:11:08 +01:00
bresch
fa5a781e20
AlphaFilter: set time constant instead of alpha
...
Then the update function can set the dt at every iteration if needed
2024-12-18 14:11:08 +01:00
bresch
37401d6fd1
AlphaFilter: allow setting dt in update call
2024-12-18 14:11:08 +01:00
Stefano Colli
0561f6c9fc
GZ: add gimbal simulation ( #23382 )
2024-12-18 12:15:03 +01:00
bresch
4a73195007
yaw_est: store attitude as quaternion instead of DCM
...
This saves flash and makes code simpler
2024-12-18 09:33:11 +01:00
Julian Oes
98fde4cbac
gimbal: correctly set gimbal_device_id
...
When we use a gimbal connected via "RC", so PWM via the Aux channels, we
need to set the gimbal_device_id to 1 as per the protocol.
This was missing for GIMBAL_DEVICE_ATTITUDE_STATUS, so I added that, and
fixed the name of that variable while at it.
2024-12-18 07:51:40 +01:00
Beat Küng
9e9d352eb2
mavlink: update submodule
...
MAV_STANDARD_MODE_SAFE_RECOVERY and MAV_STANDARD_MODE_RETURN_HOME got
merged.
2024-12-18 07:12:36 +01:00
Beat Küng
aca5a70964
standard_modes: add vehicle-type specific standard modes
...
See https://mavlink.io/en/messages/development.html#MAV_STANDARD_MODE .
The only standard mode that is not set is MAV_STANDARD_MODE_SAFE_RECOVERY,
as PX4 uses RTL for that (with configuration parameters).
2024-12-18 07:12:36 +01:00