Skip to content

Commit 16178aa

Browse files
committed
read abs sensor b, for testing
1 parent fbb36fa commit 16178aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

stm32-modules/include/vacuum-module/vacuum-module/pressure_task.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ class PressureTask {
171171
_pressure_control.last_tick = timestamp;
172172

173173
auto abs_pressure_mbar = std::get<MPRDriverType>(get_sensor(ABS_PRESSURE_A).driver).read_pressure();
174+
abs_pressure_mbar = std::get<MPRDriverType>(get_sensor(ABS_PRESSURE_B).driver).read_pressure();
174175
// TODO: add FIR filter for abs pressure
175176
// maybe we want to take the average pressure?
176177
auto atm_pressure_hpa = std::get<LPSDriverType>(get_sensor(ATM_PRESSURE).driver).get_pressure();

stm32-modules/vacuum-module/firmware/pressure_task/freertos_pressure_task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ auto run(tasks::FirmwareTasks::QueueAggregator* aggregator,
5454

5555
// second task to drive get pressure periodically
5656
// auto *hardware_handle = xTaskCreateStatic(
57-
xTaskCreateStatic(run_hardware_task, "HeaterHardware",
57+
xTaskCreateStatic(run_hardware_task, "PressureHardware",
5858
_hardware_stack.size(), nullptr, 1,
5959
_hardware_stack.data(), &_hardware_data);
6060

0 commit comments

Comments
 (0)