mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Use the enum type for navigationMode_e in the GPS code.
This commit is contained in:
parent
877e849093
commit
64a43c77ca
2 changed files with 4 additions and 2 deletions
|
@ -74,7 +74,7 @@ uint8_t GPS_svinfo_cno[16]; // Carrier to Noise Ratio (Signal Strength)
|
||||||
|
|
||||||
static int16_t nav[2];
|
static int16_t nav[2];
|
||||||
static int16_t nav_rated[2]; // Adding a rate controller to the navigation to make it smoother
|
static int16_t nav_rated[2]; // Adding a rate controller to the navigation to make it smoother
|
||||||
int8_t nav_mode = NAV_MODE_NONE; // Navigation mode
|
navigationMode_e nav_mode = NAV_MODE_NONE; // Navigation mode
|
||||||
|
|
||||||
|
|
||||||
static gpsConfig_t *gpsConfig;
|
static gpsConfig_t *gpsConfig;
|
||||||
|
@ -646,6 +646,8 @@ static void gpsNewData(uint16_t c)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
;
|
||||||
}
|
}
|
||||||
} //end of gps calcs
|
} //end of gps calcs
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,7 +100,7 @@ extern uint8_t GPS_svinfo_svid[16]; // Satellite ID
|
||||||
extern uint8_t GPS_svinfo_quality[16]; // Bitfield Qualtity
|
extern uint8_t GPS_svinfo_quality[16]; // Bitfield Qualtity
|
||||||
extern uint8_t GPS_svinfo_cno[16]; // Carrier to Noise Ratio (Signal Strength)
|
extern uint8_t GPS_svinfo_cno[16]; // Carrier to Noise Ratio (Signal Strength)
|
||||||
|
|
||||||
extern int8_t nav_mode; // Navigation mode
|
extern navigationMode_e nav_mode; // Navigation mode
|
||||||
|
|
||||||
void gpsThread(void);
|
void gpsThread(void);
|
||||||
gpsEnablePassthroughResult_e gpsEnablePassthrough(void);
|
gpsEnablePassthroughResult_e gpsEnablePassthrough(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue