Forum Replies Created
Thanks for support again!
it is true! Pulled latest sources and tested them. Gyro output now changes only twice per second (roughly). I am afraid you have created yet another bug!
just pulled your commits, will test later!
Thanks for your support.
I actually think that there is a problem with the UART driver. Most likely something to do with the CalcRawOffset() function in the UART class… it might be possible to figure out what “index” to use if the whole raw data set is read and plotted… then it should be possible to see what indexes match.
I examined exactly that part of the code, but i couldn’t figure out how indexing works… by UART driver you mean d_uart kernel driver written in C? or monobrick uart class?
I also tried recompiling d_uart module from git repository at https://github.com/mindboards/ev3sources
and replacing it with “your” d_uart module (same result)
I forgot to copy dll library.
some extra info… Running compiled GyroExample form shell gives me this:
root@EV3:~# mono apps/GyroSensorExample2.exe
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type ‘GyroSensorExample.MainClass+<Main>c__AnonStorey0’ from assembly ‘GyroSensorExample, Version=1.0.5196.19288, Culture=neutral, PublicKeyToken=null’.
I had similar problem with colorSensorExample.
Program located on SD card worked properly, but compiled program crashed before printing anything.
After removing this line:
LcdConsole.WriteLine(“Sensor value: ” + sensor.ReadAsString());