This video is part of a series of video tutorials on how to operate Vex EXP robotics.
This video focuses on writing to the console and brain.
Python Code:
==============================================================================
vexcode_brain_precision = 0
vexcode_console_precision = 0
myVariable = 0
def when_started1():
global myVariable, vexcode_brain_precision, vexcode_console_precision
while True:
print("h:")
print(print_to_console_number_format().format(brain_inertial.heading(DEGREES)), end="")
print(" r:", end="")
print(print_to_console_number_format().format(brain_inertial.orientation(ROLL, DEGREES)))
wait(1, SECONDS)
wait(5, MSEC)
when_started1()
==============================================================================
28 авг 2024