From f7d775ff1eb8f379a6fef9250c101c7b4c963702 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 20 Jun 2000 02:29:01 +0000 Subject: [PATCH] Updates from David Megginson to add DG control. --- src/Cockpit/sp_panel.cxx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Cockpit/sp_panel.cxx b/src/Cockpit/sp_panel.cxx index 356bdaa22..58adc0fc4 100644 --- a/src/Cockpit/sp_panel.cxx +++ b/src/Cockpit/sp_panel.cxx @@ -538,28 +538,28 @@ InstrumentData instruments[] = 1, SIX_W/2 - SIX_W/5, -SIX_W/2, SIX_W/10, SIX_W/5}, {new FGAdjustAction(FGBFI::getAPHeadingMag, FGBFI::setAPHeadingMag, 5.0, -360.0, 360.0, true), - 1, SIX_W/2 - SIX_W/10, -SIX_W/2, SIX_W/10, SIX_W/5} -// {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err, -// -1.0, -360.0, 360.0, true), -// 0, -SIX_W/2, -SIX_W/2, SIX_W/10, SIX_W/5} -// {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err, -// 1.0, -360.0, 360.0, true), -// 0, -SIX_W/2+SIX_W/10, -SIX_W/2, SIX_W/10, SIX_W/5} -// {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err, -// -5.0, -360.0, 360.0, true), -// 1, -SIX_W/2, -SIX_W/2, SIX_W/10, SIX_W/5} -// {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err, -// 5.0, -360.0, 360.0, true), -// 1, -SIX_W/2+SIX_W/10, -SIX_W/2, SIX_W/10, SIX_W/5} + 1, SIX_W/2 - SIX_W/10, -SIX_W/2, SIX_W/10, SIX_W/5}, + {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err, + -1.0, -360.0, 360.0, true), + 0, -SIX_W/2, -SIX_W/2, SIX_W/10, SIX_W/5}, + {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err, + 1.0, -360.0, 360.0, true), + 0, -SIX_W/2+SIX_W/10, -SIX_W/2, SIX_W/10, SIX_W/5}, + {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err, + -5.0, -360.0, 360.0, true), + 1, -SIX_W/2, -SIX_W/2, SIX_W/10, SIX_W/5}, + {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err, + 5.0, -360.0, 360.0, true), + 1, -SIX_W/2+SIX_W/10, -SIX_W/2, SIX_W/10, SIX_W/5} }, { {new MyTexturedLayer("compassBG", -1, -1), { {TransData::Rotation, FGSteam::get_DG_deg, -720.0, 720.0, -1.0, 0.0} }}, {new MyTexturedLayer("bug", int(SIX_W*(4.0/64.0)), int(SIX_W*(4.0/64.0))), { - {TransData::Rotation, FGSteam::get_DG_deg, -720.0, 720.0, -1.0, 0.0}, - {TransData::Rotation, FGBFI::getAPHeadingMag, -720.0, 720.0, -1.0, 0.0}, - {TransData::YShift, 0, 0.0, 0.0, 0.0, (SIX_W/2.0)-4} + {TransData::Rotation, FGBFI::getAPHeadingMag, -720.0, 720.0, 1.0, 0.0}, + {TransData::Rotation, FGSteam::get_DG_deg, -720.0, 720.0, 1.0, 0.0}, + {TransData::YShift, 0, 0.0, 0.0, 0.0, -(SIX_W/2.0)+4} }}, {new MyTexturedLayer("compassCenter", int(SIX_W*0.625), int(SIX_W*0.625))}, {new MyTexturedLayer("headingKnob",