Quote:
Originally Posted by basicxman
Mine works perfectly with RobotC, I just wish it gave relative values as well as absolute values. Your compass sensor should be 8-10" away from the NXT, motors, and controllers. Make sure the sensor wire isn't wrapped or curled around the sensor, it should be smoothly distancing away from the sensor. Make sure the black nose of the sensor is facing a wall, not the ceiling. The sensor should be in horizontal orientation, not vertical.
Run the sample code "Compass_Sensor_Demo.c" found in C:\Program Files\Robotics Academy\ROBOTC for Mindstorms\Sample Programs\NXT\FTCTraining Programs
|
As for relative, I suppose you could do something where you take the reading, and make a variable with the value of the reading.