Rev 44 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 44 | Rev 47 | ||
---|---|---|---|
Line 266... | Line 266... | ||
266 | int_rdg = (int) (cur_rdg * scale); |
266 | int_rdg = (int) (cur_rdg * scale); |
267 | int_max = (int) (max_rdg * scale); |
267 | int_max = (int) (max_rdg * scale); |
268 | int_min = (int) (min_rdg * scale); |
268 | int_min = (int) (min_rdg * scale); |
269 | 269 | ||
270 | cur_rdg -= DisplayInfo[Observation].Low; |
270 | cur_rdg -= DisplayInfo[Observation].Low; |
271 | cur_rdg = |
- | |
272 | 100 * cur_rdg |
271 | cur_rdg = SINE_STEPS * cur_rdg |
273 | / (DisplayInfo[Observation].High |
272 | / (DisplayInfo[Observation].High |
274 | - DisplayInfo[Observation].Low); |
273 | - DisplayInfo[Observation].Low); |
275 | 274 | ||
276 | dial0[dial] = (int) cur_rdg; |
275 | dial0[dial] = (int) cur_rdg; |
277 | 276 |