Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

Commit 0f769de

Browse files
committed
Reverse encoder counting
1 parent bc97020 commit 0f769de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

march_hardware/src/odrive/odrive_motor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ int OdriveMotor::getAngleCountsIncremental()
228228

229229
double OdriveMotor::getAngleRadIncremental()
230230
{
231-
double angle_rad = this->getAngleCountsIncremental() * PI_2 / (std::pow(2, 12) * 101 * -1);
231+
double angle_rad = this->getAngleCountsIncremental() * PI_2 / (std::pow(2, 12) * 101);
232232
return angle_rad;
233233
}
234234

0 commit comments

Comments
 (0)