Commit Graph

508 Commits

Author SHA1 Message Date
George Zogopoulos
2024eba262 autotest: Added TECS test for constantly changing home alt 2024-12-12 15:13:40 +11:00
Andrew Tridgell
0d4f4fd81a autotest: added non-compass takeoff test 2024-12-12 15:13:40 +11:00
Andrew Tridgell
75c3b149a2 autotest: update plane switch fence test
the FENCE_AUTOENABLE option should be honoured even with a fence
switch in the disable position
2024-12-12 15:13:40 +11:00
Andrew Tridgell
5e43f068b2 autotest: fixed test suite for FENCE_AUTOENABLE=2 2024-12-12 15:13:40 +11:00
Peter Barker
e40ae8e649 autotest: install terrain handlers in TerrainLoiter test
needs terrain, was passing because previous tests were providing hte autopilot with the data
2024-10-02 18:10:45 +10:00
Peter Barker
653aff7f8a Tools: split Plane tests into tests1a and tests1b 2024-10-02 18:10:45 +10:00
George Zogopoulos
36991de2b8 autotest: Improved takeoff tests
- Also added a ground rolling takeoff test.
- Rebased conflict resolution originating from https://github.com/ArduPilot/ardupilot/pull/28030
2024-10-02 17:09:07 +10:00
Tarik
5ea787a46d Autotest: Modify look_for_wiggle to test for individual servo movements 2024-10-02 17:05:45 +10:00
Peter Barker
b73bef5b13 autotest: correct frame in reposition command 2024-10-02 12:10:16 +10:00
Andrew Tridgell
6bf69eb7dc autotest: fixed MAV_CMD_GUIDED_CHANGE_ALTITUDE
need terrain handlers installed to support terrain targets
2024-10-01 07:15:44 +10:00
Andrew Tridgell
f48b0375d8 autotest: improved GliderPullup test
use LOITER_TO_ALT and a landing, allowing for a much better test of
the full glider pullup mission
2024-10-01 07:15:44 +10:00
Andrew Tridgell
ecec9c47b1 autotest: force use of airspeed in GliderPullup 2024-09-29 11:06:05 +10:00
Peter Barker
beb4226740 Plane: add test for MAV_CMD_NAV_LOITER_TO_ALT 2024-09-26 20:23:15 +10:00
timtuxworth
fdbbd320a4 Tools: test use Location::AltFrame for guided_state.target_alt_frame 2024-09-24 22:51:02 +10:00
Peter Barker
d6386cc1fd autotest: add test we don't die with bad RC channel for roll 2024-09-10 22:00:50 +10:00
Andrew Tridgell
d27d34987c autotest: added GliderPullup test 2024-09-10 10:15:34 +10:00
Peter Barker
7280ff3ffd autotest: fix flapping TakeoffAuto3 test 2024-09-07 09:40:43 +10:00
Peter Barker
ab77509551 Tools: create and use WaitAndMaintainServoChannelValue
allows for checking for "maintain" on servo channel values
2024-09-07 09:40:43 +10:00
Peter Barker
d74050c5e3 autotest: tweak takeoff test names to avoid poor summary output 2024-09-07 00:14:21 +10:00
Andrii Fil
d802b0ec9a Tools: support MAV_CMD_EXTERNAL_WIND_ESTIMATE 2024-09-04 10:14:45 +10:00
Peter Barker
6354a8b912 autotest: add test for forced arm/disarm 2024-08-02 16:29:13 +10:00
Peter Barker
8f8e796e00 autotest: add a disabled test for CRUISE maintaining height when home alt changed 2024-08-01 09:53:41 +10:00
George Zogopoulos
548b871168 autotest: Added airspeedless takeoff test with stock parameters 2024-07-31 18:23:40 +10:00
Henry Wurzburg
9311344f4b Tools: correct prearm message 2024-07-31 17:01:07 +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
George Zogopoulos
b5c91a1690 autotest: Converted parameter TKOFF_MODE to TKOFF_OPTIONS 2024-07-29 15:50:32 +10:00
George Zogopoulos
1e6e291b52 autotest: New tests
Autotests for takeoffs have been added for Plane, covering AUTO and
TAKEOFF mode takeoffs.

An auxiliary `set_servo` method has been added to `vehicle_test_suite.py`.
2024-07-29 15:50:32 +10:00
Peter Barker
317c59c709 autotest: tidy various ArduPlane autotests
autotest: tidy Plane TerrainRally test

autotest: tidy Plane TestFlaps test

autotest: tidy Plane ThrottleFailsafe test

autotest: tidy Plane GripperMission test

autotest: tidy Plane FenceStatic test

autotest: tidy Plane FenceRTL tests

autotest: tidy FenceRetRally test

autotest: tidy Plane ahrs2 test

autotest: tidy Plane RangeFinder test

autotest: tidy Plane ADSB test

autotest: tidy Plane LOITER test

autotest: tidy Plane EKFLaneswitch test

autotest: tidy Plane FenceAltCeilFloor test

autotest: tidy Plane FenceMinAltAutoEnable

autotest: tidy Plane FenceMinAltEnableAutoland

autotest: tidy Plane FenceMinAltAutoEnableAbort

autotest: tidy Plane FenceCircleExclusionAutoEnable

autotest: tidy self.homeloc out of MainFlight
2024-07-28 11:53:44 +10:00
Andy Piper
0b6a1f4fe7 autotest: test for circle exclusion fence using AUTOENABLE=2 2024-07-24 08:24:06 +10:00
Andy Piper
e30dc2c536 autotest: fix fence autotests
add Plane.FenceMinAltEnableAutoland
test that vehicle can be landed manually after descending below fence floor
2024-07-24 08:24:06 +10:00
Andy Piper
c216536a94 autotest: test aborted landing with fence correctly 2024-07-24 08:24:06 +10:00
Andy Piper
cedccdb8fe autotest: add test for auto-disabling min alt fence breaches on disarming
clean-up fence manipulation functions and add test for auto-enablement on copter
update tests to have some FENCE_ENABLE tests
add avoidance minimum and maximum altitude fence
add fence switch test while flying
add FenceAutoEnableDisableSwitch for auto mode 2
add more scenarios for plane fence auto-enable
validate fence rc switch behaviour
check fence autoenable by taking off in guided mode
more FENCE_AUTOENABLE tests
add FenceEnableDisableAux and FenceMinAltAutoEnableAbort
2024-07-24 08:24:06 +10:00
Peter Barker
8dcd3986c7 autotest: correct uploading of exclusion circles 2024-07-17 08:33:44 +10:00
Peter Barker
1de60a31b0 autotest: rename do_reposition to send_do_reposition 2024-07-17 08:33:44 +10:00
Peter Barker
eb539f2c4a autotest: allow message hooks to be instances of a MessageHook class
allows state to be encapsulated within the object rather than simply in the same scope / closure of the method being called.

Will allow easier re-use of these blocks
2024-07-02 11:05:40 +10:00
Peter Barker
bac008d51c autotest: tidy pre_arm_checks 2024-07-02 09:56:40 +10:00
Peter Barker
a77a0c22a7 autotest: add test for logged script statistics 2024-06-25 11:07:07 +10:00
Peter Barker
47625e693e autotest: test guided attitude control with no GPS 2024-06-11 14:17:10 +10:00
Paul Riseborough
5c76e77c11 autotest: Reduce time threshold used in plane deadreckoning test 2024-06-09 14:25:02 +10:00
Andrew Tridgell
09623f46e8 autotest: enable LOG_REPLAY in deadreckoning test 2024-06-09 14:25:02 +10:00
Paul Riseborough
b17e189473 Tools: update AHRS_OPTIONS for dead reckoning test 2024-06-09 14:25:02 +10:00
Paul Riseborough
19f6b2d6d6 Tools: relax req accuracy for plane dead reckoning when not using airspeed 2024-06-09 14:25:02 +10:00
Paul Riseborough
9d2b05840b Tools: Disable DCM fallback for plane dead reckoning tests 2024-06-09 14:25:02 +10:00
Paul Riseborough
87a867ee2e Tools: Use GPS jamming option in EKF dead reckoning autotests 2024-06-09 14:25:02 +10:00
Paul Riseborough
8639543cdd Tools: Allow dead reckoning test longer to learn wind if no aspd sensor 2024-06-09 14:25:02 +10:00
Paul Riseborough
2b027a7265 Tools: re-work copter and plane loss of GPS auto tests
Explicitly test time taken to reset to GPS loss and regain of lock for copter without and plane with dead reckoning assistance.
2024-06-09 14:25:02 +10:00
Peter Barker
f930ba788b autotest: add test showing throttle saturation problem
autotest: verbose minimum_duration in wait_message_field_values
2024-05-21 14:23:36 +10:00
Andrew Tridgell
1da50110d8 Tools: added Glider SITL model 2024-05-05 07:57:54 +10:00
Ryan Friedman
2c803e365e Tools: Autotest: Test for EAHRS misconfiguration prearm failure
* And test for single GPS reporting on Microstrain7

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-04-30 09:18:46 +10:00
Peter Barker
bcf63326ea autotest: install hook in context
busted sanity check allowed this to survive
2024-04-29 17:51:00 +10:00