Shop OBEX P1 Docs P2 Docs Learn Events
RE: Graphics Analog Gauge — Parallax Forums

RE: Graphics Analog Gauge

schwiegjcschwiegjc Posts: 41
edited 2008-12-19 20:49 in Propeller 1
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)

Comments

Sign In or Register to comment.