private void btFreeGyroMode_Click(object sender, EventArgs e) { if (freeGyroMode == true) { freeGyroMode = false; Chart.freeGyroMode = false; btFreeGyroMode.Text = "FREE GYRO OFF"; // Send mode command lru0.setEngWriteF(ENG.FRGM, 0.0); Chart.rollMarker = lru0.dataParam[(int)PARAM.ROLL]; Chart.pitchMarker = lru0.dataParam[(int)PARAM.PITCH]; } else { freeGyroMode = true; Chart.freeGyroMode = true; btFreeGyroMode.Text = "FREE GYRO ON"; timeInFreeMode = 0; // Send mode command lru0.setEngWriteF(ENG.FRGM, 1.0); Chart.rollMarker = lru0.dataParam[(int)PARAM.ROLL]; Chart.pitchMarker = lru0.dataParam[(int)PARAM.PITCH]; } }
private void btSetGlobalDefaults_Click(object sender, EventArgs e) { lru.setEngWriteF(ENG.DEF, (float)0x00); // Set all defaults }