355,7 → 355,8 |
ToFlightCtrl.Param.Byte[7] = GPS_Aid_StickMultiplikator; |
if(CAM_Orientation.UpdateMask & CAM_UPDATE_AZIMUTH) |
{ |
if(CAM_Orientation.Azimuth != -1) ToFlightCtrl.Param.sInt[4] = (CAM_Orientation.Azimuth + (3*360) - (FC.FromFC_CompassOffset / 10 + GeoMagDec/10 + Parameter.OrientationAngle * 15)) % 360; // the FC uses the uncorrected comnpass value |
// if(CAM_Orientation.Azimuth != -1) ToFlightCtrl.Param.sInt[4] = (CAM_Orientation.Azimuth + (3*360) - (FC.FromFC_CompassOffset / 10 + GeoMagDec/10 + Parameter.OrientationAngle * 15)) % 360; // the FC uses the uncorrected comnpass value |
if(CAM_Orientation.Azimuth != -1) ToFlightCtrl.Param.sInt[4] = (CAM_Orientation.Azimuth + (3*360) - (FC.FromFC_CompassOffset / 10 + GeoMagDec/10 + Parameter.CamOrientation * 15)) % 360; // the FC uses the uncorrected comnpass value |
else CAM_Orientation.Azimuth = -1; |
CAM_Orientation.UpdateMask &= ~CAM_UPDATE_AZIMUTH; |
} |
764,6 → 765,7 |
Parameter.DescendRange = FromFlightCtrl.Param.Byte[6]; |
Parameter.MaximumAltitude = FromFlightCtrl.Param.Byte[7]; |
FlugMinutenGesamt = FromFlightCtrl.Param.Int[4]; // 8 & 9 |
Parameter.CamOrientation = FromFlightCtrl.Param.Byte[10]; |
break; |
|
case SPI_FCCMD_VERSION: |