Hi, I am trying to interface the vex transmitter with my pc through the PIC microcontroller for use in my c# app. I am trying to control my app with the vex transmitter data. I was wondering if anyone knew how to retrieve the transmitter data for use in my application.
thanks, wasabifan
If you are using easyC just print the transmitter values to the screen and your c# app just needs to read the data and look for the return before reading the 6 bytes in.
while(1==1){
ch1 = GetRxInput ( 1 , 1 ) ;
ch2 = GetRxInput ( 1 , 2 ) ;
etc…
PrintToScreen("%d %d %d %d %d %d\n"ch1,ch2,ch3,ch4,ch5,ch6);
Wait(20); //slow down the loop
}
I tried doing that, but the data comes back as hexadecimal. I would need the data in a normal format so that I can write my code to accept it.
I’ll try it and let you know but I’m 95% sure this should work.