62 lines
1.6 KiB
C
62 lines
1.6 KiB
C
|
/*!
|
|||
|
Copyright 2017 <EFBFBD><EFBFBD> "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" <EFBFBD> <EFBFBD><EFBFBD><EFBFBD> "<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|||
|
|
|||
|
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 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> (<EFBFBD><EFBFBD>. TRotorObserver)
|
|||
|
\author <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
\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; //!< <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>
|
|||
|
_iq Tr; //!< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
|||
|
_iq FluxCurrentRatio; //!< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> x <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> y
|
|||
|
_iq FluxCurrentMin; //!< <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
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
|
|||
|
|
|||
|
|
|||
|
/*@}*/
|