Skip to content

Commit

Permalink
update header
Browse files Browse the repository at this point in the history
  • Loading branch information
meltingrabbit committed Jul 20, 2023
1 parent 99ba8bb commit a756d00
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions Examples/mobc/src/src_user/TlmCmd/command_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <src_core/System/WatchdogTimer/watchdog_timer.h>
#include <src_core/TlmCmd/block_command_executor.h>
#include <src_user/TlmCmd/block_command_user_settings.h>
#include <src_core/TlmCmd/command_dispatcher_manager.h>
#include <src_core/TlmCmd/telemetry_generator.h>
#include <src_core/TlmCmd/telemetry_frame.h>
#include "../Applications/app_headers.h"
Expand Down
1 change: 1 addition & 0 deletions Examples/mobc/src/src_user/TlmCmd/telemetry_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <src_core/System/EventManager/event_handler.h>
#include <src_core/System/WatchdogTimer/watchdog_timer.h>
#include <src_core/TlmCmd/command_analyze.h>
#include <src_core/TlmCmd/command_dispatcher_manager.h>
#include <src_core/TlmCmd/block_command_executor.h>
#include "../Applications/app_headers.h"
#include "../Drivers/Aocs/aobc_telemetry_buffer.h"
Expand Down
12 changes: 8 additions & 4 deletions Examples/subobc/src/src_user/Settings/git_revision_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
#define GIT_REVISION_CONFIG_H_

/**
* このファイルは自動生成される場合と設定だけを書く場合があります
* src/src_user/Settings/git_revision_config.hは自動生成される場合と設定だけを書く場合があります
* C2A core/userのcommit hashはコマンドラインオプションないしこのファイルでdefineされ,
* 実際の埋め込みについてはsrc_core/Librari/git_revision.hとsrc_core/c2a_core_main.cが制御します.
* このexample userのファイルは例・ドキュメントなので,実際の内容は各C2A userで判断してください(そのままコピペしないでください).
* 混乱を避けるため,実際の各C2A userで使う設定のみ記述してください.
*/

#if 1 // このuserはCMakeでビルドするのでこれを使う
#if 1 // このexample userはCMakeでビルドするのでこれを使う
/*!< @brief CMakeでビルドする時など,コマンドラインオプションからcommit hashを流し込む場合の設定
* この場合,以下の定数をコマンドラインオプション(-D)などで設定してください
* GIT_REVISION_C2A_CORE C2A coreのcommit hash(文字列)
Expand All @@ -21,7 +23,9 @@

#if 0
/*!< @brief このファイルを自動生成する場合
* src_user/Script/Git/revision.sh/batが以下のような内容でこのファイルを生成します
* src_user/Script/Git/revision.sh/batが以下のような内容でsrc/src_user/Settings/git_revision_config.hを生成します
* 注意!!!: この場合はsrc/src_user/Settings/git_revision_config.hは自分で記述しないでください
* また,基本的にGitで管理する必要がないです(gitignoreしてください).
*/

/* This file is generated by src_user/Script/Git/revision.sh */
Expand All @@ -35,7 +39,7 @@

#if 0
/*!< @brief commit hashを埋め込まない場合の設定
* 実際には0が埋め込まれます
* 実際には0が埋め込まれます.詳細はsrc/src_core/Library/git_revision.hを参照してください.
*/

#define C2A_GIT_REVISION_IGNORE
Expand Down
1 change: 1 addition & 0 deletions Examples/subobc/src/src_user/TlmCmd/command_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <src_core/System/WatchdogTimer/watchdog_timer.h>
#include <src_core/TlmCmd/block_command_executor.h>
#include <src_user/TlmCmd/block_command_user_settings.h>
#include <src_core/TlmCmd/command_dispatcher_manager.h>
#include <src_core/TlmCmd/telemetry_generator.h>
#include <src_core/TlmCmd/telemetry_frame.h>
#include "../Applications/app_headers.h"
Expand Down
1 change: 1 addition & 0 deletions Examples/subobc/src/src_user/TlmCmd/telemetry_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <src_core/System/WatchdogTimer/watchdog_timer.h>
#include <src_core/System/TimeManager/time_manager.h>
#include <src_core/TlmCmd/command_analyze.h>
#include <src_core/TlmCmd/command_dispatcher_manager.h>
#include <src_core/TlmCmd/block_command_executor.h>
#include "../Applications/app_headers.h"
#include "../Settings/build_settings.h"
Expand Down
1 change: 1 addition & 0 deletions Examples/subobc/sync_with_mobc_example.bat
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ call :sync_file ".\src\src_user\Settings\TlmCmd\common_cmd_packet_define.c" "..\
call :sync_file ".\src\src_user\Settings\TlmCmd\common_tlm_cmd_packet_define.h" "..\mobc\src\src_user\Settings\TlmCmd\common_tlm_cmd_packet_define.h"
call :sync_file ".\src\src_user\TlmCmd\block_command_user_settings.c" "..\mobc\src\src_user\TlmCmd\block_command_user_settings.c"
call :sync_file ".\src\src_user\TlmCmd\block_command_user_settings.h" "..\mobc\src\src_user\TlmCmd\block_command_user_settings.h"
call :sync_file ".\src\src_user\TlmCmd\command_source.h" "..\mobc\src\src_user\TlmCmd\command_source.h"
call :sync_file ".\src\src_user\TlmCmd\common_cmd_packet.c" "..\mobc\src\src_user\TlmCmd\common_cmd_packet.c"
call :sync_file ".\src\src_user\TlmCmd\common_tlm_cmd_packet.c" "..\mobc\src\src_user\TlmCmd\common_tlm_cmd_packet.c"

Expand Down

0 comments on commit a756d00

Please sign in to comment.