|
|
|
@ -1,9 +1,10 @@
|
|
|
|
|
#include "ObjectFactory.h"
|
|
|
|
|
|
|
|
|
|
#include <linux/boardtest/I2cTestClass.h>
|
|
|
|
|
#include <linux/boardtest/UartTestClass.h>
|
|
|
|
|
|
|
|
|
|
#include <sstream>
|
|
|
|
|
#include <linux/obc/AxiPtmeConfig.h>
|
|
|
|
|
#include <linux/obc/PapbVcInterface.h>
|
|
|
|
|
#include <linux/obc/PdecHandler.h>
|
|
|
|
|
#include <linux/obc/Ptme.h>
|
|
|
|
|
#include <linux/obc/PtmeConfig.h>
|
|
|
|
|
|
|
|
|
|
#include "OBSWConfig.h"
|
|
|
|
|
#include "bsp_q7s/boardtest/Q7STestTask.h"
|
|
|
|
@ -25,6 +26,20 @@
|
|
|
|
|
#include "devices/addresses.h"
|
|
|
|
|
#include "devices/gpioIds.h"
|
|
|
|
|
#include "devices/powerSwitcherList.h"
|
|
|
|
|
#include "linux/boardtest/I2cTestClass.h"
|
|
|
|
|
#include "linux/boardtest/SpiTestClass.h"
|
|
|
|
|
#include "linux/boardtest/UartTestClass.h"
|
|
|
|
|
#include "linux/csp/CspComIF.h"
|
|
|
|
|
#include "linux/csp/CspCookie.h"
|
|
|
|
|
#include "linux/devices/SolarArrayDeploymentHandler.h"
|
|
|
|
|
#include "tmtc/apid.h"
|
|
|
|
|
#include "tmtc/pusIds.h"
|
|
|
|
|
#if OBSW_TEST_LIBGPIOD == 1
|
|
|
|
|
#include "linux/boardtest/LibgpiodTest.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <sstream>
|
|
|
|
|
|
|
|
|
|
#include "fsfw/datapoollocal/LocalDataPoolManager.h"
|
|
|
|
|
#include "fsfw/tmtcpacket/pus/tm.h"
|
|
|
|
|
#include "fsfw/tmtcservices/CommandingServiceBase.h"
|
|
|
|
@ -40,16 +55,10 @@
|
|
|
|
|
#include "fsfw_hal/linux/spi/SpiCookie.h"
|
|
|
|
|
#include "fsfw_hal/linux/uart/UartComIF.h"
|
|
|
|
|
#include "fsfw_hal/linux/uart/UartCookie.h"
|
|
|
|
|
#include "linux/boardtest/SpiTestClass.h"
|
|
|
|
|
#include "linux/csp/CspComIF.h"
|
|
|
|
|
#include "linux/csp/CspCookie.h"
|
|
|
|
|
#include "mission/devices/SolarArrayDeploymentHandler.h"
|
|
|
|
|
#include "mission/devices/SusHandler.h"
|
|
|
|
|
#include "mission/devices/devicedefinitions/SusDefinitions.h"
|
|
|
|
|
#include "linux/devices/GPSHyperionLinuxController.h"
|
|
|
|
|
#include "mission/core/GenericFactory.h"
|
|
|
|
|
#include "mission/devices/ACUHandler.h"
|
|
|
|
|
#include "mission/devices/BpxBatteryHandler.h"
|
|
|
|
|
#include "linux/devices/GPSHyperionLinuxController.h"
|
|
|
|
|
#include "mission/devices/GyroADIS1650XHandler.h"
|
|
|
|
|
#include "mission/devices/HeaterHandler.h"
|
|
|
|
|
#include "mission/devices/IMTQHandler.h"
|
|
|
|
@ -62,7 +71,6 @@
|
|
|
|
|
#include "mission/devices/PlocMPSoCHandler.h"
|
|
|
|
|
#include "mission/devices/RadiationSensorHandler.h"
|
|
|
|
|
#include "mission/devices/RwHandler.h"
|
|
|
|
|
#include "mission/devices/SolarArrayDeploymentHandler.h"
|
|
|
|
|
#include "mission/devices/SusHandler.h"
|
|
|
|
|
#include "mission/devices/SyrlinksHkHandler.h"
|
|
|
|
|
#include "mission/devices/Tmp1075Handler.h"
|
|
|
|
@ -77,18 +85,6 @@
|
|
|
|
|
#include "mission/tmtc/CCSDSHandler.h"
|
|
|
|
|
#include "mission/tmtc/VirtualChannel.h"
|
|
|
|
|
#include "mission/utility/TmFunnel.h"
|
|
|
|
|
#include "tmtc/apid.h"
|
|
|
|
|
#include "tmtc/pusIds.h"
|
|
|
|
|
|
|
|
|
|
#if OBSW_TEST_LIBGPIOD == 1
|
|
|
|
|
#include "linux/boardtest/LibgpiodTest.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <linux/obc/AxiPtmeConfig.h>
|
|
|
|
|
#include <linux/obc/PapbVcInterface.h>
|
|
|
|
|
#include <linux/obc/PdecHandler.h>
|
|
|
|
|
#include <linux/obc/Ptme.h>
|
|
|
|
|
#include <linux/obc/PtmeConfig.h>
|
|
|
|
|
|
|
|
|
|
ResetArgs resetArgsGnss0;
|
|
|
|
|
ResetArgs resetArgsGnss1;
|
|
|
|
@ -361,38 +357,32 @@ void ObjectFactory::createSunSensorComponents(LinuxLibgpioIF* gpioComIF, SpiComI
|
|
|
|
|
SpiCookie* spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_0, gpioIds::CS_SUS_0, q7s::SPI_DEFAULT_DEV, SUS::MAX_CMD_SIZE,
|
|
|
|
|
spi::DEFAULT_MAX_1227_MODE, spi::SUS_MAX1227_SPI_FREQ);
|
|
|
|
|
SusHandler* susHandler0 = new SusHandler(objects::SUS_0, 0, objects::SPI_COM_IF, spiCookie,
|
|
|
|
|
gpioComIF, gpioIds::CS_SUS_0);
|
|
|
|
|
SusHandler* susHandler0 = new SusHandler(objects::SUS_0, 0, objects::SPI_COM_IF, spiCookie);
|
|
|
|
|
|
|
|
|
|
spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_1, gpioIds::CS_SUS_1, q7s::SPI_DEFAULT_DEV, SUS::MAX_CMD_SIZE,
|
|
|
|
|
spi::DEFAULT_MAX_1227_MODE, spi::SUS_MAX1227_SPI_FREQ);
|
|
|
|
|
SusHandler* susHandler1 = new SusHandler(objects::SUS_1, 1, objects::SPI_COM_IF, spiCookie,
|
|
|
|
|
gpioComIF, gpioIds::CS_SUS_1);
|
|
|
|
|
SusHandler* susHandler1 = new SusHandler(objects::SUS_1, 1, objects::SPI_COM_IF, spiCookie);
|
|
|
|
|
|
|
|
|
|
spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_2, gpioIds::CS_SUS_2, q7s::SPI_DEFAULT_DEV, SUS::MAX_CMD_SIZE,
|
|
|
|
|
spi::DEFAULT_MAX_1227_MODE, spi::SUS_MAX1227_SPI_FREQ);
|
|
|
|
|
SusHandler* susHandler2 = new SusHandler(objects::SUS_2, 2, objects::SPI_COM_IF, spiCookie,
|
|
|
|
|
gpioComIF, gpioIds::CS_SUS_2);
|
|
|
|
|
SusHandler* susHandler2 = new SusHandler(objects::SUS_2, 2, objects::SPI_COM_IF, spiCookie);
|
|
|
|
|
|
|
|
|
|
spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_3, gpioIds::CS_SUS_3, std::string(q7s::SPI_DEFAULT_DEV),
|
|
|
|
|
SUS::MAX_CMD_SIZE, spi::DEFAULT_MAX_1227_MODE, spi::SUS_MAX1227_SPI_FREQ);
|
|
|
|
|
SusHandler* susHandler3 = new SusHandler(objects::SUS_3, 3, objects::SPI_COM_IF, spiCookie,
|
|
|
|
|
gpioComIF, gpioIds::CS_SUS_3);
|
|
|
|
|
SusHandler* susHandler3 = new SusHandler(objects::SUS_3, 3, objects::SPI_COM_IF, spiCookie);
|
|
|
|
|
|
|
|
|
|
spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_4, gpioIds::CS_SUS_4, std::string(q7s::SPI_DEFAULT_DEV),
|
|
|
|
|
SUS::MAX_CMD_SIZE, spi::DEFAULT_MAX_1227_MODE, spi::SUS_MAX1227_SPI_FREQ);
|
|
|
|
|
SusHandler* susHandler4 = new SusHandler(objects::SUS_4, 4, objects::SPI_COM_IF, spiCookie,
|
|
|
|
|
gpioComIF, gpioIds::CS_SUS_4);
|
|
|
|
|
SusHandler* susHandler4 = new SusHandler(objects::SUS_4, 4, objects::SPI_COM_IF, spiCookie);
|
|
|
|
|
|
|
|
|
|
spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_5, gpioIds::CS_SUS_5, std::string(q7s::SPI_DEFAULT_DEV),
|
|
|
|
|
SUS::MAX_CMD_SIZE, spi::DEFAULT_MAX_1227_MODE, spi::SUS_MAX1227_SPI_FREQ);
|
|
|
|
|
SusHandler* susHandler5 = new SusHandler(objects::SUS_5, 5, objects::SPI_COM_IF, spiCookie,
|
|
|
|
|
gpioComIF, gpioIds::CS_SUS_5);
|
|
|
|
|
SusHandler* susHandler5 = new SusHandler(objects::SUS_5, 5, objects::SPI_COM_IF, spiCookie);
|
|
|
|
|
|
|
|
|
|
spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_6, gpioIds::CS_SUS_6, q7s::SPI_DEFAULT_DEV, SUS::MAX_CMD_SIZE,
|
|
|
|
@ -403,32 +393,27 @@ void ObjectFactory::createSunSensorComponents(LinuxLibgpioIF* gpioComIF, SpiComI
|
|
|
|
|
spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_7, gpioIds::CS_SUS_7, q7s::SPI_DEFAULT_DEV, SUS::MAX_CMD_SIZE,
|
|
|
|
|
spi::DEFAULT_MAX_1227_MODE, spi::SUS_MAX1227_SPI_FREQ);
|
|
|
|
|
SusHandler* susHandler7 = new SusHandler(objects::SUS_7, 7, objects::SPI_COM_IF, spiCookie,
|
|
|
|
|
gpioComIF, gpioIds::CS_SUS_7);
|
|
|
|
|
SusHandler* susHandler7 = new SusHandler(objects::SUS_7, 7, objects::SPI_COM_IF, spiCookie);
|
|
|
|
|
|
|
|
|
|
spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_8, gpioIds::CS_SUS_8, q7s::SPI_DEFAULT_DEV, SUS::MAX_CMD_SIZE,
|
|
|
|
|
spi::DEFAULT_MAX_1227_MODE, spi::SUS_MAX1227_SPI_FREQ);
|
|
|
|
|
SusHandler* susHandler8 = new SusHandler(objects::SUS_8, 8, objects::SPI_COM_IF, spiCookie,
|
|
|
|
|
gpioComIF, gpioIds::CS_SUS_8);
|
|
|
|
|
SusHandler* susHandler8 = new SusHandler(objects::SUS_8, 8, objects::SPI_COM_IF, spiCookie);
|
|
|
|
|
|
|
|
|
|
spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_9, gpioIds::CS_SUS_9, q7s::SPI_DEFAULT_DEV, SUS::MAX_CMD_SIZE,
|
|
|
|
|
spi::DEFAULT_MAX_1227_MODE, spi::SUS_MAX1227_SPI_FREQ);
|
|
|
|
|
SusHandler* susHandler9 = new SusHandler(objects::SUS_9, 9, objects::SPI_COM_IF, spiCookie,
|
|
|
|
|
gpioComIF, gpioIds::CS_SUS_9);
|
|
|
|
|
SusHandler* susHandler9 = new SusHandler(objects::SUS_9, 9, objects::SPI_COM_IF, spiCookie);
|
|
|
|
|
|
|
|
|
|
spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_10, gpioIds::CS_SUS_10, q7s::SPI_DEFAULT_DEV, SUS::MAX_CMD_SIZE,
|
|
|
|
|
spi::DEFAULT_MAX_1227_MODE, spi::SUS_MAX1227_SPI_FREQ);
|
|
|
|
|
SusHandler* susHandler10 = new SusHandler(objects::SUS_10, 10, objects::SPI_COM_IF, spiCookie,
|
|
|
|
|
gpioComIF, gpioIds::CS_SUS_10);
|
|
|
|
|
SusHandler* susHandler10 = new SusHandler(objects::SUS_10, 10, objects::SPI_COM_IF, spiCookie);
|
|
|
|
|
|
|
|
|
|
spiCookie =
|
|
|
|
|
new SpiCookie(addresses::SUS_11, gpioIds::CS_SUS_11, q7s::SPI_DEFAULT_DEV, SUS::MAX_CMD_SIZE,
|
|
|
|
|
spi::DEFAULT_MAX_1227_MODE, spi::SUS_MAX1227_SPI_FREQ);
|
|
|
|
|
SusHandler* susHandler11 = new SusHandler(objects::SUS_11, 11, objects::SPI_COM_IF, spiCookie,
|
|
|
|
|
gpioComIF, gpioIds::CS_SUS_11);
|
|
|
|
|
SusHandler* susHandler11 = new SusHandler(objects::SUS_11, 11, objects::SPI_COM_IF, spiCookie);
|
|
|
|
|
static_cast<void>(susHandler0);
|
|
|
|
|
static_cast<void>(susHandler1);
|
|
|
|
|
static_cast<void>(susHandler2);
|
|
|
|
|