diff --git a/src/main/kotlin/org/rowlandhall/meepmeep/roadrunner/DefaultBotBuilder.kt b/src/main/kotlin/org/rowlandhall/meepmeep/roadrunner/DefaultBotBuilder.kt index 0bce439..f23914e 100644 --- a/src/main/kotlin/org/rowlandhall/meepmeep/roadrunner/DefaultBotBuilder.kt +++ b/src/main/kotlin/org/rowlandhall/meepmeep/roadrunner/DefaultBotBuilder.kt @@ -88,11 +88,7 @@ open class DefaultBotBuilder(private val meepMeep: MeepMeep) { * @return The current instance of [DefaultBotBuilder] for chaining. */ fun setConstraints( - maxVel: Double, - maxAccel: Double, - maxAngVel: Double, - maxAngAccel: Double, - trackWidth: Double + maxVel: Double, maxAccel: Double, maxAngVel: Double, maxAngAccel: Double, trackWidth: Double ): DefaultBotBuilder { constraints = Constraints(maxVel, maxAccel, maxAngVel, maxAngAccel, trackWidth) @@ -134,9 +130,13 @@ open class DefaultBotBuilder(private val meepMeep: MeepMeep) { return RoadRunnerBotEntity( meepMeep, constraints, - width, height, - startPose, colorScheme ?: meepMeep.colorManager.theme, opacity, - driveTrainType, false + width, + height, + startPose, + colorScheme ?: meepMeep.colorManager.theme, + opacity, + driveTrainType, + false ) } diff --git a/src/main/kotlin/org/rowlandhall/meepmeep/roadrunner/entity/RoadRunnerBotEntity.kt b/src/main/kotlin/org/rowlandhall/meepmeep/roadrunner/entity/RoadRunnerBotEntity.kt index 562c95e..d83ecc4 100644 --- a/src/main/kotlin/org/rowlandhall/meepmeep/roadrunner/entity/RoadRunnerBotEntity.kt +++ b/src/main/kotlin/org/rowlandhall/meepmeep/roadrunner/entity/RoadRunnerBotEntity.kt @@ -34,7 +34,8 @@ import kotlin.math.min class RoadRunnerBotEntity( meepMeep: MeepMeep, private var constraints: Constraints, - width: Double, height: Double, + width: Double, + height: Double, pose: Pose2d, val colorScheme: ColorScheme, opacity: Double,