Page 1 of 1

my 3d cube causing lag

PostPosted: Tue Apr 27, 2010 3:51 am
by pizza
hi guys, besides the popular downloaded artificial horizon which shows pitch and roll, do you guys use any other tools to aid the development of imu? for instance a 3d cube. for me the cube is helpful as it simulates rotations.

My own cube is in c# and updates on euler angles from the serial port. it rotates correctly, but it causes the artificial horizon and others to starve(jerky updates). I am updating these GUI at only 50Hz. I am not sure if it's starvation or low refresh rate.

Any ideas how I can solve the problem? maybe you guys have a better cube to reccommend

Re: my 3d cube causing lag

PostPosted: Tue Apr 27, 2010 10:04 am
by Tom
You can use my code from the gluonpilot configuration tool (see SVN).
On my machine it updates 1500 times per second :-)

I guess the real lag is probably in the processing of your serial commands. Is it on the same thead as the drawing procedure of the 3D cube?