Compare commits
2 Commits
a5c377195f
...
1297a898d5
| Author | SHA1 | Date |
|---|---|---|
|
|
1297a898d5 | |
|
|
991942c73c |
|
|
@ -229,7 +229,7 @@ namespace OperationControl.Models
|
||||||
|
|
||||||
if (Mock && AddRover)
|
if (Mock && AddRover)
|
||||||
{
|
{
|
||||||
System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() =>
|
System.Windows.Application.Current?.Dispatcher?.BeginInvoke(new Action(() =>
|
||||||
{
|
{
|
||||||
Variaveis.Dock?._vm?.AtualizarDadosTela(VariaveisControleOperacao.RoverEmFoco);
|
Variaveis.Dock?._vm?.AtualizarDadosTela(VariaveisControleOperacao.RoverEmFoco);
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
|
|
@ -1243,7 +1243,7 @@ namespace OperationControl.Services
|
||||||
UltimaLeitura.Heartbeat = (UltimaLeitura.Heartbeat + 1) % 10;
|
UltimaLeitura.Heartbeat = (UltimaLeitura.Heartbeat + 1) % 10;
|
||||||
|
|
||||||
// Daqui pra baixo: jogar pra UI
|
// Daqui pra baixo: jogar pra UI
|
||||||
Application.Current.Dispatcher.BeginInvoke(new Action(() =>
|
Application.Current?.Dispatcher?.BeginInvoke(new Action(() =>
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -75,8 +75,8 @@ ServoAgro_v3* ObterServoPorId(uint8_t idNum) {
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
#pragma region RELES
|
#pragma region RELES
|
||||||
Rele_v2 sRLE_CoolerIn("RLCIN", 81, true, 13, TiposBarramentos::CONTROLADOR);
|
Rele_v2 sRLE_CoolerIn("RLCIN", 81, false, 19, TiposBarramentos::CONTROLADOR);
|
||||||
Rele_v2 sRLE_CoolerOut("RLCOUT", 82, true, 14, TiposBarramentos::CONTROLADOR);
|
Rele_v2 sRLE_CoolerOut("RLCOUT", 82, false, 20, TiposBarramentos::CONTROLADOR);
|
||||||
|
|
||||||
Rele_v2* ObterRelePorId(uint8_t idNum) {
|
Rele_v2* ObterRelePorId(uint8_t idNum) {
|
||||||
switch (idNum) {
|
switch (idNum) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue