Changeset 42

Show
Ignore:
Timestamp:
03/19/08 15:33:43 (16 years ago)
Author:
smidl
Message:

testy se simulatorem

Location:
tests
Files:
2 added
2 modified

Legend:

Unmodified
Added
Removed
  • tests/CMakeLists.txt

    r35 r42  
    2626add_executable (pmsm_unkQpf pmsm_unkQpf.cpp) 
    2727 
     28 
    2829# Link the executable to the Hello library. 
    2930target_link_libraries (test0 ${BdmLibs}) 
     
    3738target_link_libraries (pmsm_unkQ ${BdmLibs}) 
    3839target_link_libraries (pmsm_unkQpf ${BdmLibs}) 
     40 
     41# PMSM stuff 
     42include_directories (${BDM_SOURCE_DIR}/simulator_zdenek) 
     43link_directories (${BDM_BINARY_DIR}/simulator_zdenek) 
     44add_executable (pmsm_sim pmsm_sim.cpp) 
     45target_link_libraries (pmsm_sim ${BdmLibs} pmsmsim) 
  • tests/pmsm.h

    r33 r42  
    3333                xk ( 2 ) = omm + kp*p*p * Ypm/J*dt* ( ibm * cos ( thm )-iam * sin ( thm ) ) - p/J*dt*Mz; 
    3434                //th 
    35                 xk ( 3 ) = rem(thm + omm*dt,2*pi); 
     35                xk ( 3 ) = rem(thm + omm*dt,pi); //or 2*pi? 
    3636                return xk; 
    3737        }