S wasnt being initialized within constants

feature/19
Daniel Warner 2011-03-29 20:50:58 +01:00
parent 204cc4d4b9
commit ec9804c7ed
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ void SGDP4::SetConstants(EnumConstants constants) {
throw new SatelliteException("Unrecognised constant value");
break;
}
constants_.S = constants_.AE + 78.0 / constants_.XKMPER;
constants_.CK2 = 0.5 * constants_.XJ2 * constants_.AE * constants_.AE;
constants_.CK4 = -0.375 * constants_.XJ4 * constants_.AE * constants_.AE * constants_.AE * constants_.AE;
constants_.QOMS2T = pow((120.0 - 78.0) * constants_.AE / constants_.XKMPER, 4.0);