- Timestamp:
- 03/19/08 15:33:43 (17 years ago)
- Location:
- tests
- Files:
-
- 2 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
tests/CMakeLists.txt
r35 r42 26 26 add_executable (pmsm_unkQpf pmsm_unkQpf.cpp) 27 27 28 28 29 # Link the executable to the Hello library. 29 30 target_link_libraries (test0 ${BdmLibs}) … … 37 38 target_link_libraries (pmsm_unkQ ${BdmLibs}) 38 39 target_link_libraries (pmsm_unkQpf ${BdmLibs}) 40 41 # PMSM stuff 42 include_directories (${BDM_SOURCE_DIR}/simulator_zdenek) 43 link_directories (${BDM_BINARY_DIR}/simulator_zdenek) 44 add_executable (pmsm_sim pmsm_sim.cpp) 45 target_link_libraries (pmsm_sim ${BdmLibs} pmsmsim) -
tests/pmsm.h
r33 r42 33 33 xk ( 2 ) = omm + kp*p*p * Ypm/J*dt* ( ibm * cos ( thm )-iam * sin ( thm ) ) - p/J*dt*Mz; 34 34 //th 35 xk ( 3 ) = rem(thm + omm*dt, 2*pi);35 xk ( 3 ) = rem(thm + omm*dt,pi); //or 2*pi? 36 36 return xk; 37 37 }