There are several ways to achieve the same results in coding. Driving in a straight line using the Gyro sensor in the EV3 Mindstorms kit can be accomplished using a technique called "Proportional Compensation". This tutorial teaches the logic behind this approach and how to implement it in your own application.