diff options
Diffstat (limited to 'debug/motordriver/calibrated_motor')
| -rw-r--r-- | debug/motordriver/calibrated_motor/calibrated_motor.ino | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/debug/motordriver/calibrated_motor/calibrated_motor.ino b/debug/motordriver/calibrated_motor/calibrated_motor.ino index 9367f2a..60e2c04 100644 --- a/debug/motordriver/calibrated_motor/calibrated_motor.ino +++ b/debug/motordriver/calibrated_motor/calibrated_motor.ino @@ -1,6 +1,4 @@ #include <TimerThree.h> -#include <SD.h> -#include <SPI.h> #define ArrayElementCount(needRPM) (sizeof(needRPM) / sizeof(needRPM[0])) @@ -108,6 +106,10 @@ void move(int sped) { } //Serial.println(sp); } +void RPMmove(int Rsped) { + int idx = nearest(Rsped, motordata, ArrayElementCount(motordata)); + move(idx); +} void loop() { |
