Searched refs:pos_new (Results 1 – 3 of 3) sorted by relevance
109 void motor_run(int16 pos_new) { // set up to drive motor to pos_new (absolute step#) in motor_run() argument110 if (pos_new < motor_pos) { // get direction & #steps in motor_run()111 move = motor_pos - pos_new; in motor_run()115 else if (pos_new != motor_pos) { in motor_run()116 move = pos_new - motor_pos; in motor_run()
127 void motor_run(int16 pos_new) { // set up to drive motor to pos_new (absolute step#) in motor_run() argument128 if (pos_new < motor_pos) { // get direction & #steps in motor_run()129 move = motor_pos - pos_new; in motor_run()133 else if (pos_new != motor_pos) { in motor_run()134 move = pos_new - motor_pos; in motor_run()
119 void motor_run(short pos_new) in motor_run() argument121 if (pos_new < motor_pos) // get direction & #steps in motor_run()123 move = motor_pos-pos_new; in motor_run()127 else if (pos_new != motor_pos) in motor_run()129 move = pos_new-motor_pos; in motor_run()