12#include "ctre/phoenix/sensors/CANCoder.h"
13#include "ctre/phoenix/WPI_CallbackHelper.h"
19#pragma GCC diagnostic push
20#pragma GCC diagnostic ignored "-Wconversion"
23#pragma warning(disable : 4522 4458 4522)
26#include "wpi/sendable/Sendable.h"
27#include "wpi/sendable/SendableHelper.h"
28#include "wpi/raw_ostream.h"
29#include <hal/SimDevice.h>
33#pragma GCC diagnostic pop
47 public wpi::SendableHelper<WPI_CANCoder>
65 void InitSendable(wpi::SendableBuilder& builder)
override;
69 hal::SimDevice m_simCANCoder;
70 hal::SimDouble m_simVbat;
71 hal::SimDouble m_simPosition;
72 hal::SimDouble m_simAbsPosition;
73 hal::SimDouble m_simRawPosition;
74 hal::SimDouble m_simVelocity;
76 static void OnValueChanged(
const char* name,
void* param, HAL_SimValueHandle handle,
77 HAL_Bool readonly,
const struct HAL_Value* value);
78 static void OnPeriodic(
void* param);
Definition: CANCoder.h:169
Definition: WPI_CANCoder.h:48
WPI_CANCoder(int deviceNumber, std::string const &canbus="")
Definition: ErrorCode.h:5