Skip to content

Commit

Permalink
fixed bug in set_yaw test
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjohnson97 committed Aug 5, 2023
1 parent 2c5bdc0 commit c85de99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unittests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from speed_yaw import set_speed, set_yaw
from upload_waypoints import upload_qgc_mission
from land import land
from utilities.get_autopilot_info import get_autopilot_info


class TestAll(unittest.TestCase):
Expand Down Expand Up @@ -97,12 +98,13 @@ def test_set_speed(self):
self.assertEqual(result, 0)

def test_set_yaw(self):
autopilot_info = get_autopilot_info(self.mav_connection, 1)
result = takeoff(self.mav_connection, 10)
self.assertEqual(result, 0)
time.sleep(1)

# Use a yaw angle of 45 and a yaw rate of 25 for the test
result = set_yaw(self.mav_connection, 45, 25)
result = set_yaw(self.mav_connection, 45, 25, autopilot=autopilot_info["autopilot"])
self.assertEqual(result, 0)

def test_upload_waypoints(self):
Expand Down

0 comments on commit c85de99

Please sign in to comment.