speed property

double get speed

Current travel speed in meters per second.

Speed represents forward movement velocity and is always non-negative. If the vehicle is moving in reverse, the course should change by 180 degrees but speed remains positive. A negative value (-1 by default) indicates no speed information is available.

Returns

  • double: Speed in m/s (non-negative, or -1 if unavailable)

Implementation

double get speed;