Commit Graph
39521 Commits
Author SHA1 Message Date
Leonard Hall f9735e68eb AC_WPNav: AC_PosControl: Fix units on set_correction_speed_accel_U 2025-08-05 11:04:37 +09:00
Leonard Hall 9217217573 AC_AttitudeControl: AC_PosControl: Fix units on set_correction_speed_accel_U 2025-08-05 11:04:37 +09:00
Peter Barker 6ba8231901 bootloaders: add MatekL431 bootloader
to be used by all of the variants
2025-08-05 09:04:28 +09:00
Peter Barker c2e4ee9791 hwdef: use USE_BOOTLOADER_FROM_BOARD on MatekL431 variants 2025-08-05 09:04:28 +09:00
Peter Barker d70074d1e9 AP_NMEA_Output: use get_roll_deg in place of degrees(get_roll_rad) etc. 2025-08-05 09:00:08 +09:00
Peter Barker 60cf43135e AP_Mount: use get_roll_deg in place of degrees(get_roll_rad) etc. 2025-08-05 09:00:08 +09:00
Peter Barker 8c5d28a2cf AP_DroneCAN: use get_roll_deg in place of degrees(get_roll_rad) etc. 2025-08-05 09:00:08 +09:00
Peter Barker 57688f5e03 AP_Compass: use get_roll_deg in place of degrees(get_roll_rad) etc. 2025-08-05 09:00:08 +09:00
Peter Barker 8538cf65c8 AC_AttitudeControl: use get_roll_deg in place of degrees(get_roll_rad) etc. 2025-08-05 09:00:08 +09:00
Iampete1 e630c11e1c AP_Vehicle: init msp after CAN manager 2025-08-04 18:09:55 -05:00
Huibean 395fd9c0f6 AP_HAL_ChibiOS:remove vm l431 target unnecessary defaults.parm 2025-08-05 07:40:25 +10:00
Huibean 171e0e6b72 AP_HAL_ChibiOS:remove vm l431 target HAL_USE_EMPTY_IO define that cause save param fail 2025-08-05 07:40:25 +10:00
Andrew Tridgell 5370da33b6 AP_Param: ensure flags is filled in for find()
top level parameters don't have flags, but we need to fill in the
flags return field as otherwise we can refuse to set a parameter based
on it being internal and the allow_set_via_mavlink() check
2025-08-04 09:03:07 +10:00
Andrew Tridgell 96b968b7be GCS_MAVLink: allow for multiple MAVFTP sessions
this allows multiple groundstations to perform FTP operations at the
same time, making FTP much more useful in multi-GCS environments or
when a companion computer wants to use FTP
2025-08-04 09:03:07 +10:00
Andrew Tridgell 2c34635d6c GCS_MAVLink: split GCS_FTP into it's own class 2025-08-04 09:03:07 +10:00
Peter Barker 60d7f4d3e6 AP_HAL_SITL: emit flightview connection information on stdout
just handy if you want a quick reminder where this traffic goes to
2025-08-03 13:06:52 -05:00
Willian Galvani 21fdace4ea AP_Camera_Servo: report back zoom and focus levels 2025-08-03 07:42:37 +10:00
David Howie 85a8a55611 RC_Channel: Add All-Vehicles value to scripting options for OPTION param. 2025-08-02 15:12:49 +10:00
Abhishek Shukla 12254b37a9 hwdef: BOTWINGF405 add hwdef and readme file 2025-08-01 17:02:23 +01:00
Leonard Hall 3d199a9bc5 AC_WPNav: AC_WPNav_OA: Improve function internal comments 2025-08-01 14:09:50 +09:00
Leonard Hall 8584c0efea AC_WPNav: AC_WPNav_OA: Update Function descriptions 2025-08-01 14:09:50 +09:00
Leonard Hall fa07ec96a9 AC_WPNav: AC_WPNav_OA: Convert from cm to m 2025-08-01 14:09:50 +09:00
Leonard Hall f81c8354ab AC_WPNav: AC_WPNav_OA: Fix variable axis and units 2025-08-01 14:09:50 +09:00
Leonard Hall a7c6669e0b AC_WPNav: AC_Loiter: Improve function internal comments 2025-08-01 14:09:50 +09:00
Leonard Hall 8d2ee40e74 AC_WPNav: AC_Loiter: Update Function descriptions 2025-08-01 14:09:50 +09:00
Leonard Hall ac9dc2d3e3 AC_WPNav: AC_Loiter: Improve parameter descriptions 2025-08-01 14:09:50 +09:00
Leonard Hall 9a01a596e9 AC_WPNav: AC_Loiter: Convert from cm to m 2025-08-01 14:09:50 +09:00
Leonard Hall f97d4372db AC_WPNav: AC_Loiter: Fix variable axis and units 2025-08-01 14:09:50 +09:00
Peter Barker 207106fa62 SITL: SIM_Vicon: add usage information 2025-07-30 17:53:13 +10:00
massout e7653551b0 AP_HAL_Linux: Two staged fix for Raspberry pi 5 "Cannot detect board-type" 2025-07-30 12:27:15 +10:00
massout 2b8c945147 AP_HAL_Linux: Fix for Raspberry pi 5 "Cannot detect board-type" 2025-07-30 12:27:15 +10:00
Leonard Hall 12ab5a9804 AC_WPNav: AC_Circle: Address PR Feedback 2025-07-29 21:23:53 +10:00
Leonard Hall 95e78b7c54 AC_WPNav: AC_Circle: Improve function internal comments 2025-07-29 21:23:53 +10:00
Leonard Hall da121418a6 AC_WPNav: AC_Circle: Improve function internal comments 2025-07-29 21:23:53 +10:00
Leonard Hall bf94a86c97 AC_WPNav: AC_Circle: Update Function descriptions 2025-07-29 21:23:53 +10:00
Leonard Hall 6b994a6562 AC_WPNav: AC_Circle: Improve parameter descriptions 2025-07-29 21:23:53 +10:00
Leonard Hall 6df1d293b9 AC_WPNav: AC_Circle: Convert from cm to m 2025-07-29 21:23:53 +10:00
Leonard Hall 45be69087c AC_WPNav: AC_Circle: Fix rotation rate parameter getter 2025-07-29 21:23:53 +10:00
Leonard Hall 68a358366d AC_WPNav: AC_Circle: Move to radians internally 2025-07-29 21:23:53 +10:00
Leonard Hall f0a8e36867 AC_WPNav: AC_Circle: convert from _yaw_cd to _yaw_rad 2025-07-29 21:23:53 +10:00
lthall eda59864ae AC_WPNav: AC_Circle: Add units 2025-07-29 21:23:53 +10:00
Peter Barker 55277a339e AP_Scripting: copter_terrain_brake: read aloud activation message 2025-07-29 21:23:39 +10:00
Randy Mackay 70c1468af0 AP_HAL_ChibiOS: replace CubeNode PDF with reference to CubeNode wiki 2025-07-29 04:44:59 -06:00
Thomas WatsonandPeter Barker 529bf321be AP_HAL: add test for snprintf and thus ftoa_engine behavior
Ensures subnormals aren't formatted grossly wrong nor cause hangs.

Reveals two additional bugs:

* The requested number of digits is not always produced.

* The precision isn't enough to distinguish every float.

Outputs from the (nominally) original assembly implementation running on
a real AVR (avr-gcc 7.3.0) are included. That implementation exhibits
none of these flaws so it's likely they have been introduced during the
C port.

Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2025-07-29 16:35:03 +09:00
Thomas WatsonandJasonMDavey f7cde8bf59 AP_HAL: fix ftoa_engine hang with very small floats
Subnormal floats with mantissas of 7 or less (14 before the previous
fix) have less digits to format than the conversion loop expects,
causing it to never meet the condition to exit and looping forever. This
cannot occur with normal floats because the implicit leading 1 always
produces a sufficiently large value to format.

This causes a hang with the 12 floats closest to zero (26 before the
previous fix) if a suitably large precision is passed (which it is by
default using e.g. `%f`). Fix by exiting the conversion loop if we get
in the case where we can't add any more digits.

Co-authored-by: JasonMDavey <65718912+JasonMDavey@users.noreply.github.com>
2025-07-29 16:35:03 +09:00
Thomas Watson 251dca81ff AP_HAL: fix ftoa_engine formatting of subnormal values as 1/2 truth
Subnormal values were formatted as 1/2 of their true value because it
was assumed the mantissa's significance corresponded to an exponent of
0, not the correct exponent of 1 (which represents 2x the value). Fix by
setting the correct exponent in this case.

This affects the ~16.7 million floats closest to zero.
2025-07-29 16:35:03 +09:00
Peter Barker 08b59cbcfa SRV_Channel: iterate using ARRAY_SIZE in place of constant 2025-07-29 10:12:11 +10:00
Peter Barker d637b4663f AP_HAL: SIMState: correct iteration count across PWM output channels 2025-07-29 10:12:11 +10:00
Peter Barker 96ebdfd828 AP_HAL_ChibiOS: correct output of RCOutput::read on SimOnHardware
we're doing writes, but not reads
2025-07-29 10:12:11 +10:00
Peter Barker 949272a70b SITL: add and use AP_SIM_VICON_ENABLED
this doesn't compile on sim-on-hardware when debugging is enabled (stack frame too large)
2025-07-29 10:12:11 +10:00