BowlerKernel
BootloaderIDCommand.java
Go to the documentation of this file.
1 package com.neuronrobotics.sdk.commands.neuronrobotics.bootloader;
2 
3 import com.neuronrobotics.sdk.common.BowlerAbstractCommand;
4 import com.neuronrobotics.sdk.common.BowlerDatagram;
5 import com.neuronrobotics.sdk.common.BowlerMethod;
6 import com.neuronrobotics.sdk.common.InvalidResponseException;
7 
8 // TODO: Auto-generated Javadoc
13 
18  setOpCode("blid");
20  }
21 
22  /* (non-Javadoc)
23  * @see com.neuronrobotics.sdk.common.BowlerAbstractCommand#validate(com.neuronrobotics.sdk.common.BowlerDatagram)
24  */
25  @Override
27  super.validate(data);
28 
29  if(!data.getRPC().equals("blid")) {
30  throw new InvalidResponseException("Program Command did not return '_rdy'.");
31  }
32 
33  return data;
34  }
35 }