SCRIPT: wpiformat

This commit is contained in:
PJ Reiniger
2025-11-07 20:01:58 -05:00
committed by Peter Johnson
parent ae6bdc9d25
commit 2109161534
749 changed files with 5504 additions and 3936 deletions

View File

@@ -19,8 +19,9 @@ namespace wpi {
* sensors have multiple axis and can be treated as multiple devices. Each is
* calibrated by finding the center value over a period of time.
*/
class AnalogAccelerometer : public wpi::util::Sendable,
public wpi::util::SendableHelper<AnalogAccelerometer> {
class AnalogAccelerometer
: public wpi::util::Sendable,
public wpi::util::SendableHelper<AnalogAccelerometer> {
public:
/**
* Create a new instance of an accelerometer.

View File

@@ -131,7 +131,8 @@ class LEDPattern {
*
* <pre>
* // LEDs per meter, a known value taken from the spec sheet of our
* particular LED strip wpi::units::meter_t LED_SPACING = wpi::units::meter_t{1 /60.0};
* particular LED strip wpi::units::meter_t LED_SPACING =
* wpi::units::meter_t{1 /60.0};
*
* wpi::LEDPattern rainbow = wpi::LEDPattern::Rainbow();
* wpi::LEDPattern scrollingRainbow =

View File

@@ -28,10 +28,11 @@ WPI_IGNORE_DEPRECATED
/**
* Common base class for all PWM Motor Controllers.
*/
class PWMMotorController : public MotorController,
public MotorSafety,
public wpi::util::Sendable,
public wpi::util::SendableHelper<PWMMotorController> {
class PWMMotorController
: public MotorController,
public MotorSafety,
public wpi::util::Sendable,
public wpi::util::SendableHelper<PWMMotorController> {
public:
PWMMotorController(PWMMotorController&&) = default;
PWMMotorController& operator=(PWMMotorController&&) = default;

View File

@@ -228,7 +228,8 @@ class PneumaticsBase {
* @return The pressure read by an analog pressure sensor on the
* specified analog input channel.
*/
virtual wpi::units::pounds_per_square_inch_t GetPressure(int channel) const = 0;
virtual wpi::units::pounds_per_square_inch_t GetPressure(
int channel) const = 0;
/**
* Create a solenoid object for the specified channel.

View File

@@ -22,7 +22,8 @@ namespace wpi {
* The Solenoid class is typically used for pneumatics solenoids, but could be
* used for any device within the current spec of the module.
*/
class Solenoid : public wpi::util::Sendable, public wpi::util::SendableHelper<Solenoid> {
class Solenoid : public wpi::util::Sendable,
public wpi::util::SendableHelper<Solenoid> {
public:
/**
* Constructs a solenoid for a specified module and type.

View File

@@ -346,7 +346,8 @@ class PowerDistribution : public wpi::util::Sendable,
void InitSendable(wpi::util::SendableBuilder& builder) override;
private:
wpi::hal::Handle<HAL_PowerDistributionHandle, HAL_CleanPowerDistribution> m_handle;
wpi::hal::Handle<HAL_PowerDistributionHandle, HAL_CleanPowerDistribution>
m_handle;
int m_module;
};

View File

@@ -12,7 +12,8 @@
namespace wpi {
class SharpIR : public wpi::util::Sendable, public wpi::util::SendableHelper<SharpIR> {
class SharpIR : public wpi::util::Sendable,
public wpi::util::SendableHelper<SharpIR> {
public:
/**
* Sharp GP2Y0A02YK0F is an analog IR sensor capable of measuring

View File

@@ -18,8 +18,9 @@ namespace wpi {
* units you choose, by way of the scaling and offset constants passed to the
* constructor.
*/
class AnalogPotentiometer : public wpi::util::Sendable,
public wpi::util::SendableHelper<AnalogPotentiometer> {
class AnalogPotentiometer
: public wpi::util::Sendable,
public wpi::util::SendableHelper<AnalogPotentiometer> {
public:
/**
* Construct an Analog Potentiometer object from a channel number.

View File

@@ -21,7 +21,8 @@ namespace wpi {
* low in that frequency. These can be attached to any SmartIO.
*
*/
class DutyCycle : public wpi::util::Sendable, public wpi::util::SendableHelper<DutyCycle> {
class DutyCycle : public wpi::util::Sendable,
public wpi::util::SendableHelper<DutyCycle> {
public:
/**
* Constructs a DutyCycle input from a smartio channel.