Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autotest: add upload_rally_points_from_locations #25168

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

peterbarker
Copy link
Contributor

Tested with this:

diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py
index fc0659c8dfc..fa54b869686 100644
--- a/Tools/autotest/arducopter.py
+++ b/Tools/autotest/arducopter.py
@@ -10412,6 +10412,7 @@ class AutoTestCopter(AutoTest):
             self.BrakeZ,
             self.MAV_CMD_DO_FLIGHTTERMINATION,
             self.MAV_CMD_DO_LAND_START,
+            self.test_upload_rally_points_from_locations,
         ])
         return ret
 
@@ -10421,6 +10422,21 @@ class AutoTestCopter(AutoTest):
         ])
         return ret
 
+    def test_upload_rally_points_from_locations(self):
+        '''test uploading Rally points'''
+        self.wait_ready_to_arm()
+        loc = self.mav.location()
+        self.location_offset_ne(loc, 50, 0)
+        loc2 = self.mav.location()
+        self.location_offset_ne(loc2, 0, 50)
+        self.upload_rally_points_from_locations([loc, loc2])
+        self.takeoff(10, mode='LOITER')
+        self.set_rc(2, 1300)
+        self.delay_sim_time(10);
+        self.set_rc(2, 1500)
+        self.change_mode('RTL')
+        self.delay_sim_time(6000)
+
     def tests(self):
         ret = []
         ret.extend(self.tests1a())

image

@peterbarker peterbarker merged commit f72bfcc into ArduPilot:master Oct 3, 2023
@peterbarker peterbarker deleted the pr/upload_download_rally branch October 3, 2023 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant