neo-0007
72b4baab8b
ArduPlane: remove redundant scheduler validation
...
Remove validation check for scheduler loop rate consistency as this
is now guaranteed by proper initialization in AP_Scheduler.
2025-09-30 10:19:13 +10:00
Andrew Tridgell
9e7993c47e
Plane: added BBX messages for blackbox logging
...
this was requested by the developers of FlightCoach to improve the
display of the ribbon by ensuring that all the data they use is time
aligned.
2025-08-20 17:40:16 +10:00
Leonard Hall
118ea88e77
Plane: Add units to start_takeoff
2025-08-13 11:06:41 +09:00
Jazhi
5f70687b55
Plane: fix short failsafe
...
Co-Authored-By: Henry Wurzburg <hwurzburg@yahoo.com >
2025-08-12 09:32:38 +10:00
Leonard Hall
8fe69361ef
Plane: Change all AC_WPNav accessors to meters
2025-07-29 09:56:17 +10:00
Leonard Hall
f904d5061f
Plane: Support - AC_WPNav: add units to crosstrack_error
2025-07-25 14:20:19 +09:00
Leonard Hall
2efe2932a1
Plane: Quadplane: Add units and axis to variables
2025-07-23 10:33:38 +10:00
Iampete1
066c07553f
ArduPlane: move RPM lib to vehicle
2025-07-22 10:33:55 +10:00
Peter Barker
dc65e9ac7f
ArduPlane: add and use AP_ADSB_AVOIDANCE_ENABLED
...
this gates the "ADSB" avoidance feature used for macro-level avoidance. It's not actually limited to ADSB as input...
2025-06-26 16:32:22 +10:00
Peter Barker
ec5606c81b
ArduPlane: rename AHRS get_roll etc accessors to include _rad
2025-06-05 17:28:41 +10:00
Peter Barker
400dc16d39
ArduPlane: use get_roll_deg in place of roll_sensor (etc.)
2025-06-03 09:48:53 +10:00
Leonard Hall
8276e745bc
Plane: Use single call to update_estimate
2025-05-29 08:39:42 +09:00
Ryan Friedman
ed13951b86
ArduPlane: add quadplane takeoff for DDS
...
Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com >
2025-05-28 14:01:22 +10:00
Leonard Hall
8e2485b426
Plane: AC_PosControl: Remove INAV and update_estimates()
2025-05-24 09:23:35 +09:00
Leonard Hall
ba1de061fd
Plane: add units and frames to AC_WPNav methods
...
Plane
2025-05-02 21:47:07 +10:00
Peter Barker
0e21302729
ArduPlane: make GCS library update mavlink system ID
...
we can afford to do this at full rate, it's a cheap operation. Trying to slow it down wuld just make it more expensive
2025-04-14 17:28:34 +10:00
Andrew Tridgell
2e928f1bd2
Plane: never allow terrain_alt=1 and relative_alt=0
...
the Location object does not handle this combination. Throw an
internal error and try to cope as best we can
2025-04-10 06:44:55 +10:00
Peter Barker
fe58c922c0
ArduPlane: create and use MAV_ parameter namespace
...
Move serveral parameters in
2025-04-07 10:58:41 +10:00
Andrew Tridgell
5e34fe600a
Plane: auto-deploy landing gear on fixed wing landing
...
if LGR_OPTIONS is set to auto-deploy then deploy
2025-03-27 08:12:02 +11:00
Andrew Tridgell
cadb4d307b
Plane: fixed guided VTOL command in terrain mode
...
if the GCS commands a guided re-position with an AGL frame and
quadplane is in Q_GUIDED_MODE=1 then this prevents us adding the home
altitude to the target terrain altitude
2025-03-18 10:48:28 +11:00
Andrew Tridgell
1eb64914d8
Plane: prevent learning bad ARSPD_RATIO
...
colcon build/test / build-test (push) Has been cancelled
Cygwin Build / build (push) Has been cancelled
ESP32 Build / build (esp32buzz, 10) (push) Has been cancelled
ESP32 Build / build (esp32s3empty, 10) (push) Has been cancelled
Macos Build / build (CubeOrange) (push) Has been cancelled
Macos Build / build (sitl) (push) Has been cancelled
QURT Build / build (push) Has been cancelled
test chibios / build (CubeOrange-ODID, 10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-PPP, 10, chibios) (push) Has been cancelled
test chibios / build (CubeOrange-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (CubeRed-EKF2, 10, chibios) (push) Has been cancelled
test chibios / build (CubeRedPrimary-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (MatekF405-Wing, 10, chibios) (push) Has been cancelled
test chibios / build (Pixhawk6X-PPPGW, 10, chibios) (push) Has been cancelled
test chibios / build (SOHW, 10, chibios) (push) Has been cancelled
test chibios / build (build-options-defaults-test, 10, chibios) (push) Has been cancelled
test chibios / build (configure-all, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv2-plane, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv3, 10, chibios) (push) Has been cancelled
test chibios / build (fmuv3-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (iofirmware, 10, chibios) (push) Has been cancelled
test chibios / build (new-check, 10, chibios) (push) Has been cancelled
test chibios / build (periph-build, 10, chibios) (push) Has been cancelled
test chibios / build (revo-bootloader, 10, chibios) (push) Has been cancelled
test chibios / build (revo-mini, 10, chibios) (push) Has been cancelled
test chibios / build (signing, 10, chibios) (push) Has been cancelled
test chibios / build (stm32f7, 10, chibios) (push) Has been cancelled
test chibios / build (stm32h7, 10, chibios) (push) Has been cancelled
test chibios / build (stm32h7-debug, 10, chibios) (push) Has been cancelled
test dds / build (sitl) (push) Has been cancelled
test dds / build (stm32h7) (push) Has been cancelled
test Linux SBC / build (bbbmini, armhf) (push) Has been cancelled
test Linux SBC / build (bebop, armhf) (push) Has been cancelled
test Linux SBC / build (bhat, armhf) (push) Has been cancelled
test Linux SBC / build (canzero, armhf) (push) Has been cancelled
test Linux SBC / build (erlebrain2, armhf) (push) Has been cancelled
test Linux SBC / build (linux, base) (push) Has been cancelled
test Linux SBC / build (navigator, armhf-musl) (push) Has been cancelled
test Linux SBC / build (navigator64, aarch64) (push) Has been cancelled
test Linux SBC / build (navio, armhf) (push) Has been cancelled
test Linux SBC / build (navio2, armhf) (push) Has been cancelled
test Linux SBC / build (pxf, armhf) (push) Has been cancelled
test Linux SBC / build (pxfmini, armhf) (push) Has been cancelled
test scripts / build (astyle-cleanliness) (push) Has been cancelled
test scripts / build (check_autotest_options) (push) Has been cancelled
test scripts / build (logger_metadata) (push) Has been cancelled
test scripts / build (param_parse) (push) Has been cancelled
test scripts / build (python-cleanliness) (push) Has been cancelled
test scripts / build (validate_board_list) (push) Has been cancelled
test plane / build (base) (push) Has been cancelled
test plane / build (clang) (push) Has been cancelled
test unit tests and sitl building / build (examples, base) (push) Has been cancelled
test unit tests and sitl building / build (examples, clang) (push) Has been cancelled
test unit tests and sitl building / build (sitl, base) (push) Has been cancelled
test unit tests and sitl building / build (sitl, clang) (push) Has been cancelled
test unit tests and sitl building / build (unit-tests, base) (push) Has been cancelled
test unit tests and sitl building / build (unit-tests, clang) (push) Has been cancelled
test plane / autotest (sitltest-plane-tests1a) (push) Has been cancelled
test plane / autotest (sitltest-plane-tests1b) (push) Has been cancelled
test plane / autotest (sitltest-quadplane) (push) Has been cancelled
test environment setup / build (bookworm, debian) (push) Has been cancelled
test environment setup / build (bullseye, debian) (push) Has been cancelled
test environment setup / build (buster, debian) (push) Has been cancelled
test environment setup / build (focal, ubuntu) (push) Has been cancelled
test environment setup / build (jammy, ubuntu) (push) Has been cancelled
test environment setup / build (latest, archlinux) (push) Has been cancelled
test environment setup / build (noble, ubuntu) (push) Has been cancelled
test environment setup / build-alpine (push) Has been cancelled
test coverage / build (coverage, base, coverage) (push) Has been cancelled
test coverage / build (sitltest-can, periph) (push) Has been cancelled
test coverage / finish (push) Has been cancelled
this prevents learning of ARSPD_RATIO when not in fly-forward or not
armed
the scenario that happened on a real aircraft was gps glitches in a
hanger combined with airspeed offset causing the learning of an
ARSPD_RATIO of 4.0, resulting in a stall in an AUTO mission and a
crash
2025-03-07 15:42:09 +11:00
Peter Barker
302040dcb0
ArduPlane: remove vestiges of LearnType::LEARN_INTERNAL
...
57a3bc1397 changed the code from "internal" to "in-flight
It seems the old value of "1" was no longer valid
It also changed things to that the learning system saved the offsets.
2025-01-28 12:23:53 +11:00
Henry Wurzburg
010e6ba0b0
ArduPlane: mode AUTOLAND enhancements
...
Co-authored-by: Andrew Tridgell <andrew@tridgell.net >
Co-authored-by: Pete Hall <iampete@hotmail.co.uk >
2025-01-21 11:30:23 +11:00
Henry Wurzburg
32f5afb22a
ArduPlane: add AutoLand fixed-wing mode
2024-12-31 09:18:49 +11:00
Peter Barker
073edac6ee
Plane: rename ArduPlane.cpp to Plane.cpp
2024-12-24 12:26:42 +11:00
Peter Barker
9b96ae7811
Plane: merge Plane.cpp into ArduPlane.cpp
2024-12-24 12:26:42 +11:00
Peter Barker
fcd7c5beb9
ArduPlane: move logger object up to AP_Vehicle
2024-02-13 10:54:29 +11:00
Peter Barker
6ee5ab41fd
ArduPlane: allow compilation with HAL_LOGGING_ENABLED false
2024-01-17 18:25:55 +11:00
Tom Pittenger
4eeb1f18d3
Plane: fixup is_landing and is_taking_off members
2023-06-26 06:54:56 -07:00
Zach Flathers
b35b94f553
Plane: update based on PR feedback
2023-06-26 06:54:56 -07:00
Zach Flathers
6177cbbfe2
Plane: Add is_landing/is_taking_off scripting support
2023-06-26 06:54:56 -07:00
Andy Piper
eca398e7a2
Plane: create generic vehicle management and move runcam to it
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
2b7f9247e8
Plane: use AP_FWVersion singleton
2018-06-18 19:10:37 +01:00
Andrew Tridgell
30e224e705
Plane: 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
Tom Pittenger
7271586a47
Plane: invert auto_state.no_crosstrack flag to be auto_state.crosstrack. Non-functional change
2017-11-23 09:25:18 -08:00
Lucas De Marchi
53c82b4aaf
global: use static method to construct DataFlash_Class
2017-09-26 03:01:21 +01:00
Lucas De Marchi
18ff17e22c
ArduPlane: move version to a static member
...
We should never include version.h or ap_version.h headers directly
on a header since this will trigger a complete rebuild of the
codebase when we commit to the repository. The ap_version.h header
is auto-generated containing information from the current commit.
If we include it in a header, every other file that ends up including
that header (directly or indirectly) will need to be rebuilt. No
ccache's cache beats having to do nothing when the header is just
not included.
version.h contains information that is kept on a struct inside
each vehicle. Rather than using the macros from each vehicle,
the getter should be preferred, which returns an AP_FWVersion
referente.
2017-09-23 21:37:45 -07:00
Peter Barker
c15c1b84a4
Plane: add constant structure holding firmware version
2017-08-30 15:54:46 +01:00
Peter Barker
88a7167cb9
Plane: move should_log check of log bitmask into DataFlash
2017-06-29 15:26:27 +01:00
Peter Barker
97145f20fc
Plane: fix startup of CLI menu system
2017-02-20 00:06:23 -08:00
Peter Barker
1d7994e9ba
Plane: create GCS_Plane subclass
2017-02-13 17:03:06 +11:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Lucas De Marchi
baa287e5e5
ArduPlane: use separate header for version macro
...
Having the version macro in the config.h and consequently in the main
vehicle header means that whenever the version changes we need to
compiler the whole vehicle again. This would not be so bad if we weren't
also appending the git hash in the version. In this case, whenever we
commit to the repository we would need to recompile everything.
Move to a separate header that is include only by its users. Then
instead of compiling everything we will compile just a few files.
2016-05-06 13:11:28 -03:00
Caio Marcelo de Oliveira Filho
2e464a53c2
AP_HAL: make code not depend on concrete HAL implementations
...
The switching between different AP_HAL was happening by giving different
definitions of AP_HAL_BOARD_DRIVER, and the programs would use it to
instantiate.
A program or library code would have to explicitly include (and depend)
on the concrete implementation of the HAL, even when using it only via
interface.
The proposed change move this dependency to be link time. There is a
AP_HAL::get_HAL() function that is used by the client code. Each
implementation of HAL provides its own definition of this function,
returning the appropriate concrete instance.
Since this replaces the job of AP_HAL_BOARD_DRIVER, the definition was
removed.
The static variables for PX4 and VRBRAIN were named differently to avoid
shadowing the extern symbol 'hal'.
2015-10-21 09:16:07 +11:00
Andrew Tridgell
1797e2baa8
Plane: simpler initalisation of plane class
...
take advantage of C++11 in-class initialisation
2015-06-01 08:48:54 +10:00
Lucas De Marchi
7c4cf41ebc
ArduPlane: use functor macros
...
Functor is not yet being used but let's make is macro fallback to the
previous Delegate implementation for easy of transition between the two.
2015-05-26 13:46:54 +10:00
Andrew Tridgell
6fe65cdd9a
Plane: removed duplicate rangefinder
2015-05-21 07:48:53 +10:00
Andrew Tridgell
18c37935c9
Plane: convert from .pde to .cpp files
2015-05-21 07:48:52 +10:00