Commit Graph

64288 Commits

Author SHA1 Message Date
Iampete1 0d30dd1981 Tools: AutoTest: Rover: DriveMission: add a loiter turns waypoint 2024-07-31 20:25:17 +09:00
Iampete1 f8e5c3ad0c Rover: Circle: use only position target while driving to circle edge 2024-07-31 20:25:17 +09:00
Peter Barker 5f40319a3b ArduCopter: rename pid setters to include set_ in the names 2024-07-31 18:43:42 +10:00
Peter Barker 90ee339806 AC_PID: rename pid setters to include set_ in the names 2024-07-31 18:43:42 +10:00
Peter Barker 7f4074a22c AC_AutoTune: rename pid setters to include set_ in the names 2024-07-31 18:43:42 +10:00
Peter Barker fae3b39b15 AC_AttitudeControl: rename pid setters to include set_ in the names 2024-07-31 18:43:42 +10:00
George Zogopoulos 85bb4ad88f Plane: Revert min throttle during transitions 2024-07-31 18:23:40 +10:00
George Zogopoulos 548b871168 autotest: Added airspeedless takeoff test with stock parameters 2024-07-31 18:23:40 +10:00
George Zogopoulos ae6f41f414 Plane: Fixed unhandled TKOFF_THR_MAX=0 case 2024-07-31 18:23:40 +10:00
Iampete1 21ad679b61 AP_HAL_ChibiOS: GPIO: read: support virtual read of IOMCU pins 2024-07-31 18:13:01 +10:00
Iampete1 60d579dc88 AP_HAL_ChibiOS: GPIO: Check IOMCU after local pins for speed 2024-07-31 18:13:01 +10:00
Iampete1 624ab00c3e AP_HAL_ChibiOS: RCOut banner: check for GPIO on IOMCU 2024-07-31 18:13:01 +10:00
Iampete1 98c5eff7f0 AP_IOMCU: add GPIO mask getter and GPIO virtual read 2024-07-31 18:13:01 +10:00
Andy Piper b9bde4c488 AP_HAL_ChibiOS: add servo outputs as motors to FoxeerF405v2 2024-07-31 17:27:44 +10:00
Henry Wurzburg 847b8eab25 HWDEF:fix CUAV-7-Nano default batt monitor 2024-07-31 17:13:09 +10:00
Henry Wurzburg 9311344f4b Tools: correct prearm message 2024-07-31 17:01:07 +10:00
Henry Wurzburg 9b041be8a1 AC_Fence: correct prearm message 2024-07-31 17:01:07 +10:00
Eric Katzfey 4a3dad2f8f Tools: Added pthread library to the link of the QURT build Linux application 2024-07-31 10:00:35 +10:00
Eric Katzfey 9ef76de0c9 AP_HAL_QURT: Added support for dual mavlink streams 2024-07-31 10:00:35 +10:00
Peter Barker d7caf1e6b5 AP_Math: remove method operator
remove the metho operator from the class.

This means this will no longer work:

Quaternion q{0,1,2,3};
q(5,6,7,8);

.... that used to set the quaternion componets, but is an odd / atypical syntax to use
2024-07-31 08:54:37 +10:00
Peter Barker cac2c63e72 AC_PID: remove method operator
remove the metho operator from the class.

This means this will no longer work:

Quaternion q{0,1,2,3};
q(5,6,7,8);

.... that used to set the quaternion componets, but is an odd / atypical syntax to use
2024-07-31 08:54:37 +10:00
Hayden Donald 52ba8e8513 AP_Scripting: Change serial depends HAL_GCS to AP_SERIALMANAGER
Serial bindings were dependant on HAL_GCS_ENABLED but this is not ideal, it should be dependant on AP_SERIALMANAGER_ENABLED so that serial can function without GCS
2024-07-31 08:27:34 +10:00
“Jane_ZeroOne” 7f0e7ad097 Tools: add ZeroOneX6 2024-07-30 20:07:31 +10:00
“Jane_ZeroOne” d43dd5227a AP_HAL_ChibiOS: add ZeroOneX6 2024-07-30 20:07:31 +10:00
Peter Barker 61196b7d04 autotest: add tests for iBus telemetry 2024-07-30 20:00:16 +10:00
Peter Barker 602f5bc61c autotest: correct applet-testing scripts to use contexts for scripts
means we don't leave the script lying around in case of test failure
2024-07-30 11:39:46 +10:00
Iampete1 106068818e Tools: Scripts: cygwin build: remove setting of git safe directory 2024-07-30 11:39:06 +10:00
Iampete1 f17545b4c3 Actions: Cygwin: mark repo as safe on using correct path 2024-07-30 11:39:06 +10:00
Iampete1 75d74ccf90 Actions: enviroment and scripts: fix safe directory 2024-07-30 11:39:06 +10:00
Iampete1 4df05bac28 Actions: test environment: increase timeout to 60 mins 2024-07-30 11:39:06 +10:00
Peter Barker c47b795f34 board_types.txt: add comment on limiting allocations to 10-at-a-time 2024-07-30 11:38:17 +10:00
rishabsingh3003 6929ae60f9 board_types.txt: Reserving board id for Easy Aerial 2024-07-30 11:38:17 +10:00
Iampete1 26c51a8002 AP_TemperatureSensor: add logging option to only log sensors with no source 2024-07-30 11:07:17 +10:00
Iampete1 600d9eb7a8 AP_BattMonitor: Sum: report average temperature 2024-07-30 11:00:49 +10:00
Iampete1 45647718cb AP_BattMonitor: ESC: integrate consumed mah if not provided by ESC 2024-07-30 10:59:17 +10:00
Thomas Watson dc4d1bacdd AP_Scripting: adjust string metatable setup to fix sandbox integrity
In Lua, strings are the only type that come with a default metatable.
The metatable must be shared by all string objects, and it is set to be
the `string` library table each time that library is opened. In
Ardupilot's scripting engine, the last script to load then has access to
the string metatable as the library is opened fresh for each script, as
its `string` library will have been set to the metatable.

Therefore, if two scripts are loaded, A first and B second, and script B
executes e.g. `string.byte = "haha"`, then `string.byte()` and
`s:byte()` for script B are broken. Because the metatable is shared,
this also breaks `s:byte()` for script A, which violates the integrity
of the sandbox.

Fix the issue by disabling the metatable setup functionality when the
string libary is opened, then manually opening an additional copy of the
library (which won't be given to any script) and setting it as the
string metatable during intialization.

This will break any script that modifies the string metatable for
constructive purposes, but such a script could have been broken if it
weren't the only script running anyway.
2024-07-30 10:54:00 +10:00
Peter Barker 95281e5c17 hwdef: turn monior thread back on on some boards
most of these boards probably don't need it, but to make a PR no-binary-output...
2024-07-30 10:52:36 +10:00
Peter Barker 90b2a2acaa hwdef: change HAL_NO_MONITOR_THREAD out for HAL_MONITOR_THREAD_ENABLED
... and use a default value for peripherals
2024-07-30 10:52:36 +10:00
Thomas Watson 3a834e83c7 AP_Scripting: reference script environment directly
Referencing the original function to run is of questionable value and
the only user uses it to grab the script environent from the upvalues.

Instead, use a reference to the script environment table directly.
2024-07-30 10:33:56 +10:00
Thomas Watson 15255a36e4 AP_Scripting: reference function to run separately
Some bits of the code in the require machinery use the `lua_ref` to
access the script environment. However, this can change after the script
is rescheduled and it returns an arbitrary function to run next.

Resolve this by introducing `run_ref` which is specifically a reference
to the function to run next. `lua_ref` is preserved for the script
lifetime.
2024-07-30 10:33:56 +10:00
Thomas Watson c797baa37b autotest: add test for require() after rescheduling
It can end up broken due to incorrect assumptions about the executed
function's upvalues, which might change after rescheduling.
2024-07-30 10:33:56 +10:00
Thomas Watson da006d427d AP_Scripting: add test for require() after rescheduling
It can end up broken due to incorrect assumptions about the executed
function's upvalues, which might change after rescheduling.
2024-07-30 10:33:56 +10:00
Peter Barker 58f33087ac Copter: correct skyviper-v2450 compilation 2024-07-30 10:30:44 +10:00
Peter Barker f3e980d687 Tools: add build option to not send RC_CHANNELS_RAW
we keep this around in case we break old OSD setups
2024-07-30 10:29:58 +10:00
Peter Barker 40c3d1881c Rover: add build option to not send RC_CHANNELS_RAW
we keep this around in case we break old OSD setups
2024-07-30 10:29:58 +10:00
Peter Barker 004764032e Blimp: add build option to not send RC_CHANNELS_RAW
we keep this around in case we break old OSD setups
2024-07-30 10:29:58 +10:00
Peter Barker 29ff6a28d1 ArduSub: add build option to not send RC_CHANNELS_RAW
we keep this around in case we break old OSD setups
2024-07-30 10:29:58 +10:00
Peter Barker aec3feee25 ArduPlane: add build option to not send RC_CHANNELS_RAW
we keep this around in case we break old OSD setups
2024-07-30 10:29:58 +10:00
Peter Barker 86faf1ac52 ArduCopter: add build option to not send RC_CHANNELS_RAW
we keep this around in case we break old OSD setups
2024-07-30 10:29:58 +10:00
Peter Barker 7d6aeb38e4 AntennaTracker: add build option to not send RC_CHANNELS_RAW
we keep this around in case we break old OSD setups
2024-07-30 10:29:58 +10:00