char property_name[80];
snprintf(property_name, 80, "propulsion/c-thrust[%u]", EngineNum);
PropertyManager->Untie( property_name );
-
+
Debug(1);
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-string FGPropeller::GetThrusterLabels(int id)
+string FGPropeller::GetThrusterLabels(int id, string delimeter)
{
std::ostringstream buf;
- buf << Name << "_Torque[" << id << "], "
- << Name << "_PFactor_Pitch[" << id << "], "
- << Name << "_PFactor_Yaw[" << id << "], "
- << Name << "_Thrust[" << id << "], ";
+ buf << Name << "_Torque[" << id << "]" << delimeter
+ << Name << "_PFactor_Pitch[" << id << "]" << delimeter
+ << Name << "_PFactor_Yaw[" << id << "]" << delimeter
+ << Name << "_Thrust[" << id << "]" << delimeter;
if (IsVPitch())
- buf << Name << "_Pitch[" << id << "], ";
+ buf << Name << "_Pitch[" << id << "]" << delimeter;
buf << Name << "_RPM[" << id << "]";
return buf.str();
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-string FGPropeller::GetThrusterValues(int id)
+string FGPropeller::GetThrusterValues(int id, string delimeter)
{
std::ostringstream buf;
FGColumnVector3 vPFactor = GetPFactor();
- buf << vTorque(eX) << ", "
- << vPFactor(ePitch) << ", "
- << vPFactor(eYaw) << ", "
- << Thrust << ", ";
+ buf << vTorque(eX) << delimeter
+ << vPFactor(ePitch) << delimeter
+ << vPFactor(eYaw) << delimeter
+ << Thrust << delimeter;
if (IsVPitch())
- buf << Pitch << ", ";
+ buf << Pitch << delimeter;
buf << RPM;
return buf.str();