hello I need help please it is urgent
I have doubt about the programing in robotC
I have a vex cortex and I want communication between vex cortex PC
I have two xbee 51 pro and I can’t do communication between they
this is the program that I used
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#pragma config(UART_Usage, UART2, uartXBeeZigBee, baudRate9600, IOPins, None, None)
//!!Code automatically generated by ‘ROBOTC’ configuration wizard !!//
task main()
{
while (1==1)
{
sendChar(uartTwo,‘1’);
char p=getChar(uartTwo);
if (p==1)
{
sendChar(uartTwo,‘2’);
}
if (p==49)
{
sendChar(uartTwo,‘3’);
}
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
what is bad in my program? help me please. it’s a project of school