mirror of https://github.com/ArduPilot/ardupilot
ArduCopter: remove unnecessary (probably slightly harmful) extra barometer read
The barometer reads including reading temperature was all moved to a timer but this extra read (originally to read the temperature) was probably forgotten.
This commit is contained in:
parent
cf3e49eea2
commit
1e79d265a1
|
@ -1258,12 +1258,6 @@ static void medium_loop()
|
||||||
// -----------------------
|
// -----------------------
|
||||||
arm_motors();
|
arm_motors();
|
||||||
|
|
||||||
// Do an extra baro read for Temp sensing
|
|
||||||
// ---------------------------------------
|
|
||||||
#if HIL_MODE != HIL_MODE_ATTITUDE
|
|
||||||
barometer.read();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// agmatthews - USERHOOKS
|
// agmatthews - USERHOOKS
|
||||||
#ifdef USERHOOK_MEDIUMLOOP
|
#ifdef USERHOOK_MEDIUMLOOP
|
||||||
USERHOOK_MEDIUMLOOP
|
USERHOOK_MEDIUMLOOP
|
||||||
|
|
Loading…
Reference in New Issue