mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Ran formatter (#681)
This commit is contained in:
committed by
Peter Johnson
parent
ce4c9edd1f
commit
9945a5b3c6
@@ -72,7 +72,7 @@ PenaltyExcessCharacter: 1000000
|
||||
PenaltyReturnTypeOnItsOwnLine: 200
|
||||
PointerAlignment: Left
|
||||
ReflowComments: true
|
||||
SortIncludes: true
|
||||
SortIncludes: false
|
||||
SpaceAfterCStyleCast: false
|
||||
SpaceBeforeAssignmentOperators: true
|
||||
SpaceBeforeParens: ControlStatements
|
||||
|
||||
@@ -226,7 +226,7 @@ void SerialHelper::QueryHubPaths(int32_t* status) {
|
||||
// Using std::string because this is guarenteed to be large
|
||||
std::string output = "";
|
||||
|
||||
std::shared_ptr<FILE> pipe(popen(val.c_str(), "r"), pclose);
|
||||
std::shared_ptr<std::FILE> pipe(popen(val.c_str(), "r"), pclose);
|
||||
// Just check the next item on a pipe failure
|
||||
if (!pipe) continue;
|
||||
while (!feof(pipe.get())) {
|
||||
|
||||
@@ -22,4 +22,4 @@ typedef int halsim_extension_init_func_t(void);
|
||||
extern "C" {
|
||||
int HAL_LoadOneExtension(const char* library);
|
||||
int HAL_LoadExtensions(void);
|
||||
}
|
||||
} // extern "C"
|
||||
|
||||
@@ -35,5 +35,5 @@ int32_t HALSIM_RegisterI2CWriteCallback(int32_t index,
|
||||
void HALSIM_CancelI2CWriteCallback(int32_t index, int32_t uid);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
@@ -48,5 +48,5 @@ void HALSIM_SetSPISetAccumulatorValue(int32_t index, int64_t value);
|
||||
int64_t HALSIM_GetSPIGetAccumulatorValue(int32_t index);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
@@ -148,4 +148,4 @@ void HALSIM_CancelI2CWriteCallback(int32_t index, int32_t uid) {
|
||||
SimI2CData[index].CancelWriteCallback(uid);
|
||||
}
|
||||
|
||||
} // extern c
|
||||
} // extern "C"
|
||||
|
||||
@@ -244,4 +244,4 @@ int64_t HALSIM_GetSPIGetAccumulatorValue(int32_t index) {
|
||||
return SimSPIData[index].GetAccumulatorValue();
|
||||
}
|
||||
|
||||
} // extern c
|
||||
} // extern "C"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
namespace frc {
|
||||
class PIDController;
|
||||
}
|
||||
} // namespace frc
|
||||
|
||||
/**
|
||||
* Drive the given distance straight (negative values go backwards).
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
namespace frc {
|
||||
class PIDController;
|
||||
}
|
||||
} // namespace frc
|
||||
|
||||
/**
|
||||
* Drive until the robot is the given distance away from the box. Uses a local
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
namespace frc {
|
||||
class Joystick;
|
||||
}
|
||||
} // namespace frc
|
||||
|
||||
/**
|
||||
* The DriveTrain subsystem incorporates the sensors and actuators attached to
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
namespace frc {
|
||||
class Joystick;
|
||||
}
|
||||
} // namespace frc
|
||||
|
||||
/**
|
||||
* The DriveTrain subsystem controls the robot's chassis and reads in
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace frc {
|
||||
class Joystick;
|
||||
}
|
||||
} // namespace frc
|
||||
|
||||
class DoubleButton : public frc::Trigger {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user