build with I2C_GPS_SONAR fails on r1563

Post Reply
doughboy
Posts: 252
Joined: Tue Sep 04, 2012 7:20 am

build with I2C_GPS_SONAR fails on r1563

Post by doughboy »

Building file: ../src/MultiWii/GPS.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"C:\arduino-eclipse\kepler\Arduino\include" -I"C:\arduino-eclipse\kepler\Arduino\include\variants\standard" -DUSB_PID=null -DUSB_VID=null -DARDUINO=105 -Wall -g2 -Os -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"src/MultiWii/GPS.d" -MT"src/MultiWii/GPS.d" -c -o "src/MultiWii/GPS.o" "../src/MultiWii/GPS.cpp"
../src/MultiWii/GPS.cpp: In function 'void GPS_NewData()':
../src/MultiWii/GPS.cpp:429: error: 'sonarAlt' was not declared in this scope


I have these in config.h
#define I2C_GPS
// If your I2C GPS board has Sonar support enabled
#define I2C_GPS_SONAR


thanks

doughboy
Posts: 252
Joined: Tue Sep 04, 2012 7:20 am

Re: build with I2C_GPS_SONAR fails on r1563

Post by doughboy »

I guess I'll just comment out I2C_GPS_SONAR, since the sonar code is really not used anywhere except for landing lights.
still needs to be fixed though

doughboy
Posts: 252
Joined: Tue Sep 04, 2012 7:20 am

Re: build with I2C_GPS_SONAR fails on r1563

Post by doughboy »

thanks for fixing.
I'm still waiting for my gps ($17).
I already got a promini ($3.75) and a sonar ($1.35) and burned the i2c_nav, and added my ppmsum code to it.

everything is so cheap now, there is no reason for anyone not to use gps (and perhaps sonar).

Post Reply