11#include <wpi/hal/SimDevice.hpp>
17#if defined(_WIN32) || defined(_WIN64)
19#pragma warning(disable : 4250)
36 wpi::hal::SimDevice m_simCANcoder;
37 wpi::hal::SimDouble m_simSupplyVoltage;
38 wpi::hal::SimDouble m_simPosition;
39 wpi::hal::SimDouble m_simRawPosition;
40 wpi::hal::SimDouble m_simVelocity;
42 int32_t m_simPeriodicUid{-1};
43 std::vector<int32_t> m_simValueChangedUids;
45 static void OnValueChanged(
46 const char *name,
void *param, HAL_SimValueHandle handle,
47 HAL_Bool readonly,
const struct HAL_Value *value
49 static void OnPeriodic(
void *param);
75#if defined(_WIN32) || defined(_WIN64)
Class for getting information about an available CAN bus.
Definition CANBus.hpp:19
Represents a status signal with data of type T, and operations available to retrieve information abou...
Definition StatusSignal.hpp:563
CANcoder(int deviceId, CANBus canbus)
Constructs a new CANcoder object.
static CANcoder None()
Constructs a stubbed-out CANcoder, where all status signals, controls, configs, etc.
Definition CANcoder.hpp:69
Class for CANcoder, a CAN based magnetic encoder that provides absolute and relative position along w...
Definition CoreCANcoder.hpp:601
StatusSignal< wpi::units::turn_t > & GetPosition(bool refresh=true)
Position of the device.
Definition ExternalFeedbackConfigs.hpp:17
Definition ExternalFeedbackConfigs.hpp:16
Definition motor_constants.h:14