Here is the full RX (unit B) code. The TX unit isn't in Arduino IDE code so I'm not going to bother to post it, plus it's really long.
#include <TextFinder.h>
#include "PCD8544.h"
TextFinder finder(Serial);
const int NUMBER_OF_FIELDS = 24; // how many comma-separated fields we expect
int fieldIndex = 0; // the current field being received
float values[NUMBER_OF_FIELDS]; // array holding values for all the fields
// pin 7 - Serial clock out (SCLK)
// pin 6 - Serial data out (DIN)
// pin 5 - Data/Command select (D/C)
// pin 4 - LCD chip select (CS)
// pin 3 - LCD reset (RST)
PCD8544 nokia = PCD8544(7, 6, 5, 4, 3);
int batPix = 0; //Pixel for battery graphics
int craftHeading = 0;
int alarmHeading = 0;
int craftAlt = 0;
int alarmAlt = 0;
float craftBattery = 0;
float alarmBattery = 0;
void setup()
{
Serial.begin(111111); // Initialize serial port
nokia.init();
nokia.setContrast(45);
Serial.print("s\r");
nokia.setCursor(0, 0);
nokia.print("Connecting to Craft.......");
nokia.display();
}
void loop()
{
nokia.clear();
for(fieldIndex = 0; fieldIndex < 24; fieldIndex ++)
{
values[fieldIndex] = finder.getFloat(); // get a numeric value
}
//Serial.print( fieldIndex);
//Serial.println(" fields received:");
craftHeading = values[3]; //Serial.println(" Heading");
craftAlt = values[4]; //Serial.println(" Altitude");
craftBattery = values[22]; //Serial.println(" Volts");
nokia.setCursor(0, 0);
nokia.println("CRAFT STTNG");
nokia.setCursor(6, 9);
nokia.print(craftHeading);
nokia.setCursor(33, 9);
nokia.print("HDG");
nokia.setCursor(61, 9);
nokia.print(alarmHeading);
nokia.setCursor(6, 18);
nokia.print(craftAlt);
nokia.setCursor(33, 18);
nokia.print("ALT");
nokia.setCursor(61, 18);
nokia.print(alarmAlt);
nokia.setCursor(0, 27);
nokia.print(craftBattery);
nokia.setCursor(33, 27);
nokia.print("BAT");
nokia.setCursor(58, 27);
nokia.print(alarmBattery);
nokia.setCursor(0, 38);
nokia.print("E");
nokia.setCursor(78, 38);
nokia.print("F");
nokia.drawline(8, 36, 69, 36, BLACK);
nokia.drawline(8, 47, 69, 47, BLACK);
nokia.drawline(69, 36, 69, 47, BLACK);
nokia.drawline(8, 36, 8, 47, BLACK);
nokia.drawline(70, 38, 72, 38, BLACK);
nokia.drawline(70, 45, 72, 45, BLACK);
nokia.drawline(73, 38, 73, 45, BLACK);
nokia.fillrect(9, 37, batPix, 10, 1);
nokia.display();
fieldIndex = 0; // ready to start over
}