Skip to content

Commit

Permalink
update aobc tlm req
Browse files Browse the repository at this point in the history
  • Loading branch information
meltingrabbit committed May 18, 2023
1 parent 0aeeeb8 commit c80387d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Examples/minimum_user/src/src_user/Drivers/Aocs/aobc.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,23 @@ DS_CMD_ERR_CODE AOBC_send_cmd(AOBC_Driver* aobc_driver, const CommonCmdPacket* p

// [TODO] ここではコマンドが実際に存在するか,ということはフィルタしない!(でいいよね?)
// 必要があれば,AOBC 側で弾くべき.
if (cmd_code == AOBC_Cmd_CODE_GENERATE_TLM)

switch (cmd_code)
{
case AOBC_Cmd_CODE_GENERATE_TLM: // FALLTHROUGH
case AOBC_Cmd_CODE_TG_GENERATE_TLM: // FALLTHROUGH
case AOBC_Cmd_CODE_TG_GENERATE_HK_TLM: // FALLTHROUGH
case AOBC_Cmd_CODE_TG_GENERATE_MS_TLM: // FALLTHROUGH
case AOBC_Cmd_CODE_TG_GENERATE_ST_TLM: // FALLTHROUGH
case AOBC_Cmd_CODE_TG_FORWARD_TLM: // FALLTHROUGH
case AOBC_Cmd_CODE_TG_FORWARD_AS_HK_TLM: // FALLTHROUGH
case AOBC_Cmd_CODE_TG_FORWARD_AS_MS_TLM: // FALLTHROUGH
case AOBC_Cmd_CODE_TG_FORWARD_AS_ST_TLM:
ret = DS_send_req_tlm_cmd(&(aobc_driver->driver.super), AOBC_STREAM_TLM_CMD);
}
else
{
break;
default:
ret = DS_send_general_cmd(&(aobc_driver->driver.super), AOBC_STREAM_TLM_CMD);
break;
}

if (ret == DS_ERR_CODE_OK)
Expand Down

0 comments on commit c80387d

Please sign in to comment.