34 lines
658 B
C++
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
|