-
Notifications
You must be signed in to change notification settings - Fork 0
Additional configuration file features
krisklau edited this page Sep 1, 2014
·
14 revisions
This page assumes you are familiar with the basics of a configuration file, as described for instance in the first tutorial
Each task must provide values for Enabled
and Entity Label
.
# This task will be active in the Simulation and HIL profile
[SimulationSupervisor]
Enabled = Simulation, HIL
Entity Label = Simulation Supervisor
"Enabled" can eiter be set to Never, Always or to a profile like Simulation or Hardware. It can also be set to several profiles, like above.
Sometimes, it might be useful to create additional profiles other than the default Simulation and Hardware profiles. This can easily be done in a configuration file like this:
myConfig.ini:
[Profiles]
SimulationRC = Special simulation mode where some hardware are used for user input
[RCInput]
Enabled = SimulationRC
Entity Label = RC user input
Dune can now be started with
./dune -c myConfig -p SimulationRC
Parameters can be updated online by using the IMC-messages SetEntityParameters / GetEntityParameters. This can also be done from Neptus:
- Neptus needs xml-files which holds parameter information for each vehicle. These can be generated by
dune -c config -p Profile -X <path>
. Place them in<neptus-dir>/conf/params/
- In your console, open View->System Configuration. Enable the check-box "Access Developer Parameters"