File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -496,15 +496,15 @@ namespace create {
496496 }
497497
498498 bool Create::setMainMotor (const float & main) {
499- return setAllMotors (main, sideMotorPower, vacuumMotorPower);
499+ return setAllMotors (main, static_cast < float >( sideMotorPower) / 127.0 , static_cast < float >( vacuumMotorPower) / 127.0 );
500500 }
501501
502502 bool Create::setSideMotor (const float & side) {
503- return setAllMotors (mainMotorPower, side, vacuumMotorPower);
503+ return setAllMotors (static_cast < float >( mainMotorPower) / 127.0 , side, static_cast < float >( vacuumMotorPower) / 127.0 );
504504 }
505505
506506 bool Create::setVacuumMotor (const float & vacuum) {
507- return setAllMotors (mainMotorPower, sideMotorPower, vacuum);
507+ return setAllMotors (static_cast < float >( mainMotorPower) / 127.0 , static_cast < float >( sideMotorPower) / 127.0 , vacuum);
508508 }
509509
510510 bool Create::updateLEDs () {
You can’t perform that action at this time.
0 commit comments