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