Class to convert RC PWM signals into CAN signals using CANifier.
More...
#include <ctre/phoenix/RCRadio3Ch.h>
Class to convert RC PWM signals into CAN signals using CANifier.
◆ Channel
CANifier PWM Channel.
Enumerator |
---|
Channel1 | PWM Channel 1.
|
Channel2 | PWM Channel 2.
|
Channel3 | PWM Channel 3.
|
◆ Status
Status of CANiifer.
Enumerator |
---|
LossOfCAN | CANifier is not communicating over CAN.
|
LossOfPwm | CANifier does not detect PWM input.
|
Okay | CANifier is OK.
|
◆ RCRadio3Ch()
◆ GetDutyCyclePerc()
double ctre::phoenix::RCRadio3Ch::GetDutyCyclePerc |
( |
Channel |
channel | ) |
|
Gets the percent duty cycle of specified channel.
- Parameters
-
- Returns
- duty cycle in percent [0,1]
◆ GetDutyCycleUs()
double ctre::phoenix::RCRadio3Ch::GetDutyCycleUs |
( |
Channel |
channel | ) |
|
Gets the microsecond duty cycle of specified channel.
- Parameters
-
- Returns
- duty cycle in micro seconds
◆ GetPeriodUs()
double ctre::phoenix::RCRadio3Ch::GetPeriodUs |
( |
Channel |
channel | ) |
|
Gets the period of the pwm signal of a channel.
- Parameters
-
- Returns
- period of pwm signal in microseconds
◆ GetSwitchValue()
bool ctre::phoenix::RCRadio3Ch::GetSwitchValue |
( |
Channel |
channel | ) |
|
Gets whether a switch is on or off for a channel.
- Parameters
-
- Returns
- true if switch is on
◆ Process()
void ctre::phoenix::RCRadio3Ch::Process |
( |
| ) |
|
|
virtual |
◆ CurrentStatus
Status ctre::phoenix::RCRadio3Ch::CurrentStatus = Status::Okay |
The documentation for this class was generated from the following file: