Replies: 6 comments 19 replies
-
Typically any autopilot implementation will export a number of properties, e.g. jsbsim/aircraft/c172x/c172ap.xml Lines 27 to 36 in 5ac73c2 So you would then use the FGPropertyManager* pm = fdm->GetPropertyManager();
FGPropertyNode* node = pm->GetNode("/my/property/name");
while (fdm->Run()) {
x = node->getDoubleValue();
} |
Beta Was this translation helpful? Give feedback.
-
No, you would use the PropertyManager to write a value to FGPropertyManager* pm = fdm->GetPropertyManager();
FGPropertyNode* node = pm->GetNode("ap/altitude_setpoint");
// Set the altitude set-point to 2000ft
node->setDoubleValue(2000); |
Beta Was this translation helpful? Give feedback.
-
What doesn't work? What are you expecting to happen, and what do you see happening? |
Beta Was this translation helpful? Give feedback.
-
@cxr001 good catch! |
Beta Was this translation helpful? Give feedback.
-
Hmm, why are there two auto-pilot roll commands for roll control? Or was there some sort of renaming which was only done in one location and not the other? jsbsim/aircraft/c172x/c172x.xml Lines 381 to 390 in 98535e8 Looking at the autopilot file and searching through it I couldn't find |
Beta Was this translation helpful? Give feedback.
-
@cxr001 I've pushed a commit to fix the autopilot aileron command name in C172x - ae318de |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't find a method to set roll pitch yaw command in c++, is that I need to write interface in FCS? How to use the ap xml code in c++?
Beta Was this translation helpful? Give feedback.
All reactions