#include "cockpit.hxx"
#include "panel.hxx"
#include "hud.hxx"
+#include "steam.hxx"
extern fgAPDataPtr APDataGlobal;
// Rotates with airspeed.
inst->addLayer(1, createTexture("Textures/Panel/long-needle.rgb"));
inst->addTransformation(1, FGInstrumentLayer::ROTATION,
- FGBFI::getAirspeed,
+ FGSteam::get_ASI_kias,
30.0, 220.0, 36.0 / 20.0, -54.0);
return inst;
}
// moves with altitude
inst->addLayer(1, createTexture("Textures/Panel/long-needle.rgb"));
inst->addTransformation(1, FGInstrumentLayer::ROTATION,
- FGBFI::getAltitude,
+ FGSteam::get_ALT_ft,
0.0, 100000.0, 360.0 / 1000.0, 0.0);
// Layer 2: thousands needle (short)
// moves with altitude
inst->addLayer(2, createTexture("Textures/Panel/short-needle.rgb"));
inst->addTransformation(2, FGInstrumentLayer::ROTATION,
- FGBFI::getAltitude,
+ FGSteam::get_ALT_ft,
0.0, 100000.0, 360.0 / 10000.0, 0.0);
// Layer 3: ten thousands bug (outside)
// moves with altitude
inst->addLayer(3, createTexture("Textures/Panel/bug.rgb"));
inst->addTransformation(3, FGInstrumentLayer::ROTATION,
- FGBFI::getAltitude,
+ FGSteam::get_ALT_ft,
0.0, 100000.0, 360.0 / 100000.0, 0.0);
return inst;
// moves with roll
inst->addLayer(1, createTexture("Textures/Panel/turn.rgb"));
inst->addTransformation(1, FGInstrumentLayer::ROTATION,
- FGBFI::getRoll,
+ FGSteam::get_TC_radps,
-30.0, 30.0, 1.0, 0.0);
// Layer 2: little ball
// moves with slip/skid
inst->addLayer(2, createTexture("Textures/Panel/ball.rgb"));
inst->addTransformation(2, FGInstrumentLayer::ROTATION,
- FGBFI::getSideSlip,
+ FGSteam::get_TC_rad,
-0.1, 0.1, 450.0, 0.0);
return inst;
// rotates with heading
inst->addLayer(0, createTexture("Textures/Panel/gyro-bg.rgb"));
inst->addTransformation(0, FGInstrumentLayer::ROTATION,
- FGBFI::getHeading,
+ FGSteam::get_DG_deg,
-360.0, 360.0, -1.0, 0.0);
// Layer 1: heading bug
// rotates with heading and AP heading
inst->addLayer(1, createTexture("Textures/Panel/bug.rgb"));
inst->addTransformation(1, FGInstrumentLayer::ROTATION,
- FGBFI::getHeading,
+ FGSteam::get_DG_deg,
-360.0, 360.0, -1.0, 0.0);
inst->addTransformation(1, FGInstrumentLayer::ROTATION,
FGBFI::getAPHeading,
// moves with vertical velocity
inst->addLayer(1, createTexture("Textures/Panel/long-needle.rgb"));
inst->addTransformation(1, FGInstrumentLayer::ROTATION,
- FGBFI::getVerticalSpeed,
+ FGSteam::get_VSI_fps,
-2000.0, 2000.0, 42.0/500.0, 270.0);
return inst;
/**
- * Construct a NAV1 gauge (dummy for now).
+ * Construct a NAV1 gauge (hardwired).
*/
static FGPanelInstrument *
createNAV1 (int x, int y)
// Layer 0: background
inst->addLayer(0, createTexture("Textures/Panel/gyro-bg.rgb"));
+ inst->addTransformation(0, FGInstrumentLayer::ROTATION,
+ FGSteam::get_HackOBS1_deg,
+ -360.0, 360.0, -1.0, 0.0);
+ // Layer 1: long needle
+ inst->addLayer(1, createTexture("Textures/Panel/long-needle.rgb"));
+ inst->addTransformation(1, FGInstrumentLayer::XSHIFT,
+ FGSteam::get_HackVOR1_deg,
+ -10.0, 10.0, SIX_W / 40.0, 0.0);
+ inst->addTransformation(1, FGInstrumentLayer::YSHIFT,
+ -SIX_W / 4.4 );
+ inst->addLayer(2, createTexture("Textures/Panel/long-needle.rgb"));
+ inst->addTransformation(2, FGInstrumentLayer::YSHIFT,
+ FGSteam::get_HackGS_deg,
+ -1.0, 1.0, SIX_W / 5.0, 0.0);
+ inst->addTransformation(2, FGInstrumentLayer::XSHIFT,
+ -SIX_W / 4.4 );
+ inst->addTransformation(2, FGInstrumentLayer::ROTATION,
+ 90 );
return inst;
}
/**
- * Construct a NAV2 gauge (dummy for now).
+ * Construct a NAV2 gauge (hardwired).
*/
static FGPanelInstrument *
createNAV2 (int x, int y)
// Layer 0: background
inst->addLayer(0, createTexture("Textures/Panel/gyro-bg.rgb"));
+ inst->addTransformation(0, FGInstrumentLayer::ROTATION,
+ FGSteam::get_HackOBS2_deg,
+ -360.0, 360.0, -1.0, 0.0);
+ inst->addLayer(1, createTexture("Textures/Panel/long-needle.rgb"));
+ inst->addTransformation(1, FGInstrumentLayer::XSHIFT,
+ FGSteam::get_HackVOR2_deg,
+ -10.0, 10.0, SIX_W / 40.0, 0.0);
+ inst->addTransformation(1, FGInstrumentLayer::YSHIFT,
+ -SIX_W / 4.4 );
return inst;
}
/**
- * Construct an ADF gauge (dummy for now).
+ * Construct an ADF gauge (hardwired).
*/
static FGPanelInstrument *
createADF (int x, int y)
// Layer 0: background
inst->addLayer(0, createTexture("Textures/Panel/gyro-bg.rgb"));
+ inst->addLayer(1, createTexture("Textures/Panel/long-needle.rgb"));
+ inst->addTransformation(1, FGInstrumentLayer::ROTATION,
+ FGSteam::get_HackADF_deg,
+ -720.0, 720.0, 1.0, 0.0);
return inst;
}