Skip to content

Commit

Permalink
Actually mostly just formatting changes, and testing to make sure works
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonDev07 committed Oct 14, 2024
1 parent 826da8c commit 4475ea7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4475ea7

Please sign in to comment.