Example #1
0
float forwardSimpleMM(float distanceInMM) {
    MotionParameter* motionParameter = getDefaultMotionParameters(MOTION_PARAMETER_TYPE_FORWARD_OR_BACKWARD);
    return forwardMM(distanceInMM, motionParameter->a, motionParameter->speed);
}
Example #2
0
void backwardMM(PidMotion* pidMotion, float distanceInMM, float a, float speed, OutputStream* notificationOutputStream) {
    // Go at a position in millimeter
    forwardMM(pidMotion, -distanceInMM, a, speed, notificationOutputStream);
}
Example #3
0
float backwardMM(float distanceInMM, float a, float speed) {
    // Go at a position in millimeter
    forwardMM(-distanceInMM, a, speed);
    return -distanceInMM;
}
Example #4
0
void forwardSimpleMM(PidMotion* pidMotion, float distanceInMM, OutputStream* notificationOutputStream) {
    MotionParameter* motionParameter = getMotionParameters(MOTION_PARAMETER_TYPE_FORWARD_OR_BACKWARD);
    forwardMM(pidMotion, distanceInMM, motionParameter->a, motionParameter->speed, notificationOutputStream);
}