Untitled
Anonymous
c_cpp
01/18/2024 4:51 PM
376 B
57
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