MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / refreshOrbit

Method refreshOrbit

Components/FrequencyCorrectionDialog.cpp:418–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418void
419FrequencyCorrectionDialog::refreshOrbit(void)
420{
421 auto sus = Suscan::Singleton::get_instance();
422
423 if (this->ui->correctionTypeCombo->currentIndex() == 1) {
424 // TLE-based correction
425 if (this->ui->satRadio->isChecked()) {
426 // Take TLE from satellite
427 if (sus->getSatelliteMap().find(this->desiredSelected) !=
428 sus->getLastSatellite()) {
429 this->setCurrentOrbit(
430 &sus->getSatelliteMap()[this->desiredSelected].getCOrbit());
431 }
432 } else {
433 // Take TLE from textbox
434 this->parseCurrentTLE();
435 }
436 }
437}
438
439void
440FrequencyCorrectionDialog::recalcALOS(void)

Callers 8

setCorrectionEnabledMethod · 0.95
setCurrentSatelliteMethod · 0.95
setCurrentTLEMethod · 0.95
setQthMethod · 0.95
onToggleOrbitTypeMethod · 0.95
onTLEEditMethod · 0.95

Calls 3

setCurrentOrbitMethod · 0.95
parseCurrentTLEMethod · 0.95
getLastSatelliteMethod · 0.80

Tested by

no test coverage detected