void cVideo::Standby(unsigned int bOn) { lt_debug("%s(%d)\n", __FUNCTION__, bOn); if (bOn) { setBlank(1); fop(ioctl, MPEG_VID_SET_OUTFMT, VID_OUTFMT_DISABLE_DACS); } else fop(ioctl, MPEG_VID_SET_OUTFMT, outputformat); routeVideo(bOn); video_standby = bOn; }
int cVideo::Stop(bool blank) { lt_debug("%s(%d)\n", __FUNCTION__, blank); if (blank) { playstate = VIDEO_STOPPED; fop(ioctl, MPEG_VID_STOP); return setBlank(1); } playstate = VIDEO_FREEZED; return fop(ioctl, MPEG_VID_FREEZE); }
void setStyles(UserSettings& settings) { const int bg = ::SendMessage(nppData._nppHandle, NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR, 0, 0); settings.colors._default = bg; unsigned int r = bg & 0xFF; unsigned int g = bg >> 8 & 0xFF; unsigned int b = bg >> 16 & 0xFF; int colorShift = 0; if (((r + g + b) / 3) >= 128) colorShift = -30; else colorShift = 30; r = (r + colorShift) & 0xFF; g = (g + colorShift) & 0xFF; b = (b + colorShift) & 0xFF; settings.colors.blank = r | (g << 8) | (b << 16); setCompareView(nppData._scintillaMainHandle); setCompareView(nppData._scintillaSecondHandle); setBlank(nppData._scintillaMainHandle, settings.colors.blank); setBlank(nppData._scintillaSecondHandle, settings.colors.blank); defineColor(MARKER_ADDED_LINE, settings.colors.added); defineColor(MARKER_CHANGED_LINE, settings.colors.changed); defineColor(MARKER_MOVED_LINE, settings.colors.moved); defineColor(MARKER_REMOVED_LINE, settings.colors.deleted); DefineXpmSymbol(MARKER_ADDED_SYMBOL, icon_add_16_xpm); DefineXpmSymbol(MARKER_REMOVED_SYMBOL, icon_sub_16_xpm); DefineXpmSymbol(MARKER_CHANGED_SYMBOL, icon_warning_16_xpm); DefineXpmSymbol(MARKER_MOVED_SYMBOL, icon_moved_16_xpm); setTextStyles(settings.colors); }
int CVideo::openDevice(void) { if (fd < 0) if ((fd = open(VIDEO_DEVICE, O_RDWR)) < 0) ERROR(VIDEO_DEVICE); #ifdef HAVE_TRIPLEDRAGON playstate = VIDEO_STOPPED; croppingMode = VID_DISPMODE_NORM; z[0] = 100; z[1] = 100; zoomvalue = &z[0]; const char *blanknames[2] = { "/share/tuxbox/blank_576.mpg", "/share/tuxbox/blank_480.mpg" }; int blankfd; struct stat st; for (int i = 0; i < 2; i++) { blank_data[i] = NULL; /* initialize */ blank_size[i] = 0; blankfd = open(blanknames[i], O_RDONLY); if (blankfd < 0) { WARN("cannot open %s: %m", blanknames[i]); continue; } if (fstat(blankfd, &st) != -1 && st.st_size > 0) { blank_size[i] = st.st_size; blank_data[i] = malloc(blank_size[i]); if (! blank_data[i]) ERROR("cannot malloc memory"); else if (read(blankfd, blank_data[i], blank_size[i]) != blank_size[i]) { ERROR("short read"); free(blank_data[i]); /* don't leak... */ blank_data[i] = NULL; } } close(blankfd); } #endif #ifdef HAVE_DBOX_HARDWARE /* setBlank is not _needed_ on the Dreambox. I don't know about the dbox, so i ifdef'd it out. Not blanking the fb leaves the bootlogo on screen until the video starts. --seife */ setBlank(true); #endif return fd; }
DiaryView::DiaryView(Context *context, QStackedWidget *controls) : TabView(context, VIEW_DIARY) { DiarySidebar *s = new DiarySidebar(context); HomeWindow *d = new HomeWindow(context, "diary", "Diary"); controls->addWidget(d->controls()); controls->setCurrentIndex(0); BlankStateDiaryPage *b = new BlankStateDiaryPage(context); setSidebar(s); setPage(d); setBlank(b); connect(s, SIGNAL(dateRangeChanged(DateRange)), this, SLOT(dateRangeChanged(DateRange))); }
AnalysisView::AnalysisView(Context *context, QStackedWidget *controls) : TabView(context, VIEW_ANALYSIS) { analSidebar = new AnalysisSidebar(context); HomeWindow *a = new HomeWindow(context, "analysis", "Rides"); controls->addWidget(a->controls()); controls->setCurrentIndex(0); BlankStateAnalysisPage *b = new BlankStateAnalysisPage(context); setSidebar(analSidebar); setPage(a); setBlank(b); setBottom(new ComparePane(context, this, ComparePane::interval)); connect(bottomSplitter(), SIGNAL(compareChanged(bool)), this, SLOT(compareChanged(bool))); connect(bottomSplitter(), SIGNAL(compareClear()), bottom(), SLOT(clear())); }
HomeView::HomeView(Context *context, QStackedWidget *controls) : TabView(context, VIEW_HOME) { LTMSidebar *s = new LTMSidebar(context); HomeWindow *h = new HomeWindow(context, "home", "Trends"); controls->addWidget(h->controls()); controls->setCurrentIndex(0); BlankStateHomePage *b = new BlankStateHomePage(context); setSidebar(s); setPage(h); setBlank(b); setBottom(new ComparePane(context, this, ComparePane::season)); connect(s, SIGNAL(dateRangeChanged(DateRange)), this, SLOT(dateRangeChanged(DateRange))); connect(this, SIGNAL(onSelectionChanged()), this, SLOT(justSelected())); connect(bottomSplitter(), SIGNAL(compareChanged(bool)), this, SLOT(compareChanged(bool))); connect(bottomSplitter(), SIGNAL(compareClear()), bottom(), SLOT(clear())); }
void ofxGuiImage::setCamera( ofxCameraBase *cam ) { if ( cam != NULL ) { this->pCam = cam; unsigned char pixelMode; pCam->getCameraSize( &mCamWidth, &mCamHeight, &mCamDepth,&pixelMode ); if (pImage!=NULL) free(pImage); pImage = (unsigned char*)malloc(mCamWidth*mCamHeight*sizeof(unsigned char)); pCam->getCameraFrame(pImage); setImage( pImage, mCamWidth, mCamHeight ); setCanDrawInfo( true ); } else { setBlank( true ); } }
TrainView::TrainView(Context *context, QStackedWidget *controls) : TabView(context, VIEW_TRAIN) { trainTool = new TrainSidebar(context); trainTool->hide(); HomeWindow *t = new HomeWindow(context, "train", "train"); controls->addWidget(t->controls()); controls->setCurrentIndex(0); BlankStateTrainPage *b = new BlankStateTrainPage(context); setSidebar(trainTool->controls()); setPage(t); setBlank(b); trainBottom = new TrainBottom(trainTool, this); setBottom(trainBottom); setHideBottomOnIdle(false); connect(this, SIGNAL(onSelectionChanged()), this, SLOT(onSelectionChanged())); connect(trainBottom, SIGNAL(autoHideChanged(bool)), this, SLOT(onAutoHideChanged(bool))); }
TrainView::TrainView(Context *context, QStackedWidget *controls) : TabView(context, VIEW_TRAIN) { trainTool = new TrainSidebar(context); trainTool->hide(); HomeWindow *t = new HomeWindow(context, "train", "train"); controls->addWidget(t->controls()); controls->setCurrentIndex(0); BlankStateTrainPage *b = new BlankStateTrainPage(context); setSidebar(trainTool->controls()); setPage(t); setBlank(b); p = new QDialog(NULL); QVBoxLayout *m = new QVBoxLayout(p); m->addWidget(trainTool->getToolbarButtons()); trainTool->getToolbarButtons()->show(); p->setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint | Qt::Tool); p->hide(); connect(this, SIGNAL(onSelectionChanged()), this, SLOT(onSelectionChanged())); }
bool RTIMUSettings::saveSettings() { if (!(m_fd = fopen(m_filename, "w"))) { HAL_ERROR("Failed to open settings file for save"); return false; } // General settings setComment("#####################################################################"); setComment(""); setComment("RTIMULib settings file"); setBlank(); setComment("General settings"); setComment(""); setBlank(); setComment("IMU type - "); setComment(" 0 = Auto discover"); setComment(" 1 = Null (used when data is provided from a remote IMU"); setComment(" 2 = InvenSense MPU-6050"); setValue(RTIMULIB_IMU_TYPE, m_imuType); setBlank(); setComment(""); setComment("Fusion type type - "); setComment(" 0 - Null. Use if only sensor data required without fusion"); setComment(" 1 - Kalman STATE4"); setComment(" 2 - RTQF"); setComment(" 3 - Kalman STATE7"); setValue(RTIMULIB_FUSION_TYPE, m_fusionType); setBlank(); setComment(""); setComment("I2C Bus (between 0 and 7) "); setValue(RTIMULIB_I2C_BUS, m_I2CBus); setBlank(); setComment(""); setComment("I2C slave address (filled in automatically by auto discover) "); setValue(RTIMULIB_I2C_SLAVEADDRESS, m_I2CSlaveAddress); // Compass calibration settings setBlank(); setComment("#####################################################################"); setComment(""); setBlank(); setComment("Compass calibration"); setValue(RTIMULIB_COMPASSCAL_VALID, m_compassCalValid); setValue(RTIMULIB_COMPASSCAL_MINX, m_compassCalMin.x()); setValue(RTIMULIB_COMPASSCAL_MINY, m_compassCalMin.y()); setValue(RTIMULIB_COMPASSCAL_MINZ, m_compassCalMin.z()); setValue(RTIMULIB_COMPASSCAL_MAXX, m_compassCalMax.x()); setValue(RTIMULIB_COMPASSCAL_MAXY, m_compassCalMax.y()); setValue(RTIMULIB_COMPASSCAL_MAXZ, m_compassCalMax.z()); // MPU-6050 settings setBlank(); setComment("#####################################################################"); setComment(""); setComment("MPU-6050 settings"); setComment(""); setBlank(); setComment("Gyro sample rate (between 5Hz and 1000Hz) "); setValue(RTIMULIB_MPU6050_GYROACCEL_SAMPLERATE, m_MPU6050GyroAccelSampleRate); setBlank(); setComment(""); setComment("Compass sample rate (between 1Hz and 100Hz) "); setValue(RTIMULIB_MPU6050_COMPASS_SAMPLERATE, m_MPU6050CompassSampleRate); setBlank(); setComment(""); setComment("Gyro/accel low pass filter - "); setComment(" 0 - gyro: 256Hz, accel: 260Hz"); setComment(" 1 - gyro: 188Hz, accel: 184Hz"); setComment(" 2 - gyro: 98Hz, accel: 98Hz"); setComment(" 3 - gyro: 42Hz, accel: 44Hz"); setComment(" 4 - gyro: 20Hz, accel: 21Hz"); setComment(" 5 - gyro: 10Hz, accel: 10Hz"); setComment(" 6 - gyro: 5Hz, accel: 5Hz"); setValue(RTIMULIB_MPU6050_GYROACCEL_LPF, m_MPU6050GyroAccelLpf); setBlank(); setComment(""); setComment("Gyro full scale range - "); setComment(" 0 - +/- 250 degress per second"); setComment(" 8 - +/- 500 degress per second"); setComment(" 16 - +/- 1000 degress per second"); setComment(" 24 - +/- 2000 degress per second"); setValue(RTIMULIB_MPU6050_GYRO_FSR, m_MPU6050GyroFsr); setBlank(); setComment(""); setComment("Accel full scale range - "); setComment(" 0 - +/- 2g"); setComment(" 8 - +/- 4g"); setComment(" 16 - +/- 8g"); setComment(" 24 - +/- 16g"); setValue(RTIMULIB_MPU6050_ACCEL_FSR, m_MPU6050AccelFsr); }
bool RTIMUSettings::saveSettings() { if (!(m_fd = fopen(m_filename, "w"))) { HAL_ERROR("Failed to open settings file for save"); return false; } // General settings setComment("#####################################################################"); setComment(""); setComment("RTIMULib settings file"); setBlank(); setComment("General settings"); setComment(""); setBlank(); setComment("IMU type - "); setComment(" 0 = Auto discover"); setComment(" 1 = Null (used when data is provided from a remote IMU"); setComment(" 2 = InvenSense MPU-9150"); setComment(" 3 = STM L3GD20H + LSM303D"); setComment(" 4 = STM L3GD20 + LSM303DLHC"); setComment(" 5 = STM LSM9DS0"); setValue(RTIMULIB_IMU_TYPE, m_imuType); setBlank(); setComment(""); setComment("Fusion type type - "); setComment(" 0 - Null. Use if only sensor data required without fusion"); setComment(" 1 - Kalman STATE4"); setComment(" 2 - RTQF"); setComment(" 3 - Kalman STATE7"); setValue(RTIMULIB_FUSION_TYPE, m_fusionType); setBlank(); setComment(""); setComment("I2C Bus (between 0 and 7) "); setValue(RTIMULIB_I2C_BUS, m_I2CBus); setBlank(); setComment(""); setComment("I2C slave address (filled in automatically by auto discover) "); setValue(RTIMULIB_I2C_SLAVEADDRESS, m_I2CSlaveAddress); // Compass calibration settings setBlank(); setComment("#####################################################################"); setComment(""); setBlank(); setComment("Compass calibration"); setValue(RTIMULIB_COMPASSCAL_VALID, m_compassCalValid); setValue(RTIMULIB_COMPASSCAL_MINX, m_compassCalMin.x()); setValue(RTIMULIB_COMPASSCAL_MINY, m_compassCalMin.y()); setValue(RTIMULIB_COMPASSCAL_MINZ, m_compassCalMin.z()); setValue(RTIMULIB_COMPASSCAL_MAXX, m_compassCalMax.x()); setValue(RTIMULIB_COMPASSCAL_MAXY, m_compassCalMax.y()); setValue(RTIMULIB_COMPASSCAL_MAXZ, m_compassCalMax.z()); // MPU-9150 settings setBlank(); setComment("#####################################################################"); setComment(""); setComment("MPU-9150 settings"); setComment(""); setBlank(); setComment("Gyro sample rate (between 5Hz and 1000Hz) "); setValue(RTIMULIB_MPU9150_GYROACCEL_SAMPLERATE, m_MPU9150GyroAccelSampleRate); setBlank(); setComment(""); setComment("Compass sample rate (between 1Hz and 100Hz) "); setValue(RTIMULIB_MPU9150_COMPASS_SAMPLERATE, m_MPU9150CompassSampleRate); setBlank(); setComment(""); setComment("Gyro/accel low pass filter - "); setComment(" 0 - gyro: 256Hz, accel: 260Hz"); setComment(" 1 - gyro: 188Hz, accel: 184Hz"); setComment(" 2 - gyro: 98Hz, accel: 98Hz"); setComment(" 3 - gyro: 42Hz, accel: 44Hz"); setComment(" 4 - gyro: 20Hz, accel: 21Hz"); setComment(" 5 - gyro: 10Hz, accel: 10Hz"); setComment(" 6 - gyro: 5Hz, accel: 5Hz"); setValue(RTIMULIB_MPU9150_GYROACCEL_LPF, m_MPU9150GyroAccelLpf); setBlank(); setComment(""); setComment("Gyro full scale range - "); setComment(" 0 - +/- 250 degress per second"); setComment(" 8 - +/- 500 degress per second"); setComment(" 16 - +/- 1000 degress per second"); setComment(" 24 - +/- 2000 degress per second"); setValue(RTIMULIB_MPU9150_GYRO_FSR, m_MPU9150GyroFsr); setBlank(); setComment(""); setComment("Accel full scale range - "); setComment(" 0 - +/- 2g"); setComment(" 8 - +/- 4g"); setComment(" 16 - +/- 8g"); setComment(" 24 - +/- 16g"); setValue(RTIMULIB_MPU9150_ACCEL_FSR, m_MPU9150AccelFsr); // GD20HM303D settings setBlank(); setComment("#####################################################################"); setComment(""); setComment("L3GD20H + LSM303D settings"); setBlank(); setComment(""); setComment("Gyro sample rate - "); setComment(" 0 = 12.5Hz "); setComment(" 1 = 25Hz "); setComment(" 2 = 50Hz "); setComment(" 3 = 100Hz "); setComment(" 4 = 200Hz "); setComment(" 5 = 400Hz "); setComment(" 6 = 800Hz "); setValue(RTIMULIB_GD20HM303D_GYRO_SAMPLERATE, m_GD20HM303DGyroSampleRate); setBlank(); setComment(""); setComment("Gyro full scale range - "); setComment(" 0 = 245 degrees per second "); setComment(" 1 = 500 degrees per second "); setComment(" 2 = 2000 degrees per second "); setValue(RTIMULIB_GD20HM303D_GYRO_FSR, m_GD20HM303DGyroFsr); setBlank(); setComment(""); setComment("Gyro high pass filter - "); setComment(" 0 - 9 but see the L3GD20H manual for details"); setValue(RTIMULIB_GD20HM303D_GYRO_HPF, m_GD20HM303DGyroHpf); setBlank(); setComment(""); setComment("Gyro bandwidth - "); setComment(" 0 - 3 but see the L3GD20H manual for details"); setValue(RTIMULIB_GD20HM303D_GYRO_BW, m_GD20HM303DGyroBW); setBlank(); setComment("Accel sample rate - "); setComment(" 1 = 3.125Hz "); setComment(" 2 = 6.25Hz "); setComment(" 3 = 12.5Hz "); setComment(" 4 = 25Hz "); setComment(" 5 = 50Hz "); setComment(" 6 = 100Hz "); setComment(" 7 = 200Hz "); setComment(" 8 = 400Hz "); setComment(" 9 = 800Hz "); setComment(" 10 = 1600Hz "); setValue(RTIMULIB_GD20HM303D_ACCEL_SAMPLERATE, m_GD20HM303DAccelSampleRate); setBlank(); setComment(""); setComment("Accel full scale range - "); setComment(" 0 = +/- 2g "); setComment(" 1 = +/- 4g "); setComment(" 2 = +/- 6g "); setComment(" 3 = +/- 8g "); setComment(" 4 = +/- 16g "); setValue(RTIMULIB_GD20HM303D_ACCEL_FSR, m_GD20HM303DAccelFsr); setBlank(); setComment(""); setComment("Accel low pass filter - "); setComment(" 0 = 773Hz"); setComment(" 1 = 194Hz"); setComment(" 2 = 362Hz"); setComment(" 3 = 50Hz"); setValue(RTIMULIB_GD20HM303D_ACCEL_LPF, m_GD20HM303DAccelLpf); setBlank(); setComment(""); setComment("Compass sample rate - "); setComment(" 0 = 3.125Hz "); setComment(" 1 = 6.25Hz "); setComment(" 2 = 12.5Hz "); setComment(" 3 = 25Hz "); setComment(" 4 = 50Hz "); setComment(" 5 = 100Hz "); setValue(RTIMULIB_GD20HM303D_COMPASS_SAMPLERATE, m_GD20HM303DCompassSampleRate); setBlank(); setComment(""); setComment("Compass full scale range - "); setComment(" 0 = +/- 200 uT "); setComment(" 1 = +/- 400 uT "); setComment(" 2 = +/- 800 uT "); setComment(" 3 = +/- 1200 uT "); setValue(RTIMULIB_GD20HM303D_COMPASS_FSR, m_GD20HM303DCompassFsr); // GD20M303DLHC settings setBlank(); setComment("#####################################################################"); setComment(""); setComment("L3GD20 + LSM303DLHC settings"); setComment(""); setBlank(); setComment("Gyro sample rate - "); setComment(" 0 = 95z "); setComment(" 1 = 190Hz "); setComment(" 2 = 380Hz "); setComment(" 3 = 760Hz "); setValue(RTIMULIB_GD20M303DLHC_GYRO_SAMPLERATE, m_GD20M303DLHCGyroSampleRate); setBlank(); setComment(""); setComment("Gyro full scale range - "); setComment(" 0 = 250 degrees per second "); setComment(" 1 = 500 degrees per second "); setComment(" 2 = 2000 degrees per second "); setValue(RTIMULIB_GD20M303DLHC_GYRO_FSR, m_GD20M303DLHCGyroFsr); setBlank(); setComment(""); setComment("Gyro high pass filter - "); setComment(" 0 - 9 but see the L3GD20 manual for details"); setValue(RTIMULIB_GD20M303DLHC_GYRO_HPF, m_GD20M303DLHCGyroHpf); setBlank(); setComment(""); setComment("Gyro bandwidth - "); setComment(" 0 - 3 but see the L3GD20 manual for details"); setValue(RTIMULIB_GD20M303DLHC_GYRO_BW, m_GD20M303DLHCGyroBW); setBlank(); setComment("Accel sample rate - "); setComment(" 1 = 1Hz "); setComment(" 2 = 10Hz "); setComment(" 3 = 25Hz "); setComment(" 4 = 50Hz "); setComment(" 5 = 100Hz "); setComment(" 6 = 200Hz "); setComment(" 7 = 400Hz "); setValue(RTIMULIB_GD20M303DLHC_ACCEL_SAMPLERATE, m_GD20M303DLHCAccelSampleRate); setBlank(); setComment(""); setComment("Accel full scale range - "); setComment(" 0 = +/- 2g "); setComment(" 1 = +/- 4g "); setComment(" 2 = +/- 8g "); setComment(" 3 = +/- 16g "); setValue(RTIMULIB_GD20M303DLHC_ACCEL_FSR, m_GD20M303DLHCAccelFsr); setBlank(); setComment(""); setComment("Compass sample rate - "); setComment(" 0 = 0.75Hz "); setComment(" 1 = 1.5Hz "); setComment(" 2 = 3Hz "); setComment(" 3 = 7.5Hz "); setComment(" 4 = 15Hz "); setComment(" 5 = 30Hz "); setValue(RTIMULIB_GD20M303DLHC_COMPASS_SAMPLERATE, m_GD20M303DLHCCompassSampleRate); setBlank(); setComment(""); setComment("Compass full scale range - "); setComment(" 1 = +/- 130 uT "); setComment(" 2 = +/- 190 uT "); setComment(" 3 = +/- 250 uT "); setComment(" 4 = +/- 400 uT "); setComment(" 5 = +/- 470 uT "); setComment(" 6 = +/- 560 uT "); setComment(" 7 = +/- 810 uT "); setValue(RTIMULIB_GD20M303DLHC_COMPASS_FSR, m_GD20M303DLHCCompassFsr); // LSM9DS0 settings setBlank(); setComment("#####################################################################"); setComment(""); setComment("LSM9DS0 settings"); setComment(""); setBlank(); setComment("Gyro sample rate - "); setComment(" 0 = 95z "); setComment(" 1 = 190Hz "); setComment(" 2 = 380Hz "); setComment(" 3 = 760Hz "); setValue(RTIMULIB_LSM9DS0_GYRO_SAMPLERATE, m_LSM9DS0GyroSampleRate); setBlank(); setComment(""); setComment("Gyro full scale range - "); setComment(" 0 = 250 degrees per second "); setComment(" 1 = 500 degrees per second "); setComment(" 2 = 2000 degrees per second "); setValue(RTIMULIB_LSM9DS0_GYRO_FSR, m_LSM9DS0GyroFsr); setBlank(); setComment(""); setComment("Gyro high pass filter - "); setComment(" 0 - 9 but see the LSM9DS0 manual for details"); setValue(RTIMULIB_LSM9DS0_GYRO_HPF, m_LSM9DS0GyroHpf); setBlank(); setComment(""); setComment("Gyro bandwidth - "); setComment(" 0 - 3 but see the LSM9DS0 manual for details"); setValue(RTIMULIB_LSM9DS0_GYRO_BW, m_LSM9DS0GyroBW); setBlank(); setComment("Accel sample rate - "); setComment(" 1 = 3.125Hz "); setComment(" 2 = 6.25Hz "); setComment(" 3 = 12.5Hz "); setComment(" 4 = 25Hz "); setComment(" 5 = 50Hz "); setComment(" 6 = 100Hz "); setComment(" 7 = 200Hz "); setComment(" 8 = 400Hz "); setComment(" 9 = 800Hz "); setComment(" 10 = 1600Hz "); setValue(RTIMULIB_LSM9DS0_ACCEL_SAMPLERATE, m_LSM9DS0AccelSampleRate); setBlank(); setComment(""); setComment("Accel full scale range - "); setComment(" 0 = +/- 2g "); setComment(" 1 = +/- 4g "); setComment(" 2 = +/- 6g "); setComment(" 3 = +/- 8g "); setComment(" 4 = +/- 16g "); setValue(RTIMULIB_LSM9DS0_ACCEL_FSR, m_LSM9DS0AccelFsr); setBlank(); setComment(""); setComment("Accel low pass filter - "); setComment(" 0 = 773Hz"); setComment(" 1 = 194Hz"); setComment(" 2 = 362Hz"); setComment(" 3 = 50Hz"); setValue(RTIMULIB_LSM9DS0_ACCEL_LPF, m_LSM9DS0AccelLpf); setBlank(); setComment(""); setComment("Compass sample rate - "); setComment(" 0 = 3.125Hz "); setComment(" 1 = 6.25Hz "); setComment(" 2 = 12.5Hz "); setComment(" 3 = 25Hz "); setComment(" 4 = 50Hz "); setComment(" 5 = 100Hz "); setValue(RTIMULIB_LSM9DS0_COMPASS_SAMPLERATE, m_LSM9DS0CompassSampleRate); setBlank(); setComment(""); setComment("Compass full scale range - "); setComment(" 0 = +/- 200 uT "); setComment(" 1 = +/- 400 uT "); setComment(" 2 = +/- 800 uT "); setComment(" 3 = +/- 1200 uT "); setValue(RTIMULIB_LSM9DS0_COMPASS_FSR, m_LSM9DS0CompassFsr); fclose(m_fd); return true; }