Skip to content

Commit 9e04f4d

Browse files
Merge pull request #490 from ut-issl/feature/fix_bug
テレメ生成時のAPID判定のバグ修正
2 parents 4fd9828 + da881a0 commit 9e04f4d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Examples/2nd_obc_user/src/src_user/Settings/TlmCmd/Ccsds/apid_define.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ int APID_is_other_obc_tlm_apid(APID apid)
3131
{
3232
switch (apid)
3333
{
34-
case CTP_APID_FROM_ME:
35-
return 0;
34+
// FIXME: 2nd obc の場合は変更しなければいけないが, https://github.com/ut-issl/c2a-core/issues/489 で消えるので一旦このまま
35+
case APID_AOBC_TLM: // FALLTHROUGH
36+
case APID_TOBC_TLM:
37+
return 1;
3638

3739
default:
38-
return 1;
40+
return 0;
3941
}
4042
}
4143

Examples/minimum_user/src/src_user/Settings/TlmCmd/Ccsds/apid_define.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ int APID_is_other_obc_tlm_apid(APID apid)
3131
{
3232
switch (apid)
3333
{
34-
case CTP_APID_FROM_ME:
35-
return 0;
34+
// FIXME: 2nd obc の場合は変更しなければいけないが, https://github.com/ut-issl/c2a-core/issues/489 で消えるので一旦このまま
35+
case APID_AOBC_TLM: // FALLTHROUGH
36+
case APID_TOBC_TLM:
37+
return 1;
3638

3739
default:
38-
return 1;
40+
return 0;
3941
}
4042
}
4143

0 commit comments

Comments
 (0)