Subversion Repositories group.electronics

Rev

Rev 162 | Rev 170 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 162 Rev 167
Line 12... Line 12...
12
            Globals.bios = new DcsBios();
12
            Globals.bios = new DcsBios();
13
            bios.InitUDP();
13
            bios.InitUDP();
14
        }
14
        }
15
 
15
 
16
        public static InputSimulator SendKey = new InputSimulator();
16
        public static InputSimulator SendKey = new InputSimulator();
-
 
17
 
-
 
18
        public static UInt16 map_uint16(UInt16 x, UInt16 in_min, UInt16 in_max, UInt16 out_min, UInt16 out_max) {
-
 
19
            return (UInt16)((x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min);
-
 
20
        }
17
    }
21
    }
18
}
22
}