The GPSInit class is an initializer for calculating the average coordinates over a given time window.
More...
#include </home/runner/work/mars_lib/mars_lib/source/mars/include/mars/sensors/gps/gps_utils.h>
The GPSInit class is an initializer for calculating the average coordinates over a given time window.
◆ GPSInit() [1/2]
mars::GPSInit::GPSInit |
( |
| ) |
|
|
default |
◆ GPSInit() [2/2]
mars::GPSInit::GPSInit |
( |
const double & |
init_duration | ) |
|
◆ Reset()
void mars::GPSInit::Reset |
( |
| ) |
|
Reset resets the initialization routine.
◆ get_gps_mean()
get_gps_mean calculates the mean over the given time window using the measurements in the buffer
- Parameters
-
sensor_handle | sensor handle to use |
buffer | mars::Buffer to retrieve measurements from |
cur_meas | current measurement (returned if none found in buffer) |
cur_time | current time (returned if none found in buffer) |
- Returns
- the mean of the GPSCoordinates within the time window
◆ set_done()
void mars::GPSInit::set_done |
( |
| ) |
|
set_done sets the routine to done, even if no calculation was yet performed or unsuccesful
◆ IsDone()
bool mars::GPSInit::IsDone |
( |
| ) |
const |
IsDone returns the value of b_is_initialized_.
- Returns
- true if initialization was succesful
◆ init_duration_
double mars::GPSInit::init_duration_ { 1.0 } |
|
private |
window time to use measurements from
◆ b_is_initialized_
bool mars::GPSInit::b_is_initialized_ { false } |
|
private |
flag that determines if any previous initialization was successful
◆ b_verbose_
bool mars::GPSInit::b_verbose_ { false } |
|
private |
enable/disable output (currently hardcoded)
The documentation for this class was generated from the following file: