dummy stuff
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
Marius Eggert 2022-11-10 16:31:59 +01:00
parent 8cc368b131
commit ca9ef28199
3 changed files with 15 additions and 13 deletions

View File

@ -37,8 +37,8 @@ uint32_t GpsDummy::getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) { return
ReturnValue_t GpsDummy::initializeLocalDataPool(localpool::DataPool &localDataPoolMap,
LocalDataPoolManager &poolManager) {
localDataPoolMap.emplace(GpsHyperion::LATITUDE, new PoolEntry<double>({0.0}));
localDataPoolMap.emplace(GpsHyperion::LONGITUDE, new PoolEntry<double>({0.0}));
localDataPoolMap.emplace(GpsHyperion::LATITUDE, new PoolEntry<double>({0.0}, 1));
localDataPoolMap.emplace(GpsHyperion::LONGITUDE, new PoolEntry<double>({0.0}, 1));
localDataPoolMap.emplace(GpsHyperion::ALTITUDE, new PoolEntry<double>({0.0}));
localDataPoolMap.emplace(GpsHyperion::SPEED, new PoolEntry<double>({7684.2}));
localDataPoolMap.emplace(GpsHyperion::FIX_MODE, new PoolEntry<uint8_t>({0}));

View File

@ -1,5 +1,7 @@
#include "SusDummy.h"
#include <fsfw/datapool/PoolReadGuard.h>
#include <objects/systemObjectList.h>
#include <cmath>
@ -28,7 +30,6 @@ ReturnValue_t SusDummy::initialize() {
return result;
}
}
return returnvalue::OK;
}
@ -37,8 +38,7 @@ ReturnValue_t SusDummy::handleCommandMessage(CommandMessage* message) {
}
void SusDummy::performControlOperation() {
iteration++;
value = sin(iteration / 80. * M_PI + 10) * 10 - 10;
// value = sin(iteration / 80. * M_PI + 10) * 10 - 10;
susSet.read();
// susSet.temperatureCelcius = value;
@ -52,7 +52,9 @@ void SusDummy::performControlOperation() {
susSet.channels[2] = 3799;
susSet.channels[3] = 3797;
susSet.channels[4] = 4056;
susSet.setValidity(true, true);
susSet.commit();
iteration++;
}
ReturnValue_t SusDummy::initializeLocalDataPool(localpool::DataPool& localDataPoolMap,