private void gyroCalResetButton_Click(object sender, EventArgs e)
{
data_collection_enabled = false;
startDataCollectionButton.Enabled = true;
stopDataCollectionButton.Enabled = false;
computegyroCalButton.Enabled = false;
writeToFileButton.Enabled = false;
calStatusText.Text = "Inactive";
flashCommitButton.Enabled = false;
gyroAlignmentCommitButton.Enabled = false;
dataProgressBar.Value = 0;
next_data_index = 0;
gyroCalStatusText.Text = "Inactive";
}