PiotrKopka / matlab-toolboxes-robotics-vision

Automatically exported from code.google.com/p/matlab-toolboxes-robotics-vision
0 stars 0 forks source link

Device.GyroRate not working? #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by sarim.ut...@gmail.com on 3 Oct 2014 at 6:51

GoogleCodeExporter commented 9 years ago
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.

Original comment by sarim.ut...@gmail.com on 3 Oct 2014 at 6:52