mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
format code properly
match the comment from pullrequest about spacing remains : some hand alignment for comment and wrong /** */ usage. Conflicts: src/board.h src/buzzer.c src/config.c src/drivers/serial_common.h src/drivers/system_common.c src/drv_gpio.h src/drv_pwm.c src/drv_timer.c src/drv_uart.c src/flight_imu.c src/mw.c src/serial_cli.c
This commit is contained in:
parent
ab2273f93e
commit
cabc57774c
27 changed files with 141 additions and 135 deletions
|
@ -112,13 +112,13 @@ void hottV4FormatAndSendGPSResponse(void)
|
|||
void hottV4GPSUpdate(void)
|
||||
{
|
||||
// Number of Satelites
|
||||
HoTTV4GPSModule.GPSNumSat=GPS_numSat;
|
||||
HoTTV4GPSModule.GPSNumSat = GPS_numSat;
|
||||
if (f.GPS_FIX > 0) {
|
||||
// GPS fix
|
||||
HoTTV4GPSModule.GPS_fix = 0x66; // Displays a 'f' for fix
|
||||
|
||||
// latitude
|
||||
HoTTV4GPSModule.LatitudeNS=(GPS_coord[LAT]<0);
|
||||
HoTTV4GPSModule.LatitudeNS = (GPS_coord[LAT] < 0);
|
||||
uint8_t deg = GPS_coord[LAT] / 100000;
|
||||
uint32_t sec = (GPS_coord[LAT] - (deg * 100000)) * 6;
|
||||
uint8_t min = sec / 10000;
|
||||
|
@ -130,7 +130,7 @@ void hottV4GPSUpdate(void)
|
|||
HoTTV4GPSModule.LatitudeSecHigh = sec >> 8;
|
||||
|
||||
// longitude
|
||||
HoTTV4GPSModule.longitudeEW=(GPS_coord[LON]<0);
|
||||
HoTTV4GPSModule.longitudeEW = (GPS_coord[LON] < 0);
|
||||
deg = GPS_coord[LON] / 100000;
|
||||
sec = (GPS_coord[LON] - (deg * 100000)) * 6;
|
||||
min = sec / 10000;
|
||||
|
@ -312,7 +312,8 @@ void handleHoTTTelemetry(void)
|
|||
|
||||
switch (c) {
|
||||
case 0x8A:
|
||||
if (sensors(SENSOR_GPS)) hottV4FormatAndSendGPSResponse();
|
||||
if (sensors(SENSOR_GPS))
|
||||
hottV4FormatAndSendGPSResponse();
|
||||
break;
|
||||
case 0x8E:
|
||||
hottV4FormatAndSendEAMResponse();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue