This seems to work:
bodyflap
I think the real range is 22.5+11.7=34.2.
"The body flap scale reads body flap positions from zero to 100 percent of software-allowed travel. Zero percent corresponds to full up (-11.7°) and 100 percent corresponds to full down (+22.5°). The small pointer at 34 percent is fixed and shows the trail position."
So when does the body flap go from 0% up to 34% trail?
ATMPRESSURE = GetAtmPressure();
if (ATMPRESSURE >.1)//in atmosphere so use control surfaces
{
//EnableRCS(true);
SetADCtrlMode(7);//set control surface enable
(SetAttitudeMode(0));//no rcs
}
else {
//in space
SetADCtrlMode(0);//disable control surfaces
(SetAttitudeMode(1));
(SetAttitudeMode(2));
}
bodyflap
//*******Body flap
static UINT bfGrp[1] = { GRP_Group2 };
static MGROUP_ROTATE BodyFlap(midx, bfGrp, 1,
_V(0, -2.199202, - 12.13037), _V(1,0,0), (float)(22.5*RAD));
anim_bf = CreateAnimation(0.5);
AddAnimationComponent(anim_bf, 0, 1, &BodyFlap);
CreateControlSurface2(AIRCTRL_ELEVATORTRIM, 5, 1.75, _V(0, 0, -17), AIRCTRL_AXIS_XPOS, anim_bf);
I think the real range is 22.5+11.7=34.2.
"The body flap scale reads body flap positions from zero to 100 percent of software-allowed travel. Zero percent corresponds to full up (-11.7°) and 100 percent corresponds to full down (+22.5°). The small pointer at 34 percent is fixed and shows the trail position."
So when does the body flap go from 0% up to 34% trail?