converted rotational speed to specified units
This commit is contained in:
parent
3a645e8709
commit
6066594f6a
1 changed files with 2 additions and 5 deletions
|
@ -116,11 +116,8 @@ void Chassis::UpdateMotors(void)
|
|||
*/
|
||||
void Chassis::SetWheelSpeeds(float leftSpeedCMperSec, float rightSpeedCMperSec)
|
||||
{
|
||||
/**
|
||||
* TODO: Add code to convert cm/sec -> encoder ticks/control interval
|
||||
*/
|
||||
leftMotor.SetTargetSpeed(leftSpeedCMperSec);
|
||||
rightMotor.SetTargetSpeed(rightSpeedCMperSec);
|
||||
leftMotor.SetTargetSpeed(leftSpeedCMperSec * LEFT_TICKS_PER_CM);
|
||||
rightMotor.SetTargetSpeed(rightSpeedCMperSec * RIGHT_TICKS_PER_CM);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue