- int i;
- for (i = 0; altitude_data[i][0] != -1; i++)
- _altitude_table->addEntry(altitude_data[i][0], altitude_data[i][1]);
-
- for ( i = 0; i < node->nChildren(); ++i ) {
- SGPropertyNode *child = node->getChild(i);
- string cname = child->getName();
- string cval = child->getStringValue();
- if ( cname == "name" ) {
- name = cval;
- } else if ( cname == "number" ) {
- num = child->getIntValue();
- } else if ( cname == "static-port" ) {
- static_port = cval;
- } else {
- SG_LOG( SG_INSTR, SG_WARN, "Error in altimeter config logic" );
- if ( name.length() ) {
- SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
- }
- }
- }
+ // FIXME: change default to false once all aircraft which use
+ // altimiter as an encoder are converted to request this explicitly
+ _encodeModeC = node->getBoolValue("encode-mode-c", true);
+ _encodeModeS = node->getBoolValue("encode-mode-s", false);
+
+ _tiedProperties.setRoot( _rootNode );
+}
+
+Altimeter::~Altimeter ()
+{}
+
+double
+Altimeter::getSettingInHg() const
+{
+ return _settingInHg;