How to show Attitude in textbox

All questions related to the configuration tool and groundstation

Moderator: lukasz

How to show Attitude in textbox

Postby madcobra » Sun Nov 27, 2011 5:02 pm

Hi all,

Thanks for Tom share the code of Gluonconfig. I would like to show Attitude in Textbox . The method like this is correct ? :

void serial_AttitudeCommunicationReceived(Communication.Frames.Incoming.Attitude attitude)
{
artificialHorizon.pitch_angle = attitude.PitchDeg;
artificialHorizon.roll_angle = attitude.RollDeg;
_X.Text = attitude.PitchDeg.ToString();
_Y.Text = attitude.RollDeg.ToString();
}

But nothing happen

Thanks,

JM
madcobra
 
Posts: 22
Joined: Thu Jan 28, 2010 10:45 am

Re: How to show Attitude in textbox

Postby Tom » Mon Nov 28, 2011 5:07 pm

Hi JM,

This seems to be correct... Could you attach the complete file to have a closer look?
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: How to show Attitude in textbox

Postby madcobra » Sun Dec 04, 2011 10:39 am

Thanks Tom,
The data of AHRS didn't show on C# develoment environment but when I ran it normal...It 's working.
madcobra
 
Posts: 22
Joined: Thu Jan 28, 2010 10:45 am

Re: How to show Attitude in textbox

Postby Tom » Sun Dec 04, 2011 10:42 am

Ok great! :-)
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 5 guests

cron