Forum Replies Created
-
AuthorPosts
-
Jošt NovakParticipanttested, works
Thanks for support again!
Regards,
Novak Jost
Jošt NovakParticipantHello,
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!
Regards,
Novak Jost
Jošt NovakParticipantThats great,
just pulled your commits, will test later!
Thanks for your support.Regards,
Novak Jost
Jošt NovakParticipantI 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.
Anders
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)Regards,
Novak Jost
Jošt NovakParticipantSolved!
I forgot to copy dll library.
Regards
Jošt NovakParticipantsome extra info… Running compiled GyroExample form shell gives me this:
root@EV3:~# mono apps/GyroSensorExample2.exe
Unhandled Exception:
mono() [0x108e18]
mono() [0x109208]
mono() [0x109eec]
mono() [0x10ad14]
mono(mono_arm_throw_exception+0xf0) [0x15cdfc][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’.
Jošt NovakParticipantAnother thing:
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());
Program worked.Regards
-
AuthorPosts
Follow