Public Member Functions | Public Attributes

Navigation Class Reference

#include <Navigation.h>

Collaboration diagram for Navigation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Navigation (GPS *withGPS, Waypoints *withWP)
void update_gps (void)
void set_home (Waypoints::WP loc)
void set_next_wp (Waypoints::WP loc)
void load_first_wp (void)
void load_wp_with_index (uint8_t i)
void load_home (void)
void return_to_home_with_alt (uint32_t alt)
void reload_wp (void)
void load_wp_index (uint8_t i)
void hold_location ()
void set_wp (Waypoints::WP loc)
void set_hold_course (int16_t b)
int16_t get_hold_course (void)
int32_t get_distance (Waypoints::WP *loc1, Waypoints::WP *loc2)
int32_t get_bearing (Waypoints::WP *loc1, Waypoints::WP *loc2)
void set_bearing_error (int32_t error)
void set_loiter_vector (int16_t v)
void update_crosstrack (void)
int32_t wrap_180 (int32_t error)
int32_t wrap_360 (int32_t angle)

Public Attributes

int32_t bearing
int32_t distance
int32_t altitude_above_home
int32_t total_distance
int32_t bearing_error
int32_t altitude_error
int16_t loiter_sum
Waypoints::WP home
Waypoints::WP location
Waypoints::WP prev_wp
Waypoints::WP next_wp

Detailed Description

Definition at line 13 of file Navigation.h.


Constructor & Destructor Documentation

Navigation::Navigation ( GPS withGPS,
Waypoints withWP 
)

Definition at line 3 of file Navigation.cpp.


Member Function Documentation

long Navigation::get_bearing ( Waypoints::WP loc1,
Waypoints::WP loc2 
)

Definition at line 235 of file Navigation.cpp.

long Navigation::get_distance ( Waypoints::WP loc1,
Waypoints::WP loc2 
)

Definition at line 221 of file Navigation.cpp.

int16_t Navigation::get_hold_course ( void   ) 

Definition at line 135 of file Navigation.cpp.

void Navigation::hold_location (  ) 

Definition at line 79 of file Navigation.cpp.

void Navigation::load_first_wp ( void   ) 

Definition at line 46 of file Navigation.cpp.

void Navigation::load_home ( void   ) 

Definition at line 52 of file Navigation.cpp.

void Navigation::load_wp_index ( uint8_t  i  ) 

Definition at line 72 of file Navigation.cpp.

void Navigation::load_wp_with_index ( uint8_t  i  ) 
void Navigation::reload_wp ( void   ) 

Definition at line 66 of file Navigation.cpp.

void Navigation::return_to_home_with_alt ( uint32_t  alt  ) 

Definition at line 58 of file Navigation.cpp.

void Navigation::set_bearing_error ( int32_t  error  ) 

Definition at line 175 of file Navigation.cpp.

void Navigation::set_hold_course ( int16_t  b  ) 

Definition at line 126 of file Navigation.cpp.

void Navigation::set_home ( Waypoints::WP  loc  ) 

Definition at line 85 of file Navigation.cpp.

void Navigation::set_loiter_vector ( int16_t  v  ) 

Definition at line 198 of file Navigation.cpp.

void Navigation::set_next_wp ( Waypoints::WP  loc  ) 

Definition at line 93 of file Navigation.cpp.

void Navigation::set_wp ( Waypoints::WP  loc  ) 
void Navigation::update_crosstrack ( void   ) 

Definition at line 204 of file Navigation.cpp.

void Navigation::update_gps ( void   ) 

Definition at line 11 of file Navigation.cpp.

int32_t Navigation::wrap_180 ( int32_t  error  ) 

Definition at line 159 of file Navigation.cpp.

int32_t Navigation::wrap_360 ( int32_t  angle  ) 

Definition at line 167 of file Navigation.cpp.


Member Data Documentation

Definition at line 45 of file Navigation.h.

Definition at line 48 of file Navigation.h.

Definition at line 43 of file Navigation.h.

Definition at line 47 of file Navigation.h.

Definition at line 44 of file Navigation.h.

Definition at line 51 of file Navigation.h.

Definition at line 51 of file Navigation.h.

Definition at line 50 of file Navigation.h.

Definition at line 51 of file Navigation.h.

Definition at line 51 of file Navigation.h.

Definition at line 46 of file Navigation.h.


The documentation for this class was generated from the following files: