RasPi/CopterController/DSM2tester.cpp

15 lines
383 B
C++
Raw Normal View History

2015-03-10 20:02:35 -06:00
#include <iostream>
#include "DSM2.h"
using namespace std;
2015-03-10 20:02:35 -06:00
int main(int argc, char const *argv[])
{
2015-03-10 20:02:35 -06:00
DSM2 dsm;
while( true )
{
2015-03-10 20:02:35 -06:00
dsm.update();
cout << "THRO " << dsm.values[0] << "\tAILE " << dsm.values[1] << "\tELEV " << dsm.values[2] << "\tRUDD " << dsm.values[3] << "\tGEAR " << dsm.values[4] << "\tAUX1 " << dsm.values[5] << endl;
}
2015-03-10 20:02:35 -06:00
return 0;
}