AddChannelIdToList::AddChannelIdToList(uint8_t channel, uint16_t deviceNumber, uint8_t deviceType,  uint8_t transmissionType, uint8_t listIndex) : AntRequest(ADD_CHANNEL_ID_TO_LIST) {
    setChannel(channel);
    setDeviceNumber(deviceNumber);
    setDeviceType(deviceType);
    setTransmissionType(transmissionType);
    setListIndex(listIndex);
}
示例#2
0
RSceneDevice::RSceneDevice(double width, double height,
			   double pointsize, 
			   const char *family)
    : QGraphicsScene(0)
{
    setItemIndexMethod(QGraphicsScene::NoIndex);
    debug = false;
    force_repaint = false;
    zclip = 0.0;
    zitem = 0.0;
    default_family = QString(family);
    setDeviceNumber(curDevice());
    setSceneRect(0.0, 0.0, width, height);
    clip_rect = addRect(sceneRect());
    do_QTScene(width, height, pointsize, this);
}
示例#3
0
    void USBCamera::setup(kerberos::StringMap &settings)
    {
        int width = std::atoi(settings.at("captures.USBCamera.frameWidth").c_str());
        int height = std::atoi(settings.at("captures.USBCamera.frameHeight").c_str());
        int deviceNumber = std::atoi(settings.at("captures.USBCamera.deviceNumber").c_str());
        int angle = std::atoi(settings.at("captures.USBCamera.angle").c_str());
        int delay = std::atoi(settings.at("captures.USBCamera.delay").c_str());
        std::string fourcc = settings.at("captures.USBCamera.fourcc");

        // Initialize executor (update the usb camera at specific times).
        tryToUpdateCapture.setAction(this, &USBCamera::update);
        tryToUpdateCapture.setInterval("thrice in 10 functions calls");

        // Save width and height in settings
        Capture::setup(settings, width, height, angle);
        setImageSize(width, height);
        setRotation(angle);
        setDelay(delay);
        setDeviceNumber(deviceNumber);
        setFourcc(fourcc);

        // Initialize USB Camera
        open();
    }