Пример #1
0
AnalogPotentiometer::AnalogPotentiometer(AnalogInput &input, double scale, double offset) {
    m_init_analog_input = false;
    initPot(&input, scale, offset);
}
Пример #2
0
/**
 * Construct an Analog Potentiometer object from an existing Analog Input reference.
 * @param channel The existing Analog Input reference
 * @param fullRange The angular value (in desired units) representing the full 0-5V range of the input.
 * @param offset The angular value (in desired units) representing the angular output at 0V.
 */
AnalogPotentiometer2481::AnalogPotentiometer2481(AnalogInput &input, double fullRange, double offset) {
    m_init_analog_input = false;
    initPot(&input, fullRange, offset);
}
Пример #3
0
AnalogPotentiometer::AnalogPotentiometer(int channel, double scale, double offset) {
    m_init_analog_input = true;
    initPot(new AnalogInput(channel), scale, offset);
}
Пример #4
0
/**
 * Construct an Analog Potentiometer object from a channel number.
 * @param channel The channel number on the roboRIO to represent. 0-3 are on-board 4-7 are on the MXP port.
 * @param fullRange The angular value (in desired units) representing the full 0-5V range of the input.
 * @param offset The angular value (in desired units) representing the angular output at 0V.
 */
AnalogPotentiometer2481::AnalogPotentiometer2481(int channel, double fullRange, double offset) {
    m_init_analog_input = true;
    initPot(new AnalogInput(channel), fullRange, offset);
}