ajustado eixos do imu

This commit is contained in:
Diego Freitas 2026-07-08 08:19:42 -03:00
parent 86d2204153
commit fb14ae9245
3 changed files with 6 additions and 6 deletions

View File

@ -774,8 +774,8 @@ namespace AgroBase.Models.Operacoes
Imu = new OperacaoSensoriamentoLogImuModel Imu = new OperacaoSensoriamentoLogImuModel
{ {
Iniciado = sen?.IMU?.Iniciado ?? false, Iniciado = sen?.IMU?.Iniciado ?? false,
InclinacaoFrontal = sen?.IMU?.PitchSeguro ?? 0, InclinacaoFrontal = sen?.IMU?.RollSeguro ?? 0,
InclinacaoLateral = sen?.IMU?.RollSeguro ?? 0, InclinacaoLateral = sen?.IMU?.PitchSeguro ?? 0,
Rotacao = sen?.IMU?.YawSeguro ?? 0 Rotacao = sen?.IMU?.YawSeguro ?? 0
}; };
} }

View File

@ -131,8 +131,8 @@ namespace OperationControl.Controls
// Derivados // Derivados
public double MaxAbsAngle => Math.Max(Math.Abs(RollDeg), Math.Abs(PitchDeg)); public double MaxAbsAngle => Math.Max(Math.Abs(RollDeg), Math.Abs(PitchDeg));
public string RollTexto => $"LAT {FormatSignedDeg(RollDeg)}"; public string RollTexto => $"FRT {FormatSignedDeg(RollDeg)}";
public string PitchTexto => $"FRT {FormatSignedDeg(PitchDeg)}"; public string PitchTexto => $"LAT {FormatSignedDeg(PitchDeg)}";
private static string FormatSignedDeg(double value) private static string FormatSignedDeg(double value)
{ {

View File

@ -1048,8 +1048,8 @@ namespace OperationControl.ViewModels
// ATTITUDE // ATTITUDE
var IMU = _viewOperacaoCenter.Monitoramento.Attitude; var IMU = _viewOperacaoCenter.Monitoramento.Attitude;
if (obj?.Imu?.InclinacaoFrontal != null) IMU.PitchDeg = (double)obj.Imu.InclinacaoFrontal; if (obj?.Imu?.InclinacaoLateral != null) IMU.PitchDeg = (double)obj.Imu.InclinacaoLateral;
if (obj?.Imu?.InclinacaoLateral != null) IMU.RollDeg = (double)obj.Imu.InclinacaoLateral; if (obj?.Imu?.InclinacaoFrontal != null) IMU.RollDeg = (double)obj.Imu.InclinacaoFrontal;
IMU.LateralError = erroLateral; IMU.LateralError = erroLateral;