Skip to content

Commit 1113210

Browse files
acfloriaJaeyoung-Lim
authored andcommitted
Add hall_poll to the main loop in the sensors module
1 parent 736514d commit 1113210

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/modules/sensors/sensors.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ Sensors::~Sensors()
338338
sub.unregisterCallback();
339339
}
340340

341+
for (auto &sub : _sensor_hall_subs) {
342+
sub.unregisterCallback();
343+
}
344+
341345
_vehicle_acceleration.Stop();
342346
_vehicle_angular_velocity.Stop();
343347

@@ -815,6 +819,7 @@ void Sensors::Run()
815819
adc_poll();
816820

817821
diff_pres_poll();
822+
hall_poll();
818823

819824
if (_sensor_combined.timestamp != _sensor_combined_prev_timestamp) {
820825

0 commit comments

Comments
 (0)