RasPi/CopterController/DSM2.h

18 lines
216 B
C
Raw Normal View History

#ifndef DSM2_H
#define DSM2_H
2015-03-10 20:02:35 -06:00
class DSM2
{
public:
2015-03-10 20:02:35 -06:00
DSM2( int mode = 1024 );
2015-03-10 20:02:35 -06:00
void update();
int values[7];
private:
2015-03-10 20:02:35 -06:00
int fd;
int valueMask;
2015-03-10 20:02:35 -06:00
char thisByte, lastByte;
int data[7];
};
#endif