How do I connect the msfs variable for the flaps position? The local variable name is FLAP_POS and has a range of 0.263-99.691. I want to map this output to a servo. So far everything I have tried gives me the error "Error stopping test mode: Input string not in a correct format." Right now I have the preset code set to "(L:FLAP_POS, 1)".
#Servo Flaps Position
1 messages · Page 1 of 1 (latest)
- Please specify which vendor and aircraft this is for?
- The error message is from where?
- Where did you get that preset code? It does not comply with proper RPN syntax. Units of 1 is not valid
- The aircraft is a T6A by BlackBird Simulations. 2. The error message is from the Mobiflight Console. 3. I do not remember where I found it, but it has been working for my LEDs.
For my lamp test switch which turns on all the LEDs in the cockpit I used the code: "(L:LAMP_TEST, 1)". This has been working without issue.
sorry to say, but that code is not correct. Units of 1 is not a valid unit.
(L:LAMP_TEST,Bool) is probably the correct code, where the Lvar can take values of either 0 or 1.
A servo cannot be set with a boolean variable, unless you only intend it to be either at zero point or fully rotated.
Servos only work on an integer scale, with only integer values.
If you want to learn RPN, then I suggest you start with the RPN guide in the msfs sdk web page.
Okay, I changed it to: (L:FLAP_LEVER, Int). FLAP_LEVER is an int. It is working, but in one of the servo positions the servo humms and gets a bit warm. How do I determine what "Max Rotation" it needs to be to stop it from trying to over extend?
int isalso not a valid unit
use units of "number"
but FLAPS_LEVER is given by the aircraft or is it your own defined Lvar? If given by the aircraft you need to use the units as given by the aircraft.
A servo output config in MF has a parameter for max rotation, by default set to 100% which correspondes to 180 degrees for most servos.
If you need to learn how to setup servos, see here
https://github.com/MobiFlight/MobiFlight-Connector/wiki#stepper-and-servo-motors