Looking for help with upload multiple ino files to Arduino Nano

I dont know what I'm doing wrong :frowning: I was try to upload this sketch to Nano, but problems all the time.

I was make new file named BiPed. When open BiPed file rest of .ino files in tabs. But have errors. I have servo library, NewPing library. What is wrong?

Arduino:1.5.5-r2 (Windows 7), P?yta:"Arduino Nano, ATmega328"

ServoPrimitives.ino: In function 'void TiltRightUp(byte, byte)':
ServoPrimitives:18: error: 'Lfoot' was not declared in this scope
ServoPrimitives:18: error: 'LFcenter' was not declared in this scope
ServoPrimitives:19: error: 'Rfoot' was not declared in this scope
ServoPrimitives:19: error: 'RFcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void TiltRightDown(byte, byte)':
ServoPrimitives:26: error: 'Lfoot' was not declared in this scope
ServoPrimitives:26: error: 'LFcenter' was not declared in this scope
ServoPrimitives:27: error: 'Rfoot' was not declared in this scope
ServoPrimitives:27: error: 'RFcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void TiltLeftUp(byte, byte)':
ServoPrimitives:35: error: 'Lfoot' was not declared in this scope
ServoPrimitives:35: error: 'LFcenter' was not declared in this scope
ServoPrimitives:36: error: 'Rfoot' was not declared in this scope
ServoPrimitives:36: error: 'RFcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void TiltLeftDown(byte, byte)':
ServoPrimitives:43: error: 'Lfoot' was not declared in this scope
ServoPrimitives:43: error: 'LFcenter' was not declared in this scope
ServoPrimitives:44: error: 'Rfoot' was not declared in this scope
ServoPrimitives:44: error: 'RFcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void LeftFootUp(char, byte)':
ServoPrimitives:52: error: 'Lfoot' was not declared in this scope
ServoPrimitives:52: error: 'LFcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void LeftFootDown(byte, byte)':
ServoPrimitives:59: error: 'Lfoot' was not declared in this scope
ServoPrimitives:59: error: 'LFcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void RightFootUp(byte, byte)':
ServoPrimitives:67: error: 'Rfoot' was not declared in this scope
ServoPrimitives:67: error: 'RFcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void RightFootDown(byte, byte)':
ServoPrimitives:74: error: 'Rfoot' was not declared in this scope
ServoPrimitives:74: error: 'RFcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void SwingRight(byte, byte)':
ServoPrimitives:82: error: 'Lleg' was not declared in this scope
ServoPrimitives:82: error: 'LLcenter' was not declared in this scope
ServoPrimitives:83: error: 'Rleg' was not declared in this scope
ServoPrimitives:83: error: 'RLcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void SwingRcenter(byte, byte)':
ServoPrimitives:90: error: 'Lleg' was not declared in this scope
ServoPrimitives:90: error: 'LLcenter' was not declared in this scope
ServoPrimitives:91: error: 'Rleg' was not declared in this scope
ServoPrimitives:91: error: 'RLcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void SwingLeft(byte, byte)':
ServoPrimitives:99: error: 'Lleg' was not declared in this scope
ServoPrimitives:99: error: 'LLcenter' was not declared in this scope
ServoPrimitives:100: error: 'Rleg' was not declared in this scope
ServoPrimitives:100: error: 'RLcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void SwingLcenter(byte, byte)':
ServoPrimitives:107: error: 'Lleg' was not declared in this scope
ServoPrimitives:107: error: 'LLcenter' was not declared in this scope
ServoPrimitives:108: error: 'Rleg' was not declared in this scope
ServoPrimitives:108: error: 'RLcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void RightLegIn(byte, byte)':
ServoPrimitives:116: error: 'Rleg' was not declared in this scope
ServoPrimitives:116: error: 'RLcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void RightLegIcenter(byte, byte)':
ServoPrimitives:123: error: 'Rleg' was not declared in this scope
ServoPrimitives:123: error: 'RLcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void RightLegOut(byte, byte)':
ServoPrimitives:131: error: 'Rleg' was not declared in this scope
ServoPrimitives:131: error: 'RLcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void RightLegOcenter(byte, byte)':
ServoPrimitives:138: error: 'Rleg' was not declared in this scope
ServoPrimitives:138: error: 'RLcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void LeftLegIn(byte, byte)':
ServoPrimitives:146: error: 'Lleg' was not declared in this scope
ServoPrimitives:146: error: 'LLcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void LeftLegIcenter(byte, byte)':
ServoPrimitives:153: error: 'Lleg' was not declared in this scope
ServoPrimitives:153: error: 'LLcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void LeftLegOut(byte, byte)':
ServoPrimitives:161: error: 'Lleg' was not declared in this scope
ServoPrimitives:161: error: 'LLcenter' was not declared in this scope
ServoPrimitives.ino: In function 'void LeftLegOcenter(byte, byte)':
ServoPrimitives:168: error: 'Lleg' was not declared in this scope
ServoPrimitives:168: error: 'LLcenter' was not declared in this scope
WalkFunctions.ino: In function 'void Forward(byte, byte)':
WalkFunctions:14: error: 'tAngle' was not declared in this scope
WalkFunctions:16: error: 'sAngle' was not declared in this scope
WalkFunctions.ino: In function 'void TurnLeft(byte, byte)':
WalkFunctions:30: error: 'uAngle' was not declared in this scope
WalkFunctions:33: error: 'sAngle' was not declared in this scope
WalkFunctions.ino: In function 'void TurnRight(byte, byte)':
WalkFunctions:49: error: 'uAngle' was not declared in this scope
WalkFunctions:52: error: 'sAngle' was not declared in this scope
WalkFunctions.ino: In function 'void HeadRight()':
WalkFunctions:68: error: 'Head' was not declared in this scope
WalkFunctions:68: error: 'Hcenter' was not declared in this scope
WalkFunctions.ino: In function 'void HeadLeft()':
WalkFunctions:74: error: 'Head' was not declared in this scope
WalkFunctions:74: error: 'Hcenter' was not declared in this scope
WalkFunctions.ino: In function 'void HeadCenter()':
WalkFunctions:80: error: 'Head' was not declared in this scope
WalkFunctions:80: error: 'Hcenter' was not declared in this scope
uBipedino.ino: At global scope:
uBipedino:28: error: 'Servo' does not name a type
uBipedino:29: error: 'Servo' does not name a type
uBipedino:30: error: 'Servo' does not name a type
uBipedino:31: error: 'Servo' does not name a type
uBipedino:32: error: 'Servo' does not name a type
uBipedino.ino: In function 'void setup()':
uBipedino:47: error: redefinition of 'void setup()'
BiPed:1: error: 'void setup()' previously defined here
uBipedino:50: error: 'Lleg' was not declared in this scope
uBipedino:51: error: 'Rleg' was not declared in this scope
uBipedino:52: error: 'Lfoot' was not declared in this scope
uBipedino:53: error: 'Rfoot' was not declared in this scope
uBipedino:54: error: 'Head' was not declared in this scope
uBipedino.ino: In function 'void loop()':
uBipedino:66: error: redefinition of 'void loop()'
BiPed:6: error: 'void loop()' previously defined here
uBipedino.ino: In function 'void CenterServos()':
uBipedino:118: error: 'Lleg' was not declared in this scope
uBipedino:119: error: 'Rleg' was not declared in this scope
uBipedino:120: error: 'Lfoot' was not declared in this scope
uBipedino:121: error: 'Rfoot' was not declared in this scope
uBipedino:122: error: 'Head' was not declared in this scope

uBipedino.rar (2.51 KB)

It will be no consolation to you. I am sure, but it compiles OK for me using 1.5.6-r2 and 1.0.5

Hmmm, do I need make something extra? Do I need make nu file who includes rest files?

All I did was to put the 3 files on separate tabs of the IDE and compile them.

Fresh instalation 1.5.7 and compilation done :slight_smile: