Hello,

I am working on a project to estimate the angle of attack and sideslip angle during flight. I am currently doing some tests using APM 2.0 and mission planner. The goal is to send the values of the AOA ans sideslip to mission planner and visualize them on the HUD of mission planner. They will be visualized using a small green circle that will move vertically to show the change in the angle of attack and horizontally to represent the change in slip angle.

I have modified the apm code and mission planner code to add the two new quantities. I modified the mavlink function on both sides and I can successfully read the values on mission planner. In addition, I modified the function currentstate.cs and HUD.cs to add the parameters.

The problem is that I am able to read the numerical values of the parameters but I am not able to visualize them using the green circle even though I made the circle position as a function of aoa and slipangle. The circle does not move at all but the numerical values start to change!! I suspected the problem might be in the definition of the circle, so I made the circle position as a function of roll and pitch and then the circle start to move with the angle change. I realized that the problem resides in relating the variables (aoa,sideslip) to be used within the HUD. I don't have experience with GUIs and little experience with visual studio.

Could you please tell me what are the functions that I need to modify to add these two new variables to the HUD visualizations. I have been stuck in this for 3 weeks now. I hope someone can help or direct me to blog or similar discussion.

A screenshot of the modified HUD is attached.

 

Thanks :)

HUD.PNG

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi,

    Try post the code that draws the green circle, and where it is placed / how it is integrated in the class that does the HUD. Maybe I or someone else can look into it. Actually it should not be necessary with the complete code with MAVLink extensions and all - debugging this could be done by just using random values and the circle should move.

    I am writing a HUD similar thing (called the Primary Flight Display, even though it is not quite one) for QGroundControl. I would love to add the same feature there, and hear more about how you calculate the data.

    AoA - I suppose you use pich, airspeed and vertical velocity?

    Sideslip - also considered important by some (even though the aircraft is unmanned). Do you use local lateral acceleration?

    Regards

    Soren

  •   I'm sorry but I cannot help you on the HUD source code mods but I would be very interested in your efforts to calculate angle of attack and sideslip. Could you please provide your equations and maybe even the APM source code? Many of us need these variables to improve autopilot performance and also just to evaluate best aircraft performance - especially 3D and gliders.

     

    Thanks much - and I hope someone can help with the HUD. Maybe Michael O. might respond since this type of Alpha(AOA)/Beta display would be very welcome in the community

     

    Dave

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13, 2022
More…