Raharja Agie / Mbed 2 deprecated Controller

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers 2gcs.h Source File

2gcs.h

00001 #define FCC_DATA_SIZE 52  //39 Direct from IMU
00002 
00003 void toGCS(){
00004   
00005     
00006     fcc.US++;// = 11;
00007     if(fcc.US>1000) fcc.US = 0;
00008 
00009     char *FtoG = (char *)&fcc, i;   //&IMU
00010 
00011      
00012     radio.putc(0xFF);
00013     radio.putc(0xFF);
00014     for (i=0;i<FCC_DATA_SIZE;i++)  radio.putc(*FtoG++);
00015     radio.putc(0x0D);
00016     
00017     myled = !myled;
00018 }