Subversion Repositories group.electronics

Rev

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

Rev 181 Rev 187
Line 240... Line 240...
240
        }
240
        }
241
 
241
 
242
        public override void Tick() {
242
        public override void Tick() {
243
            UInt16 tmpval = 0;
243
            UInt16 tmpval = 0;
244
            bool changed = data.axis[channel].getPosition(ref tmpval);
244
            bool changed = data.axis[channel].getPosition(ref tmpval);
245
            this.value = tmpval;
245
            
246
 
246
 
247
            
247
            
248
            if (changed) {
248
            if (changed) {
-
 
249
                this.value = tmpval;
249
                foreach (Command cmd in this.commands) {
250
                foreach (Command cmd in this.commands) {
250
                    cmd.data = this.data;
251
                    cmd.data = this.data;
251
                    if (cmd.Send(this.value) == 0)
252
                    if (cmd.Send(this.value) == 0)
252
                        Console.Write(cmd.ToString());
253
                        Console.Write(cmd.ToString());
253
                }
254
                }