Home
last modified time | relevance | path

Searched refs:pos_new (Results 1 – 3 of 3) sorted by relevance

/third_party/boost/libs/safe_numerics/example/
Dmotor1.c109 void motor_run(int16 pos_new) { // set up to drive motor to pos_new (absolute step#) in motor_run() argument
110 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()
Dmotor2.c127 void motor_run(int16 pos_new) { // set up to drive motor to pos_new (absolute step#) in motor_run() argument
128 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()
DMotor.c119 void motor_run(short pos_new) in motor_run() argument
121 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()