-
Notifications
You must be signed in to change notification settings - Fork 17
Sensors
Constructor:
Sensors(class main_robot* robot,
uint8_t usMod, uint32_t usChan, uint8_t isMod, uint32_t isChan,
uint8_t ilMod, uint32_t ilChan,
uint8_t gyMod, uint32_t gyChan);
This constructor takes a reference to a robot, as well as mod and channel numbers for ultrasonic sensors, infrared shooter sensors, infrared load sensors, and gyroscopes.
float Sensors::getVoltsInfShooter()
This method returns the voltage from the infrared shooter sensor.
float Sensors::getVoltsInfLoad()
This method returns the voltage from the infrared load sensor.
float Sensors::getVoltsUltra()
This method returns the voltage from the ultrasonic sensor.
float Sensors::getInfraredShooter()
This method returns the distance in inches from the infrared shooter sensor.
bool Sensors::getInfraredLoad()
This method returns a boolean for whether or not the infrared load is above the threshold.
float Sensors::getUltrasonic()
This method returns the distance in inches from the ultrasonic sensor.
float Sensors::getGyroAngle()
This method returns the angle of the Gyroscope.
double Sensors::getGyroRate()
This method returns the rate of the Gyroscope.
double Sensors::getGyroRate()
This code was never implemented.
void Sensors::setGyroSens(float vpdps /*Volts Per Degree Per Second*/)
This code was never implemented.