The GT My Block

The GT My Block uses a Timer block to measure the duration of a single loop iteration. The timer value is used to determine the value of the tInt variable block, which is the average period of time of one iteration of the balance loop, over which the Gyro rates are integrated to determine the Gyro position. tInt is also used to calculate the derivative of the motor position to determine the motor rate. Because the rate at which the program executes may vary, the integration time will vary. Thus, the GT My Block allows us to compensate for any affect on calculations in other parts of our program.

The GT My Block

The variable block cLo is a loop ...

Get Learning LEGO MINDSTORMS EV3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.