i think i need some assistance again 
i made a gauge that contains 2 needles for rpm measurement. a big needle that shows rpms from 0-100% (distributed over a 3/4 circle, no full circle, works fine)
and 1 small needle that shows fractions of the main needle (big needle rotating from 10 to 20% means the small needle makes 1 full round from 0 to 10=0 / big needle on 15 would mean small needle on 5 (at 6 o'clock position) ) and so on.
my problem is that the small needle revolves all the way back (counterclockwise) from 9.9 to 0 instead of keeping the clockwise movement it had all the way before from 0..9
is there any way to tell fsx that a needle should cover a full-circle instead of just, lets say an arc ?
i matched beginning and end in my nonlinearity function to the pixel but this has no effect:
(100 means 10 in the above code, its just x10 for a finer resolution)
it keeps behaving this way:
0>1 clockwise
1>2 clockwise
...
9>0 all the way back counterclockwise
any ideas ?
i made a gauge that contains 2 needles for rpm measurement. a big needle that shows rpms from 0-100% (distributed over a 3/4 circle, no full circle, works fine)
and 1 small needle that shows fractions of the main needle (big needle rotating from 10 to 20% means the small needle makes 1 full round from 0 to 10=0 / big needle on 15 would mean small needle on 5 (at 6 o'clock position) ) and so on.
my problem is that the small needle revolves all the way back (counterclockwise) from 9.9 to 0 instead of keeping the clockwise movement it had all the way before from 0..9
is there any way to tell fsx that a needle should cover a full-circle instead of just, lets say an arc ?
i matched beginning and end in my nonlinearity function to the pixel but this has no effect:
Code:
NONLINEARITY grpm_ndl2_nonlinearity[] =
{
{{122+GRPM_OFFSET_X_BG, 96+GRPM_OFFSET_Y_BG}, 00, 0},
{{135+GRPM_OFFSET_X_BG, 104+GRPM_OFFSET_Y_BG}, 10, 0},
{{144+GRPM_OFFSET_X_BG, 115+GRPM_OFFSET_Y_BG}, 20, 0},
{{145+GRPM_OFFSET_X_BG, 129+GRPM_OFFSET_Y_BG}, 30, 0},
{{138+GRPM_OFFSET_X_BG, 142+GRPM_OFFSET_Y_BG}, 40, 0},
{{122+GRPM_OFFSET_X_BG, 145+GRPM_OFFSET_Y_BG}, 50, 0},
{{108+GRPM_OFFSET_X_BG, 141+GRPM_OFFSET_Y_BG}, 60, 0},
{{ 98+GRPM_OFFSET_X_BG, 129+GRPM_OFFSET_Y_BG}, 70, 0},
{{ 98+GRPM_OFFSET_X_BG, 114+GRPM_OFFSET_Y_BG}, 80, 0},
{{109+GRPM_OFFSET_X_BG, 104+GRPM_OFFSET_Y_BG}, 90, 0},
{{122+GRPM_OFFSET_X_BG, 96+GRPM_OFFSET_Y_BG}, 100, 0}
};
(100 means 10 in the above code, its just x10 for a finer resolution)
it keeps behaving this way:
0>1 clockwise
1>2 clockwise
...
9>0 all the way back counterclockwise
any ideas ?
Last edited:


