Commit Graph
92 Commits
Author SHA1 Message Date
Peter BarkerandClaude Haiku 4.5 c1170033f4 ArduSub: Remove inertial_nav
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-05-09 21:41:19 +10:00
Thomas Watson c6a9d385bd Sub: make flight mode parameters into array
This removes the need for the pointer to the first flight mode, and
removes the undefined behavior resulting from indexing past that first
flight mode and hoping the others follow (though this is unlikely to
pose a problem in practice).

Saves a few bytes of RAM and flash as the pointer is no longer needed
and code is no longer necessary to set it up.

Also fixes the bounds check condition of that array to match its size so
there is no longer the possibility of indexing one past it.
2026-04-13 12:50:48 +01:00
Randy Mackay 0c59c5ce50 Sub: use AHRS_ORIGIN in place of local ORIGIN params 2026-02-05 14:24:44 -05:00
Randy Mackay 8ba67d9eda Sub: integrate ANGLE_MAX move to ATC 2026-01-28 08:45:12 +11:00
Willian Galvani db6e276336 Sub: simplify and fix get_alt_rel 2026-01-26 14:52:00 -03:00
Leonard Hall 6419f811f9 Sub: NEU to NED renaming - No compiler change 2025-12-17 08:03:10 +09:00
Iampete1 0b82583da4 ArduSub: move RPM lib to vehicle 2025-07-22 10:33:55 +10:00
Leonard Hall 00610257a6 Sub: Support - AP_Motors: Add units to dt 2025-07-07 13:39:08 +09:00
Leonard Hall 3ca24e073c Sub: Support - AC_AttitudeControl: Add units to dt 2025-07-07 13:39:08 +09:00
Leonard Hall cba72b694c Sub: Support - AC_PosControl: Add units to dt 2025-07-07 13:39:08 +09:00
Willian Galvani 5e72d6b210 ArduSub: refactor aux servos 2025-06-17 09:39:18 +10:00
Willian Galvani 7c0f01bd8d Sub: rename has_manual_throttle to requires_altitude() 2025-05-27 11:26:13 +10:00
Leonard Hall bb2a301656 Sub: Remove INAV 2025-05-24 09:23:35 +09:00
Leonard Hall 35f4f81adf Sub: AC_PosControl: Remove INAV and update_estimates() 2025-05-24 09:23:35 +09:00
Peter Barker a8cbc2285f ArduSub: rename get_relative_position_NED_origin methods to include 'float'
can't have both postype and these methods, something has to shift names
2025-05-24 09:23:35 +09:00
Henry Wurzburg a005efa009 Sub:remove SITL dependancies 2025-05-06 08:34:43 +10:00
Leonard Hall a151aadd3e Sub: add units and frames to AC_WPNav methods
Sub
2025-05-02 21:47:07 +10:00
Peter Barker d56da13a84 Sub: remove stale comment 2025-04-30 13:33:42 +10:00
Peter Barker 1680a71c09 ArduSub: rename ArduSub.cpp to Sub.cpp
makes this like our other vehicles
2025-04-30 13:33:42 +10:00
Peter Barker 7d5e73fa08 ArduSub: move contents of Sub.cpp into ArduSub.cpp 2025-04-30 13:33:42 +10:00
Henry Wurzburg 7486650dd8 ArduSub: add RC to Sub 2025-04-25 12:21:43 -03:00
Peter Barker 3a4d890a83 ArduSub: re-order initialiser lines so -Werror=reorder will work 2024-09-24 22:50:28 +10:00
Peter Barker 80fa661042 ArduSub: move logger object up to AP_Vehicle 2024-02-13 10:54:29 +11:00
Peter Barker 852944a1b1 Sub: correct compilation when HAL_LOGGING_ENABLED is false 2024-01-17 18:25:55 +11:00
Clyde McQueen 5e8fed9d43 Sub: provide script access to joystick buttons 2023-09-27 08:14:36 +10:00
Willian Galvani 9b70ac1286 Sub: big mode refactor 2023-07-13 14:56:40 -03:00
Leonard Hall 76c76a6928 Sub: Support changing update period 2022-12-13 17:10:06 +11:00
Peter Barker 8a9a856de8 ArduSub: move logging of compass ERR flags into AP_Compass 2022-05-10 19:46:40 +10:00
Peter Barker 5a4963e4f8 ArduSub: move error logging of sensor health into AP_Baro 2022-05-03 17:38:09 +10:00
Andrew Tridgell c059f8c044 Sub: fixes for use of longitude_scale() 2021-07-10 07:20:41 +10:00
Willian Galvani 6ef37daaad Sub: use scheduler.get_loop_period_s() instead of MAIN_LOOP_SECONDS 2021-07-08 13:09:34 -04:00
Leonard Hall 266bd22df3 Sub: Use PosControl fixes 2021-05-24 20:13:37 +10:00
Peter Barker 7658c13c69 Sub: let AP_Vehicle handle loop() 2020-02-06 14:41:06 +11:00
Andy Piper 1bd6adec23 Sub: create generic vehicle management and move runcam to it
add OSD and RCMapper to build
2019-12-30 13:02:04 +11:00
Peter Barker b47733142f GLOBAL: rename DataFlash_Class to AP_Logger 2019-01-18 18:08:20 +11:00
Peter Barker d8e90ded90 Sub: adjust for Location_Class and Location unification 2019-01-16 11:45:29 +11:00
Peter Barker ecd69e4359 Sub: remove pointless zero-initialisation 2018-10-23 16:12:45 +11:00
Patrick José Pereira dcd3f83539 Sub: Remove void as parameter
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-07-02 11:25:03 -04:00
Peter Barker c17514cf85 Sub: use AP_FWVersion singleton 2018-06-18 19:10:37 +01:00
Peter Barker 133b9930a6 Sub: make scheduler track whether it has called the delay callback 2018-05-09 16:15:38 +10:00
Randy Mackay defdeaed95 Sub: integrate AC_Loiter 2018-04-04 10:45:10 +09:00
Peter Barker 980fbf6cfb Sub: move logging of PM messages to AP_Scheduler 2018-02-13 17:15:05 +11:00
Peter Barker 7313d9e7a7 Sub: use AP_Scheduler's loop() function 2018-02-13 17:15:05 +11:00
Peter Barker 9bb1224cef Sub: use scheduler ticks in place of mainloop_count 2018-02-13 17:15:05 +11:00
Randy Mackay 6a701b2412 Sub: move pos-control pids to pos-control library 2018-01-23 12:00:43 +09:00
Randy Mackay cef50d8a30 Sub: velocity pi moved to position control library 2018-01-23 12:00:43 +09:00
Andrew Tridgell 4c9f48244e Sub: removed create() method for objects
See discussion here:

  https://github.com/ArduPilot/ardupilot/issues/7331

we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach

Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Lucas De Marchi cf6ea9642e global: use static method to construct AP_Terrain 2017-09-26 03:01:21 +01:00
Lucas De Marchi 4f42facefc global: use static method to construct AC_Avoid 2017-09-26 03:01:21 +01:00
Lucas De Marchi b05610870c global: use static method to construct AP_Rally 2017-09-26 03:01:21 +01:00