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:
@ -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*/
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user