예제 #1
0
void onSetSpeed()
{
    float speed = cmdMessenger.readFloatArg();
    leftStepper.setSpeed(speed);
    rightStepper.setSpeed(speed);
    cmdMessenger.sendCmd(kStatus, "Speed set");
}
예제 #2
0
void onSetAcceleration()
{
    float accel = cmdMessenger.readFloatArg();
    leftStepper.setAcceleration(accel);
    rightStepper.setAcceleration(accel);
    cmdMessenger.sendCmd(kStatus, "Acceleration set");
}
예제 #3
0
void readLimitsArgs(float *lMin, float *lMax)
{
    *lMin = cmdMessenger.readFloatArg();
    *lMax = cmdMessenger.readFloatArg();
}
예제 #4
0
void readTuningArgs(float *Kp, float *Ki, float *Kd)
{
    *Kp = cmdMessenger.readFloatArg();
    *Ki = cmdMessenger.readFloatArg();
    *Kd = cmdMessenger.readFloatArg();
}