Exemple #1
0
int main(int argc, char** argv) 
{
  // default arguments
  autopilot_parms.bearing_noise=fixed(0);
  autopilot_parms.target_noise=fixed(0.1);
  autopilot_parms.turn_speed=fixed(5.0);
  output_skip = 5;

  if (!parse_args(argc,argv)) {
    return 0;
  }

#define NUM_TESTS 2

  plan_tests(NUM_TESTS);

  for (int j=0; j<NUM_TESTS; j++) {
    unsigned i = rand()%NUM_WIND;

    if (j+1==NUM_TESTS) {
      verbose=1;
    }
    ok (test_flight_times(7,i), test_name("flight times",7,i),0);
  }
  return exit_status();
}
Exemple #2
0
int main(int argc, char** argv) 
{
  // default arguments
  autopilot_parms.ideal();

  if (!parse_args(argc,argv)) {
    return 0;
  }

  plan_tests(NUM_TASKS);

  for (int j=0; j<NUM_TASKS; j++) {
    unsigned k = rand()%NUM_WIND;
    ok (test_flight_times(j,k), test_name("flight times",j,k),0);
  }
  return exit_status();
}
Exemple #3
0
int main(int argc, char** argv) 
{
  // default arguments
  autopilot_parms.SetIdeal();

  if (!ParseArgs(argc,argv)) {
    return 0;
  }

#define NUM_TERRAIN 5

  plan_tests(NUM_TERRAIN);

  for (int j=0; j<NUM_TERRAIN; j++) {
    terrain_height = (int)((800)*(j+1)/(NUM_TERRAIN*1.0));

    unsigned i = rand()%NUM_WIND;
    ok (test_flight_times(1,i), GetTestName("high terrain",7,i),0);
  }
  return exit_status();
}
Exemple #4
0
int main(int argc, char** argv) 
{
  // default arguments
  autopilot_parms.SetIdeal();

  if (!ParseArgs(argc,argv)) {
    return 0;
  }

#define NUM_TESTS 2

  plan_tests(NUM_TESTS);

  for (int j=0; j<NUM_TESTS; j++) {
    unsigned i = rand()%NUM_WIND;

    if (j+1==NUM_TESTS) {
      verbose=1;
    }
    ok (test_flight_times(7,i), GetTestName("flight times",7,i),0);
  }
  return exit_status();
}