1
0
Fork 0

Updates from David Megginson to add DG control.

This commit is contained in:
curt 2000-06-20 02:29:01 +00:00
parent 6dd3de397a
commit f7d775ff1e

View file

@ -538,28 +538,28 @@ InstrumentData instruments[] =
1, SIX_W/2 - SIX_W/5, -SIX_W/2, SIX_W/10, SIX_W/5}, 1, SIX_W/2 - SIX_W/5, -SIX_W/2, SIX_W/10, SIX_W/5},
{new FGAdjustAction(FGBFI::getAPHeadingMag, FGBFI::setAPHeadingMag, {new FGAdjustAction(FGBFI::getAPHeadingMag, FGBFI::setAPHeadingMag,
5.0, -360.0, 360.0, true), 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, {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err,
// -1.0, -360.0, 360.0, true), -1.0, -360.0, 360.0, true),
// 0, -SIX_W/2, -SIX_W/2, SIX_W/10, SIX_W/5} 0, -SIX_W/2, -SIX_W/2, SIX_W/10, SIX_W/5},
// {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err, {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err,
// 1.0, -360.0, 360.0, true), 1.0, -360.0, 360.0, true),
// 0, -SIX_W/2+SIX_W/10, -SIX_W/2, SIX_W/10, SIX_W/5} 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, {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err,
// -5.0, -360.0, 360.0, true), -5.0, -360.0, 360.0, true),
// 1, -SIX_W/2, -SIX_W/2, SIX_W/10, SIX_W/5} 1, -SIX_W/2, -SIX_W/2, SIX_W/10, SIX_W/5},
// {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err, {new FGAdjustAction(FGSteam::get_DG_err, FGSteam::set_DG_err,
// 5.0, -360.0, 360.0, true), 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 MyTexturedLayer("compassBG", -1, -1), { {new MyTexturedLayer("compassBG", -1, -1), {
{TransData::Rotation, FGSteam::get_DG_deg, -720.0, 720.0, -1.0, 0.0} {TransData::Rotation, FGSteam::get_DG_deg, -720.0, 720.0, -1.0, 0.0}
}}, }},
{new MyTexturedLayer("bug", {new MyTexturedLayer("bug",
int(SIX_W*(4.0/64.0)), int(SIX_W*(4.0/64.0))), { 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::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} {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("compassCenter", int(SIX_W*0.625), int(SIX_W*0.625))},
{new MyTexturedLayer("headingKnob", {new MyTexturedLayer("headingKnob",