#include <GL/glut.h>
#include <stdlib.h>
-#include <stdio.h> //char related functions
+#include <stdio.h> // char related functions
+#include <string.h> // strcmp()
#include STL_STRING
#include STL_FSTREAM
load_fn = get_aileronval;
} else if (loadfn=="elevatorval") {
load_fn = get_elevatorval;
+ } else if (loadfn=="elevatortrimval") {
+ load_fn = get_elev_trimval;
} else if (loadfn=="rudderval") {
load_fn = get_rudderval;
} else if (loadfn=="throttleval") {
int readInstrument(const SGPropertyNode * node)
{
+ static const SGPropertyNode *startup_units_node
+ = fgGetNode("/sim/startup/units");
instr_item *HIptr;
- if ( fgGetString("/sim/startup/units") == "feet" ) {
+ if ( !strcmp(startup_units_node->getStringValue(), "feet") ) {
strcpy(units, " ft");
} else {
strcpy(units, " m");