Advertisement
Guest User

.

a guest
Dec 10th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1.  if(Motor.IsOn()) {
  2.             s += "frontLeft: ";
  3.             try {
  4.                 Motor.SetPower(pow);
  5.                 s += pow + ";";
  6.             } catch (Exception ex) {
  7.                 Motor.SwitchState(false);
  8.                 s += "DISCONNECTED; ";
  9.             }
  10.         }
  11.         else s += "frontLeft: DISCONNECTED; ";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement