Untitled
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
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); } } } }