Quote:
Originally Posted by mjcoss
So that
t1 = GetClock();
jag->SetSpeed(500);
t2 = GetClock();
elapse time = t2 -t1
|
Thanks for the offer.
No, the elapsed times I am looking for are:
dt1: how long does it take from the time you ask the Jaguar what the motor speed is, to the time you read the answer that comes back
dt2: how long does it take from the time you read the answer, to the time your code sends a new command to the Jag
dt3: how long does it take from the time you send a new command to the Jag, to when it receives the command.
If you aren't doing all three operations in the same execution cycle, please mention that too.
If you aren't reading the speed from the Jag and sending a new command based on that speed, you would have to add that code to get what I'm looking for.