Yes, sometimes using certain libraries that are compatible may not work on the Galileo without making some modifications first. The reason for that is because the Arduino libraries were written for Arduino which has AVR architecture. So the approach for these kinds of problems would be to write a library yourself that meets your requirements or find a library that works and is compatible. You can also use an Arduino library and adapt it so that it works with the Galileo.
You said you tried to move the servo.h and AFmotor libraries around, in what folder did you put the libraries?
For the new ping check Re: How can ı make 4pins ultrasonic sensor works?(In coding part) and all links in the thread. Some threads have information you may find helpful for the newping library.
Today I just deleted the three libraries and then re imported the libraries through the IDE. So now I have servo.h and NewPing.H working. But yeah I guess you knew AFmotor would not.
I'm assuming AFmotor is for the motor shield ?
This link has the shield working without any libraries? but hmm I dunno my coding levels are so basic. I usually just change the values to make it work cleaner or how I want it to work. I can put different codes together, I'm not really able to write code.
So the only errors I get now are for AFmotor stuff. Do you recommend a link to how I can get AFmotor instructions working or an alternative to do what I need?
Edit:Motor Control for the Galileo | Kid Makers Would you say following this website may lead to a work?
OK, so this space is turning into my personal journal :/ sorry guys. But there should be a simple updating wiki on how to install the new libraries and make amendments really. I'm just constantly jumping around forums and the web scrounging for files.
I think I have caught up to the community. We need someone to make avr/io.h work. And this means someone needs to rewrite the library which from what I've read can be done. And I will endeavor to learn but eh it sounds impossible to me.
Here are some steps and links for going from arduino robot to galileo robot:
For me all the code works on old version of the arduino IDE. But converting to Galileo has me doing this so far:
1. download 1.6.0 of Arduino as a ZIP file. The latest version is not good at work place connections.
2. Library fun:
How to set up an Arduino Library :: Video #1 :: Arduino Library Series - YouTube (learn what libraries are and how to link them properly) Arduino - Libraries
Reinstall libraries Servo, NewPing and the latest library for the adafruit board. https://github.com/ladyada/Adafruit_Motor_Shield_V2_Library/archive/master.zip
3. DC motors on the Galileo check this document for instructions with the adafruit v2 (adafruit v2 website) or the R3:
http://download.intel.com/support/Galileo-Edison_ShieldTestReport_330937-002.pdf This is god, also it doesn't really work. Ctrl+F: adafruit shield (#11) or R3 which is #1
I had trouble copying and pasting the code from this document, usually it is an examples on the IDE from the library but no luck so far.
OK, the Libraries won't work change the Wire1 to Wire on 2 documents it's explained in the shield test report.
So my error is now: fatal error: avr/io.h: No such file or directory
4. Learn to edit libraries? Understanding an Arduino Library :: Video #2 :: Arduino Library Series - YouTube
Please someone who knows what their doing help haha.
Then I can work out how to get the HC sr04 working which is also in the shield test report as you linked to Intel_Alvarado
Yes, adapting or making your libraries is not an easy task. If you are going to try and make the AFMotor library work with Galileo I’d recommend you to make it from scratch so that you make sure it has all the parameters you need so that it works correctly. Use the Arduino library as a reference guide to have an idea on how the library works. Something like this would probably help The GNU C Programming Tutorial
Today my adafruit v2.3 shield arrived it is the better option. So the answer is use the new shield if you are not in for coding a library.
I have linked the adafruit website for purchasing the latest board in the youtube video.