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);
36
36
void doTarget (char * cmd) { command.scalar (&target_voltage, cmd); }
37
37
void calcKV (char * cmd) {
38
38
// 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);
40
40
41
41
}
42
42
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Commander command = Commander(Serial);
33
33
void doTarget (char * cmd) { command.scalar (&target_voltage, cmd); }
34
34
void calcKV (char * cmd) {
35
35
// 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);
37
37
38
38
}
39
39
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Commander command = Commander(Serial);
31
31
void doTarget (char * cmd) { command.scalar (&target_voltage, cmd); }
32
32
void calcKV (char * cmd) {
33
33
// 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);
35
35
36
36
}
37
37
You can’t perform that action at this time.
0 commit comments