Skip to content

Commit

Permalink
Fix local variables name
Browse files Browse the repository at this point in the history
  • Loading branch information
200km committed Oct 1, 2023
1 parent 4d2c314 commit 8604ccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/environment/global/celestial_rotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ void CelestialRotation::Update(const double julian_date) {

if (rotation_mode_ == RotationMode::kFull) {
// Compute Julian date for terrestrial time
double jdTT_day = julian_date + kDtUt1Utc_ * kSec2Day_; // TODO: Check the correctness. Problem is that S2E doesn't have Gregorian calendar.
double terrestrial_time_julian_day = julian_date + kDtUt1Utc_ * kSec2Day_; // TODO: Check the correctness. Problem is that S2E doesn't have Gregorian calendar.

// Compute nth power of julian century for terrestrial time.
// The actual unit of tTT_century is [century^(i+1)], i is the index of the array
double terrestrial_time_julian_century[4];
terrestrial_time_julian_century[0] = (jdTT_day - kJulianDateJ2000_) / kDayJulianCentury_;
terrestrial_time_julian_century[0] = (terrestrial_time_julian_day - kJulianDateJ2000_) / kDayJulianCentury_;
for (int i = 0; i < 3; i++) {
terrestrial_time_julian_century[i + 1] = terrestrial_time_julian_century[i] * terrestrial_time_julian_century[0];
}
Expand Down

0 comments on commit 8604ccf

Please sign in to comment.