All pastes #374322 Raw Edit

Unnamed

public text v1 · immutable
#374322 ·published 2007-02-27 14:24 UTC
rendered paste body
if (6 == sscanf(line, "%*s %d %u %u %u %u %d", &freq, &stepx, &stepy, &stepa, &stepz, &dir)){
      command.command = STEPPERS_FREQ;                                             A
      command.freq = freq;                                                                              |
      command.steps_x = stepx;                                                                     |
      command.steps_y = stepy;                                                                    (*)
      command.steps_z = stepz;
      command.steps_a = stepa;
      command.dir = dir;
printf("freq=%d\tstepx=%u\tstepy=%u\tstepa=%u\tstepz=%u\tdir=%u\n", freq, stepx, stepy, stepa, stepz,dir);
    }

pier@casa ~/Documenti/RTAI/stepper_module_0 $ sudo ./start.sh
> freq  1234 12 1234 12345 2 15
freq=1234       stepx=12        stepy=1234      stepa=12345     stepz=0 dir=15
> q
?
> quit

C I A O !