Merge branch 'main' into 2027

This commit is contained in:
Peter Johnson
2025-05-29 21:41:50 -07:00
347 changed files with 18562 additions and 11557 deletions

View File

@@ -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.
*/

View File

@@ -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