62 lines
1.6 KiB
C
62 lines
1.6 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 v_rotor_observer.h
|
|
\brief Íàáëþäàòåëü ðîòîðà ÀÄ (ñì. TRotorObserver)
|
|
\author ÎÎÎ ÍÏÔ Âåêòîð
|
|
\version v 1.0 28/06/2016
|
|
|
|
*/
|
|
|
|
|
|
/** \addtogroup TRotorObserver */
|
|
/*@{*/
|
|
|
|
|
|
#ifndef ROTOR_OBSERVER_H
|
|
#define ROTOR_OBSERVER_H
|
|
|
|
struct SRotorObserver{
|
|
_iq Ks;
|
|
_iq id;
|
|
_iq iq;
|
|
_iq psi_d;
|
|
_iq psi_q;
|
|
_iq theta_psi_elec; //!< Óãîë ïîòîêîñöåïëåíèÿ ðîòîðà îòíîñèòåëüíî ÄÏÐ
|
|
_iq Tr; //!< Ïîñòîÿííàÿ âðåìåíè ÀÄ
|
|
_iq FluxCurrentRatio; //!< Ñîîòíîøåíèå òîêà âîçáóæäåíèÿ îñè x ê ìîìåíòîîáðàçóþùåìó òîêó îñè y
|
|
_iq FluxCurrentMin; //!< Ìèíèìóì òîêà âîçáóæäåíèÿ
|
|
void (*calc)(struct SRotorObserver*);
|
|
void (*slow_calc)(struct SRotorObserver*);
|
|
};
|
|
|
|
typedef struct SRotorObserver TRotorObserver;
|
|
|
|
#define ROTOR_OBSERVER_DEFAULTS {\
|
|
0,0,\
|
|
0,0,0,0,\
|
|
0,0,0,\
|
|
RotorObserver_calc,\
|
|
RotorObserver_slow_calc,\
|
|
}
|
|
|
|
void RotorObserver_calc(TRotorObserver *);
|
|
void RotorObserver_slow_calc(TRotorObserver *p);
|
|
|
|
#endif
|
|
|
|
|
|
/*@}*/
|