#include <SurfaceWakes.h>
|
|
| SurfaceWakeEmitter (SurfaceWakeHull hull) |
| |
| void | Record (double t, double north, double east, double velocityNorth, double velocityEast, double heading=std::numeric_limits< double >::quiet_NaN()) |
| |
| void | SetPlaning (double trim, double lambda) |
| |
|
double | Trim () const |
| |
| void | SetSampler (std::function< void(double, const double *)> sampler) |
| |
|
void | Refresh (double T, const double *X) const |
| | Record the vessel at (T, X) with the sampler, if any (a repeated T replaces the last record).
|
| |
|
double | Lambda () const |
| |
|
const SurfaceWakeHull & | Hull () const |
| |
|
double | North () const |
| | The vessel now: origin (north, east), heading [rad], speed [m/s].
|
| |
|
double | East () const |
| |
|
double | Heading () const |
| |
|
double | Speed () const |
| |
|
double | Time () const |
| |
|
double | YawRate () const |
| | Rate of turn [rad/s] over the last few seconds.
|
| |
|
const std::deque< Sample > & | Track () const |
| | The track, oldest first (the last one is the latest record).
|
| |
One vessel: its hull and its track (the stern's positions over time). No Ogre types. Frame: NED, heading from north towards east.
◆ Record()
| void environment::SurfaceWakeEmitter::Record |
( |
double |
t, |
|
|
double |
north, |
|
|
double |
east, |
|
|
double |
velocityNorth, |
|
|
double |
velocityEast, |
|
|
double |
heading = std::numeric_limits< double >::quiet_NaN() |
|
) |
| |
Record the vessel at time t: its origin's position and velocity (NED, horizontal parts used). Keeps a track point at most every 0.5 s (the latest position always) and drops points older than the duration. heading: the hull's heading (yaw) [rad], when known. A turning vessel moves crabwise, its hull a few degrees off its course; the bow and the propellers (where the trail starts) are placed along the hull. Without it (NaN) the heading follows the velocity above 0.3 m/s and is kept below.
◆ SetPlaning()
| void environment::SurfaceWakeEmitter::SetPlaning |
( |
double |
trim, |
|
|
double |
lambda |
|
) |
| |
|
inline |
The planing state now (a hull with SurfaceWakeHull::planing): the keel's trim trim [rad], bow up, and the mean wetted length over the chine beam lambda (fhsim_maritime's Ship/PlaningLift; 0 below its blend: not planing).
◆ SetSampler()
| void environment::SurfaceWakeEmitter::SetSampler |
( |
std::function< void(double, const double *)> |
sampler | ) |
|
|
inline |
The vessel's own sampler (the SurfaceWake SimObject's: it reads its ports at (T, X) and records). The Environment samples every emitter just before it packs the wakes, so the drawn track ends where the vessel is in the frame drawn; recorded in the SimObjects' own RenderUpdate, which ran after the Environment's, the trail was a frame old (6.5 m behind a 13 m/s runabout in a 2 frames per second FileRenderer).
The documentation for this class was generated from the following file: