Subversion Repositories group.electronics

Rev

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

Rev 175 Rev 180
Line 214... Line 214...
214
 
214
 
215
        public override void Tick() {
215
        public override void Tick() {
216
            UInt16 tmpval = 0;
216
            UInt16 tmpval = 0;
217
            bool changed = data.axis[channel].getPosition(ref tmpval);
217
            bool changed = data.axis[channel].getPosition(ref tmpval);
218
            this.value = tmpval;
218
            this.value = tmpval;
219
            
-
 
220
 
219
 
-
 
220
            
221
            if (changed) {
221
            if (changed) {
222
                foreach (Command cmd in this.commands) {
222
                foreach (Command cmd in this.commands) {
223
                    cmd.data = this.data;
223
                    cmd.data = this.data;
224
                    if (cmd.Send(this.value) == 0)
224
                    if (cmd.Send(this.value) == 0)
225
                        Console.Write(cmd.ToString());
225
                        Console.Write(cmd.ToString());