Browse Source

fix from frog32 for external adc channel allocation;

fix from mwc forum for frsky telemetry gps output

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@237 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
master
timecop@gmail.com 12 years ago
parent
commit
af7e135d75
  1. 4359
      obj/baseflight.hex
  2. 2
      src/drv_pwm.c
  3. 4
      src/telemetry.c

4359
obj/baseflight.hex
File diff suppressed because it is too large
View File

2
src/drv_pwm.c

@ -454,7 +454,7 @@ bool pwmInit(drv_pwm_config_t *init)
continue;
// skip ADC for powerMeter if configured
if (init->adcChannel && (init->adcChannel == PWM2 || init->adcChannel == PWM8))
if (init->adcChannel && (init->adcChannel == port))
continue;
// hacks to allow current functionality

4
src/telemetry.c

@ -119,7 +119,7 @@ static void sendGPS(void)
sendDataHead(ID_LATITUDE_BP);
serialize16(abs(GPS_coord[LAT]) / 100000);
sendDataHead(ID_LATITUDE_AP);
serialize16((abs(GPS_coord[LAT]) / 100000) % 10000);
serialize16((abs(GPS_coord[LAT]) / 10) % 10000);
sendDataHead(ID_N_S);
serialize16(GPS_coord[LAT] < 0 ? 'S' : 'N');
@ -127,7 +127,7 @@ static void sendGPS(void)
sendDataHead(ID_LONGITUDE_BP);
serialize16(abs(GPS_coord[LON]) / 100000);
sendDataHead(ID_LONGITUDE_AP);
serialize16((abs(GPS_coord[LON]) / 100000) % 10000);
serialize16((abs(GPS_coord[LON]) / 10) % 10000);
sendDataHead(ID_E_W);
serialize16(GPS_coord[LON] < 0 ? 'W' : 'E');
}

Loading…
Cancel
Save