![]() ![]() You should study this class to see how the EV3GyroSensor is used to return direction information to your programs. Create a new class file called GyroSensor in the library package and copy this code into that class. A Gyro sensor reports any direction change by your robot and that information can be used to control direction of travel.Īs we did for the Touch and UltraSonic sensors, we are going to use a library class that wraps the EV3GryoSensor class and exposes simpler methods to use in our programs. You can use a Gyro sensor to make sure you travel in a straight line or to control turns accurately. ![]() ![]() A Gyro (gyroscope) sensor can be used to monitor robot direction of travel.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |