This would suggest that this use the same system as RotateMotor family. This is not the case.
1) I don't understand yet what you mean.
What is wrong?
Won't the motor go correctly to the target if I'm always using
Code: Select all
safecall void RotateToEncoderTarget(char port, char pwr, int accel, long target) {
SetMotorRegulationTime (10);
PosRegEnable (port);
PosRegSetMax (port, pwr, accel);
PosRegSetAngle (port, target);
}
?
Sometimes I'll have to move my robot arms directly to the upper or lower limit or a certain postion in between (e.g., start position).
Sometimes I have to move it relative legs until a sensor event happens (e.g., positioning the claw to grab an object).
So I have to decide what function to use depending on the circumstances requested behaviour, but all function actually rotate a certain motor.
A syntax which can be adjusted and applied to relative and absolute targetting would be intuitively the best:
RotateMotor(port,"RelativeAngle") vs. RotateToTarget(port, "AbsoluteTarget")
So again, what's wrong, what am I missing?
(simple sentences in simple words by a simple grammar I probably understand (in English, no way in French). Too many words exceeding 5 or 6 lines cause a stack overflow in my head: it's 40 years ago I had English lessons, I never talked to English People in reality, and I actually never had French at all - but what about you talking German?)
2)
Speed unit is degree per 100 ms
is this the same speed unit used by OnFwd or RotateMotor (in absolute values 0...100) ?