Skip to content

Commit

Permalink
partial change
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiro-0110 committed Jun 10, 2024
1 parent f90296d commit f56fe03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/real/mission/telescope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,15 @@ Telescope::Telescope(ClockGenerator* clock_generator, const libra::Quaternion& q

// Calculate imaging time
double current_jd = simulation_time_->GetCurrentTime_jd();
// If start imaging time is later than current time,
// the system prints an error message.
assert(start_imaging_jd_ > current_jd);
double imaging_duration_sec = line_rate_sec_ * stage_mode_ * number_of_lines_per_frame_ * number_of_frames_per_mission_;
double imaging_duration_sec = line_rate_sec_ * number_of_lines_per_frame_ * number_of_frames_per_mission_;
double imaging_duration_day = imaging_duration_sec / 60.0 / 60.0 / 24.0;
center_imaging_jd = start_imaging_jd_ + imaging_duration_day / 2.0;
end_imaging_jd = start_imaging_jd_ + imaging_duration_day;
// If end imaging time is later than the end of the simulation,
// the system prints an error message.
assert(end_imaging_jd < (current_jd + simulation_time_->GetEndTime_s() / 60.0 / 60.0 / 24.0));
stage_time_day = line_rate_sec_ * stage_mode_ / 60.0 / 60.0 / 24.0;
}
Expand Down

0 comments on commit f56fe03

Please sign in to comment.