Hello,
I’m trying to use EV3 gyro, which will be our main sensor for orientation. Running gyroExample, which is part of SD card image downloaded from monobrick website, always gives me -600 deg/sec.
If i try to compile gyroExample from sources and download it to EV3, it just crashes before printing anything to console. Same thing happens with my program which looks like this:
LcdConsole.WriteLine(“Test print…”);
EV3GyroSensor gyro = new EV3GyroSensor(SensorPort.In4 , GyroMode.Angle);
System.Threading.Thread.Sleep(5000);
for (int i = 0; i < 100; i++) {
LcdConsole.WriteLine(“Sensor value: ” + gyro.Read());
System.Threading.Thread.Sleep(1000);
}
Test print does not print, and program closes immediately.
I tried re-compilling MonoBrickFirmware library from sources (nothing changes).
Any idea what might be wrong?
Regards
Follow