v1.12.0 #269

Merged
muellerr merged 493 commits from develop into main 2022-07-04 11:19:05 +02:00
13 changed files with 38 additions and 42 deletions
Showing only changes of commit 6d322c6e78 - Show all commits

View File

@ -6,7 +6,6 @@
#include "simple/simple.h"
#endif
#include <iostream>
/**

View File

@ -32,7 +32,6 @@ static const DeviceCommandId_t TM_CAM_CMD_RPT = 19;
static const DeviceCommandId_t SET_UART_TX_TRISTATE = 20;
static const DeviceCommandId_t RELEASE_UART_TX = 21;
// Will reset the sequence count of the OBSW
static const DeviceCommandId_t OBSW_RESET_SEQ_COUNT = 50;

View File

@ -1564,8 +1564,7 @@ class ExecutionReport : public VerificationReport {
break;
}
case StatusCode::NOTHING_TODO: {
sif::warning
<< STATUS_PRINTOUT_PREFIX << "Nothing todo, not an error but a warning"
sif::warning << STATUS_PRINTOUT_PREFIX << "Nothing todo, not an error but a warning"
<< std::endl;
break;
}
@ -1578,8 +1577,7 @@ class ExecutionReport : public VerificationReport {
break;
}
case StatusCode::OUT_OF_RANGE: {
sif::warning
<< STATUS_PRINTOUT_PREFIX << "Out of range, lenght check of parameter failed"
sif::warning << STATUS_PRINTOUT_PREFIX << "Out of range, lenght check of parameter failed"
<< std::endl;
break;
}

View File

@ -50,9 +50,11 @@ class SupvReturnValuesIF {
static const ReturnValue_t FILENAME_TOO_LONG = MAKE_RETURN_CODE(0xB0);
//! [EXPORT] : [COMMENT] Received update status report with invalid packet length field
static const ReturnValue_t UPDATE_STATUS_REPORT_INVALID_LENGTH = MAKE_RETURN_CODE(0xB1);
//! [EXPORT] : [COMMENT] Update status report does not contain expected CRC. There might be a bit flip in the update memory region.
//! [EXPORT] : [COMMENT] Update status report does not contain expected CRC. There might be a bit
//! flip in the update memory region.
static const ReturnValue_t UPDATE_CRC_FAILURE = MAKE_RETURN_CODE(0xB2);
//! [EXPORT] : [COMMENT] Supervisor helper task ist currently executing a command (wait until helper tas has finished or interrupt by sending the terminate command)
//! [EXPORT] : [COMMENT] Supervisor helper task ist currently executing a command (wait until
//! helper tas has finished or interrupt by sending the terminate command)
static const ReturnValue_t SUPV_HELPER_EXECUTING = MAKE_RETURN_CODE(0xB3);
};

View File

@ -2,16 +2,16 @@
#define MISSION_DEVICES_PLOCSUPERVISORHANDLER_H_
#include "OBSWConfig.h"
#include "PlocSupvHelper.h"
#include "bsp_q7s/memory/SdCardManager.h"
#include "devices/powerSwitcherList.h"
#include "fsfw/devicehandlers/DeviceHandlerBase.h"
#include "fsfw/timemanager/Countdown.h"
#include "fsfw_hal/linux/gpio/Gpio.h"
#include "fsfw_hal/linux/gpio/LinuxLibgpioIF.h"
#include "fsfw_hal/linux/uart/UartComIF.h"
#include "fsfw/timemanager/Countdown.h"
#include "linux/devices/devicedefinitions/PlocSupervisorDefinitions.h"
#include "linux/devices/devicedefinitions/SupvReturnValuesIF.h"
#include "PlocSupvHelper.h"
/**
* @brief This is the device handler for the supervisor of the PLOC which is programmed by
@ -59,7 +59,6 @@ class PlocSupervisorHandler : public DeviceHandlerBase {
virtual ReturnValue_t doSendReadHook() override;
private:
static const uint8_t SUBSYSTEM_ID = SUBSYSTEM_ID::PLOC_SUPERVISOR_HANDLER;
//! [EXPORT] : [COMMENT] PLOC supervisor crc failure in telemetry packet

View File

@ -64,13 +64,11 @@ class PlocSupvHelper : public SystemObject, public ExecutableObjectIF, public Ha
//! [EXPORT] : [COMMENT] Execution report failure
//! P1:
static const Event SUPV_EXE_FAILURE_REPORT = MAKE_EVENT(12, severity::LOW);
//! [EXPORT] : [COMMENT] Supervisor expected acknowledgment report but received space packet with other apid
//! P1: Apid of received space packet
//! P2: Internal state of supervisor helper
//! [EXPORT] : [COMMENT] Supervisor expected acknowledgment report but received space packet with
//! other apid P1: Apid of received space packet P2: Internal state of supervisor helper
static const Event SUPV_ACK_INVALID_APID = MAKE_EVENT(13, severity::LOW);
//! [EXPORT] : [COMMENT] Supervisor helper expected execution report but received space packet with other apid
//! P1: Apid of received space packet
//! P2: Internal state of supervisor helper
//! [EXPORT] : [COMMENT] Supervisor helper expected execution report but received space packet
//! with other apid P1: Apid of received space packet P2: Internal state of supervisor helper
static const Event SUPV_EXE_INVALID_APID = MAKE_EVENT(14, severity::LOW);
//! [EXPORT] : [COMMENT] Failed to receive acknowledgment report
//! P1: Return value

View File

@ -6,9 +6,9 @@
#include "OBSWConfig.h"
#include "fsfw/timemanager/Countdown.h"
#include "linux/devices/devicedefinitions/StarTrackerDefinitions.h"
#include "mission/utility/Filenaming.h"
#include "mission/utility/ProgressPrinter.h"
#include "mission/utility/Timestamp.h"
#include "mission/utility/Filenaming.h"
StrHelper::StrHelper(object_id_t objectId) : SystemObject(objectId) {}

View File

@ -1,8 +1,8 @@
#include "Filenaming.h"
#include "Timestamp.h"
Filenaming::Filenaming() {
}
Filenaming::Filenaming() {}
std::string Filenaming::generateAbsoluteFilename(std::string path, std::string filename,
bool addTimestamp) {

View File

@ -20,6 +20,7 @@ class Filenaming {
*/
static std::string generateAbsoluteFilename(std::string path, std::string filename,
bool addTimestamp);
private:
Filenaming();
};

View File

@ -1,5 +1,7 @@
#include <iomanip>
#include "ProgressPrinter.h"
#include <iomanip>
#include "fsfw/serviceinterface/ServiceInterfaceStream.h"
ProgressPrinter::ProgressPrinter(std::string name, uint32_t numSteps, float percentageResolution)

View File

@ -10,7 +10,6 @@
*/
class ProgressPrinter {
public:
static constexpr float HALF_PERCENT = 0.5;
static constexpr float ONE_PERCENT = 1;
static constexpr float FIVE_PERCENT = 5;
@ -34,7 +33,6 @@ class ProgressPrinter {
void print(uint32_t step);
private:
std::string name = "";
uint32_t numSteps = 0;
float nextProgressPrint = 0;