Skip to content

Commit

Permalink
split TimeManager Cmd declaration into time_manager_cmd.h
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed May 26, 2023
1 parent 042cdfa commit 7508ac9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
13 changes: 0 additions & 13 deletions System/TimeManager/time_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define TIME_MANAGER_H_

#include "obc_time.h"
#include "../../TlmCmd/common_cmd_packet.h"

#define TMGR_DEFAULT_UNIXTIME_EPOCH_FOR_UTL (1577836800.0) /*!< 2020-01-01T00:00:00Z 時点の unixtime.
utl_unixtime_epoch のデフォルト値 */
Expand Down Expand Up @@ -228,16 +227,4 @@ ObcTime TMGR_get_obc_time_from_unixtime(const double unixtime);
*/
cycle_t TMGR_get_ti_from_utl_unixtime(const cycle_t utl_unixtime);

CCP_CmdRet Cmd_TMGR_SET_TIME(const CommonCmdPacket* packet);

CCP_CmdRet Cmd_TMGR_UPDATE_UNIXTIME(const CommonCmdPacket* packet);

CCP_CmdRet Cmd_TMGR_SET_UTL_UNIXTIME_EPOCH(const CommonCmdPacket* packet);

CCP_CmdRet Cmd_TMGR_SET_CYCLE_CORRECTION(const CommonCmdPacket* packet);

CCP_CmdRet Cmd_TMGR_RESET_CYCLE_CORRECTION(const CommonCmdPacket* packet);

CCP_CmdRet Cmd_TMGR_CLEAR_UNIXTIME_INFO(const CommonCmdPacket* packet);

#endif
19 changes: 19 additions & 0 deletions System/TimeManager/time_manager_cmd.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef TIME_MANAGER_CMD_H_
#define TIME_MANAGER_CMD_H_

#include "../../TlmCmd/common_cmd_packet.h"

CCP_CmdRet Cmd_TMGR_SET_TIME(const CommonCmdPacket* packet);

CCP_CmdRet Cmd_TMGR_UPDATE_UNIXTIME(const CommonCmdPacket* packet);

CCP_CmdRet Cmd_TMGR_SET_UTL_UNIXTIME_EPOCH(const CommonCmdPacket* packet);

CCP_CmdRet Cmd_TMGR_SET_CYCLE_CORRECTION(const CommonCmdPacket* packet);

CCP_CmdRet Cmd_TMGR_RESET_CYCLE_CORRECTION(const CommonCmdPacket* packet);

CCP_CmdRet Cmd_TMGR_CLEAR_UNIXTIME_INFO(const CommonCmdPacket* packet);


#endif // TIME_MANAGER_CMD_H_

0 comments on commit 7508ac9

Please sign in to comment.