Board index FlightGear Development Nasal

How to send a command via UPD to start nasal script?

Nasal is the scripting language of FlightGear.

How to send a command via UPD to start nasal script?

Postby 9gurikov » Sun Feb 11, 2018 8:39 am

I'm writing a program which will control a BO-105 helicopter. I need to send commands to start "startup" and "shutdown" nasal scripts. How do I need to configure a generic protocol xml file to do this?
9gurikov
 
Posts: 6
Joined: Sun Nov 13, 2016 8:31 am

Re: How to send a command via UPD to start nasal script?

Postby Hooray » Sun Feb 11, 2018 12:42 pm

generic protocols can be set up to write to a property, properties can be listened to using Nasal listeners, which in turn trigger callbacks (Nasal functions).
apart from that, I am not sure if the proposed solution is necessarily such a good idea - you may be better off telling us exactly what your use-case is.
Asking for a certain solution is usually not a good way to describe the underlying problem.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11314
Joined: Tue Mar 25, 2008 8:40 am


Return to Nasal

Who is online

Users browsing this forum: WoodSTokk and 1 guest