As I am working on a VEXCode odometry tutorial, that may be published later on, and I am stuck with one major issue. I am simulating my code utilizing lua, and I have the ability to utilize:
local m = wait(time)
And I cannot figure out how to do the same thing with waiting/sleeping in a VEXCode task. I am looking for a wait that, when called, returns the actual value the robot has waited for to make calculations slightly more precise based upon time by doing:
worldX += XVelocityWorldSpace * (m/time)
Is there anything I can utilize that allows waiting to return the actual time waited, or would I have to deal with the slight time error from the statement?
Note: By utilizing such a statement it improved the odom position accuracy from 95% to 99%, and it would be awesome if theres a way to do this in vexcode