Untitled
unknown
c_cpp
2 years ago
282 B
31
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);
}
}
}
}Editor is loading...
Leave a Comment