PUS11 TC sched update and bugfixes #632

Merged
gaisser merged 8 commits from mueller/tc-11-tweaks into development 2022-05-24 17:48:08 +02:00
Owner
  • Also contains clang-tidy improvements
  • Bugfix/Hotfix for TC insertion: Skip the first four bytes which contain
    the timefield
  • Add three subservices which are important:
    ENABLE and DISABLE to enable and disable TC scheduling
    and RESET to clear the telecommand map
- Also contains `clang-tidy` improvements - Bugfix/Hotfix for TC insertion: Skip the first four bytes which contain the timefield - Add three subservices which are important: `ENABLE` and `DISABLE` to enable and disable TC scheduling and `RESET` to clear the telecommand map
muellerr added 4 commits 2022-05-20 15:35:02 +02:00
fsfw/fsfw/pipeline/head This commit looks good Details
d0fc360697
apply afmt
fsfw/fsfw/pipeline/head This commit looks good Details
dac700b80a
static STORE renamed
fsfw/fsfw/pipeline/head This commit looks good Details
8e2597f609
clang-format
fsfw/fsfw/pipeline/head This commit looks good Details
fsfw/fsfw/pipeline/pr-development This commit looks good Details
0b53b4873f
bugfix for srv11
muellerr requested review from gaisser 2022-05-20 15:35:24 +02:00
muellerr added this to the v5.0.0 milestone 2022-05-20 15:35:27 +02:00
muellerr added the
hotfix
bug
labels 2022-05-20 15:35:40 +02:00
gaisser requested changes 2022-05-23 15:03:20 +02:00
gaisser left a comment
Owner

More questions than real requests.

More questions than real requests.
@ -58,3 +48,1 @@
TIMEBASE_SCHEDULE_DETAIL_REPORT = 10,
TIMESHIFT_ALL_SCHEDULE_ACTIVITIES = 15
};
enum [[maybe_unused]] Subservice : uint8_t{ENABLE_SCHEDULING = 1,
Owner

Why do we need "maybe_unused" here?

Why do we need "maybe_unused" here?
Author
Owner

I think I wondered this myself. Maybe because some enum values are unused? This warning should not appear if the enum is public though..

I think I wondered this myself. Maybe because some enum values are unused? This warning should not appear if the enum is public though..
Author
Owner

Some enum values are just not used, because those services are unimplemented

Some enum values are just not used, because those services are unimplemented
muellerr marked this conversation as resolved
@ -84,3 +82,2 @@
struct TelecommandStruct {
uint64_t requestId;
uint32_t seconds;
uint64_t requestId{};
Owner

Is this better than = 0?

Is this better than = 0?
Author
Owner

No, was automatically done by clang-tidy and I don't really care how the zero-initialization is done. Can change it to 0

No, was automatically done by clang-tidy and I don't really care how the zero-initialization is done. Can change it to 0
gaisser marked this conversation as resolved
@ -24,3 +24,3 @@
<< storeId.packetIndex << std::endl;
#endif
TcMqMapIter queueMapIt = this->queueMap.end();
auto queueMapIt = this->queueMap.end();
Owner

Hm, I don't get why auto is recommended in such places. The old variant is much easier to understand.

Hm, I don't get why auto is recommended in such places. The old variant is much easier to understand.
Author
Owner

clang-tidy recommends using auto for iterator declarations: https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-auto.html

clang-tidy recommends using auto for iterator declarations: https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-auto.html
gaisser marked this conversation as resolved
muellerr added 1 commit 2022-05-23 15:34:04 +02:00
fsfw/fsfw/pipeline/pr-development This commit looks good Details
f288d5120d
Merge branch 'development' into mueller/tc-11-tweaks
muellerr added 1 commit 2022-05-24 10:40:55 +02:00
fsfw/fsfw/pipeline/pr-development This commit looks good Details
34658ef7db
afmt
muellerr added 1 commit 2022-05-24 11:52:38 +02:00
fsfw/fsfw/pipeline/pr-development This commit looks good Details
e60a665de4
added 3 new subservices
muellerr changed title from PUS11 TC sched bugfix and some tweaks to PUS11 TC sched update and bugfixes 2022-05-24 11:52:55 +02:00
muellerr added 1 commit 2022-05-24 14:32:49 +02:00
fsfw/fsfw/pipeline/pr-development This commit looks good Details
f7cde80088
added missing delete
gaisser approved these changes 2022-05-24 17:47:52 +02:00
gaisser left a comment
Owner

LGTM

LGTM
gaisser merged commit 261eea381e into development 2022-05-24 17:48:08 +02:00
gaisser deleted branch mueller/tc-11-tweaks 2022-05-24 17:48:11 +02:00
Sign in to join this conversation.
No description provided.