Subversion Repositories group.electronics

Rev

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

Rev 171 Rev 172
Line 15... Line 15...
15
        public static void DcsBiosInit() {
15
        public static void DcsBiosInit() {
16
            Globals.bios = new DcsBios();
16
            Globals.bios = new DcsBios();
17
            bios.InitUDP();
17
            bios.InitUDP();
18
        }
18
        }
19
 
19
 
20
        public static Dictionary<UInt16, Led> outputs = new Dictionary<UInt16, Led>();
20
        //public static Dictionary<UInt16, Led> outputs = new Dictionary<UInt16, Led>();
-
 
21
        public static Dictionary<UInt16, UInt16> BiosOutput = new Dictionary<UInt16, UInt16>();
21
 
22
 
22
        public static InputSimulator SendKey = new InputSimulator();
23
        public static InputSimulator SendKey = new InputSimulator();
23
 
24
 
24
        public static UInt16 map_uint16(UInt16 x, UInt16 in_min, UInt16 in_max, UInt16 out_min, UInt16 out_max) {
25
        public static UInt16 map_uint16(UInt16 x, UInt16 in_min, UInt16 in_max, UInt16 out_min, UInt16 out_max) {
25
            return (UInt16)((x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min);
26
            return (UInt16)((x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min);