I cannot see the drivers in Device Manager, have been through all the forums and cannot figure out my problem. I have Python 2.7 but cannot upload to my APM. Have been working this for days now. When I upload thru Arduino, I get "expected constructor, destructor, or type conversion before '(' token" and have no idea of what that means?
Then down below, I get the folowing:
AP_OpticalFlow_test.cpp: In function 'void loop()': AP_OpticalFlow_test.pde:-1: error: 'flowSensor' was not declared in this scope
Can anyone please help, thanks............Don
Replies
Ok, Programming basics 101. The issue here is libraries are missing in your Arduino folder specific to Ardupilot. You got all those errors because in the main file, it calls functions in the other files in your arduino library folder and since they aren't there the compliler sees this and warns you.
https://store.diydrones.com/Optical_Flow_Sensor_p/br-0016-01.htm
The libraries needed for the code can be found here.
Also note, you must be using the relax patch version of Arduino here:
http://diydrones.com/forum/topics/acm-2-2b2-compilation-problems?co...
That said, if you didn't know how to use Arduino,read the directions and see that the libraries need to be there and using the relax patch version, stop. Follow the directions that say just download mission planner, use it to update the APM with the trusted code firmware which has th checkbox to use the optical flow sensor. Then if you want to try and compile other versions, fine, do that but read the directions which would have told you that.
NOTE: I may have guessed incorrectly you are using APM2 but APM1 directions are right there also.
http://code.google.com/p/arducopter/wiki/AC2_First
http://code.google.com/p/arducopter/wiki/APM2Code
http://code.google.com/p/arducopter/wiki/AC2_Loading
Your first step is that you must load the driver to get a serial port for the APM, otherwise you will NEVER load the code. Even Arduino needs the serial port driver working.