void OnGetRequestType1Success(roboticsUser.BlobTrackerCalibrateState response) { DiagramState a = new DiagramState(); a.Z = State.Z; if (a.Z < 1D) { drive.SetDrivePowerRequest request = new drive.SetDrivePowerRequest(); request.RightWheelPower = (double)-0.1F; request.LeftWheelPower = (double)-0.1F; Parallax2011ReferencePlatformIoControllerPort.SetDrivePower(request); } else if (a.Z > 1.5D) { drive.SetDrivePowerRequest requestA = new drive.SetDrivePowerRequest(); requestA.RightWheelPower = (double)0.1F; requestA.LeftWheelPower = (double)0.1F; Parallax2011ReferencePlatformIoControllerPort.SetDrivePower(requestA); } else { drive.SetDrivePowerRequest requestB = new drive.SetDrivePowerRequest(); Parallax2011ReferencePlatformIoControllerPort.SetDrivePower(requestB); } Decrement(); }
/////////////////////////////////////////////////////////////////// // __use__50.snippet.snippet.noop - [(__use__50.snippet.snippet.expr0 - __use__50.snippet.snippet.join)(__use__50.snippet.snippet.expr - &__use__50.snippet.snippet.join)] - __use__50.snippet.call - __use__50.snippet.call.iftype /////////////////////////////////////////////////////////////////// void _mergeBetaHandler(JoinBeta message) { drive.SetDrivePowerRequest request = new drive.SetDrivePowerRequest(); request.RightWheelPower = message.Right; request.LeftWheelPower = message.Left; Parallax2011ReferencePlatformIoControllerPort.SetDrivePower(request); Decrement(); }
/////////////////////////////////////////////////////////////////// // __use__5.snippet0.snippet.noop - [(__use__5.snippet0.snippet.expr0 - __use__5.snippet0.snippet.join)(__use__5.snippet0.snippet.expr - &__use__5.snippet0.snippet.join)] - __use__5.snippet0.call - __use__5.snippet0.call.iftype /////////////////////////////////////////////////////////////////// void _mergeGammaHandler(double message) { drive.SetDrivePowerRequest request = new drive.SetDrivePowerRequest(); request.RightWheelPower = message; request.LeftWheelPower = message; Parallax2011ReferencePlatformIoControllerPort.SetDrivePower(request); Decrement(); }