feat(connector): track initial state in test runs

This commit is contained in:
Anthony Berg
2024-05-02 12:49:25 +01:00
parent 452756e3d3
commit 5f456bb898
2 changed files with 45 additions and 12 deletions

View File

@@ -27,6 +27,24 @@ class XPC {
}
}
/**
* Gets the state of all Datarefs
*
* @param drefs Array of Datarefs (maximum list size = 255)
*
* @return List of all the values for each Dataref
*/
@Throws(IllegalArgumentException::class)
fun getStates(drefs: Array<String>): Array<FloatArray> {
if (drefs.size > 255) {
throw IllegalArgumentException("The drefs cannot contain more than 255 elements")
}
val result = xpc.getDREFs(drefs)
return result
}
/**
* Sets a dataref in X-Plane to the set goal
*