diff --git a/AgroBase/AgroBase/Models/Operacoes/OperacaoParametrosModel.cs b/AgroBase/AgroBase/Models/Operacoes/OperacaoParametrosModel.cs index c3829738a..7eb7e68f6 100644 --- a/AgroBase/AgroBase/Models/Operacoes/OperacaoParametrosModel.cs +++ b/AgroBase/AgroBase/Models/Operacoes/OperacaoParametrosModel.cs @@ -774,8 +774,8 @@ namespace AgroBase.Models.Operacoes Imu = new OperacaoSensoriamentoLogImuModel { Iniciado = sen?.IMU?.Iniciado ?? false, - InclinacaoFrontal = sen?.IMU?.PitchSeguro ?? 0, - InclinacaoLateral = sen?.IMU?.RollSeguro ?? 0, + InclinacaoFrontal = sen?.IMU?.RollSeguro ?? 0, + InclinacaoLateral = sen?.IMU?.PitchSeguro ?? 0, Rotacao = sen?.IMU?.YawSeguro ?? 0 }; } diff --git a/AgroBase/OperationControl/Controls/AttitudeIndicator.xaml.cs b/AgroBase/OperationControl/Controls/AttitudeIndicator.xaml.cs index 9e37f38b9..3d5b5442f 100644 --- a/AgroBase/OperationControl/Controls/AttitudeIndicator.xaml.cs +++ b/AgroBase/OperationControl/Controls/AttitudeIndicator.xaml.cs @@ -131,8 +131,8 @@ namespace OperationControl.Controls // Derivados public double MaxAbsAngle => Math.Max(Math.Abs(RollDeg), Math.Abs(PitchDeg)); - public string RollTexto => $"LAT {FormatSignedDeg(RollDeg)}"; - public string PitchTexto => $"FRT {FormatSignedDeg(PitchDeg)}"; + public string RollTexto => $"FRT {FormatSignedDeg(RollDeg)}"; + public string PitchTexto => $"LAT {FormatSignedDeg(PitchDeg)}"; private static string FormatSignedDeg(double value) { diff --git a/AgroBase/OperationControl/ViewModels/Windows/DockWindowViewModel.cs b/AgroBase/OperationControl/ViewModels/Windows/DockWindowViewModel.cs index ce8f73813..1af807d16 100644 --- a/AgroBase/OperationControl/ViewModels/Windows/DockWindowViewModel.cs +++ b/AgroBase/OperationControl/ViewModels/Windows/DockWindowViewModel.cs @@ -1048,8 +1048,8 @@ namespace OperationControl.ViewModels // ATTITUDE var IMU = _viewOperacaoCenter.Monitoramento.Attitude; - if (obj?.Imu?.InclinacaoFrontal != null) IMU.PitchDeg = (double)obj.Imu.InclinacaoFrontal; - if (obj?.Imu?.InclinacaoLateral != null) IMU.RollDeg = (double)obj.Imu.InclinacaoLateral; + if (obj?.Imu?.InclinacaoLateral != null) IMU.PitchDeg = (double)obj.Imu.InclinacaoLateral; + if (obj?.Imu?.InclinacaoFrontal != null) IMU.RollDeg = (double)obj.Imu.InclinacaoFrontal; IMU.LateralError = erroLateral;