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
apply afmt
All checks were successful
fsfw/fsfw/pipeline/head This commit looks good
d0fc360697
static STORE renamed
All checks were successful
fsfw/fsfw/pipeline/head This commit looks good
dac700b80a
clang-format
All checks were successful
fsfw/fsfw/pipeline/head This commit looks good
8e2597f609
bugfix for srv11
All checks were successful
fsfw/fsfw/pipeline/head This commit looks good
fsfw/fsfw/pipeline/pr-development This commit looks good
0b53b4873f
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
Merge branch 'development' into mueller/tc-11-tweaks
All checks were successful
fsfw/fsfw/pipeline/pr-development This commit looks good
f288d5120d
muellerr added 1 commit 2022-05-24 10:40:55 +02:00
afmt
All checks were successful
fsfw/fsfw/pipeline/pr-development This commit looks good
34658ef7db
muellerr added 1 commit 2022-05-24 11:52:38 +02:00
added 3 new subservices
All checks were successful
fsfw/fsfw/pipeline/pr-development This commit looks good
e60a665de4
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
added missing delete
All checks were successful
fsfw/fsfw/pipeline/pr-development This commit looks good
f7cde80088
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.