-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa22857
commit dd901bd
Showing
7 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
examples/mobc/src/src_user/settings/tlm_cmd/common_tlm_packet_define.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma section REPRO | ||
/** | ||
* @file | ||
* @brief CTP 型の user 定義 | ||
*/ | ||
#include <src_core/tlm_cmd/common_packet/common_tlm_packet.h> | ||
|
||
void CTP_set_global_time(CommonTlmPacket* packet) | ||
{ | ||
// 何を設定するかはユーザー定義 | ||
// TMGR_get_curret_unixtime() で現在の unixtime を入れたり, gps 時刻 を入れたり, など | ||
// User 独自の値を設定する場合は, C2A_USE_DEFAULT_GLOBAL_TIME_IN_CTP を OFF にすること | ||
TSP_set_global_time(packet, 0.0); | ||
} | ||
|
||
#pragma section |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
examples/subobc/src/src_user/settings/tlm_cmd/common_tlm_packet_define.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma section REPRO | ||
/** | ||
* @file | ||
* @brief CTP 型の user 定義 | ||
*/ | ||
#include <src_core/tlm_cmd/common_packet/common_tlm_packet.h> | ||
|
||
void CTP_set_global_time(CommonTlmPacket* packet) | ||
{ | ||
// 何を設定するかはユーザー定義 | ||
// TMGR_get_curret_unixtime() で現在の unixtime を入れたり, gps 時刻 を入れたり, など | ||
// User 独自の値を設定する場合は, C2A_USE_DEFAULT_GLOBAL_TIME_IN_CTP を OFF にすること | ||
TSP_set_global_time(packet, 0.0); | ||
} | ||
|
||
#pragma section |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters