Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
282 B
7
Indexable
Never
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