Chapter 12 TR
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user