|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|
LM_API_CFG_NUM_BRUSHES
On this page of the firstforge site (May require login) :
http://firstforge.wpi.edu/integration/viewcvs/viewcvs.cgi/CANJaguar%20for%20Java/src/edu/wpi/first/addons/JaguarCANProtocol.java?root=canjaguar&rev=9&system =exsy1002&view=markup There is a line : Code:
public static final int LM_API_CFG_NUM_BRUSHES = (LM_API_CFG | (0 << CAN_MSGID_API_S)); edit: And if this could be used, how many brushes do the CIMs have? If this could be used, would this work for a speed reference (or even position)? Code:
public static class SpeedReference {
public final byte value;
static final byte kEncoder_val = 0;
static final byte kBrush_val = 1;
public static final SpeedReference kEncoder = new SpeedReference(kEncoder_val);
public static final SpeedReference kBrushes = new SpeedReference(kBrush_val);
private SpeedReference(byte value) {
this.value = value;
}
}
Last edited by biojae : 18-03-2010 at 23:44. Reason: Clarification |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|