Skip to content

Commit 34e5195

Browse files
authored
Merge pull request #13 from rh-robotics/teo-bot-resizing
Ensuring Robot Resizing Works + Formatting
2 parents 826da8c + 4475ea7 commit 34e5195

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/main/kotlin/org/rowlandhall/meepmeep/roadrunner/DefaultBotBuilder.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,7 @@ open class DefaultBotBuilder(private val meepMeep: MeepMeep) {
8888
* @return The current instance of [DefaultBotBuilder] for chaining.
8989
*/
9090
fun setConstraints(
91-
maxVel: Double,
92-
maxAccel: Double,
93-
maxAngVel: Double,
94-
maxAngAccel: Double,
95-
trackWidth: Double
91+
maxVel: Double, maxAccel: Double, maxAngVel: Double, maxAngAccel: Double, trackWidth: Double
9692
): DefaultBotBuilder {
9793
constraints = Constraints(maxVel, maxAccel, maxAngVel, maxAngAccel, trackWidth)
9894

@@ -134,9 +130,13 @@ open class DefaultBotBuilder(private val meepMeep: MeepMeep) {
134130
return RoadRunnerBotEntity(
135131
meepMeep,
136132
constraints,
137-
width, height,
138-
startPose, colorScheme ?: meepMeep.colorManager.theme, opacity,
139-
driveTrainType, false
133+
width,
134+
height,
135+
startPose,
136+
colorScheme ?: meepMeep.colorManager.theme,
137+
opacity,
138+
driveTrainType,
139+
false
140140
)
141141
}
142142

src/main/kotlin/org/rowlandhall/meepmeep/roadrunner/entity/RoadRunnerBotEntity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ import kotlin.math.min
3434
class RoadRunnerBotEntity(
3535
meepMeep: MeepMeep,
3636
private var constraints: Constraints,
37-
width: Double, height: Double,
37+
width: Double,
38+
height: Double,
3839
pose: Pose2d,
3940
val colorScheme: ColorScheme,
4041
opacity: Double,

0 commit comments

Comments
 (0)