if you enable inflight_acc_calibration, you get a compile error due to passthru not defined.
in line 843, it should have if defined check for fixedwing and helicopter
#if defined(FIXEDWING) || defined(HELICOPTER)
if (rcOptions[BOXPASSTHRU]) { // Use the Passthru Option to activate : Passthru = TRUE Meausrement started, Land and passtrhu = 0 measurement stored
if (!AccInflightCalibrationActive && !AccInflightCalibrationMeasurementDone){
InflightcalibratingA = 50;
}
}else
#endif
thanks
bug in 2.1 shared r1119 MultiWii.ino on passthru and infligh
Re: bug in 2.1 shared r1119 MultiWii.ino on passthru and inf
Are you sure ?
From r1119 version - enum box ...
From r1119 version - enum box ...
Code: Select all
#if defined(FIXEDWING) || defined(HELICOPTER) || defined(INFLIGHT_ACC_CALIBRATION)
BOXPASSTHRU,
#endif
Re: bug in 2.1 shared r1119 MultiWii.ino on passthru and inf
ok, I downloaded my code before r1119 so I should have used the revision I downloaded it from, probably within the last week or so. so that fix must have been done recently.
as for the fix, I was thinking since by design, a define was added to enable passthru only for fixed wing and helicopter, hence I thought the appropriate fix is to add that same condition in in flight calib code. unless adding the condition of fixed wing and heli was a mistake/bug. I thought it actually made sense that passthru only applies to fixed wing and heli though. anyways, I'll update my copy.
as for the fix, I was thinking since by design, a define was added to enable passthru only for fixed wing and helicopter, hence I thought the appropriate fix is to add that same condition in in flight calib code. unless adding the condition of fixed wing and heli was a mistake/bug. I thought it actually made sense that passthru only applies to fixed wing and heli though. anyways, I'll update my copy.
Re: bug in 2.1 shared r1119 MultiWii.ino on passthru and inf
ok, I see the compile error got fixed in r1110 on sept 12.