Subversion Repositories group.electronics

Rev

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

Rev 168 Rev 169
Line 42... Line 42...
42
                position = Globals.map_uint16(this.value, 0, this.max, 0, this.mapsize);
42
                position = Globals.map_uint16(this.value, 0, this.max, 0, this.mapsize);
43
                return true;
43
                return true;
44
                //Globals.bios.SendData("ALCP_RCVR_LTS " + refuellight.ToString() + "\n");
44
                //Globals.bios.SendData("ALCP_RCVR_LTS " + refuellight.ToString() + "\n");
45
                //Console.WriteLine("ALCP_RCVR_LTS " + ":" + refuellight.ToString() + "(" + devices[devid].cur_adc + ")");
45
                //Console.WriteLine("ALCP_RCVR_LTS " + ":" + refuellight.ToString() + "(" + devices[devid].cur_adc + ")");
46
            } else {
46
            } else {
47
                position = 0;
-
 
48
                return false;
47
                return false;
49
            }
48
            }
50
        }
49
        }
51
 
50
 
52
 
51
 
Line 178... Line 177...
178
            chips[1].SetIOPullups(0xff, 0xff);
177
            chips[1].SetIOPullups(0xff, 0xff);
179
 
178
 
180
            // Get the initial values
179
            // Get the initial values
181
            this.Refresh();
180
            this.Refresh();
182
            data.prev = data.buttons;
181
            data.prev = data.buttons;
183
            data.axis[0].prev = data.axis[0].value = mcp.ReadADC(1);
182
            data.axis[0].prev = data.axis[0].value;
-
 
183
            data.changed = false;
184
 
184
 
185
            return 0;
185
            return 0;
186
        }
186
        }
187
 
187
 
188
        public override int Refresh() {
188
        public override int Refresh() {