Yuichi Kawamura
/
evorobo
include_file.h@0:1cc4593f62e2, 2011-12-10 (annotated)
- Committer:
- kagyroy
- Date:
- Sat Dec 10 10:58:29 2011 +0000
- Revision:
- 0:1cc4593f62e2
- Child:
- 1:0a67babd7786
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kagyroy | 0:1cc4593f62e2 | 1 | #include "mbed.h" |
kagyroy | 0:1cc4593f62e2 | 2 | #include "QEI.h" |
kagyroy | 0:1cc4593f62e2 | 3 | |
kagyroy | 0:1cc4593f62e2 | 4 | //Serial device( USBTX, USBRX ); |
kagyroy | 0:1cc4593f62e2 | 5 | Serial device( p28, p27 ); |
kagyroy | 0:1cc4593f62e2 | 6 | QEI enco_right( p5, p6, NC, 6 , QEI :: X4_ENCODING ); |
kagyroy | 0:1cc4593f62e2 | 7 | QEI enco_left( p17, p18, NC, 6 , QEI :: X4_ENCODING ); |
kagyroy | 0:1cc4593f62e2 | 8 | PwmOut right_pwm( p22 ); |
kagyroy | 0:1cc4593f62e2 | 9 | DigitalOut right_P( p7 ); |
kagyroy | 0:1cc4593f62e2 | 10 | DigitalOut right_N( p8 ); |
kagyroy | 0:1cc4593f62e2 | 11 | PwmOut left_pwm( p21 ); |
kagyroy | 0:1cc4593f62e2 | 12 | DigitalOut left_P( p15 ); |
kagyroy | 0:1cc4593f62e2 | 13 | DigitalOut left_N( p16 ); |
kagyroy | 0:1cc4593f62e2 | 14 | DigitalOut enable( p19 ); |
kagyroy | 0:1cc4593f62e2 | 15 | |
kagyroy | 0:1cc4593f62e2 | 16 | void move_f( float ); |
kagyroy | 0:1cc4593f62e2 | 17 | void move_b( float ); |
kagyroy | 0:1cc4593f62e2 | 18 | void turn_r( float ); |
kagyroy | 0:1cc4593f62e2 | 19 | void turn_l( float ); |
kagyroy | 0:1cc4593f62e2 | 20 | void stop( void ); |