Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1844 → Rev 1845

/branches/dongfang_FC_rewrite/mk3mag.c
90,7 → 90,7
// pwm is high
 
if (debugCounter++ == 5000) {
DebugOut.Digital[0] ^= DEBUG_MK3MAG;
// DebugOut.Digital[0] ^= DEBUG_MK3MAG;
debugCounter = 0;
}
 
113,7 → 113,7
compassHeading = 0;
else {
compassHeading = ((uint32_t) (PWMCount - 10) * 1049L) / 1024; // correct timebase and offset
DebugOut.Digital[1] ^= DEBUG_MK3MAG; // correct signal recd.
//DebugOut.Digital[1] ^= DEBUG_MK3MAG; // correct signal recd.
}
/*
compassHeading - compassCourse on a -180..179 range.