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

Chris Anderson liked Zara Mae Pickering's profile
May 21
Azjeg liked Azjeg's profile
Apr 27
DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
More…