5: 2010-04-12 (月) 18:00:01 sho | 現: 2010-10-06 (水) 12:11:10 eid7gud | ||
---|---|---|---|
Line 164: | Line 164: | ||
#include <fd.h> | #include <fd.h> | ||
#define KEY_QUIT { if(fd_rx_buff()) fd_SoftReset();} | #define KEY_QUIT { if(fd_rx_buff()) fd_SoftReset();} | ||
+ | |||
void main (void) { | void main (void) { | ||
uint16_t PresentLoad; | uint16_t PresentLoad; | ||
uint16_t GoalPosition = 300; | uint16_t GoalPosition = 300; | ||
+ | |||
fd_Init (0, BT_CONSOLE, FD_BEEP_MMI | FD_BEEP_PACKETERR | FD_BEEP_LOWVOLTAGE | FD_BEEP_BOOTUP, 7.4); | fd_Init (0, BT_CONSOLE, FD_BEEP_MMI | FD_BEEP_PACKETERR | FD_BEEP_LOWVOLTAGE | FD_BEEP_BOOTUP, 7.4); | ||
fd_DXWriteWordData (1, 34, 200); | fd_DXWriteWordData (1, 34, 200); | ||
fd_DXWriteWordData (1, 30, 300); | fd_DXWriteWordData (1, 30, 300); | ||
+ | |||
while (1) { | while (1) { | ||
fd_DXReadWordData (1, 40, &PresentLoad); | fd_DXReadWordData (1, 40, &PresentLoad); | ||
Line 191: | Line 191: | ||
#ref(RobotHand_p15.png, 100%) | #ref(RobotHand_p15.png, 100%) | ||
- | #html(<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/G6gLuX79LIo&hl=ja_JP&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/G6gLuX79LIo&hl=ja_JP&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>) | + | #html(<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/F8ZTZNc_tpk?fs=1&hl=ja_JP&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/F8ZTZNc_tpk?fs=1&hl=ja_JP&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>) |
[[次のチャプターへ>FDIII-HC Starter Kit Guide Chapter5.4]]~ | [[次のチャプターへ>FDIII-HC Starter Kit Guide Chapter5.4]]~ | ||
[[FDIII-HC Starter Kit Guide]]に戻る | [[FDIII-HC Starter Kit Guide]]に戻る |