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

Buoys mission #1163

Closed
wants to merge 10 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added self to buoy_positions
  • Loading branch information
DaniParr committed Feb 20, 2024
commit 93ae59c563af121e043746ef3703cdee24a9884a
Original file line number Diff line number Diff line change
@@ -3,13 +3,19 @@


class StartSignal(SubjuGatorMission):
buoy_positions = [[5, 10, 3], [6, 8, 5], [3, 12, 10]] # x, y, z displacements
async def run(self, args):
for i in len(buoy_positions):
self.send_feedback(f'Travelling to Buoy {i}')
await self.go(self.move().right(buoy_positions[i][0]).up(buoy_positions[i][1].forward(buoy_positions[i][2])))
self.send_feedback(f'Back to Origin')
await self.go(self.move().right(-buoy_positions[i][0]).up(-buoy_positions[i][1].forward(-buoy_positions[i][2])))


buoy_positions = [[5, 10, 3], [6, 8, 5], [3, 12, 10]] # x, y, z displacements

async def run(self, args):
for i in len(self.buoy_positions):
self.send_feedback(f"Travelling to Buoy {i}")
await self.go(
self.move()
.right(self.buoy_positions[i][0])
.up(self.buoy_positions[i][1].forward(self.buoy_positions[i][2])),
)
self.send_feedback("Back to Origin")
await self.go(
self.move()
.right(-self.buoy_positions[i][0])
.up(-self.buoy_positions[i][1].forward(-self.buoy_positions[i][2])),
)
Loading