Nathaniel Honka / Mbed 2 deprecated Motion-Control

Dependencies:   FiniteStateMachine HipControl Knee LinearBlend1 LocalFileSystem_Read dataComm hapticFeedback initExoVars mbed Blend_Generator Brad_poly_gait Gait_Generator MM_gait Encoders IMUdriver

Fork of Motion Control by HEL's Angels

Committer:
perr1940
Date:
Fri Nov 14 22:39:10 2014 +0000
Revision:
0:d38d627c922f
Child:
1:6f18fad9984e
this is without encoders going to test the knee steppers alone.  They work alone but not with the encoders.  Strange huh?

Who changed what in which revision?

UserRevisionLine numberNew contents of line
perr1940 0:d38d627c922f 1 /* L6482 Driver code communicated via SPI
perr1940 0:d38d627c922f 2 * file name: StepperDriver.h
perr1940 0:d38d627c922f 3 * 07/15/2014 edited by Grace
perr1940 0:d38d627c922f 4 */
perr1940 0:d38d627c922f 5
perr1940 0:d38d627c922f 6 #ifndef KNEE_H
perr1940 0:d38d627c922f 7 #define KNEE_H
perr1940 0:d38d627c922f 8
perr1940 0:d38d627c922f 9 #include "mbed.h"
perr1940 0:d38d627c922f 10 #include "StepperDriver.h"
perr1940 0:d38d627c922f 11
perr1940 0:d38d627c922f 12 class Knee
perr1940 0:d38d627c922f 13 {
perr1940 0:d38d627c922f 14 public:
perr1940 0:d38d627c922f 15 // Constructor
perr1940 0:d38d627c922f 16 Knee(PinName CSPin, PinName mosi, PinName miso, PinName sck);
perr1940 0:d38d627c922f 17
perr1940 0:d38d627c922f 18 StepperDriver stepper;
perr1940 0:d38d627c922f 19 void lock();
perr1940 0:d38d627c922f 20 void unlock();
perr1940 0:d38d627c922f 21 void init();
perr1940 0:d38d627c922f 22 int status();
perr1940 0:d38d627c922f 23 };
perr1940 0:d38d627c922f 24
perr1940 0:d38d627c922f 25 #endif
perr1940 0:d38d627c922f 26
perr1940 0:d38d627c922f 27