Alpha version of the code. Errors are still present in the code and the objects and dataused are picked as a test. Documentation of the code will be also added later.

This commit is contained in:
2021-09-10 17:08:38 +02:00
parent 6a65c7af33
commit d857487d17
357 changed files with 20043 additions and 54 deletions

View File

@ -22,7 +22,11 @@
#include <fsfw/timemanager/TimeStamper.h>
#include <mission/utility/TmFunnel.h>
//TODO: include your headers
#include <mission/DeviceHandler/ArduinoDeviceHandler.h>
#include <mission/DeviceHandler/ArduinoComIF.h>
#include <mission/DeviceHandler/ArduinoCookie.h>
#include <mission/Controller/ThermalController.h>
void ObjectFactory::produceGenericObjects() {
/* Framework objects */
@ -53,15 +57,16 @@ void ObjectFactory::produceGenericObjects() {
/* Demo objects */
CookieIF* arduinoCookie = new ARDUINOCookie();
//new handler and commIF
#if OBSW_ADD_TEST_CODE == 1
CookieIF* cookie = new ArduinoCookie();
new ArduinoComIF(objects::ARDUINO_COM_IF);
new ArduinoDH(objects::ARDUINO_DEVICE_HANDLER, objects::ARDUINO_COM_IF, cookie);
new ThermalController(objects::THERMAL_CONTROLLER, objects::POWER_SWITCHER_CONTROLLER, 5); // commandQueueDepth = 5 is chosen experimentally
/*#if OBSW_ADD_TEST_CODE == 1
CookieIF* testCookie = new TestCookie(0);
new TestEchoComIF(objects::TEST_ECHO_COM_IF);
new TestDevice(objects::TEST_DEVICE_HANDLER, objects::TEST_ECHO_COM_IF,
testCookie, true);
#endif
#endif*/
}