Open erinharrington-12 opened 1 year ago
When using the PWM method, the values printed are negative.
Ex) motor(0,50); motor(3, 100); msleep(6000);
console.log("0 PDM: " + scene.nodes['robot'].state.motors[0].pwm); console.log("3 PDM: " + scene.nodes['robot'].state.motors[3].pwm);
Output: 0 PDM: 198 3 PDM: -400
When using the PWM method, the values printed are negative.
Ex) motor(0,50); motor(3, 100); msleep(6000);
console.log("0 PDM: " + scene.nodes['robot'].state.motors[0].pwm); console.log("3 PDM: " + scene.nodes['robot'].state.motors[3].pwm);
Output: 0 PDM: 198 3 PDM: -400