Advertisement
Guest User

Untitled

a guest
Dec 19th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. loadrt hostmot2
  2. #loadrt hm2_pci config="sserial_port_0=00000000"
  3. loadrt hm2_eth board_ip="192.168.1.121" board_mac="00:60:1b:10:00:08"
  4. loadrt threads name1=thread1 period1=1000000
  5. loadrt bldc cfg=h
  6.  
  7. addf hm2_7i80.0.read thread1
  8. addf bldc.0 thread1
  9. addf hm2_7i80.0.write thread1
  10. addf hm2_7i80.0.pet_watchdog thread1
  11.  
  12. net h1 hm2_7i80.0.7i76.0.0.input-00 bldc.0.hall1
  13. net h2 hm2_7i80.0.7i76.0.0.input-01 bldc.0.hall2
  14. net h3 hm2_7i80.0.7i76.0.0.input-02 bldc.0.hall3
  15.  
  16. net ang bldc.0.rotor-angle hm2_7i80.0.8i20.0.1.angle
  17. setp bldc.0.pattern 34
  18. start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement