11#include "wpi/sendable/Sendable.h"
12#include "wpi/sendable/SendableBuilder.h"
13#include "wpi/sendable/SendableHelper.h"
14#include <hal/SimDevice.h>
20#if defined(_WIN32) || defined(_WIN64)
22#pragma warning(disable : 4250)
31 public wpi::SendableHelper<CANdle>
41 hal::SimDevice m_simCANdle;
42 hal::SimDouble m_simSupplyVoltage;
43 hal::SimDouble m_simFiveVRail;
44 hal::SimDouble m_simOutputCurrent;
45 hal::SimDouble m_simTemperature;
46 hal::SimDouble m_simVBatModulation;
48 int32_t m_simPeriodicUid{-1};
49 std::vector<int32_t> m_simValueChangedUids;
51 static void OnValueChanged(
52 const char *name,
void *param, HAL_SimValueHandle handle,
53 HAL_Bool readonly,
const struct HAL_Value *value
55 static void OnPeriodic(
void *param);
86 "Constructing devices with a CAN bus string is deprecated for removal "
87 "in the 2027 season. Construct devices using a CANBus instance instead."
89 CANdle(
int deviceId, std::string canbus);
104#if defined(_WIN32) || defined(_WIN64)
Class for getting information about an available CAN bus.
Definition CANBus.hpp:19
Class for CTR Electronics' CANdle® branded device, a device that controls LEDs over the CAN bus.
Definition CANdle.hpp:32
CANdle(int deviceId, std::string canbus)
Constructs a new CANdle object.
ctre::phoenix::StatusCode ClearAllAnimations()
Clears all animations on the CANdle.
CANdle(int deviceId, CANBus canbus={})
Constructs a new CANdle object.
void InitSendable(wpi::SendableBuilder &builder) override
static constexpr int kAnimSlotCount
The number of animation slots.
Definition CANdle.hpp:59
Class for CTR Electronics' CANdle® branded device, a device that controls LEDs over the CAN bus.
Definition CoreCANdle.hpp:840
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:28
Definition motor_constants.h:14