Skip to content
Snippets Groups Projects
Commit 1a8a1d73 authored by Peter Kaiser's avatar Peter Kaiser
Browse files

BusInspectionUnit: Added topic for HAL cycle times

parent 625e0d59
No related branches found
No related tags found
No related merge requests found
......@@ -32,13 +32,12 @@ using namespace armarx;
void BusInspectionUnit::onInitComponent()
{
this->onInitBusInspectionUnit();
offeringTopic("HardwareValues");
offeringTopic("HALCycleTimes");
}
void BusInspectionUnit::onConnectComponent()
{
busInspectionValuePrx = getTopic<BusInspectionInterfacePrx>("HardwareValues");
ARMARX_INFO << "subscribing topic: " << "HardwareValues";
busInspectionListenerPrx = getTopic<BusInspectionListenerPrx>("HALCycleTimes");
this->onConnectBusInspectionUnit();
}
......@@ -92,8 +91,7 @@ std::string BusInspectionUnit::sendCommand(const std::string& command, Ice::Int
PropertyDefinitionsPtr BusInspectionUnit::createPropertyDefinitions()
{
return PropertyDefinitionsPtr(new BusInspectionUnitPropertyDefinitions(
getConfigIdentifier()));
return PropertyDefinitionsPtr(new BusInspectionUnitPropertyDefinitions(getConfigIdentifier()));
}
#endif
......@@ -89,8 +89,7 @@ namespace armarx
protected:
std::string channel;
BusInspectionInterfacePrx busInspectionValuePrx; // gets commands from hardware
BusInspectionListenerPrx busInspectionListenerPrx;
};
}
......
......@@ -87,14 +87,19 @@ module armarx
DeviceNames getDevicesOnBus(string bus) throws UnknownBusException;
DeviceInformation getDeviceInformation(string device) throws UnknownDeviceException;
int performDeviceOperation(BasicOperation operation, int device);
int performBusOperation(BasicOperation operation, string bus);
bool isInRealTimeMode();
int performBusOperation(BasicOperation operation, string bus);
bool isInRealTimeMode();
string sendCommand(string command, int device) throws UnknownCommandException;
};
interface BusInspectionListener
{
/**
* Report statistics on the cycle times of the underlying hardware abstraction layer
*
* Times are given in µs.
*/
void reportCycleTimeStatistics(int averageCycleTime, int minCycleTime, int maxCycleTime);
};
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment