Skip to content
Snippets Groups Projects
Commit e046c7e9 authored by Federico Lolli's avatar Federico Lolli
Browse files

[Main-ADAController] now uses the pressure sample from SFD

parent 3f882131
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ void ADAController::update()
{
ModuleManager& modules = ModuleManager::getInstance();
PressureData barometerData =
modules.get<Sensors>()->getStaticPressure1LastSample();
modules.get<Sensors>()->getSFDPressureLastSample();
// Get a snapshot of the situation. There is no need to synchronize because
// the getter are already thread safe with a PauseKernel
......@@ -143,8 +143,7 @@ void ADAController::calibrate()
for (int i = 0; i < ADAConfig::CALIBRATION_SAMPLES_COUNT; i++)
{
PressureData data =
modules.get<Sensors>()->getStaticPressure1LastSample();
PressureData data = modules.get<Sensors>()->getSFDPressureLastSample();
pressure.add(data.pressure);
miosix::Thread::sleep(ADAConfig::CALIBRATION_SLEEP_TIME);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment