use of org.firstinspires.inspection.InspectionState in project robotcode by OutoftheBoxFTC.
the class FtcEventLoopBase method handleCommandRequestInspectionReport.
/**
* Return an inspection report of this (robot controller) device back to the caller
*/
protected void handleCommandRequestInspectionReport() {
InspectionState inspectionState = new InspectionState();
// Modified for OpenRC: Call new initializeForDs method (includes version of OpenRC)
inspectionState.initializeForDs();
String serialized = inspectionState.serialize();
networkConnectionHandler.sendCommand(new Command(CommandList.CMD_REQUEST_INSPECTION_REPORT_RESP, serialized));
}
Aggregations