variometer | An ESP32 based variometer
kandi X-RAY | variometer Summary
kandi X-RAY | variometer Summary
I'm starting paragliding and at some point I'll want a variometer to help me with soaring. The thing is, a commercial variometer can be very costly, and most of all, I love to make things. With this project, I want to see where I can push my embedded skills to make a full variometer with multiple modes.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of variometer
variometer Key Features
variometer Examples and Code Snippets
Community Discussions
Trending Discussions on variometer
QUESTION
I'm currently programming a primary flight display using Python and OpenGL. As I have zero experience with OpenGL (and little experience with coding in general) I followed a simple tutorial giving an introduction to OpenGL for 2D applications. With this basic knowledge, I just started to make everything out of polygons (GL_QUADS) and some copied code to draw text. Which gave me this:
The visual result is satisfactory but the performance of ~450 iterations/second is questionable with one core of a Ryzen 1700x at 100% and a GTX1080 at 75% while only running this little program (which is supposed to run on a RaspberryPI 3).
So I want to try out using textures for the whole artificial horizon and inanimate objects like the scale of the speedometer, separation lines or "crosshair". I've made a .png file that would replace the artificial horizon (see bottom) but I have no idea how to render it. All the tutorials I've found are for C++ and add a lot of complexity to the overall program so I want to ask if there is an "easy" way to implement a movable texture for my application.
Here is a mockup of how I'm currently calculating the position of the horizon and how I draw it (full runnable code at the end):
...ANSWER
Answered 2020-Jan-04 at 14:56You can use pygame to load an texture image:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install variometer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page