98 double _pulseWidthAndPeriods[4][2] =
105 double Interpolate(std::vector<double> &xData, std::vector<double> &yData,
double x,
bool extrapolate);
CTRE CANifier.
Definition: CANifier.h:108
Class to convert RC PWM signals into CAN signals using CANifier.
Definition: RCRadio3Ch.h:14
RCRadio3Ch(ctre::phoenix::CANifier *canifier)
Constructor for RCRadio3Ch.
double GetPeriodUs(Channel channel)
Gets the period of the pwm signal of a channel.
void Process()
Call this once every loop, it processes the incoming CANifier signals.
Status CurrentStatus
Current status of CANifier.
Definition: RCRadio3Ch.h:54
double GetDutyCycleUs(Channel channel)
Gets the microsecond duty cycle of specified channel.
bool GetSwitchValue(Channel channel)
Gets whether a switch is on or off for a channel.
double GetDutyCyclePerc(Channel channel)
Gets the percent duty cycle of specified channel.
Channel
CANifier PWM Channel.
Definition: RCRadio3Ch.h:19
@ Channel1
PWM Channel 1.
Definition: RCRadio3Ch.h:23
@ Channel3
PWM Channel 3.
Definition: RCRadio3Ch.h:31
@ Channel2
PWM Channel 2.
Definition: RCRadio3Ch.h:27
Status
Status of CANiifer.
Definition: RCRadio3Ch.h:36
@ LossOfCAN
CANifier is not communicating over CAN.
Definition: RCRadio3Ch.h:40
@ LossOfPwm
CANifier does not detect PWM input.
Definition: RCRadio3Ch.h:44
@ Okay
CANifier is OK.
Definition: RCRadio3Ch.h:48
Interface for processable objects.
Definition: IProcessable.h:8
namespace ctre
Definition: paramEnum.h:5