Team-2502 / RobotCode2018

All of our code for our 2018 robot.
GNU General Public License v3.0
3 stars 0 forks source link

navX = :( #28

Closed andrewgazelka closed 6 years ago

andrewgazelka commented 6 years ago

The placement of the navX in the robot = :(

It is by a motor which induces a magnetic field which interferes with magnetometers. When logging Robot.NAVX.getPitch() it always returns (30,40). When rotating the robot (even slowly) in teleop, the robot will be about 20 degrees too far when the robot has gone around 360 degrees according to Robot.NAVX.getYaw(). An example of this is seen in the image below (the robot started facing the chair directly in front of the camera).

image

ritikmishra commented 6 years ago

Fixed by replacing the navx