Add hall_poll to the main loop in the sensors module

This commit is contained in:
Florian Achermann
2021-06-21 08:47:45 +02:00
committed by JaeyoungLim
parent 736514dc98
commit 111321082f
+5
View File
@@ -338,6 +338,10 @@ Sensors::~Sensors()
sub.unregisterCallback();
}
for (auto &sub : _sensor_hall_subs) {
sub.unregisterCallback();
}
_vehicle_acceleration.Stop();
_vehicle_angular_velocity.Stop();
@@ -815,6 +819,7 @@ void Sensors::Run()
adc_poll();
diff_pres_poll();
hall_poll();
if (_sensor_combined.timestamp != _sensor_combined_prev_timestamp) {