Giter VIP home page Giter VIP logo

Comments (8)

SamuelDudley avatar SamuelDudley commented on May 24, 2024

The default config is the last option which is used when all other options have failed. By default it will look for config files in the following order:

  1. _conf_file_path = os.path.join(os.environ['HOME'], ".mavcesium.ini")
  2. _conf_file_path = os.path.join(os.environ['LOCALAPPDATA'], "MAVProxy", "mavcesium.ini")
  3. If the above 2 fail it will load the default config mavcesium_default.ini from the MAVProxy directory
    https://github.com/SamuelDudley/MAVCesium/blob/master/app/config.py#L18

Try adding a custom config file called .mavcesium.ini (note the leading dot) to your users home directory. It should be used over the default config file when you next run MAVCesium. Note that the path of the config file which is used is printed to the MAVProxy console when MAVCesium loads.

This behaviour does not fix the issue of running multiple instances. To support that feature a config file path will need to be supplied at launch.

from mavcesium.

SamuelDudley avatar SamuelDudley commented on May 24, 2024

Having a bit more of a think about this... I could make a two step process to start the server from MAVProxy.

  1. Import the module. loads default config but does not start the server.
  2. User enters optional config path mavcesium load path_to_config
  3. User runs the server using the new config file. mavcesium start

Any thoughts?

from mavcesium.

fnoop avatar fnoop commented on May 24, 2024

I think that sounds a bit complex, also won't allow auto-starting. Is there any way of passing an extra argument to mavproxy, that can then be used by mavcesium? That way you could specify the desired config to mavproxy at start.

from mavcesium.

SamuelDudley avatar SamuelDudley commented on May 24, 2024

I dont think that functionality exists at the moment but would be pretty simple to add. I'll work on a MAVProxy PR to add it.

from mavcesium.

SamuelDudley avatar SamuelDudley commented on May 24, 2024

@fnoop I would be grateful if you could +1 the MAVProxy PR: ArduPilot/MAVProxy#452

from mavcesium.

fnoop avatar fnoop commented on May 24, 2024

Now that mavcesium is standalone, could a specific config file location parameter be added?

from mavcesium.

SamuelDudley avatar SamuelDudley commented on May 24, 2024

I have pushed some changes to #35 which allows the application to be ran with --configuration="/somepath/config.ini" . This should solve your problem :)

from mavcesium.

fnoop avatar fnoop commented on May 24, 2024

Works great, thanks :)

from mavcesium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.