How do I get the value of the gyroscope?

Hello! I’m trying to use the gyro sensor for the autonomous of our robot. I tried using the following to get the value of the gyro sensor:
SensorValue()
analogRead()
But both of these are “undeclared identifiers”. Does someone have a solution for this?

Just do
yourgyroname.get_value();

Look at the ADI API subsection for the PROS Docs for reference on finding these functions.

2 Likes