Difference between revisions of "FTC Power Up a Motor 20230911"

From wikidb
Jump to: navigation, search
(Running the Demo Code)
(Running the Demo Code)
Line 36: Line 36:
 
* Make sure the "FTC Driver Station" app is running
 
* Make sure the "FTC Driver Station" app is running
 
* Select the Autonomous dropdown menu (left triangle that points down)
 
* Select the Autonomous dropdown menu (left triangle that points down)
* Select the "Motor Test" app
+
* Select the "motor test 9-23" app
 
* If the app is not in the list, you may need to "Build" it from the laptops web browser you used above
 
* If the app is not in the list, you may need to "Build" it from the laptops web browser you used above
  

Revision as of 12:56, 13 September 2023

Lab 1: Power Up

Core Resources

  • OnBot Java Guide Chapters14, 15 and 16 (pages 78 to 99) are focused on Creating and Running an Op Mode in OnBot Java.

Why

  • Master basic operations

Check Points

  1. Power up the FTC Training Robot
  2. Run the TestMotor app on the FTC Training Robot
  3. Make the Training Robot do a slow turn to the right.
  4. Make the Training Robot go faster.
  5. Make the robot drive straight - if it isn't
    1. Why might the robot drive to the left or to the right?

HowTo - More Details

Power Up

  1. Power up Control Hub - wait for green LED
  2. Power up the Driver Station
    1. Run the FTC Driver Station app
    2. Run the Test Motor Op Mode
  3. Be sure to power off the Driver Station and
    1. the Control Hub when done
  4. Be sure to change every thing

Running the Demo Code

  • Make sure the Driver Station cell phone is on
  • Make sure the "FTC Driver Station" app is running
  • Select the Autonomous dropdown menu (left triangle that points down)
  • Select the "motor test 9-23" app
  • If the app is not in the list, you may need to "Build" it from the laptops web browser you used above

Finding Code on GitHub

Connecting from a Laptop to the Robot

  • Make sure the robot is on
    • OrRAS01-RC
    • OrRAS02-RC
    • OrRAS03-RC
  • Make sure your laptop Wifi is connected to the Robots Wifi
  • Start a Web Browser on the laptop
  • Connect to 192.168.43.1:8080 - if you are using a Control Hub
    • 192.168.49.1:8080 - if you are using a Android phones
  • Select the OnBotJava tab
  • TestMotor.java should be in the Project Files list
  • Build the modified Op Mode by press the wrench button (lower right)

Example Configuration File

Warning : Incomplete, unclear, Untested, may be wrong

  • name: OrRAS
    • Webcam 1: 9BB6F610
    • Control Hub Portal: embedded
      • Control Hub
        • Motors
          • 0: REV Robotics Core Hex Motor: myLeftMotor
          • 1: REV Robotics Core Hex Motor: myRightMotor
        • I2C Bus 0
          • REV Expansion Hub IMU: imu

Additional References