In the process of converging these two codes I will make notes on what comments have been added to which lines. Note it's unlikely the lines will say the same but the general area or functions well in laissez later remark specifies.
- Line 8 #include <Servo.h> --Remove from line 8; already in previous code online 79 under loop
- Line 41 String serial;// Used in AirRegulatorServo()
- line 42 add Servo myservo;// Used in the air systam sorvo. see about oving this.------------------
- Line 49 myservo.attach(9);// Used in AirRegulatorServo() Set Pin, Defalt: 9. ------------------------See about moving this into the function AirRegulatorServo(). At a later time
- Line 134 Add reference to AirRegulatorServo(serial); under loop------------------------------------- see about adding a condition to running this function.
- Line 582 Add function
int AirRegulatorServo(String serial){
}
else serial = "90";
if(serial.toInt()<90){
myservo.write(serial.toInt()-4);
}
else myservo.write(serial.toInt());
delay(500);// Temp remove after tested.
}
This will be modified at a later time.
This function is still in progress and will be updated regularly here on my online notebook.
Momentarily problem the servo is spending without apparent merit.
Partial solution by default serial is zero and not what's required for stationary which is 90.
Momentarily problem the servo is spending without apparent merit.
Partial solution by default serial is zero and not what's required for stationary which is 90.
- Line 115under loop change serial = "0" to serial = "90".
No comments:
Post a Comment