Chapter 12 TR

This commit is contained in:
Danny Staple
2023-01-04 23:11:28 +00:00
parent fe92edb605
commit 9fa461fb2a
2 changed files with 6 additions and 7 deletions
+3 -2
View File
@@ -30,13 +30,14 @@ async def control_loop():
angle = robot.imu.euler[0]
controller.update(dt, angle)
robot.uart.write(f"{angle}, 0\n".encode())
robot.send_line(f"{angle}, 0")
async def main():
while not robot.check_imu_status():
await asyncio.sleep(0.1)
robot.uart.write("Ready to go!\n".encode())
robot.send_line("Ready to go!")
# Wait for start signal
while True:
if robot.uart.in_waiting: