logo
Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
kiker  
#1 Posted : Monday, July 1, 2013 6:22:11 PM(UTC)
kiker

Rank: Member

Groups: Registered
Joined: 12/4/2012(UTC)
Posts: 28

Thanks: 2 times
Hello there!

Is there any opportunity 2 turn on/off autopilot through DE? Pray
Sponsor

Wanna join the discussion?! Login to your forum account. New Registrations are disabled.

Edgar  
#2 Posted : Monday, July 1, 2013 9:33:06 PM(UTC)
Edgar

Rank: Advanced Member

Groups: Developer, Registered
Joined: 2/19/2011(UTC)
Posts: 247

Thanks: 1 times
Was thanked: 45 time(s) in 31 post(s)
You could do it with the PySharp interface.
ferox2552  
#3 Posted : Monday, July 1, 2013 10:20:53 PM(UTC)
ferox2552

Rank: Advanced Member

Groups: Developer, Administrators, Registered
Joined: 9/16/2011(UTC)
Posts: 290

Thanks: 12 times
Was thanked: 53 time(s) in 39 post(s)
Originally Posted by: Edgar Go to Quoted Post
You could do it with the PySharp interface.


if im not mistaken:
Directeve.Pysharp.ThreadedLocalSvcCall("cmd", "CmdToggleAutopilot");

and ap status:
bool apActivated = (bool)Directeve.Pysharp.GetLocalSvc("autopilot").Attribute("autopilot");

Edited by user Monday, July 1, 2013 10:22:07 PM(UTC)  | Reason: Not specified

kiker  
#4 Posted : Tuesday, July 2, 2013 5:52:48 AM(UTC)
kiker

Rank: Member

Groups: Registered
Joined: 12/4/2012(UTC)
Posts: 28

Thanks: 2 times
Many thanks)
kiker  
#5 Posted : Wednesday, July 3, 2013 5:35:18 PM(UTC)
kiker

Rank: Member

Groups: Registered
Joined: 12/4/2012(UTC)
Posts: 28

Thanks: 2 times
GetLocalSvc("autopilot").Attribute("autopilot") has no effect, always false.
ThreadedLocalSvcCall("cmd", "CmdToggleAutopilot") works properly

ferox2552  
#6 Posted : Wednesday, July 3, 2013 8:42:04 PM(UTC)
ferox2552

Rank: Advanced Member

Groups: Developer, Administrators, Registered
Joined: 9/16/2011(UTC)
Posts: 290

Thanks: 12 times
Was thanked: 53 time(s) in 39 post(s)
And if you change the (bool) into (int) --> 1 for on and 0 or off?
kiker  
#7 Posted : Wednesday, July 3, 2013 9:44:05 PM(UTC)
kiker

Rank: Member

Groups: Registered
Joined: 12/4/2012(UTC)
Posts: 28

Thanks: 2 times
Then always 0 independently autopilot on or off
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.