Skip to content

TrackConfig

struct nmeasim::core::simulation::TrackConfig ยท Library API

Configuration of a TrackSource.

#include <nmeasim/core/simulation/track_source.hpp>

Declared in src/core/include/nmeasim/core/simulation/track_source.hpp (line 34)

Summary

Public data members

Name Description
track The track to follow; with fewer than two points the vessel stays at the only point, or at the seed position when there is none.
seed Everything the track does not provide: depth, water temperature, true wind and GNSS quality, which do not drift, and the start time of a track that is not followed on its timestamps.
speed_kn Speed in knots along legs whose start point has no recorded speed, when the track is not followed on its timestamps.
use_timestamps Whether to follow the track's timestamps when every point has one and the times never decrease; false sails every leg at the recorded point speed or speed_kn.
end Whether to stop at the last point or start again from the first.

Public data members

track

track::Track track

The track to follow; with fewer than two points the vessel stays at the only point, or at the seed position when there is none.

Declared in src/core/include/nmeasim/core/simulation/track_source.hpp:37

seed

model::VesselState seed

Everything the track does not provide: depth, water temperature, true wind and GNSS quality, which do not drift, and the start time of a track that is not followed on its timestamps.

Position, course, heading and speed come from the track.

Declared in src/core/include/nmeasim/core/simulation/track_source.hpp:41

speed_kn

double speed_kn{6.0}

Speed in knots along legs whose start point has no recorded speed, when the track is not followed on its timestamps.

Such legs, and those with a recorded speed, are sailed at 0.1 knots or more, so that a zero speed never makes a leg last for ever.

Declared in src/core/include/nmeasim/core/simulation/track_source.hpp:47

use_timestamps

bool use_timestamps{true}

Whether to follow the track's timestamps when every point has one and the times never decrease; false sails every leg at the recorded point speed or speed_kn.

Declared in src/core/include/nmeasim/core/simulation/track_source.hpp:50

end

EndBehaviour end{EndBehaviour::Stop}

Whether to stop at the last point or start again from the first.

Declared in src/core/include/nmeasim/core/simulation/track_source.hpp:52