Servo moves when not prompted to

Ok I went through the code and found that as soon as I initialize the gps the servo starts to move

uart_gps.begin(GPSBAUD);

Is there a way to get around this line of code?

Is there a way to get around this line of code?

Two slashes in front of it...

What is uart_gps an instance of? I'm going to guess SoftwareSerial, which relies on interrupts, as does Servo.

I would say that uart_gps is an instance of software serial

Perhaps you could try AltSoftSerial, and move the servo to another pin. AltSoftSerial uses pins 8 and 9.

So how would the code look? import the library?

So how would the code look?

Almost exactly like it does now, except for the include and instance creation statements.

import the library?

This isn't your mama's java. No.