updated files
Signed-off-by: Bernardo Carvalho <bernardo.carvalho@tecnico.ulisboa.pt>
This commit is contained in:
@@ -244,10 +244,10 @@ $TestApp = {
|
|||||||
}
|
}
|
||||||
+GAMWF = {
|
+GAMWF = {
|
||||||
Class = WaveformGAM::WaveformSin
|
Class = WaveformGAM::WaveformSin
|
||||||
Amplitude = 100.0
|
Amplitude = 200.0
|
||||||
Frequency = 0.1
|
Frequency = 0.1
|
||||||
Phase = 0.0
|
Phase = 0.0
|
||||||
Offset = 100.1
|
Offset = 200.1
|
||||||
InputSignals = {
|
InputSignals = {
|
||||||
Time = {
|
Time = {
|
||||||
DataSource = "DDB1"
|
DataSource = "DDB1"
|
||||||
@@ -329,13 +329,14 @@ $TestApp = {
|
|||||||
Class = PSUCommunicator::PSUCommunicatorTX
|
Class = PSUCommunicator::PSUCommunicatorTX
|
||||||
PortName = "/dev/ttyS0" //Name of the UART port, Mandatory
|
PortName = "/dev/ttyS0" //Name of the UART port, Mandatory
|
||||||
//PortName = "/dev/ttyLoopWr" //Name of the UART port, Mandatory
|
//PortName = "/dev/ttyLoopWr" //Name of the UART port, Mandatory
|
||||||
BaudRate = 9600 // 10.851 µs / Byte
|
BaudRate = 921600
|
||||||
//115200 //BAUD UART rate
|
//BaudRate = 115200 // 9600 10.851 µs / Byte
|
||||||
|
//115200 576000//BAUD UART rate
|
||||||
Timeout = 200000 //Maximum time to wait for data
|
Timeout = 200000 //Maximum time to wait for data
|
||||||
CPUMask = 8 //Affinity of the CPU of where to read data from
|
CPUMask = 8 //Affinity of the CPU of where to read data from
|
||||||
SerialTimeout = 1000
|
SerialTimeout = 1000
|
||||||
PointOfZeroCurrent = 5.100000e+02
|
PointOfZeroCurrent = 50.0 //5.100000e+02
|
||||||
CurrentStep = 2.929700e+00
|
CurrentStep = 1.0 //929700e+00
|
||||||
Signals = {
|
Signals = {
|
||||||
SerialOut = {
|
SerialOut = {
|
||||||
Type = float32 //Mandatory. Only type that is supported.
|
Type = float32 //Mandatory. Only type that is supported.
|
||||||
|
|||||||
@@ -345,8 +345,11 @@ bool PSUCommunicatorTX::CreateCurrentPacket() {
|
|||||||
|
|
||||||
bool PSUCommunicatorTX::SendMessage() {
|
bool PSUCommunicatorTX::SendMessage() {
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
// REPORT_ERROR_PARAMETERS(ErrorManagement::Information, "SendMessage %d %d",
|
uint16 uval;
|
||||||
// packet[0], packet[1]);
|
memcpy(&uval, packet, 2);
|
||||||
|
REPORT_ERROR_PARAMETERS(ErrorManagement::Information, "SendMessage 0x%",
|
||||||
|
uval);
|
||||||
|
// (uint16)packet[0], (uint16)packet[1]);
|
||||||
// packet[0], packet[1]);
|
// packet[0], packet[1]);
|
||||||
serial.Write(packet, 2);
|
serial.Write(packet, 2);
|
||||||
return ok;
|
return ok;
|
||||||
|
|||||||
Reference in New Issue
Block a user