Search in sources :

Example 1 with InspectionState

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));
}
Also used : Command(com.qualcomm.robotcore.robocol.Command) InspectionState(org.firstinspires.inspection.InspectionState)

Aggregations

Command (com.qualcomm.robotcore.robocol.Command)1 InspectionState (org.firstinspires.inspection.InspectionState)1