Skip to content

Commit

Permalink
added the sqrt(3) factor #372
Browse files Browse the repository at this point in the history
  • Loading branch information
askuric committed Apr 19, 2024
1 parent c2c4365 commit f796c9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Commander command = Commander(Serial);
void doTarget(char* cmd) { command.scalar(&target_voltage, cmd); }
void calcKV(char* cmd) {
// calculate the KV
Serial.println(motor.shaft_velocity/motor.target*30.0f/_PI);
Serial.println(motor.shaft_velocity/motor.target/_SQRT3*30.0f/_PI);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Commander command = Commander(Serial);
void doTarget(char* cmd) { command.scalar(&target_voltage, cmd); }
void calcKV(char* cmd) {
// calculate the KV
Serial.println(motor.shaft_velocity/motor.target*30.0f/_PI);
Serial.println(motor.shaft_velocity/motor.target/_SQRT3*30.0f/_PI);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Commander command = Commander(Serial);
void doTarget(char* cmd) { command.scalar(&target_voltage, cmd); }
void calcKV(char* cmd) {
// calculate the KV
Serial.println(motor.shaft_velocity/motor.target*30.0f/_PI);
Serial.println(motor.shaft_velocity/motor.target/_SQRT3*30.0f/_PI);

}

Expand Down

0 comments on commit f796c9d

Please sign in to comment.