TrackSettings¶
struct nmeasim::io::TrackSettings ยท Library API
Settings of the track-following mode, the simulation.track object of a profile.
#include <nmeasim/io/profile/profile.hpp>
Declared in src/io/include/nmeasim/io/profile/profile.hpp (line 231)
They are read and validated in every mode, but used only in SimulationMode::Track.
See also
core::simulation::TrackConfig, GPX 1.1, OGC KML 2.2.
Summary¶
Public data members
| Name | Description |
|---|---|
path |
GPX or KML track file, the path key; required in track mode. |
speed_kn |
Speed along legs whose points carry neither timestamps nor a recorded speed, the speed_kn key; must be positive, otherwise the profile is rejected. |
use_timestamps |
The use_timestamps key; false ignores the track's timestamps and sails every leg at the recorded point speed or, without one, at speed_kn. |
loop |
The loop key; true starts again at the first point instead of stopping at the last. |
Public data members¶
path¶
QString path
GPX or KML track file, the path key; required in track mode.
Held as written. A relative path is relative to Profile::base_directory, and SimulationRunner resolves it with Profile::resolve_path when it loads the track.
Declared in src/io/include/nmeasim/io/profile/profile.hpp:236
speed_kn¶
double speed_kn{6.0}
Speed along legs whose points carry neither timestamps nor a recorded speed, the speed_kn key; must be positive, otherwise the profile is rejected.
Declared in src/io/include/nmeasim/io/profile/profile.hpp:239
use_timestamps¶
bool use_timestamps{true}
The use_timestamps key; false ignores the track's timestamps and sails every leg at the recorded point speed or, without one, at speed_kn.
Declared in src/io/include/nmeasim/io/profile/profile.hpp:242
loop¶
bool loop{false}
The loop key; true starts again at the first point instead of stopping at the last.
Declared in src/io/include/nmeasim/io/profile/profile.hpp:244