my 3d cube causing lag

All questions related to the configuration tool and groundstation

Moderator: lukasz

my 3d cube causing lag

Postby pizza » Tue Apr 27, 2010 3:51 am

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
pizza
 
Posts: 39
Joined: Wed Jan 27, 2010 2:33 am

Re: my 3d cube causing lag

Postby Tom » Tue Apr 27, 2010 10:04 am

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?
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium


Return to Software

Who is online

Users browsing this forum: No registered users and 12 guests

cron