Bimba.git

commit 6ee6a975c4ac992fb63dc8d8eacc00c2c2692a12

Author: Adam <git@apiote.xyz>

vehicle ID and broader capabilities

 app/src/main/java/ml/adamsprogs/bimba/api/Structs.kt | 6 ++++--


diff --git a/app/src/main/java/ml/adamsprogs/bimba/api/Structs.kt b/app/src/main/java/ml/adamsprogs/bimba/api/Structs.kt
index b2402c5a8d1e1fff3f4d221a1ceff5915ceaf5fc..ad27e4d4a953cdfba99ba473c869a2c77c6e589d 100644
--- a/app/src/main/java/ml/adamsprogs/bimba/api/Structs.kt
+++ b/app/src/main/java/ml/adamsprogs/bimba/api/Structs.kt
@@ -133,8 +133,9 @@ 	}
 }
 
 data class Vehicle(
+	val ID: String,
 	val Position: String,
-	val Capabilities: UByte,
+	val Capabilities: UShort,
 	val Speed: Float,
 	val CongestionLevel: UByte,
 	val OccupancyStatus: UByte
@@ -144,7 +145,8 @@ 		fun unmarshal(stream: InputStream): Vehicle {
 			val reader = Reader(stream)
 			return Vehicle(
 				reader.readString(),
-				reader.readU8(),
+				reader.readString(),
+				reader.readU16(),
 				reader.readFloat32(),
 				reader.readU8(),
 				reader.readU8()