Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
In the following code I am testing for the value of float s so that if the function DriveForwardFullSpeed is called and it has already set the value of s to 1.0 the function is dropped out and returns back to main. So the while loop keeps reading the srf08 and tests the value. Whats happening is the loop keeps ramping up the motors as if the value of s is being overwritten but I cant see how? Any ideas?