Skip to content

Instantly share code, notes, and snippets.

@sebseb7
Created March 29, 2013 16:33
Show Gist options
  • Save sebseb7/5271952 to your computer and use it in GitHub Desktop.
Save sebseb7/5271952 to your computer and use it in GitHub Desktop.
count++;
FILE *plot_out;
if(count==1)
{
plot_out = fopen("elevator", "w");
}
else
{
plot_out = fopen("elevator", "a");
}
fprintf(plot_out,"%i %f %f %f\n",count,pitch_pid.P,pitch_pid.I,pitch_pid.D);
fclose(plot_out);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment