mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 05:53:33 +08:00
Add hall_poll to the main loop in the sensors module
This commit is contained in:
committed by
JaeyoungLim
parent
736514dc98
commit
111321082f
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user