mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +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_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;
|
||||
|
@ -646,6 +646,8 @@ static void gpsNewData(uint16_t c)
|
|||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
;
|
||||
}
|
||||
} //end of gps calcs
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue