Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPSR_RANGE_OBSERVEモードの削除 #248

Merged
merged 4 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion database/CMD_DB/AOBC_CMD_DB_BCT.csv
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Comment,Name,ShortName,BCID,エイリアス,,,,,Danger Flag,Description,Note
,BC_TL_ROUGH_THREE_AXIS,,14,,,,,,danger,,
,BC_TL_ROUGH_THREE_AXIS_RW,,15,,,,,,danger,,
,BC_TL_FINE_THREE_AXIS,,16,,,,,,danger,,
,BC_TL_GPSR_RANGE_OBSERVE,,17,,,,,,danger,,
**,Block Cmds for Composition (App Rotator@@ Combiner),,,,,,,,,,
*,./src_user/Settings/Modes/TaskLists/Elements/ で定義,,,,,,,,,,
*,BC_AR_DEBUG_DISPLAY_INI,,,,,,,,danger,,
Expand Down Expand Up @@ -298,3 +297,4 @@ Comment,Name,ShortName,BCID,エイリアス,,,,,Danger Flag,Description,Note
,,,,,,,,,,,
,,,,,,,,,,,
,,,,,,,,,,,
,,,,,,,,,,,
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static void APP_AOCS_MM_fine_three_axis_exec_(void)
// モード遷移後、制御収束まではdisableにしておく想定
if (aocs_mode_manager_.is_enabled_auto_mode_transition == 0) return;
MD_MODEID current_mode = mode_manager->current_id;
if ((current_mode != MD_MODEID_FINE_THREE_AXIS) && (current_mode != MD_MODEID_GPSR_RANGE_OBSERVE)) return;
200km marked this conversation as resolved.
Show resolved Hide resolved
if (current_mode != MD_MODEID_FINE_THREE_AXIS) return;

// エラーが大きすぎることを検知してBdotに戻る
float error_angle_rad = fabsf(2.0f * acosf(aocs_manager->quaternion_error_b2t.scalar_part));
Expand Down
2 changes: 1 addition & 1 deletion src/src_user/Settings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set(C2A_SRCS
Modes/TaskLists/tl_rough_three_axis.c
Modes/TaskLists/tl_rough_three_axis_rw.c
Modes/TaskLists/tl_fine_three_axis.c
Modes/TaskLists/tl_gpsr_range_observe.c

Modes/TaskLists/Elements/tl_elem_debug_display.c
Modes/TaskLists/Elements/tl_elem_drivers_update.c
Modes/TaskLists/Elements/tl_elem_gs_related_process.c
Expand Down
46 changes: 0 additions & 46 deletions src/src_user/Settings/Modes/TaskLists/tl_gpsr_range_observe.c

This file was deleted.

10 changes: 0 additions & 10 deletions src/src_user/Settings/Modes/TaskLists/tl_gpsr_range_observe.h

This file was deleted.

7 changes: 0 additions & 7 deletions src/src_user/Settings/Modes/mode_definitions.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ void MD_load_mode_list(void)
MM_set_mode_list(MD_MODEID_ROUGH_THREE_AXIS, BC_TL_ROUGH_THREE_AXIS);
MM_set_mode_list(MD_MODEID_ROUGH_THREE_AXIS_RW, BC_TL_ROUGH_THREE_AXIS_RW);
MM_set_mode_list(MD_MODEID_FINE_THREE_AXIS, BC_TL_FINE_THREE_AXIS);
MM_set_mode_list(MD_MODEID_GPSR_RANGE_OBSERVE, BC_TL_GPSR_RANGE_OBSERVE);
}

void MD_load_transition_table(void)
Expand Down Expand Up @@ -53,12 +52,6 @@ void MD_load_transition_table(void)
// from Fine Three Axis
MM_set_transition_table(MD_MODEID_FINE_THREE_AXIS, MD_MODEID_BDOT, BC_SL_ANY_TO_BDOT);
MM_set_transition_table(MD_MODEID_FINE_THREE_AXIS, MD_MODEID_FINE_THREE_AXIS, BC_SL_NOP);
MM_set_transition_table(MD_MODEID_FINE_THREE_AXIS, MD_MODEID_GPSR_RANGE_OBSERVE, BC_SL_NOP);

// from GPSR Range Observe
MM_set_transition_table(MD_MODEID_GPSR_RANGE_OBSERVE, MD_MODEID_BDOT, BC_SL_ANY_TO_BDOT);
MM_set_transition_table(MD_MODEID_GPSR_RANGE_OBSERVE, MD_MODEID_FINE_THREE_AXIS, BC_SL_NOP);
MM_set_transition_table(MD_MODEID_GPSR_RANGE_OBSERVE, MD_MODEID_GPSR_RANGE_OBSERVE, BC_SL_NOP);
}

#pragma section
1 change: 0 additions & 1 deletion src/src_user/Settings/Modes/mode_definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ typedef enum
MD_MODEID_ROUGH_THREE_AXIS = 4, //!< 粗三軸制御モード
MD_MODEID_ROUGH_THREE_AXIS_RW = 5, //!< RWを使った粗三軸捕捉制御モード
MD_MODEID_FINE_THREE_AXIS = 6, //!< 精三軸制御モード
MD_MODEID_GPSR_RANGE_OBSERVE = 7, //!< GPSRのレンジテレメ取得を行うモード
MD_MODEID_MODE_MAX // NOTE: tlmサイズ調整のため,最大モード数を8とする.増やすときはそちらとも調整する.
} MD_MODEID;

Expand Down
2 changes: 0 additions & 2 deletions src/src_user/TlmCmd/block_command_definitions.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <src_user/Settings/Modes/TaskLists/tl_rough_three_axis.h>
#include <src_user/Settings/Modes/TaskLists/tl_rough_three_axis_rw.h>
#include <src_user/Settings/Modes/TaskLists/tl_fine_three_axis.h>
#include <src_user/Settings/Modes/TaskLists/tl_gpsr_range_observe.h>

#include <src_user/Settings/Modes/TaskLists/Elements/tl_elem_cdh_update.h>
#include <src_user/Settings/Modes/TaskLists/Elements/tl_elem_drivers_update.h>
Expand Down Expand Up @@ -63,7 +62,6 @@ void BC_load_defaults(void)
BCL_load_bc(BC_TL_ROUGH_THREE_AXIS, BCL_load_rough_three_axis_mode);
BCL_load_bc(BC_TL_ROUGH_THREE_AXIS_RW, BCL_load_rough_three_axis_rw_mode);
BCL_load_bc(BC_TL_FINE_THREE_AXIS, BCL_load_fine_three_axis_mode);
BCL_load_bc(BC_TL_GPSR_RANGE_OBSERVE, BCL_load_gpsr_range_observe_mode);

// Block Cmds for Application Rotation / Combination
// === CDH ===
Expand Down
1 change: 0 additions & 1 deletion src/src_user/TlmCmd/block_command_definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ typedef enum
BC_TL_ROUGH_THREE_AXIS = 14,
BC_TL_ROUGH_THREE_AXIS_RW = 15,
BC_TL_FINE_THREE_AXIS = 16,
BC_TL_GPSR_RANGE_OBSERVE = 17,

// Block Cmds for Composition (App Rotator, Combiner)
// ./src_user/Settings/Modes/TaskLists/Elements/ で定義
Expand Down
Loading