mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 04:31:36 +08:00
sensors: adc_poll: remove unneeded argument
This commit is contained in:
@@ -225,7 +225,7 @@ private:
|
|||||||
* @param raw Combined sensor data structure into which
|
* @param raw Combined sensor data structure into which
|
||||||
* data should be returned.
|
* data should be returned.
|
||||||
*/
|
*/
|
||||||
void adc_poll(struct sensor_combined_s &raw);
|
void adc_poll();
|
||||||
};
|
};
|
||||||
|
|
||||||
Sensors::Sensors(bool hil_enabled) :
|
Sensors::Sensors(bool hil_enabled) :
|
||||||
@@ -421,7 +421,7 @@ Sensors::parameter_update_poll(bool forced)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Sensors::adc_poll(struct sensor_combined_s &raw)
|
Sensors::adc_poll()
|
||||||
{
|
{
|
||||||
/* only read if not in HIL mode */
|
/* only read if not in HIL mode */
|
||||||
if (_hil_enabled) {
|
if (_hil_enabled) {
|
||||||
@@ -669,7 +669,7 @@ Sensors::run()
|
|||||||
_voted_sensors_update.sensors_poll(raw);
|
_voted_sensors_update.sensors_poll(raw);
|
||||||
|
|
||||||
/* check battery voltage */
|
/* check battery voltage */
|
||||||
adc_poll(raw);
|
adc_poll();
|
||||||
|
|
||||||
diff_pres_poll(raw);
|
diff_pres_poll(raw);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user