Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
282 B
11
Indexable
void loop() {
  
  while (ss.available() > 0){
    gps.encode(ss.read());
    if (gps.location.isUpdated()){
      for (int i = 4; i > 0; i--){
      motor1.setPosition(gps.speed.kmph() / i * 4.7);
      motor1.updateBlocking();
      delay(250);
      }
    }    
  }
}
Leave a Comment