Errors fixed in both controller and device handler. Data are now read correctly in the test code but not here in the framework. Problem in reading one variable from datapool for the controller. General cleaning of the code and documentation.
This commit is contained in:
@ -58,15 +58,15 @@ namespace datapool {
|
||||
|
||||
TEMP_SENSOR_CH1 = 0x100014,
|
||||
TEMP_SENSOR_CH2 = 0x100015,
|
||||
|
||||
TargetState_COMPONENT_1 = 0x100016,
|
||||
CurrentState_COMPONENT_1 = 0x100017,
|
||||
HeaterRequest_COMPONENT_1 = 0x100018,
|
||||
TargetState_COMPONENT_2 = 0x100019,
|
||||
CurrentState_COMPONENT_2 = 0x100020,
|
||||
HeaterRequest_COMPONENT_2 = 0x100021
|
||||
//Temp_COMPONENT_1 = 0x100098,
|
||||
TargetState_COMPONENT_1 = 0x100017,
|
||||
CurrentState_COMPONENT_1 = 0x100018,
|
||||
HeaterRequest_COMPONENT_1 = 0x100019,
|
||||
//Temp_COMPONENT_2 = 0x100099,
|
||||
TargetState_COMPONENT_2 = 0x100021,
|
||||
CurrentState_COMPONENT_2 = 0x100022,
|
||||
HeaterRequest_COMPONENT_2 = 0x100023
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
@ -17,9 +17,9 @@ ReturnValue_t pollingSequenceArduinoFunction(
|
||||
uint32_t length = thisSequence->getPeriodMs();
|
||||
|
||||
thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0, 0);
|
||||
thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.8, 1);
|
||||
thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.8, 2);
|
||||
thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.8, 3);
|
||||
thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.3, 1);
|
||||
thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.3, 2);
|
||||
thisSequence->addSlot(objects::ARDUINO_DEVICE_HANDLER, length * 0.4, 3);
|
||||
|
||||
if (thisSequence->checkSequence() == HasReturnvaluesIF::RETURN_OK) {
|
||||
return HasReturnvaluesIF::RETURN_OK;
|
||||
|
Reference in New Issue
Block a user