diff --git a/Configurations/RTApp-2-Uart.cfg b/Configurations/RTApp-2-Uart.cfg index c9ec244..13a6c9a 100644 --- a/Configurations/RTApp-2-Uart.cfg +++ b/Configurations/RTApp-2-Uart.cfg @@ -244,10 +244,10 @@ $TestApp = { } +GAMWF = { Class = WaveformGAM::WaveformSin - Amplitude = 100.0 + Amplitude = 200.0 Frequency = 0.1 Phase = 0.0 - Offset = 100.1 + Offset = 200.1 InputSignals = { Time = { DataSource = "DDB1" @@ -329,13 +329,14 @@ $TestApp = { Class = PSUCommunicator::PSUCommunicatorTX PortName = "/dev/ttyS0" //Name of the UART port, Mandatory //PortName = "/dev/ttyLoopWr" //Name of the UART port, Mandatory - BaudRate = 9600 // 10.851 µs / Byte - //115200 //BAUD UART rate + BaudRate = 921600 + //BaudRate = 115200 // 9600 10.851 µs / Byte + //115200 576000//BAUD UART rate Timeout = 200000 //Maximum time to wait for data CPUMask = 8 //Affinity of the CPU of where to read data from SerialTimeout = 1000 - PointOfZeroCurrent = 5.100000e+02 - CurrentStep = 2.929700e+00 + PointOfZeroCurrent = 50.0 //5.100000e+02 + CurrentStep = 1.0 //929700e+00 Signals = { SerialOut = { Type = float32 //Mandatory. Only type that is supported. diff --git a/DataSources/PSUCommunicator/PSUCommunicatorTX.cpp b/DataSources/PSUCommunicator/PSUCommunicatorTX.cpp index 58d93c9..2dce241 100644 --- a/DataSources/PSUCommunicator/PSUCommunicatorTX.cpp +++ b/DataSources/PSUCommunicator/PSUCommunicatorTX.cpp @@ -345,8 +345,11 @@ bool PSUCommunicatorTX::CreateCurrentPacket() { bool PSUCommunicatorTX::SendMessage() { bool ok = true; - // REPORT_ERROR_PARAMETERS(ErrorManagement::Information, "SendMessage %d %d", - // packet[0], packet[1]); + uint16 uval; + memcpy(&uval, packet, 2); + REPORT_ERROR_PARAMETERS(ErrorManagement::Information, "SendMessage 0x%", + uval); + // (uint16)packet[0], (uint16)packet[1]); // packet[0], packet[1]); serial.Write(packet, 2); return ok;