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)
|
void Chassis::SetWheelSpeeds(float leftSpeedCMperSec, float rightSpeedCMperSec)
|
||||||
{
|
{
|
||||||
/**
|
leftMotor.SetTargetSpeed(leftSpeedCMperSec * LEFT_TICKS_PER_CM);
|
||||||
* TODO: Add code to convert cm/sec -> encoder ticks/control interval
|
rightMotor.SetTargetSpeed(rightSpeedCMperSec * RIGHT_TICKS_PER_CM);
|
||||||
*/
|
|
||||||
leftMotor.SetTargetSpeed(leftSpeedCMperSec);
|
|
||||||
rightMotor.SetTargetSpeed(rightSpeedCMperSec);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue