Skip to content

Commit

Permalink
Update copter_takeoff.py
Browse files Browse the repository at this point in the history
  • Loading branch information
YongxueLiu authored Dec 25, 2024
1 parent 0dbbb87 commit 74b4263
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def main(args=None):

is_ascending_to_takeoff_alt = node.get_cur_geopose().pose.position.altitude < TAKEOFF_ALT

if is_ascending_to_takeoff_alt:
if not is_ascending_to_takeoff_alt:
raise RuntimeError("Failed to reach takeoff altitude")

except KeyboardInterrupt:
Expand Down

0 comments on commit 74b4263

Please sign in to comment.