50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
|
|
/*
|
|||
|
|
* PwmGenAdapter.h
|
|||
|
|
*
|
|||
|
|
* Created on: 6 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. 2019 <EFBFBD>.
|
|||
|
|
* Author: titov
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#ifndef SOURCE_TECHNOLOGICAL_ADAPTER_PWMGENADAPTER_H_
|
|||
|
|
#define SOURCE_TECHNOLOGICAL_ADAPTER_PWMGENADAPTER_H_
|
|||
|
|
|
|||
|
|
#include "../../processing/acs/VectorAsyncInterface.hh"
|
|||
|
|
#include "../../units/PhysicalQuantities.hpp"
|
|||
|
|
#include "../../systemic/ISignal.hh"
|
|||
|
|
#include "../../driver/IInverter.hh"
|
|||
|
|
|
|||
|
|
namespace technological { namespace adapter {
|
|||
|
|
|
|||
|
|
//todo: PwmGenerator
|
|||
|
|
struct PwmGenAdapter : public vector::IStandingVectorSet {
|
|||
|
|
|
|||
|
|
//todo: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> reset(), <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>..
|
|||
|
|
//todo: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> IInverter <20> INaturalVectorSet.
|
|||
|
|
void set( control::StandingVector voltage );
|
|||
|
|
void set_output( driver::IInverter * );
|
|||
|
|
|
|||
|
|
struct Setting {
|
|||
|
|
units::Factor voltage_utilization_factor; //!<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
|
units::Voltage minimum_control_voltage; //!<<3C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
|
|
|||
|
|
Setting();
|
|||
|
|
bool isValid();
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
void configure( const Setting & config );
|
|||
|
|
|
|||
|
|
PwmGenAdapter( systemic::ISignal & );
|
|||
|
|
~PwmGenAdapter() noexcept {}
|
|||
|
|
private:
|
|||
|
|
float voltage_utilization_factor;
|
|||
|
|
float minimum_control_voltage;
|
|||
|
|
|
|||
|
|
systemic::ISignal & voltage_dc;
|
|||
|
|
driver::IInverter * output;
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
}}
|
|||
|
|
|
|||
|
|
#endif /* SOURCE_TECHNOLOGICAL_ADAPTER_PWMGENADAPTER_H_ */
|