1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-21 07:15:16 +03:00

max distance from 16bit to 32bit

This commit is contained in:
giacomo892 2019-04-16 18:01:46 +02:00
parent 401607e804
commit ef03ffe55a
5 changed files with 5 additions and 5 deletions

View file

@ -145,7 +145,7 @@ typedef struct statistic_s {
int16_t max_power; // /100
int16_t min_rssi;
int32_t max_altitude;
uint16_t max_distance;
uint32_t max_distance;
} statistic_t;
static statistic_t stats;

View file

@ -68,7 +68,7 @@
* Compatibility for home position
*-----------------------------------------------------------*/
gpsLocation_t GPS_home;
uint16_t GPS_distanceToHome; // distance to home point in meters
uint32_t GPS_distanceToHome; // distance to home point in meters
int16_t GPS_directionToHome; // direction to home point in degrees
#if defined(USE_NAV)

View file

@ -32,7 +32,7 @@
/* GPS Home location data */
extern gpsLocation_t GPS_home;
extern uint16_t GPS_distanceToHome; // distance to home point in meters
extern uint32_t GPS_distanceToHome; // distance to home point in meters
extern int16_t GPS_directionToHome; // direction to home point in degrees
extern bool autoThrottleManuallyIncreased;

View file

@ -545,7 +545,7 @@ uint16_t cycleTime = 0; // this is the number in micro second to achieve
// from navigation.c
int32_t GPS_home[2];
int32_t GPS_hold[2];
uint16_t GPS_distanceToHome; // distance to home point in meters
uint32_t GPS_distanceToHome; // distance to home point in meters
int16_t GPS_directionToHome; // direction to home or hol point in degrees
navigationMode_e nav_mode = NAV_MODE_NONE; // Navigation mode
void GPS_set_next_wp(int32_t *lat, int32_t *lon) {UNUSED(lat);UNUSED(lon);}

View file

@ -174,7 +174,7 @@ gpsSolutionData_t gpsSol;
uint8_t GPS_numSat;
int32_t GPS_coord[2];
uint16_t GPS_speed; // speed in 0.1m/s
uint16_t GPS_distanceToHome; // distance to home point in meters
uint32_t GPS_distanceToHome; // distance to home point in meters
uint16_t GPS_altitude; // altitude in 0.1m
uint16_t vbat;
int16_t GPS_directionToHome; // direction to home or hol point in degrees