ArduCopter - small changes to fix compile errors when optical flow enabled

This commit is contained in:
rmackay9 2011-09-17 22:09:18 +09:00
parent 19781d5e4a
commit c825e76a88
2 changed files with 3 additions and 3 deletions

View File

@ -200,7 +200,7 @@ static AP_Int8 *flight_modes = &g.flight_mode1;
AP_DCM dcm(&imu, g_gps);
#ifdef OPTFLOW_ENABLED
AP_OpticalFlow_ADNS3080 optflow();
AP_OpticalFlow_ADNS3080 optflow;
#endif
#endif

View File

@ -503,8 +503,8 @@ static void Log_Write_Optflow()
DataFlash.WriteInt((int)optflow.dx);
DataFlash.WriteInt((int)optflow.dy);
DataFlash.WriteInt((int)optflow.surface_quality);
DataFlash.WriteLong(optflow.lat);//optflow_offset.lat + optflow.lat);
DataFlash.WriteLong(optflow.lon);//optflow_offset.lng + optflow.lng);
DataFlash.WriteLong(optflow.vlat);//optflow_offset.lat + optflow.lat);
DataFlash.WriteLong(optflow.vlon);//optflow_offset.lng + optflow.lng);
DataFlash.WriteByte(END_BYTE);
}
#endif