Skip to content
Snippets Groups Projects
Commit ded5b128 authored by Davide Basso's avatar Davide Basso
Browse files

[Parafoil] Fix parafoil entry

parent afaeccdc
Branches
Tags
1 merge request!102[Parafoil] Add Parafoil On-Board-Software
......@@ -37,8 +37,8 @@ namespace Parafoil
struct WindEstimationData
{
uint64_t timestamp = 0;
Boardcore::Units::Speed::MeterPerSecond velocityNorth;
Boardcore::Units::Speed::MeterPerSecond velocityEast;
Boardcore::Units::Speed::MeterPerSecond velocityNorth{0};
Boardcore::Units::Speed::MeterPerSecond velocityEast{0};
bool calibration = false; ///< True if the wind estimation is in
///< calibration mode, false otherwise
......
......@@ -86,10 +86,10 @@ using namespace Common;
int main()
{
miosix::ledOff();
std::cout << "Parafoil Entrypoint " << "(" << BUILD_TYPE << ")"
<< " by Skyward Experimental Rocketry" << std::endl;
// cppcheck-suppress unreadVariable
auto logger = Logging::getLogger("Parafoil");
DependencyManager depman{};
......@@ -136,18 +136,21 @@ int main()
auto actuators = new Actuators();
initResult &= depman.insert(actuators);
std::cout << "Injecting module dependencies" << std::endl;
initResult &= depman.inject();
START_SINGLETON(Logger)
{
std::cout << "Logger Ok!\n"
<< "\tLog number: "
<< Logger::getInstance().getCurrentLogNumber() << std::endl;
}
START_MODULE(flightModeManager);
START_SINGLETON(EventBroker);
START_MODULE(pinHandler);
START_MODULE(radio);
START_MODULE(nasController);
START_MODULE(flightModeManager);
START_MODULE(altitudeTrigger);
START_MODULE(windEstimation);
START_MODULE(wingController);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment