File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
examples/utils/calibration/find_kv_rating
hall_sensor/find_kv_rating
magnetic_sensor/find_kv_rating Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Commander command = Commander(Serial);
3636void doTarget (char * cmd) { command.scalar (&target_voltage, cmd); }
3737void calcKV (char * cmd) {
3838 // calculate the KV
39- Serial.println (motor.shaft_velocity /motor.target *30 .0f /_PI);
39+ Serial.println (motor.shaft_velocity /motor.target /_SQRT3 *30 .0f /_PI);
4040
4141}
4242
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Commander command = Commander(Serial);
3333void doTarget (char * cmd) { command.scalar (&target_voltage, cmd); }
3434void calcKV (char * cmd) {
3535 // calculate the KV
36- Serial.println (motor.shaft_velocity /motor.target *30 .0f /_PI);
36+ Serial.println (motor.shaft_velocity /motor.target /_SQRT3 *30 .0f /_PI);
3737
3838}
3939
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Commander command = Commander(Serial);
3131void doTarget (char * cmd) { command.scalar (&target_voltage, cmd); }
3232void calcKV (char * cmd) {
3333 // calculate the KV
34- Serial.println (motor.shaft_velocity /motor.target *30 .0f /_PI);
34+ Serial.println (motor.shaft_velocity /motor.target /_SQRT3 *30 .0f /_PI);
3535
3636}
3737
You can’t perform that action at this time.
0 commit comments