petercorke / robotics-toolbox-matlab

Robotics Toolbox for MATLAB
GNU Lesser General Public License v2.1
1.29k stars 444 forks source link

Device.GyroRate not working? #7

Open petercorke opened 9 years ago

petercorke commented 9 years ago

Reported by sarim.utoledo, Oct 3, 2014 What steps will reproduce the problem?

  1. Connect the EV3 brick by USB
  2. Run the command: gyrorate = b.inputReadSI(0,Device.Port2,Device.GyroRate);
  3. The value is NaN. Doesn't matter if the robot is moving or not, it is always NaN. It also tends to reset the Gyro Angle every time it runs.

What is the expected output? What do you see instead? The command should give the value of the gyro rate. If stationary, it should give zero. But it always gives NaN.

What version of the product are you using? On what operating system? I am using QUT EV3 MATLAB toolkit, current version on Windows 7 64 bit with MATLAB R2013a. Other functions seem to work fine.

Please provide any additional information below.

Oct 3, 2014 Delete comment #1 sarim.utoledo Just to make it clear, I have checked the connections etc. The Device.GyroAng works fine, so I am sure Gyro sensor is connected to the port I am using there.