From Adafruit.com/blog

And http://arduino.cc/blog/2011/11/30/arduino-1-0-now-available/

 

Yahoo, now we can all re-write all of our code for the last time. Well I can wish can't I

Views: 1302

Tags: 1.0, Arduino

Comment by bmarshall5253 on December 2, 2011 at 12:08am

Anybody compiled and upload arducopter with this new arduino 1.0

I've found two file have different name under arduino 1.0

1. The WProgram.h file, which provides declarations for the Arduino API, has been renamed to Arduino.h.

2. The wiring.h header file is now called wire.h

I changed the names and ran into this.

There is a change in the type returned by some functions

The write(), print(), and println() functions in Stream now return a   size_t (instead of void). This indicates the number of bytes actually   written by the function. Any classes that inherit from Stream will need   to change accordingly. Additionally the write(str) function has been   given a concrete implementation – it calls write(buf, len) - so   sub-classes don't need to (and shouldn't) implement it.

this is the output of verify I get at this point

-IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\Arduino_Mega_ISR_Registry -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\APM_RC -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_GPS -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\Wire -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\SPI -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\DataFlash -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_ADC -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_AnalogSource -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\APM_BMP085 -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_Compass -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_Math -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_InertialSensor -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_IMU -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_PeriodicProcess -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_DCM -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\APM_PI -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\RC_Channel -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_RangeFinder -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_OpticalFlow -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\ModeFilter -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_Relay -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\GCS_MAVLink -IC:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\memcheck C:\Users\Burt\AppData\Local\Temp\build6408716493749062620.tmp\ArduCopter.cpp -oC:\Users\Burt\AppData\Local\Temp\build6408716493749062620.tmp\ArduCopter.cpp.o
In file included from ArduCopter.cpp:50:
C:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\FastSerial/FastSerial.h:119: error: conflicting return type specified for 'virtual void FastSerial::write(uint8_t)'
C:\Users\Burt\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'
In file included from ArduCopter.cpp:69:
C:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_DCM/AP_DCM.h: In constructor 'AP_DCM::AP_DCM(IMU*, GPS*&, Compass*)':
C:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_DCM/AP_DCM.h:128: warning: 'AP_DCM::_health' will be initialized after
C:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_DCM/AP_DCM.h:87: warning:   'float AP_DCM::_kp_roll_pitch'
C:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\AP_DCM/AP_DCM.h:24: warning:   when initialized here
In file included from ArduCopter.cpp:71:
C:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\RC_Channel/RC_Channel.h: In constructor 'RC_Channel::RC_Channel(uint16_t, const prog_char_t*)':
C:\Users\Burt\arduino-1.0-windows\arduino-1.0\libraries\RC_Channel/RC_Channel.h:107: warning: 'RC_Channel::_high' will be initialized after
C:\Users\Burt\arduino-1.0-windows\arduino-1.0\librar

Comment by Markus on April 16, 2013 at 7:21pm

Have you figured out how to fix this? I am running into the same problem! :-(

Comment

You need to be a member of DIY Drones to add comments!

Join DIY Drones

© 2014   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service