20#pragma GCC diagnostic push
21#pragma GCC diagnostic ignored "-Wconversion"
24#pragma warning(disable : 4522 4458 4522)
27#include "wpi/sendable/Sendable.h"
28#include "wpi/sendable/SendableHelper.h"
29#include "wpi/raw_ostream.h"
30#include <hal/SimDevice.h>
34#pragma GCC diagnostic pop
58class [[deprecated("This device's Phoenix 5 API is deprecated for removal in the 2025 season."
59 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
60 "A migration guide is available at https:
63 public wpi::SendableHelper<WPI_CANCoder>
85 hal::SimDevice m_simCANCoder;
86 hal::SimDouble m_simVbat;
87 hal::SimDouble m_simPosition;
88 hal::SimDouble m_simAbsPosition;
89 hal::SimDouble m_simRawPosition;
90 hal::SimDouble m_simVelocity;
92 static void OnValueChanged(
const char* name,
void* param, HAL_SimValueHandle handle,
93 HAL_Bool readonly,
const struct HAL_Value* value);
94 static void OnPeriodic(
void* param);
CTRE CANCoder.
Definition: CANCoder.h:233
CTRE CANCoder.
Definition: WPI_CANCoder.h:64
WPI_CANCoder(int deviceNumber, std::string const &canbus="")
Construtor for CANCoder.
WPI_CANCoder(WPI_CANCoder const &)=delete
WPI_CANCoder & operator=(WPI_CANCoder const &)=delete
void InitSendable(wpi::SendableBuilder &builder) override
namespace ctre
Definition: paramEnum.h:5