Just use memset
parent
a658fa2c5b
commit
fc46e6df47
|
@ -24,12 +24,7 @@
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
#include <cstring>
|
||||||
const SGP4::CommonConstants SGP4::Empty_CommonConstants = SGP4::CommonConstants();
|
|
||||||
const SGP4::NearSpaceConstants SGP4::Empty_NearSpaceConstants = SGP4::NearSpaceConstants();
|
|
||||||
const SGP4::DeepSpaceConstants SGP4::Empty_DeepSpaceConstants = SGP4::DeepSpaceConstants();
|
|
||||||
const SGP4::IntegratorConstants SGP4::Empty_IntegratorConstants = SGP4::IntegratorConstants();
|
|
||||||
const SGP4::IntegratorParams SGP4::Empty_IntegratorParams = SGP4::IntegratorParams();
|
|
||||||
|
|
||||||
void SGP4::SetTle(const Tle& tle)
|
void SGP4::SetTle(const Tle& tle)
|
||||||
{
|
{
|
||||||
|
@ -1441,9 +1436,9 @@ void SGP4::Reset()
|
||||||
use_simple_model_ = false;
|
use_simple_model_ = false;
|
||||||
use_deep_space_ = false;
|
use_deep_space_ = false;
|
||||||
|
|
||||||
common_consts_ = Empty_CommonConstants;
|
std::memset(&common_consts_, 0, sizeof(common_consts_));
|
||||||
nearspace_consts_ = Empty_NearSpaceConstants;
|
std::memset(&nearspace_consts_, 0, sizeof(nearspace_consts_));
|
||||||
deepspace_consts_ = Empty_DeepSpaceConstants;
|
std::memset(&deepspace_consts_, 0, sizeof(deepspace_consts_));
|
||||||
integrator_consts_ = Empty_IntegratorConstants;
|
std::memset(&integrator_consts_, 0, sizeof(integrator_consts_));
|
||||||
integrator_params_ = Empty_IntegratorParams;
|
std::memset(&integrator_params_, 0, sizeof(integrator_params_));
|
||||||
}
|
}
|
||||||
|
|
|
@ -290,12 +290,6 @@ private:
|
||||||
*/
|
*/
|
||||||
bool use_simple_model_;
|
bool use_simple_model_;
|
||||||
bool use_deep_space_;
|
bool use_deep_space_;
|
||||||
|
|
||||||
static const struct SGP4::CommonConstants Empty_CommonConstants;
|
|
||||||
static const struct SGP4::NearSpaceConstants Empty_NearSpaceConstants;
|
|
||||||
static const struct SGP4::DeepSpaceConstants Empty_DeepSpaceConstants;
|
|
||||||
static const struct SGP4::IntegratorConstants Empty_IntegratorConstants;
|
|
||||||
static const struct SGP4::IntegratorParams Empty_IntegratorParams;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue