How to setup Eclipse to work with OpenRov code?


#1

I have some troubles to configure Eclipse properly to work with OpenRov Arduino code.
Arduino plugin has been installed to Eclipse according to: http://eclipse.baeyens.it/stable-linux.html
But there still seems to be missing of libraries, like EEPROM.h, Wire.h, and so on, when building the program.

Is there anyone who is using the Eclipse IDE to develop OpenRov code can help? Any help is greatly appreciated.


#2

You shouldn’t be far off. Here is how I got the OpenROV firmware building in Eclipse:

  • Download or build the latest Arduino Eclipse IDE (http://eclipse.baeyens.it/stable-linux.html)
  • Download Arduino IDE 1.6.5-r5
  • Open Arduino Eclipse IDE
  • Navigate to Windows->Preferences->Arduino and set your Arduino IDE path
  • Navigate to Windows->Preferences->C/C+±>File Types and add “*.ino” as C++ Source
  • Create a new Arduino Sketch and call it OpenROV
  • Choose “Arduino/Genuino Mega or Mega2560” as the board
  • Choose “ATmega2560” as the processor
  • Click finish

(This is where things get a little hacky, not sure of a better way to do this yet)

  • Get the latest version of the firmware
  • git clone https://github.com/OpenROV/openrov-software-arduino.git
  • git checkout 30.0.3
  • Copy all of the source files from openrov-software-arduino/OpenROV/ into your Eclipse project’s folder
  • Navigate to Arduino->Add a library to the selected project
  • Select EEPROM, SPI, and Wire and click finish

Your source should now build if you click Verify. Haven’t tried uploading a sketch yet from Eclipse, so I can’t give any instructions for that yet.


#3

Hi Charles,

Thanks for your reply. It turns out that the steps of adding EEPROM, SPI, and Wire libraries were missing from my initial configuration. I just verified successfully and it’s built without errors.

By the way, I just started to look at the OpenRov project. Do you have any program flowchart to help understand the code quickly? Or if there is any other documents or steps that I could read/take to get myself up to speed?

Thanks a million.


#4

We are working on the documentation you are talking about. Here is a basic flowchart of how the motors are controlled. Hope it helps.


#5

Hi Brian, thanks for the motor control chart. Charles also explained a lot in detail. Thank you guys.