70 lines
2.3 KiB
C
70 lines
2.3 KiB
C
/*!
|
|
Copyright 2017 ÀÎ "ÍÈÈÝÒ" è ÎÎÎ "ÍÏÔ ÂÅÊÒÎÐ"
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
|
|
\file vhzprof.h
|
|
\brief Êðèâàÿ U(f) (ñì. TVhzProf)
|
|
\author ÎÎÎ "ÍÏÔ Âåêòîð". http://motorcontrol.ru
|
|
\version v 2.0 25/03/2016
|
|
|
|
\defgroup vhzprof Ìîäóëü êðèâîé U(f) (ñì. TVhzProf)
|
|
|
|
*/
|
|
|
|
|
|
#ifndef VHZPOF_H
|
|
#define VHZPOF_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*! \class TVhzProf
|
|
\brief Êðèâàÿ U(f)
|
|
|
|
Êëàññ \a TVhzProf, îñíîâàííûé íà ñòðóêòóðå SVhzProf,
|
|
ïðåäñòàâëÿåò ñîáîé äâóìåðíóþ çàâèñèìîñòü íàïðÿæåíèÿ U (vout) îò
|
|
÷àñòîòû f (freq). Ìîäóëü íóæåí ïðè ñêàëÿðíîì óïðàâëåíèè äâèãàòåëåì,
|
|
áåç êîíòóðîâ òîêà - êîãäà íàïðÿæåíèå ðàñòåò âìåñòå ñ ÷àñòîòîé. Äàííûé ìîäóëü
|
|
ïîçâîëÿåò íàñòðîèòü ëèíåéíóþ çàâèñèìîñòü íàïðÿæåíèÿ îò ÷àñòîòû ïî äâóì òî÷êàì. */
|
|
|
|
//! ñì. TVhzProf
|
|
struct SVhzProf{ _iq freq;//!< Input: Input frequency (pu)
|
|
_iq vout;//!< Output: Output voltage (pu)
|
|
_iq FL;//!< Parameter: Low frequency (pu)
|
|
_iq FH;//!< Parameter: High frequency at rated voltage (pu)
|
|
_iq Fmax; //!<Parameter: Maximum frequency (pu)
|
|
_iq Vmax;//!< Parameter: Rated voltage (pu)
|
|
_iq Vmin;//!< Parameter: Voltage at low frequency range (pu)
|
|
void (*calc)(struct SVhzProf*);//!< Pointer to calculation function
|
|
};
|
|
|
|
typedef struct SVhzProf TVhzProf;
|
|
|
|
//! Èíèöèàëèçàòîð ïî-óìîë÷àíèþ
|
|
#define VHZPROF_DEFAULTS { 0,0, \
|
|
0,0,0,0,0, \
|
|
vhz_prof_calc }
|
|
|
|
//! \memberof TVhzProf
|
|
void vhz_prof_calc(TVhzProf *v);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/*@}*/
|