File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ typedef struct statistic_s {
145145 int16_t max_power ; // /100
146146 int16_t min_rssi ;
147147 int32_t max_altitude ;
148- uint16_t max_distance ;
148+ uint32_t max_distance ;
149149} statistic_t ;
150150
151151static statistic_t stats ;
Original file line number Diff line number Diff line change 6868 * Compatibility for home position
6969 *-----------------------------------------------------------*/
7070gpsLocation_t GPS_home ;
71- uint16_t GPS_distanceToHome ; // distance to home point in meters
71+ uint32_t GPS_distanceToHome ; // distance to home point in meters
7272int16_t GPS_directionToHome ; // direction to home point in degrees
7373
7474#if defined(USE_NAV )
Original file line number Diff line number Diff line change 3232
3333/* GPS Home location data */
3434extern gpsLocation_t GPS_home ;
35- extern uint16_t GPS_distanceToHome ; // distance to home point in meters
35+ extern uint32_t GPS_distanceToHome ; // distance to home point in meters
3636extern int16_t GPS_directionToHome ; // direction to home point in degrees
3737
3838extern bool autoThrottleManuallyIncreased ;
Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ uint16_t cycleTime = 0; // this is the number in micro second to achieve
545545// from navigation.c
546546int32_t GPS_home[2];
547547int32_t GPS_hold[2];
548- uint16_t GPS_distanceToHome; // distance to home point in meters
548+ uint32_t GPS_distanceToHome; // distance to home point in meters
549549int16_t GPS_directionToHome; // direction to home or hol point in degrees
550550navigationMode_e nav_mode = NAV_MODE_NONE; // Navigation mode
551551void GPS_set_next_wp(int32_t *lat, int32_t *lon) {UNUSED(lat);UNUSED(lon);}
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ gpsSolutionData_t gpsSol;
174174uint8_t GPS_numSat;
175175int32_t GPS_coord[2 ];
176176uint16_t GPS_speed; // speed in 0.1m/s
177- uint16_t GPS_distanceToHome; // distance to home point in meters
177+ uint32_t GPS_distanceToHome; // distance to home point in meters
178178uint16_t GPS_altitude; // altitude in 0.1m
179179uint16_t vbat;
180180int16_t GPS_directionToHome; // direction to home or hol point in degrees
You can’t perform that action at this time.
0 commit comments