Skip to content

Commit

Permalink
fix motor
Browse files Browse the repository at this point in the history
  • Loading branch information
Amerlander committed Nov 15, 2023
1 parent 06a03bd commit f4a421d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libs/core-mini-dal/motors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ namespace motors {
//% weight=80
//% duty_percent.defl=100
export function dualMotorPower(motor: Motor, duty_percent: number) {

const power = Math.clamp(-1023, 1023, Math.map(duty_percent, -100, 100, -1023, 1023));

motors.dualMotorPowerDal(motor, power)

}

}

0 comments on commit f4a421d

Please sign in to comment.