Line 63 :
what do You want to do ???Qt Code:
painter.rotate(12.0 * ((velocity(0))));To copy to clipboard, switch view to plain text mode
Line 63 :
what do You want to do ???Qt Code:
painter.rotate(12.0 * ((velocity(0))));To copy to clipboard, switch view to plain text mode
The needle on the dial should be rotated by some amount proportional to the velocity before being drawn. Commented line 30 with its float velocity looks like a better, though not correct, fit to line 63. The constant 12.0 is coming from the 12-hour clock this was cut-n-pasted from.
Hi,
I think I am giving upp on that project since it might be that the vehicle goes a bit to fast for a 360 degrees visualization, but now I want to make this code to be a roll meter instead, to see if the vehicle is horizontal or in a roll, if you know what I mean, like in flightsimulator =) (----) or (not horizontal line).
Bookmarks