Frc Robot Simulator Wiki
A library that allows programs for a NI CRIO to be run on a computer.
Status: Alpha
Brought to you by:
spectare
As noted in the previous page, modules are not working with the current state of your simulator. There is, however, a way to add modules. There is are classes in net.sourceforge.frcsimulator.internals called CRIO and CRIOModule.
To add a modules, simply do the following:
//Other code
try{
CRIO.getInstance().addModule(new CRIOModule(0x01),1);
CRIO.getInstance().addModule(new CRIOModule(0x02),4);
CRIO.getInstance().addModule(new CRIOModule(0x03),8);
}catch(Exception e){//there should not be an exception, because all of the above code is valid}
And that's it! But there is still one more problem you have: you cannot enable the simulated robot, or change any type of input (such as joysticks), that it would receive during normal operation. To fix this, see Using Properties