PDA

View Full Version : Discussion Artificial Horizon GUI


tonyfelloni
Jul 23, 2009, 08:24 AM
Hi Guys

Im new to the forum but at the minute I am developing an artificial horizon to give roll and pitch of an aircraft. Does anyone know of any opensource GUI that I could use for displaying the attitude of my development board on the PC. At present I send data about the boards attitude serially to the pc via UART - rs323. I'd prefer not to have to develop a GUI to represent this information on screen.

Any help would be appreciated.

All the best

Tony.

clolson
Jul 23, 2009, 02:03 PM
Hi Guys

Im new to the forum but at the minute I am developing an artificial horizon to give roll and pitch of an aircraft. Does anyone know of any opensource GUI that I could use for displaying the attitude of my development board on the PC. At present I send data about the boards attitude serially to the pc via UART - rs323. I'd prefer not to have to develop a GUI to represent this information on screen.

Any help would be appreciated.

All the best

Tony.

This might be overkill, but if you feed the data into FlightGear (www.flightgear.org), you could have instant access to a variety of 2d and 3d instrument panels. You could even have a full 3d virtual cockpit with virtual scenery that approximately matches the real world, all live and in sync with the real UAV. If you can log/transmit your control surface positions, you could even animate the virtual control surfaces in FlightGear. Oh, and if the ground station computer running FlightGear has access to the internet, you could inject your live flight into the FlightGear multiplayer system.

http://www.youtube.com/watch?v=SAMGnK9ztdA&feature=channel_page

Curt.

vassilis
Jul 23, 2009, 05:20 PM
Tony,

I have successfully used a component from Tom's web site:
http://tom.pycke.be/mav/100/artificial-horizon

You can see it in action in my blog:
http://vrhome.net/vassilis/2009/01/update-on-imu-controller-progress/

Vassilis

chwory
Jul 24, 2009, 03:35 PM
http://www.codeproject.com/KB/miscctrl/Avionic_Instruments.aspx

tonyfelloni
Jul 28, 2009, 06:18 AM
Hi Guys

Appreciate the responses.

@ Vassilis
I have seen tom's code and I also came across your site before but I have no idea how to read in the data from the serial port to VB so that I can use Tom's artificial horizon, maybe it is something simple but I would be grateful if you could point me in the right direction regarding this.

Cheers

Tony

vassilis
Jul 28, 2009, 11:22 PM
Tony,

- Install Microsoft Visual Basic 2008 Express Edition (free download from Microsoft)
- Install Microsoft Visual C# 2008 Express Edition (free download from Microsoft)
- Download the source code of my IMU from http://vrhome.net/vassilis/imu-stabilizer/
- Unzip the IMU source code and open the following Visual Studio project IMUStabilizer\Display\IMUDisplay\IMUDisplay.sln
- Have a look at MainForm.cs, the serial port is the serialPort (System.IO.Ports.SerialPort) object and the artificial horizon is the imuHorizon (ArtificialHorizon) object.
- Use imuHorizon.pitch_angle and imuHorizon.roll_angle to update the artificial horizon.

I hope this helps.

Vassilis

yyz
Jul 29, 2009, 01:58 AM
Way overkill but Matlab would get it done.

Mike



Hi Guys

Im new to the forum but at the minute I am developing an artificial horizon to give roll and pitch of an aircraft. Does anyone know of any opensource GUI that I could use for displaying the attitude of my development board on the PC. At present I send data about the boards attitude serially to the pc via UART - rs323. I'd prefer not to have to develop a GUI to represent this information on screen.

Any help would be appreciated.

All the best

Tony.

Buzz_Lightyear
Jul 29, 2009, 03:08 AM
Also a bit of overkill, but if you want to work in linux, you can easily use paparazzi's GCS. You would only need to send it the appropriate messages.

tonyfelloni
Jul 29, 2009, 09:37 AM
Tony,

- Install Microsoft Visual Basic 2008 Express Edition (free download from Microsoft)
- Install Microsoft Visual C# 2008 Express Edition (free download from Microsoft)
- Download the source code of my IMU from http://vrhome.net/vassilis/imu-stabilizer/
- Unzip the IMU source code and open the following Visual Studio project IMUStabilizer\Display\IMUDisplay\IMUDisplay.sln
- Have a look at MainForm.cs, the serial port is the serialPort (System.IO.Ports.SerialPort) object and the artificial horizon is the imuHorizon (ArtificialHorizon) object.
- Use imuHorizon.pitch_angle and imuHorizon.roll_angle to update the artificial horizon.

I hope this helps.

Vassilis

Hi Vassilis

I have downloaded your code, so cheers for that, unfortunatly im not familier with the Visual Studio enviornment so it will take me a while to go through the code to get what I want.

Can I ask you what format or string do u send to the pc t display your atttude? At present I send the roll angle followed by a comma then the pitch angle. It looks like this in say hyperterm:

180,159
182,167
183,123

Each line is terminated with \n \r. I can easily edit this to send out any format. If I know what u do I could match it to get the GUI working.

Thanks Again

Tony

tonyfelloni
Aug 04, 2009, 04:22 AM
Ok I spent the entire bank holiday weekend doing tutorials on C# to try and figure out your code. Still unable to get my data to do anything on the GUI. I keep getting invalid frame as I dont know what data I need to send it. I have the baud rates etc set up correctly.

Any help is appreciated,

Regards

Tony

tonyfelloni
Aug 04, 2009, 11:04 AM
Got it sorted today

Cheers

Tony