rollGainD.addSignalListener(motionController.getRollGainD());
// Setup a graph to display the pitch angle and the elevator output
String kLabelPitch = "Pitch angle";
String kLabelElevator ="Elevator signal";
graphPitch = new Graph(this, 250, 170, 150, 120);
graphPitch.addGraph(kLabelPitch, Colors.BLACK);
graphPitch.getSignal(kLabelPitch).setBandwidth(45, -45);
graphPitch.addGraph(kLabelElevator, Colors.RED);
// Connect the pitch graph to the flight data
flightData.getPitchAngle().addSignalListener(graphPitch.getSignal(kLabelPitch));
flightData.getElevatorOutput().addSignalListener(graphPitch.getSignal(kLabelElevator));
// Setup a graph to display the roll angle and the aileron output
String kLabelRoll = "Roll angle";
String kLabelAileron ="Aileron signal";
graphRoll = new Graph(this, 250, 300, 150, 120);
graphRoll.addGraph(kLabelRoll, Colors.BLACK);
graphRoll.getSignal(kLabelRoll).setBandwidth(-45, 45);
graphRoll.addGraph(kLabelAileron, Colors.RED);
// Connect the roll graph to the flight data
flightData.getRollAngle().addSignalListener(graphRoll.getSignal(kLabelRoll));