mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Merge branch 'main' into 2027
This commit is contained in:
@@ -75,8 +75,7 @@ class AnalogAccelerometer : public wpi::Sendable,
|
||||
* Set the accelerometer sensitivity.
|
||||
*
|
||||
* This sets the sensitivity of the accelerometer used for calculating the
|
||||
* acceleration. The sensitivity varies by accelerometer model. There are
|
||||
* constants defined for various models.
|
||||
* acceleration. The sensitivity varies by accelerometer model.
|
||||
*
|
||||
* @param sensitivity The sensitivity of accelerometer in Volts per G.
|
||||
*/
|
||||
@@ -85,8 +84,7 @@ class AnalogAccelerometer : public wpi::Sendable,
|
||||
/**
|
||||
* Set the voltage that corresponds to 0 G.
|
||||
*
|
||||
* The zero G voltage varies by accelerometer model. There are constants
|
||||
* defined for various models.
|
||||
* The zero G voltage varies by accelerometer model.
|
||||
*
|
||||
* @param zero The zero G voltage.
|
||||
*/
|
||||
|
||||
@@ -129,8 +129,12 @@ class BooleanEvent {
|
||||
frc::Debouncer::DebounceType::kRising);
|
||||
|
||||
private:
|
||||
/// Poller loop.
|
||||
EventLoop* m_loop;
|
||||
|
||||
std::function<bool()> m_signal;
|
||||
std::shared_ptr<bool> m_state; // A programmer's worst nightmare.
|
||||
|
||||
/// The state of the condition in the current loop poll.
|
||||
std::shared_ptr<bool> m_state;
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
Reference in New Issue
Block a user