git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@55 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
focus
2009-12-15 20:00:14 +00:00
parent f6806d5c9a
commit ea98fae9e9
2 changed files with 4 additions and 4 deletions

View File

@@ -1140,8 +1140,8 @@ void CNeutrinoApp::InitScanSettings(CMenuWidget &settings)
//motorMenu->addItem(new CMenuOptionChooser(LOCALE_EXTRA_USE_GOTOXX, (int *)&zapitCfg.useGotoXX, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true)); //motorMenu->addItem(new CMenuOptionChooser(LOCALE_EXTRA_USE_GOTOXX, (int *)&zapitCfg.useGotoXX, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
CStringInput * toff; CStringInput * toff;
sprintf(zapit_lat, "%3.6f", zapitCfg.gotoXXLatitude); sprintf(zapit_lat, "%02.6f", zapitCfg.gotoXXLatitude);
sprintf(zapit_long, "%3.6f", zapitCfg.gotoXXLongitude); sprintf(zapit_long, "%02.6f", zapitCfg.gotoXXLongitude);
motorMenu->addItem(new CMenuOptionChooser(LOCALE_EXTRA_LADIR, (int *)&zapitCfg.gotoXXLaDirection, OPTIONS_SOUTH0_NORTH1_OPTIONS, OPTIONS_SOUTH0_NORTH1_OPTION_COUNT, true)); motorMenu->addItem(new CMenuOptionChooser(LOCALE_EXTRA_LADIR, (int *)&zapitCfg.gotoXXLaDirection, OPTIONS_SOUTH0_NORTH1_OPTIONS, OPTIONS_SOUTH0_NORTH1_OPTION_COUNT, true));
toff = new CStringInput(LOCALE_EXTRA_LAT, (char *) zapit_lat, 10, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "0123456789."); toff = new CStringInput(LOCALE_EXTRA_LAT, (char *) zapit_lat, 10, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "0123456789.");

View File

@@ -285,8 +285,8 @@ void loadZapitSettings()
voltageOff = config.getBool("voltageOff", 0); voltageOff = config.getBool("voltageOff", 0);
useGotoXX = config.getInt32("useGotoXX", 0); useGotoXX = config.getInt32("useGotoXX", 0);
gotoXXLatitude = strtod(config.getString("gotoXXLatitude", "00.0").c_str(), NULL); gotoXXLatitude = strtod(config.getString("gotoXXLatitude", "0.0").c_str(), NULL);
gotoXXLongitude = strtod(config.getString("gotoXXLongitude", "00.0").c_str(), NULL); gotoXXLongitude = strtod(config.getString("gotoXXLongitude", "0.0").c_str(), NULL);
gotoXXLaDirection = config.getInt32("gotoXXLaDirection", 1); gotoXXLaDirection = config.getInt32("gotoXXLaDirection", 1);
gotoXXLoDirection = config.getInt32("gotoXXLoDirection", 0); gotoXXLoDirection = config.getInt32("gotoXXLoDirection", 0);
repeatUsals = config.getInt32("repeatUsals", 0); repeatUsals = config.getInt32("repeatUsals", 0);