mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Fixed spacing and comment annotations around namespace and extern declarations (#587)
This commit is contained in:
committed by
Peter Johnson
parent
f151892db5
commit
a4e781a231
@@ -15,13 +15,15 @@
|
||||
#include "HAL/handles/IndexedHandleResource.h"
|
||||
|
||||
namespace {
|
||||
|
||||
struct AnalogGyro {
|
||||
HAL_AnalogInputHandle handle;
|
||||
double voltsPerDegreePerSecond;
|
||||
double offset;
|
||||
int32_t center;
|
||||
};
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
static constexpr uint32_t kOversampleBits = 10;
|
||||
static constexpr uint32_t kAverageBits = 0;
|
||||
@@ -41,6 +43,7 @@ static void Wait(double seconds) {
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
||||
HAL_GyroHandle HAL_InitializeAnalogGyro(HAL_AnalogInputHandle analogHandle,
|
||||
int32_t* status) {
|
||||
if (!HAL_IsAccumulatorChannel(analogHandle, status)) {
|
||||
@@ -238,4 +241,5 @@ int32_t HAL_GetAnalogGyroCenter(HAL_GyroHandle handle, int32_t* status) {
|
||||
}
|
||||
return gyro->center;
|
||||
}
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user