Browse Source

fixed some compiler warnings

the junk variables are not needed

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3249 f9c3cf11-9bcb-44bc-f272-b75c42450872
mission-4.1.18
tridge60@gmail.com 14 years ago
parent
commit
fe05603582
  1. 6
      ArduCopterMega/system.pde

6
ArduCopterMega/system.pde

@ -455,15 +455,15 @@ init_compass() @@ -455,15 +455,15 @@ init_compass()
{
compass.set_orientation(MAG_ORIENTATION); // set compass's orientation on aircraft
dcm.set_compass(&compass);
bool junkbool = compass.init();
Vector3f junkvector = compass.get_offsets(); // load offsets to account for airframe magnetic interference
compass.init();
compass.get_offsets(); // load offsets to account for airframe magnetic interference
}
#ifdef OPTFLOW_ENABLED
static void
init_optflow()
{
bool junkbool = optflow.init();
optflow.init();
optflow.set_orientation(OPTFLOW_ORIENTATION); // set optical flow sensor's orientation on aircraft
optflow.set_field_of_view(OPTFLOW_FOV); // set optical flow sensor's field of view
}

Loading…
Cancel
Save