ajustes basicos nova funcao lever arm
This commit is contained in:
parent
3a40df8492
commit
389352bfe9
|
|
@ -751,7 +751,7 @@ namespace OperationControl.Services
|
|||
// 2) se já temos origem e um heading válido, aplica lever arm
|
||||
if (UltimaLeitura.EnuOriginSet)
|
||||
{
|
||||
(double latCor, double lonCorr) = LeverArm.FixLeverArmLatLon_Fast(latitude, longitude, UltimaLeitura.OrientacaoReal);
|
||||
(double latCor, double lonCorr) = LeverArm.FixLeverArmLatLon_Fast(latitude, longitude, UltimaLeitura.OrientacaoReal, UltimaLeitura.TimestampOri.frequencia);
|
||||
UltimaLeitura.Latitude = latCor;
|
||||
UltimaLeitura.Longitude = lonCorr;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -854,7 +854,7 @@ namespace OperationControl.ViewModels
|
|||
_viewPreparacaoMapaBottom?._vm.IniciarFixacao();
|
||||
var gps = Models.Variaveis.GpsService;
|
||||
gps.LeverArm = new GeoLeverArm(offsetCampoFrontalCm: offsetFrontalCm.Value, offsetCampoLateralCm: offsetLateralCm.Value);
|
||||
(double lat, double lon) = gps.LeverArm.FixLeverArmLatLon_Fast(gps.BaseFix.LatitudeFix, gps.BaseFix.LongitudeFix, gps.BaseFix.OrientacaoFix);
|
||||
(double lat, double lon) = gps.LeverArm.FixLeverArmLatLon_Fast(gps.BaseFix.LatitudeFix, gps.BaseFix.LongitudeFix, gps.BaseFix.OrientacaoFix, 5);
|
||||
await Models.Variaveis.GpsService.ConfigurarModulo(true, MetodoFixacaoBase.Manual, lat, lon, gps.BaseFix.AltitudeElpsoidalFix, offset: true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue