void Sequences(){

StartServoSeq6Part1Mapped= monServo1.readPosition();
StartServoSeq6Part1 =  mapf(StartServoSeq6Part1Mapped,0,1,0,180);
EndServoSeq6Part1Mapped = mapf(180,0,180,0,1);
if (EndServoSeq6Part1Mapped > StartServoSeq6Part1Mapped){
DistanceServoSeq6Part1 = ( EndServoSeq6Part1Mapped - StartServoSeq6Part1Mapped );}
else {DistanceServoSeq6Part1 = (StartServoSeq6Part1Mapped- EndServoSeq6Part1Mapped );}
SpeedSeq6Part1 = (DistanceServoSeq6Part1*10)/5;

StartServoSeq6Part2Mapped= monServo2.readPosition();
StartServoSeq6Part2 =  mapf(StartServoSeq6Part2Mapped,0,1,0,180);

EndServoSeq6Part2Mapped = mapf(180,0,180,0,1);
if (EndServoSeq6Part2Mapped > StartServoSeq6Part2Mapped){
DistanceServoSeq6Part2 = ( EndServoSeq6Part2Mapped - StartServoSeq6Part2Mapped );}
else DistanceServoSeq6Part2 = (StartServoSeq6Part2Mapped- EndServoSeq6Part2Mapped );
SpeedSeq6Part2 = (DistanceServoSeq6Part2*10)/5;

StartServoSeq6Part3Mapped= monServo3.readPosition();
StartServoSeq6Part3 =  mapf(StartServoSeq6Part3Mapped,0,1,0,180);
EndServoSeq6Part3Mapped = mapf(180,0,180,0,1);
if (EndServoSeq6Part3Mapped > StartServoSeq6Part3Mapped){
DistanceServoSeq6Part3 = ( EndServoSeq6Part3Mapped - StartServoSeq6Part3Mapped );}
else {DistanceServoSeq6Part3 = (StartServoSeq6Part3Mapped- EndServoSeq6Part3Mapped );}
SpeedSeq6Part3 = (DistanceServoSeq6Part3*10)/5;


StartServoSeq60Part1Mapped= monServo3.readPosition();
StartServoSeq60Part1 =  mapf(StartServoSeq60Part1Mapped,0,1,0,180);
EndServoSeq60Part1Mapped = mapf(0,0,180,0,1);
if (EndServoSeq60Part1Mapped > StartServoSeq60Part1Mapped){
DistanceServoSeq60Part1 = ( EndServoSeq60Part1Mapped - StartServoSeq60Part1Mapped );}
else {DistanceServoSeq60Part1 = (StartServoSeq60Part1Mapped- EndServoSeq60Part1Mapped );}
SpeedSeq60Part1 = (DistanceServoSeq60Part1*10)/8;

StartServoSeq60Part2Mapped= monServo2.readPosition();
StartServoSeq60Part2 =  mapf(StartServoSeq60Part2Mapped,0,1,0,180);

EndServoSeq60Part2Mapped = mapf(0,0,180,0,1);
if (EndServoSeq60Part2Mapped > StartServoSeq60Part2Mapped){
DistanceServoSeq60Part2 = ( EndServoSeq60Part2Mapped - StartServoSeq60Part2Mapped );}
else DistanceServoSeq60Part2 = (StartServoSeq60Part2Mapped- EndServoSeq60Part2Mapped );
SpeedSeq60Part2 = (DistanceServoSeq60Part2*10)/8;

StartServoSeq60Part3Mapped= monServo1.readPosition();
StartServoSeq60Part3 =  mapf(StartServoSeq60Part3Mapped,0,1,0,180);
EndServoSeq60Part3Mapped = mapf(0,0,180,0,1);
if (EndServoSeq60Part3Mapped > StartServoSeq60Part3Mapped){
DistanceServoSeq60Part3 = ( EndServoSeq60Part3Mapped - StartServoSeq60Part3Mapped );}
else {DistanceServoSeq60Part3 = (StartServoSeq60Part3Mapped- EndServoSeq60Part3Mapped );}
SpeedSeq60Part3 = (DistanceServoSeq60Part3*10)/8;


if (!Setupsequence){

Sequence6Servo.at(0,Sequence6Part1);
Sequence6Servo.at(5000,Sequence6Part2);
Sequence6Servo.at(10000,Sequence6Part3);
Sequence6BServo.at(0,Sequence6BPart1);
Sequence6BServo.at(1000,Sequence6BPart2);
Sequence6BServo.at(1000,Sequence6BPart3);
Setupsequence= true;
}
if(Action6.momentaryPos() == 3)
{
Sequence6Servo.start(1);
}
if(Action6.Pos() == 3)
{
NeutralCtl= true;
}
if(Action6.momentaryPos() == 1)
{
Sequence6BServo.start(1);
}
if(Action6.Pos() == 1)
{
NeutralCtl= true;
}
if(Action6.Pos() == 2 )
{
NeutralCtl= false;
}
}
void Sequence6Part1 () {
monServo1.setSpeed(SpeedSeq6Part1);
if (monServo1.isStopped()) {monServo1.goTo(EndServoSeq6Part1Mapped);}
}
void Sequence6Part2 () {
monServo2.setSpeed(SpeedSeq6Part2);
if (monServo2.isStopped()) {monServo2.goTo(EndServoSeq6Part2Mapped);}
}
void Sequence6Part3 () {
monServo3.setSpeed(SpeedSeq6Part3);
if (monServo3.isStopped()) {monServo3.goTo(EndServoSeq6Part3Mapped);}
}
void Sequence6BPart1 () {
monServo3.setSpeed(SpeedSeq60Part1);
if (monServo3.isStopped()) {monServo3.goTo(EndServoSeq60Part1Mapped);}
}
void Sequence6BPart2 () {
monServo2.setSpeed(SpeedSeq60Part2);
if (monServo2.isStopped()) {monServo2.goTo(EndServoSeq60Part2Mapped);}
}
void Sequence6BPart3 () {
monServo1.setSpeed(SpeedSeq60Part3);
if (monServo1.isStopped()) {monServo1.goTo(EndServoSeq60Part3Mapped);}
}
