User Tools

Site Tools


en:pfw:linear-conversion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:pfw:linear-conversion [2025-02-11 23:29] alberten:pfw:linear-conversion [2025-02-12 12:36] (current) albert
Line 1: Line 1:
- A very simple method (no floating point, no algebraic formulas) for+ ===== Simple linear conversion ===== 
 +A very simple method (no floating point, no algebraic formulas) for
  linear conversion of sensor output data to human-understandable units.  linear conversion of sensor output data to human-understandable units.
  
- --- Example 1, temperature ---+ === Example 1, temperature ===
  
  Two points are given: Sensor output 400 and 1200 correspond  Two points are given: Sensor output 400 and 1200 correspond
Line 33: Line 34:
  correspond to decreasing Celsius values.  correspond to decreasing Celsius values.
  
- --- Example 2 ---+ === Example 2 ===
  
     Sensor  Celsius     Sensor  Celsius
Line 40: Line 41:
     (800)   (263)  (Distance)     (800)   (263)  (Distance)
  
- The definition:+ The forth definition:
     : >CELSIUS ( sensor -- celsius ) 400 - 263 800 */ NEGATE 363 + ;     : >CELSIUS ( sensor -- celsius ) 400 - 263 800 */ NEGATE 363 + ;
  
en/pfw/linear-conversion.1739312952.txt.gz · Last modified: 2025-02-11 23:29 by albert