An24-Felis-for-XP11 icon indicating copy to clipboard operation
An24-Felis-for-XP11 copied to clipboard

AP diconnect and smartco

Open birdydma opened this issue 7 years ago • 17 comments

sim/autopilot/fdir_servos_down_one is not transmitted.

PS: if it is a too hard task to improve the AP disconnect, close the topic.

birdydma avatar Dec 11 '17 14:12 birdydma

but this command is used for a button on a yoke. Can you test other default x-plane commands with AP disc? servos toggle or smth like that?

parshukov avatar Dec 11 '17 19:12 parshukov

Already done, but no joy. (servo toggle activate/deactivate the autotrim).

2017-12-11_23h21_33

birdydma avatar Dec 11 '17 22:12 birdydma

what this command should do? can you describe the logic of this command (e.g. this switch off, that switch on)

parshukov avatar Dec 12 '17 12:12 parshukov

Those datarefs are not properly synchronized:

#parshukovedition/autopilot_state_FO_ApbuttonState = 0 #parshukovedition/autopilot_state_PF_ApbuttonState = 0 parshukovedition/autopilot_state_FO_button = 0 parshukovedition/autopilot_state_PF_button = 0

The idea is to remove them from the .cfg, and let each plugin do the job at there own speed. But of course we need something that can be synchronized to activate them.

sim/autopilot/fdir_servos_down_one is not transmited, as for exemple sim/flight_controls/pitch_trim_down/up is.

birdydma avatar Dec 12 '17 18:12 birdydma

when I released my patch I did improvements in smartconfig and everything worked nice. will try to find it...

parshukov avatar Dec 12 '17 18:12 parshukov

try to use all of them for smartcopilot and tell me the results. To AP off you should click on the red button on yoke: parshukovedition/autopilot_state_FO_ApbuttonState = 0 parshukovedition/autopilot_state_PF_ApbuttonState = 0 parshukovedition/autopilot_state_FO_button = 0 parshukovedition/autopilot_state_PF_button = 0

and how it is not properly sync?? We can try together with smartco check it

parshukov avatar Dec 12 '17 19:12 parshukov

Working sometimes, sometimes not. The value of the pilot receiving parshukovedition/autopilot_state_FO_button, and parshukovedition/autopilot_state_PF_button does not always reach 1, and there is no ring, no disconnection.

birdydma avatar Dec 12 '17 20:12 birdydma

I'll check this out

parshukov avatar Dec 12 '17 20:12 parshukov

Working sometimes, sometimes not. The value of the pilot receiving parshukovedition/autopilot_state_FO_button, and parshukovedition/autopilot_state_PF_button does not always reach 1, and there is no ring, no disconnection.

So if it works it disconnect AP as it should, am I right? If so I will fix this button on yoke for smartcopilot. As for command it uses sim/autopilot/fdir_servos_down_one to diconnect AP on yoke.

parshukov avatar Dec 14 '17 08:12 parshukov

I also have a question about 2 items, as i spent hours to sync them without success.

Just for my knowledge, as it is not important.

During the test, the 2 red bulbs are illuminated only for the pilot doing the test.

Gear test: never found the dataref, or command to sync it.

2017-12-14_17h49_55

2017-12-14_17h51_42

birdydma avatar Dec 14 '17 16:12 birdydma

as for this bulbs and gear - they are hardcoded in sasl with local variables.

parshukov avatar Dec 14 '17 17:12 parshukov

Thank you, i am less stupid.

birdydma avatar Dec 14 '17 17:12 birdydma

I know) but for this things to sync it should be some new datarefs and reorganization of a code

parshukov avatar Dec 14 '17 17:12 parshukov

Hi, Niko,

Minor improvement, and sound problem (on slave side, engines sounds are horrible).

Are you also working around the flight model? smartcopilot.zip

birdydma avatar Dec 15 '17 22:12 birdydma

The button on the yoke is used to disable the AP temporarily,when the button was released ,the AP should be connected back automatically ,

jinshsa avatar May 26 '19 09:05 jinshsa

When the red button was pressed down and hold ,you can control the plane manually, on released ,the AP take in charge of the plane immediately

jinshsa avatar May 26 '19 09:05 jinshsa

Thank you jinsha.

The problem was using this feature in a shared cockpit.

birdydma avatar May 28 '19 09:05 birdydma