C2A_Core
|
master_clock_ で OBC 時刻情報を保持するとともに, unixtime との紐づけや初期化情報の記録を行う [詳解]
#include <time_manager.h>
フィールド | |
ObcTime | master_clock_ |
struct { | |
double unixtime_at_ti0 | |
master_clock が {0, 0, 0} の時の unixtime [詳解] | |
cycle_t ti_at_last_update | |
"unixtime_info_ を最後に更新した (GPSなどの) 時刻情報" を観測した時点の total_cycle [詳解] | |
double utl_unixtime_epoch | |
double cycle_correction | |
} | unixtime_info_ |
struct { | |
ObcTime initializing_time | |
uint8_t initializing_flag | |
} | init_info_ |
master_clock_ で OBC 時刻情報を保持するとともに, unixtime との紐づけや初期化情報の記録を行う
time_manager.h の 29 行目に定義があります。
double cycle_correction |
CYCLES_PER_SEC の補正倍率. unixtime <> OBCTime の変換で使う CYCLES_PER_SEC * cycle_correction = OBC のクロック誤差を反映した実際の値 初期値は 1.0
time_manager.h の 39 行目に定義があります。
struct { ... } init_info_ |
uint8_t initializing_flag |
time_manager.h の 46 行目に定義があります。
ObcTime initializing_time |
time_manager.h の 45 行目に定義があります。
ObcTime master_clock_ |
time_manager.h の 31 行目に定義があります。
cycle_t ti_at_last_update |
"unixtime_info_ を最後に更新した (GPSなどの) 時刻情報" を観測した時点の total_cycle
time_manager.h の 35 行目に定義があります。
double unixtime_at_ti0 |
master_clock が {0, 0, 0} の時の unixtime
time_manager.h の 34 行目に定義があります。
struct { ... } unixtime_info_ |
double utl_unixtime_epoch |
これを時刻ゼロとして起算した cycle 刻みの時刻を utl_unixtime と定義する. cycle 未満の精度は切り捨てられるので utl_unixtime は整数値となる. UTL_cmd の実行時刻情報として用いる.
time_manager.h の 36 行目に定義があります。