Ran formatter again (#45)

The previous wpilibc reformat missed an issue with CANTalon.h, and a patch merged since then didn't run the formatter.
This commit is contained in:
Tyler Veness
2016-05-22 21:39:33 -07:00
committed by Peter Johnson
parent e71f454b9d
commit 0d655d7cec
3 changed files with 19 additions and 15 deletions

View File

@@ -22,15 +22,15 @@ int HALGetAllianceStation(enum HALAllianceStationID* allianceStation) {
(AllianceStationID_t*)allianceStation);
}
int HALGetJoystickAxes(uint8_t joystickNum, HALJoystickAxes *axes) {
int HALGetJoystickAxes(uint8_t joystickNum, HALJoystickAxes* axes) {
HALJoystickAxesInt axesInt;
int retVal = FRC_NetworkCommunication_getJoystickAxes(
joystickNum, (JoystickAxes_t*) &axesInt, kMaxJoystickAxes);
joystickNum, (JoystickAxes_t*)&axesInt, kMaxJoystickAxes);
// copy int values to float values
axes->count = axesInt.count;
// current scaling is -128 to 127, can easily be patched in the future by
// current scaling is -128 to 127, can easily be patched in the future by
// changing this function.
for (unsigned int i = 0; i < axesInt.count; i++) {
int8_t value = axesInt.axes[i];
@@ -40,7 +40,7 @@ int HALGetJoystickAxes(uint8_t joystickNum, HALJoystickAxes *axes) {
axes->axes[i] = value / 127.0f;
}
}
return retVal;
}