Skip to content
Snippets Groups Projects
Commit b687bb47 authored by ucart's avatar ucart
Browse files

Groundstation only makes the first log if the quad starts a data dump

parent 0a10d2dd
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#inner loop
#./setparam 'roll rate pid' 'kp' 2000
#./setparam 'roll rate pid' 'ki' 0
#./setparam 'roll rate pid' 'kd' 0
#./setparam 'pitch rate pid' 'kp' 2000
#./setparam 'pitch rate pid' 'ki' 0
#./setparam 'pitch rate pid' 'kd' 0
#./setparam 'roll pid' 'kp' 10
#./setparam 'roll pid' 'ki' 0
#./setparam 'pitch pid' 'kp' 10
#./setparam 'pitch pid' 'ki' 0
#outer loop
./setparam 'X pos PID' 'kp' -0.015
./setparam 'X pos PID' 'ki' -0.0005
./setparam 'X pos PID' 'kd' -0.25
./setparam 'X pos PID' 'alpha' 0.88
./setparam 'Y pos PID' 'kp' 0.015
./setparam 'Y pos PID' 'ki' 0.0005
./setparam 'Y pos PID' 'kd' 0.25
./setparam 'Y pos PID' 'alpha' 0.88
......@@ -210,13 +210,6 @@ int main(int argc, char **argv)
strncat(user_specified_log_name, argv[1], strlen(argv[1]));
}
char log_file[256];
create_log_name(log_file, 256);
printf("Creating log file '%s'...\n",log_file);
quadlog_file = fopen(log_file, "a");
quadlog_file_open = 1;
if(!getenv(NOVRPN_ENV)){
printf("Creating VRPN tracker...\n");
// create vrpnTracker instance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment