flyingnoob.blogg.se

Robotc encoder
Robotc encoder








robotc encoder

Thresholds allow your robot to make decisions via Boolean ComparisonsĬalculate an appropriate threshold with the aid of the Sensor Debug Window. Click File, Save As, select the folder that your teacher designated, then name the file A3_1_3_Part5. Test the program and troubleshoot until the expected behavior has occurred. Turn on both motors in reverse until another 3.5 rotations of the encoder have passed Turn on both motors forward until the encoder has counted 480 degrees Click File, Save As, select the folder that your teacher designated, then name the file A3_1_3_Part4. Test the program and troubleshoot if needed until the expected behavior has occurred. Turn on the leftMotor at half power until the potentiometer is less than 2048. Turn on the greenLED until the potentiometer value is greater than 2048. Verify that the potentiometer is at a value of less than 2048. Modify your program to perform the pseudocode below. Observe the behaviors and document what this program would look like as pseudocode simple behaviors. UntilPotentiometerGreaterThan(2048, potentiometer) ĭownload and run the program. Use the program below in the task main() section of the program between the curly braces. The wiring configuration and motors and sensors tabs should be the same as above. Click File, Save As, select the folder that your teacher designated, then name the file A3_1_3_Part3. Part 6: Using the Ultrasonic Distance Sensor.Part 5: Using the Infrared Line Follower.Part 3: Using the Optical Shaft Encoder.










Robotc encoder