1 #ifndef ORG_EEROS_CONTROL_PERIPHERALINPUT_HPP 2 #define ORG_EEROS_CONTROL_PERIPHERALINPUT_HPP 11 template <
typename T =
double >
15 PeripheralInput(std::string
id,
bool exclusive =
true) : hal(hal::HAL::instance()) {
17 if(systemInput ==
nullptr)
throw Fault(
"Peripheral input '" +
id +
"' not found!");
21 this->
out.getSignal().setValue(systemInput->get());
23 this->
out.getSignal().setTimestamp(systemInput->getTimestamp());
26 template<
typename ... ArgTypesIn>
39 #endif // ORG_EEROS_CONTROL_PERIPHERALINPUT_HPP
InputInterface * getInput(std::string name, bool exclusive=true)
Definition: HAL.cpp:194
Definition: Block1o.hpp:12
Definition: Config.hpp:14
Output< T > out
Definition: Block1o.hpp:23
void callInputFeature(InputInterface *obj, std::string featureName, ArgTypesIn...args)
Definition: HAL.hpp:48