You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getting correct values from the NavX, but the localization is jerky. Not sure if it is because of an incorrect parallel odo pod placement, or navX heading velocity. (Manually calculated, as the NavX does not give heading velocity normally.) In this clip, the robot is just spinning in a circle.
getting correct values from the NavX, but the localization is jerky. Not sure if it is because of an incorrect parallel odo pod placement, or navX heading velocity. (Manually calculated, as the NavX does not give heading velocity normally.) In this clip, the robot is just spinning in a circle.
72704586282__8FD582A0-4A63-4336-A03D-925C85F1C012.mov
I believe it has something to do with the way I calculated external heading, but I am not 100% sure.
public Double getExternalHeadingVelocity() {
double velInitial = Math.toRadians(-navx_device.getYaw());
double timeInitial = System.nanoTime();
double velFinal = Math.toRadians(-navx_device.getYaw());
double timeFinal = System.nanoTime();
double deltaV = velFinal - velInitial;
double deltaT = timeFinal - timeInitial;
double headingVel = deltaV/deltaT;
return headingVel;
}
The text was updated successfully, but these errors were encountered: