This commit is contained in:
Michael Oborne 2011-09-17 21:23:14 +08:00
commit cae10dc8f6
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); AP_DCM dcm(&imu, g_gps);
#ifdef OPTFLOW_ENABLED #ifdef OPTFLOW_ENABLED
AP_OpticalFlow_ADNS3080 optflow(); AP_OpticalFlow_ADNS3080 optflow;
#endif #endif
#endif #endif

View File

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