RE: Graphics Analog Gauge
schwiegjc
Posts: 41
Is there any graphics code that can display a sensor data (pitch, roll, etc.) to a graphics analog gauge ether on a TV or VGA monitor? I have built a simple analog gauge that displayed heading variable but looks every rudimentary.
tv : "tv"
gr : "graphics"
gr.color(2)
gr.width(0)
gr.arc(0, -50, 50, 50, 0, 409, 40, 3)
gr.arc(0, -50, 45, 45, 204, 409, 40, 3)
gr.color(0)
gr.width(2)
gr.arc(0, -50, 42, 42, 0, 204, 40, 3)
gr.arc(0, -50, 42, 42, 0, 204, 40, 3)
gr.color(1)
gr.width(0)
gr.arc(0, -50, 40, 40, (4096-(((heading/10)+90)*4096)/180) ,1, 1, 3)
gr.arc(0, -50, 40, 40, (4096-(((heading/10))*4096)/180) ,1, 1, 3)
gr.arc(0, -50, 40, 40, (4096-(((heading/10)+180)*4096)/180) ,1, 1, 3)
tv : "tv"
gr : "graphics"
gr.color(2)
gr.width(0)
gr.arc(0, -50, 50, 50, 0, 409, 40, 3)
gr.arc(0, -50, 45, 45, 204, 409, 40, 3)
gr.color(0)
gr.width(2)
gr.arc(0, -50, 42, 42, 0, 204, 40, 3)
gr.arc(0, -50, 42, 42, 0, 204, 40, 3)
gr.color(1)
gr.width(0)
gr.arc(0, -50, 40, 40, (4096-(((heading/10)+90)*4096)/180) ,1, 1, 3)
gr.arc(0, -50, 40, 40, (4096-(((heading/10))*4096)/180) ,1, 1, 3)
gr.arc(0, -50, 40, 40, (4096-(((heading/10)+180)*4096)/180) ,1, 1, 3)
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
you already know Perry's Flight Drone Display ?
http://forums.parallax.com/showthread.php?p=721235
I think there are some interesting methods for you.
-or-
http://forums.parallax.com/showthread.php?p=721235
http://forums.parallax.com/showthread.php?p=682917
is this the one you were thinking of?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Brian
uController.com - home of SpinStudio - the modular Development system for the Propeller
PropNIC - Add ethernet ability to your Propeller! PropJoy - Plug in a joystick and play some games!
SD card Adapter - mass storage for the masses Audio/Video adapter add composite video and sound to your Proto Board
Brian,
Where do you find the widgets.spin code? It seems to be referenced in the graphicswidgets_demo code.
Overlaying the video with the propellar graphics icons would be perfect. The graphics alone do not standout enough on a LCD screen.
www.hittconsulting.com/hcosd.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Aka: CosmicBob
Here's my screen shots.
Jim-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent, only $1.
Send cash and signature to CannibalRobotics.