Skip to content

Commit

Permalink
comp commit for onyx
Browse files Browse the repository at this point in the history
  • Loading branch information
Dat-Bois committed Aug 18, 2023
1 parent a8acc3c commit 7f21c7d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions missions/onyx_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
dhdDir = -1 #change (1 is plus 20 which is clockwise)

myNode = rospy.init_node("missions", anonymous=True)
#time.sleep(30)
time.sleep(30)

# load sub config
config = deviceHelper.variables
Expand Down Expand Up @@ -59,7 +59,8 @@ def onExit(signum, frame):
coin_toss.run(gate_heading)
coin_toss.cleanup()

rc.forwardDist(5, 2)
time.sleep(2)
rc.forwardDist(6, 2)
time.sleep(2)
rc.lateralUni(-2,4)
time.sleep(1)
Expand All @@ -79,7 +80,7 @@ def onExit(signum, frame):
modem.send_msg("style")

styleMission = style_mission.StyleMission()
styleMission.run(gate_heading-5)
styleMission.run(gate_heading-8)
styleMission.cleanup()


Expand All @@ -88,7 +89,7 @@ def onExit(signum, frame):
modem.send_msg("buoy")

# Run buoy approach
rc.forwardDist(3, 2)
rc.forwardDist(5, 2)
rc.set_depth(1)
#time.sleep(4)
buoyMission = buoy_mission.BuoyMission(target)
Expand All @@ -107,10 +108,10 @@ def onExit(signum, frame):
time.sleep(2)
rc.forwardDist(3, 2)
time.sleep(2)
rc.setHeadingOld(gate_heading+(dhdDir*20)) # guesstimating
rc.setHeadingOld(gate_heading+(dhdDir*45)) # guesstimating
time.sleep(2)

rc.forwardUni(2, 60)
rc.forwardUni(2, 47)

if not fail_modem:
modem.send_msg("dhd approach")
Expand Down

0 comments on commit 7f21c7d

Please sign in to comment.