Skip to content
Snippets Groups Projects
Commit 590b41d9 authored by Davis, Duane T's avatar Davis, Duane T
Browse files

MISSION_PLANNING: if to elif in executeTimedLoop method

Doesn't change anything functionally (the two original "if" statements
are mutually exclusive), but it just cleans up the code some.
parent 761c0f67
No related branches found
No related tags found
No related merge requests found
...@@ -363,7 +363,7 @@ class SwarmManager(nodeable.Nodeable): ...@@ -363,7 +363,7 @@ class SwarmManager(nodeable.Nodeable):
cmd = behavior.compute_command() cmd = behavior.compute_command()
if isinstance(cmd, brgmsg.LLA): if isinstance(cmd, brgmsg.LLA):
self.__publish_wpt(cmd) self.__publish_wpt(cmd)
if isinstance(cmd, brgmsg.LLAS): elif isinstance(cmd, brgmsg.LLAS):
self.__publish_spd_wpt(cmd) self.__publish_spd_wpt(cmd)
elif isinstance(cmd, stdmsg.UInt16): elif isinstance(cmd, stdmsg.UInt16):
self.__publish_wpt_id(cmd) self.__publish_wpt_id(cmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment