How to upload code (optflow test)

Hi

im trying to upload the APOpticalFlow_test.pde  to APM as written here:

http://code.google.com/p/arducopter/wiki/AC2_OptFlow

 

ive downloaded the file and tried to upload it using arduino 1.0

 arduino is config to :

AVRISP mkII

Arduino mega 2560

it gives "error compiling"

what is the problem ?

ive downloaded the latest arducopter and libraries

 

In file included from D:\Docs\elec\_quad\ardusketch\libraries\FastSerial/BetterStream.h:16,
                 from D:\Docs\elec\_quad\ardusketch\libraries\FastSerial/FastSerial.h:56,
                 from AP_OpticalFlow_test.cpp:6:
D:\Docs\elec\_quad\ardusketch\libraries\FastSerial/../AP_Common/AP_Common.h:19:20: error: wiring.h: No such file or directory
In file included from D:\Docs\elec\_quad\ardusketch\libraries\AP_DCM/AP_DCM.h:8,
                 from AP_OpticalFlow_test.cpp:10:
D:\Docs\elec\_quad\ardusketch\libraries\AP_DCM/AP_DCM_HIL.h:7:22: error: WProgram.h: No such file or directory
In file included from AP_OpticalFlow_test.cpp:6:
D:\Docs\elec\_quad\ardusketch\libraries\FastSerial/FastSerial.h:119: error: conflicting return type specified for 'virtual void FastSerial::write(uint8_t)'
C:\Users\ar\Desktop\arduino-1.0-windows\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer

    ARHEXA,

         Yes, it's just because there have been some changes to arduino in ver 1.0 so we need to make some small modifications to the code to support it.  They're not huge and I've started on it.

         Re the optflow sensor, I will be adding an OF_LOITER flight mode this weekend at least to the trunk version.  It may take a little longer (up to a week) to start coming out of the mission planner.

  • got it right with arduino 0.22

    strange...

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
Jun 25
DIY Robocars via Twitter
Jun 25
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
More…