Update codes_for_scrimmage/hazmat/mainhazmatUPD.py
Minor Changes AGAIN!!
This commit is contained in:
@@ -123,12 +123,24 @@ async def Run4(): # From Send_Over_Final.py
|
|||||||
await drive_base.turn(90)
|
await drive_base.turn(90)
|
||||||
await drive_base.straight(500)
|
await drive_base.straight(500)
|
||||||
|
|
||||||
|
# while True:
|
||||||
|
# distance_mm = await lazer_ranger.distance()
|
||||||
|
# print('distancing...',distance_mm)
|
||||||
|
|
||||||
|
# if distance_mm < 300:
|
||||||
|
# drive_base.stop
|
||||||
|
# break
|
||||||
|
# else:
|
||||||
|
# drive_base.straight(300)
|
||||||
|
# print('running...')
|
||||||
|
# await wait(10)
|
||||||
await multitask(
|
await multitask(
|
||||||
drive_forward(),
|
drive_forward(),
|
||||||
monitor_distance()
|
monitor_distance()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Add Rishi's code here
|
# Add Rishi's code here
|
||||||
async def Run5():
|
async def Run5():
|
||||||
await drive_base.straight(519)
|
await drive_base.straight(519)
|
||||||
|
|||||||
Reference in New Issue
Block a user