/** Explicit constructor, taking as input reference station * coordinates and ionex maps (Ionex Store object) to be used. * * @param RxCoordinates Receiver coordinates. * @param istore IonexStore object to be used by default. * @param dObservable Observable type to be used by default. * @param applyDCB Whether or not P1 observable will be * corrected from DCB effect. * @param ionoMapType Type of ionosphere mapping function (string) * @sa IonexStore::iono_mapping_function */ IonexModel::IonexModel( const Position& RxCoordinates, IonexStore& istore, const TypeID& dObservable, const bool& applyDCB, const std::string& ionoMap) throw(Exception) { setInitialRxPosition(RxCoordinates); setDefaultMaps(istore); defaultObservable = dObservable; useDCB = applyDCB; setIonoMapType(ionoMap); } // End of constructor 'IonexModel::IonexModel()'
void setFordAspireEngineConfiguration(engine_configuration_s *engineConfiguration, board_configuration_s *boardConfiguration) { engineConfiguration->tpsMin = 1; engineConfiguration->tpsMax = 1000; engineConfiguration->rpmHardLimit = 7000; setThermistorConfiguration(&engineConfiguration->cltThermistorConf, -20, 18000, 23.8889, 2100, 48.8889, 1000); engineConfiguration->cltThermistorConf.bias_resistor = 3300; // that's my custom resistor value! engineConfiguration->crankingSettings.coolantTempMaxC = 65; // 8ms at 65C engineConfiguration->crankingSettings.fuelAtMaxTempMs = 8; engineConfiguration->crankingSettings.coolantTempMinC = 0; // 20ms at 0C engineConfiguration->crankingSettings.fuelAtMinTempMs = 15; // engineConfiguration->ignitionPinMode = OM_INVERTED; engineConfiguration->cylindersCount = 4; engineConfiguration->firingOrder = FO_1_THEN_3_THEN_4_THEN2; engineConfiguration->globalTriggerAngleOffset = 175; engineConfiguration->ignitionOffset = 98 - 11; engineConfiguration->injectionOffset = 59; setDefaultMaps(engineConfiguration); engineConfiguration->crankingSettings.crankingRpm = 550; engineConfiguration->crankingChargeAngle = 70; engineConfiguration->crankingTimingAngle = 26 + 11; setSingleCoilDwell(engineConfiguration); engineConfiguration->ignitionMode = IM_ONE_COIL; engineConfiguration->triggerConfig.triggerType = TT_FORD_ASPIRE; engineConfiguration->triggerConfig.isSynchronizationNeeded = FALSE; boardConfiguration->injectionPins[4] = GPIO_NONE; boardConfiguration->injectionPins[5] = GPIO_NONE; engineConfiguration->HD44780width = 20; engineConfiguration->HD44780height = 4; // Frankenstein analog input #1: adc1 // Frankenstein analog input #2: adc3 // Frankenstein analog input #3: adc13 // Frankenstein analog input #4: adc11 // Frankenstein analog input #5: adc // Frankenstein analog input #6: adc // Frankenstein analog input #7: adc // Frankenstein analog input #8: adc // Frankenstein analog input #9: adc // Frankenstein analog input #10: adc // Frankenstein analog input #11: adc // Frankenstein analog input #12: adc engineConfiguration->tpsAdcChannel = 3; // 15 is the old value engineConfiguration->vBattAdcChannel = 0; // 1 is the old value // engineConfiguration->map.channel = 1; engineConfiguration->mafAdcChannel = 1; engineConfiguration->cltAdcChannel = 11; // engineConfiguration->iatAdcChannel = engineConfiguration->map.config.mapType = MT_DENSO183; }