You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
5 months ago
|
/*
|
||
|
* AlgorithmWork.h
|
||
|
*
|
||
|
* Author: Aleksey Gerasimenko
|
||
|
* gerasimenko.aleksey.n@gmail.com
|
||
|
*/
|
||
|
|
||
|
#include <math.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#ifndef SYSCTRL_ALGORITHMNORMAL_H_
|
||
|
#define SYSCTRL_ALGORITHMNORMAL_H_
|
||
|
|
||
|
#include "SYSCTRL/AlgorithmBase.h"
|
||
|
#include "SYSCTRL/HeadersFLTSYSLIB.h"
|
||
|
|
||
|
namespace SYSCTRL
|
||
|
{
|
||
|
|
||
|
class AlgorithmWork: public SYSCTRL::AlgorithmBase
|
||
|
{
|
||
|
private:
|
||
|
bool m_reference_switcher;
|
||
|
|
||
|
private:
|
||
|
SYSCTRL::SystemEnvironment& m_env;
|
||
|
public:
|
||
|
AlgorithmWork(SYSCTRL::SystemEnvironment& env);
|
||
|
public:
|
||
|
void setup();
|
||
|
public:
|
||
|
void reset();
|
||
|
void reset_switcher();
|
||
|
public:
|
||
|
void execute();
|
||
|
private:
|
||
|
void (AlgorithmWork::*_execute)();
|
||
|
void _execute_run();
|
||
|
#if TYPECONTROL == SCALARCONTROL
|
||
|
private:
|
||
|
void _execute_single_phase(SYSCTRL::AlgorithmSinglePhaseControl& phase,
|
||
|
SYSCTRL::ProjectionAnalogSignalStructure& projection,
|
||
|
SYSCTRL::VectorOrthogonalProjection& orts,
|
||
|
FLTSYSLIB::PIController& regulator_limit,
|
||
|
FLTSYSLIB::PIController& regulator_pfc,
|
||
|
FLTSYSLIB::PIController& regulator_dc,
|
||
|
float& dc_volatage,
|
||
|
FLTSYSLIB::PIController& regulator_active,
|
||
|
FLTSYSLIB::PIController& regulator_reactive);
|
||
|
#endif
|
||
|
};//AlgorithmNormal
|
||
|
|
||
|
} /* namespace SYSCTRL */
|
||
|
|
||
|
#endif /* SYSCTRL_ALGORITHMNORMAL_H_ */
|