Skip to content

Commit

Permalink
Add warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
200km committed Jul 18, 2023
1 parent 2c7edc1 commit fc71152
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/environment/global/celestial_rotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ CelestialRotation::CelestialRotation(const RotationMode rotation_mode, const std
if (center_body_name == "EARTH") {
InitCelestialRotationAsEarth(rotation_mode, center_body_name);
} else {
// If the center object is not defined rotation calculation and make the DCM a unit matrix
// If the center object is not defined for rotation calculation, make the DCM as a unit matrix
std::cerr << "WARNINGS: The rotation calculation for the center object " << center_body_name;
std::cerr << " is not supported yet." << std::endl;
std::cerr << "The rotation matrix is set as a identity matrix" << std::endl;
rotation_mode_ = RotationMode::kIdle;
dcm_j2000_to_xcxf_ = libra::MakeIdentityMatrix<3>();
}
Expand Down

0 comments on commit fc71152

Please sign in to comment.