kipr / Simulator

Simulator of KIPR Demobots and code workspace.
GNU General Public License v3.0
12 stars 3 forks source link

PWM Prints Out Negative Values #462

Open erinharrington-12 opened 1 year ago

erinharrington-12 commented 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