updated files

Signed-off-by: Bernardo Carvalho <bernardo.carvalho@tecnico.ulisboa.pt>
This commit is contained in:
2025-11-12 15:06:22 +00:00
parent 1764a7b8da
commit 8850b75b15
2 changed files with 12 additions and 8 deletions

View File

@@ -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.

View File

@@ -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;