corrected src classes where using renamed protobufs
This commit is contained in:
@@ -17,8 +17,8 @@ class ControllerEmulator : Controller {
|
||||
}
|
||||
|
||||
override fun executeRoute(route: RouteRequest) {
|
||||
val moveTimes = route.moveTime
|
||||
val moveDirections = route.moveDirection
|
||||
val moveTimes = route.times
|
||||
val moveDirections = route.directions
|
||||
//list of move direction and time to this move in ms
|
||||
val commands: MutableList<Pair<MoveDirection, Int>> = mutableListOf()
|
||||
|
||||
|
||||
@@ -139,17 +139,17 @@ class DebugClInterface {
|
||||
continue
|
||||
}
|
||||
val paramType = params[2]//maybe string or int
|
||||
val type: DebugRequest.TYPE
|
||||
val type: DebugRequest.Type
|
||||
try {
|
||||
type = DebugRequest.TYPE.fromIntToTYPE(paramType.toInt())
|
||||
type = DebugRequest.Type.fromIntToType(paramType.toInt())
|
||||
} catch (e: NumberFormatException) {
|
||||
try {
|
||||
type = DebugRequest.TYPE.valueOf(paramType)
|
||||
type = DebugRequest.Type.valueOf(paramType)
|
||||
} catch (e: IllegalArgumentException) {
|
||||
type = DebugRequest.TYPE.Unexpected
|
||||
type = DebugRequest.Type.Unexpected
|
||||
}
|
||||
}
|
||||
if (type == DebugRequest.TYPE.Unexpected) {
|
||||
if (type == DebugRequest.Type.Unexpected) {
|
||||
println("type with name/id $paramType not found")
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user