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.

51 lines
880 B
C++

/*
* AlgorithmZero.cpp
*
* Created on: 20 <EFBFBD><EFBFBD><EFBFBD> 2022 <EFBFBD>.
* Author: geras
*/
#include "SYSCTRL/AlgorithmZero.h"
namespace SYSCTRL
{
//CONSTRUCTOR
AlgorithmZero::AlgorithmZero(SYSCTRL::SystemEnvironment& env):
SYSCTRL::AlgorithmBase(),
m_env(env),
_execute(&SYSCTRL::AlgorithmZero::_execute_undef)
{}//CONSTRUCTOR
void AlgorithmZero::setup()
{
_execute = &SYSCTRL::AlgorithmZero::_execute_run;
//
}//
//
#pragma CODE_SECTION("ramfuncs");
void AlgorithmZero::reset()
{}//
//
#pragma CODE_SECTION("ramfuncs");
void AlgorithmZero::execute()
{
(this->*_execute)();
//
}//
//
#pragma CODE_SECTION("ramfuncs");
void AlgorithmZero::_execute_run()
{
//
m_env.hardware.ref_control_order = ORDER_START;
//
m_voltage_a = FP_ZERO;
m_voltage_b = FP_ZERO;
m_voltage_c = FP_ZERO;
//
}//
//
} /* namespace SYSCTRL */