From 3f2d83d95c714ae466b6566d2356ff4e11515275 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Fri, 1 Mar 2024 10:50:55 +0100 Subject: [PATCH] added debug print out --- src/fsfw/container/SharedRingBuffer.h | 4 ++-- src/fsfw/controller/ExtendedControllerBase.cpp | 3 ++- src/fsfw/devicehandlers/FreshDeviceHandlerBase.h | 2 +- src/fsfw/objectmanager/ObjectManager.cpp | 2 ++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/fsfw/container/SharedRingBuffer.h b/src/fsfw/container/SharedRingBuffer.h index 6ae36432..dab28d92 100644 --- a/src/fsfw/container/SharedRingBuffer.h +++ b/src/fsfw/container/SharedRingBuffer.h @@ -20,7 +20,7 @@ class SharedRingBuffer : public SystemObject, public SimpleRingBuffer { * This constructor allocates a new internal buffer with the supplied size. * @param size * @param overwriteOld - * If the ring buffer is overflowing at a write operartion, the oldest data + * If the ring buffer is overflowing at a write operation, the oldest data * will be overwritten. */ SharedRingBuffer(object_id_t objectId, const size_t size, bool overwriteOld, @@ -30,7 +30,7 @@ class SharedRingBuffer : public SystemObject, public SimpleRingBuffer { * @param buffer * @param size * @param overwriteOld - * If the ring buffer is overflowing at a write operartion, the oldest data + * If the ring buffer is overflowing at a write operation, the oldest data * will be overwritten. */ SharedRingBuffer(object_id_t objectId, uint8_t* buffer, const size_t size, bool overwriteOld, diff --git a/src/fsfw/controller/ExtendedControllerBase.cpp b/src/fsfw/controller/ExtendedControllerBase.cpp index 63b21ba1..8bde6310 100644 --- a/src/fsfw/controller/ExtendedControllerBase.cpp +++ b/src/fsfw/controller/ExtendedControllerBase.cpp @@ -3,7 +3,8 @@ ExtendedControllerBase::ExtendedControllerBase(object_id_t objectId, size_t commandQueueDepth) : ControllerBase(objectId, commandQueueDepth), poolManager(this, commandQueue), - actionHelper(this, commandQueue) {} + actionHelper(this, commandQueue) { +} ExtendedControllerBase::~ExtendedControllerBase() = default; diff --git a/src/fsfw/devicehandlers/FreshDeviceHandlerBase.h b/src/fsfw/devicehandlers/FreshDeviceHandlerBase.h index c911c1dd..21135ab7 100644 --- a/src/fsfw/devicehandlers/FreshDeviceHandlerBase.h +++ b/src/fsfw/devicehandlers/FreshDeviceHandlerBase.h @@ -94,7 +94,7 @@ class FreshDeviceHandlerBase : public SystemObject, virtual void modeChanged(Mode_t mode, Submode_t submode); /** * The default implementation sets the new mode immediately. If this is not applicable for - * certain modes, the user should provide a custom implementation, which performs rougly + * certain modes, the user should provide a custom implementation, which performs roughly * the same functionality of this function, when all the steps have been taken to reach the * new mode. */ diff --git a/src/fsfw/objectmanager/ObjectManager.cpp b/src/fsfw/objectmanager/ObjectManager.cpp index 2de36050..248716c2 100644 --- a/src/fsfw/objectmanager/ObjectManager.cpp +++ b/src/fsfw/objectmanager/ObjectManager.cpp @@ -122,6 +122,8 @@ void ObjectManager::initialize() { it.first, result); #endif errorCount++; + } else { + sif::printDebug("ObjectManager::initialize: Initialized onject with ID 0x%x\n", it.first); } } if (errorCount > 0) {