Files
flippr-code/FlippR-Driver/src/output/factories/SolenoidFactory.h
2020-01-06 09:20:53 +01:00

34 lines
658 B
C++

/*
* SolenoidFactory.h
*
* Created on: January 6, 2020
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
*/
#ifndef FLIPPR_DRIVER_SOLENOIDFACTORY_H
#define FLIPPR_DRIVER_SOLENOIDFACTORY_H
#include "output/DriverBoardPinController.h"
#include "ItemFactory.h"
namespace flippR_driver
{
namespace output
{
class SolenoidFactory : public ItemFactory
{
public:
explicit SolenoidFactory(nlohmann::json &object, std::shared_ptr<DriverBoardPinController> pin_controller);
std::map<std::string, std::shared_ptr<items::Item>> getItemMap() override;
private:
uint8_t deactivation_time;
};
}
}
#endif //FLIPPR_DRIVER_SOLENOIDFACTORY_H