I've built my Ardustation and my Ardupilot and after a couple of tests noted that the Ardustation was not displaying the values sent from Ardupilot.
I've tested the telemetry with my PC using the Groundstation PC based and it works nicely.
So, to debug, I've added the following code to my Ardustation menu and found a strange behaviour:
case 5:
lcd.clear();
lcd.print("String: ");
while(Serial.available() > 0)
{
lcd.print(Serial.read());
}
break;
I've added a 5th menu option just to display what was coming from the serial port, and this is the result when I send the string +++ASP:0,THH:85,RLL:26,PCH:-31,STT:2,***
Also if I send a single character (anyone), the station displays 255 or 254.
Does anyone knows what should be going on with Ardustation? (I"ve set baudrate to 38K, 19K, etc, and my xbees are configured as specified).
The strange part is that telemetry is working perfectly with the PC Groundstation.
Thank you,
Leonardo
Replies
I needed to set the modem for the speed of the GPS (as I was doing before), so the xBee should be set to 57600 in my case (EM406), and the Ardustation serial initialization should be set for the double of xBee baud rate (115200) . Don't know why, but this way worked perfectly and the Ardustation is now displaying data.
Cheers,
Leonardo
Also carefully but firmly press the ATMega into it's socket, the serial comms pins are in one corner and this may be floating a bit.
Thanks,
Leonardo