Reading sonars
All sensor readings update global vector State. To update all readings use gs();
Sonar readings are at positions STATE_SONAR_0, …, STATE_SONAR_15 and are given in inches.
get_sn();
dist = State[STATE_SONAR_1];
Previous slide
Next slide
Back to first slide
View graphic version