Changeset 1437 for applications

Show
Ignore:
Timestamp:
03/14/12 23:39:16 (12 years ago)
Author:
smidl
Message:

atan2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/pmsm/simulator_zdenek/ekf_example/simulmpf.cpp

    r1381 r1437  
    227227                mpf_bayes(Isx,Isy,Usx,Usy); 
    228228                mpf_mean(&Esinth,&Ecosth,&mpf_estim[0]); 
    229                 mpf_estim[1]=atan(Esinth/Ecosth); 
     229                mpf_estim[1]=atan2(Esinth,Ecosth); 
    230230 
    231231                // vystup z EKF zaveden do regulatoru