NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
navigation.h File Reference
Include dependency graph for navigation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  navigationMode_e { NAV_MODE_NONE = 0, NAV_MODE_POSHOLD, NAV_MODE_WP }
 

Functions

void navigationInit (struct pid_config *pidProfile)
 
void GPS_reset_home_position (void)
 
void GPS_reset_nav (void)
 
void GPS_set_next_wp (int32_t *lat, int32_t *lon)
 
void gpsUsePIDs (struct pid_config *pidProfile)
 
void updateGpsStateForHomeAndHoldMode (void)
 
void updateGpsWaypointsAndMode (void)
 
void onGpsNewData (void)
 

Variables

int16_t GPS_angle [ANGLE_INDEX_COUNT]
 
int32_t GPS_home [2]
 
int32_t GPS_hold [2]
 
uint16_t GPS_distanceToHome
 
int16_t GPS_directionToHome
 
navigationMode_e navi_mode
 

Enumeration Type Documentation

Enumerator
NAV_MODE_NONE 
NAV_MODE_POSHOLD 
NAV_MODE_WP 

Function Documentation

void GPS_reset_home_position ( void  )
void GPS_reset_nav ( void  )
void GPS_set_next_wp ( int32_t *  lat,
int32_t *  lon 
)
void gpsUsePIDs ( struct pid_config pidProfile)
void navigationInit ( struct pid_config pidProfile)
void onGpsNewData ( void  )
void updateGpsStateForHomeAndHoldMode ( void  )
void updateGpsWaypointsAndMode ( void  )

Variable Documentation

int16_t GPS_angle[ANGLE_INDEX_COUNT]
int16_t GPS_directionToHome
uint16_t GPS_distanceToHome
int32_t GPS_hold[2]
int32_t GPS_home[2]
navigationMode_e navi_mode