Skip to content

Commit ecfe559

Browse files
committed
Re-Adjust Comments to Align w/ Comments from Previous Line
Auto format moved some comments too far left, re-adjusting back to the way it was.
1 parent 613a3b1 commit ecfe559

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

SIK_Circuit_3A-Servo/SIK_Circuit_3A-Servo.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ void loop() {
3131
potPosition = analogRead(A0); //use analog read to measure the position of the potentiometer (0-1023)
3232

3333
servoPosition = map(potPosition, 0, 1023, 20, 160); //convert the potentiometer number to a servo position from 20-160
34-
//Note: its best to avoid driving the little SIK servos all the
35-
//way to 0 or 180 degrees it can cause the motor to jitter, which is bad for the servo.
34+
//Note: its best to avoid driving the little SIK servos all the
35+
//way to 0 or 180 degrees it can cause the motor to jitter, which is bad for the servo.
3636

3737
myservo.write(servoPosition); //move the servo to the 10 degree position
3838
}

SIK_Circuit_3B-DistanceSensor/SIK_Circuit_3B-DistanceSensor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ float getDistance()
7878
digitalWrite(trigPin, LOW);
7979

8080
echoTime = pulseIn(echoPin, HIGH); //use the pulsein command to see how long it takes for the
81-
//pulse to bounce back to the sensor
81+
//pulse to bounce back to the sensor
8282

8383
calculatedDistance = echoTime / 148.0; //calculate the distance of the object that reflected the pulse (half the bounce time multiplied by the speed of sound)
8484

SIK_Circuit_3C-MotionAlarm/SIK_Circuit_3C-MotionAlarm.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ float getDistance()
9999
digitalWrite(trigPin, LOW);
100100

101101
echoTime = pulseIn(echoPin, HIGH); //use the pulsein command to see how long it takes for the
102-
//pulse to bounce back to the sensor
102+
//pulse to bounce back to the sensor
103103

104104
calculatedDistance = echoTime / 148.0; //calculate the distance of the object that reflected the pulse (half the bounce time multiplied by the speed of sound)
105105

SIK_Circuit_5B-RemoteControlRobot/SIK_Circuit_5B-RemoteControlRobot.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ const int BIN1 = 8; //control pin 1 on the motor driver for the left m
2828
int switchPin = 7; //switch to turn the robot on and off
2929

3030
const int driveTime = 20; //this is the number of milliseconds that it takes the robot to drive 1 inch
31-
//it is set so that if you tell the robot to drive forward 25 units, the robot drives about 25 inches
31+
//it is set so that if you tell the robot to drive forward 25 units, the robot drives about 25 inches
3232

3333
const int turnTime = 8; //this is the number of milliseconds that it takes to turn the robot 1 degree
34-
//it is set so that if you tell the robot to turn right 90 units, the robot turns about 90 degrees
34+
//it is set so that if you tell the robot to turn right 90 units, the robot turns about 90 degrees
3535

36-
//Note: these numbers will vary a little bit based on how you mount your motors, the friction of the
37-
//surface that your driving on, and fluctuations in the power to the motors.
38-
//You can change the driveTime and turnTime to make them more accurate
36+
//Note: these numbers will vary a little bit based on how you mount your motors, the friction of the
37+
//surface that your driving on, and fluctuations in the power to the motors.
38+
//You can change the driveTime and turnTime to make them more accurate
3939

4040
String botDirection; //the direction that the robot will drive in (this change which direction the two motors spin in)
4141
String distance; //the distance to travel in each direction
@@ -66,7 +66,7 @@ void setup()
6666
void loop()
6767
{
6868
if (digitalRead(7) == LOW)
69-
{ //if the switch is in the ON position
69+
{ //if the switch is in the ON position
7070
if (Serial.available() > 0) //if the user has sent a command to the RedBoard
7171
{
7272
botDirection = Serial.readStringUntil(' '); //read the characters in the command until you reach the first space

SIK_Circuit_5C-AutonomousRobot/SIK_Circuit_5C-AutonomousRobot.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ float getDistance()
166166
digitalWrite(trigPin, LOW);
167167

168168
echoTime = pulseIn(echoPin, HIGH); //use the pulsein command to see how long it takes for the
169-
//pulse to bounce back to the sensor
169+
//pulse to bounce back to the sensor
170170

171171
calculatedDistance = echoTime / 148.0; //calculate the distance of the object that reflected the pulse (half the bounce time multiplied by the speed of sound)
172172

0 commit comments

Comments
 (0)