SHARE
TWEET

Untitled

a guest Jun 27th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int measuredDistance;
  2. int distanceThreshold = 1; // 1 meter
  3.  
  4. void * sensor_thread(void * threadid) {
  5.    // measure distance
  6.    // update measuredDistance
  7. }
  8.  
  9. int main () {
  10.    while(1){
  11.       // do image processing
  12.       if (measuredDistance < distanceThreshold)
  13.          stopTheCar();
  14.    }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top