You are currently viewing Team FGC Vietnam 2022 Bot design

Team FGC Vietnam 2022 Bot design

GREETING! WE ARE TEAM VIETNAM
This is the block program that we have translated from our Java program used in the FIRST Global Challenge 2022.
Most of the functions and variables’ names are kept identical to the original program. However, because we reprogram it on a new electrical circuit, some of the names have been changed.
Here are some changes that we have made to our program:
– leftBack: the motor on the left back of the drivebase
– leftFront: the motor on the left front of the drivebase
– rightBack: the motor on the right back of the drivebase
– rightFront: the motor on the right front of the drivebase
– liftMotor: the motor that controls the shooter mechanism
– extendMotor: the intake motor
– cameraServo: the motor that controls the loader mechanism
– leftArmMotor and rightArmMotor: the motors that control the climber mechanism
– Important!: you might also realize that unlike in our Java program, the cameraServo is not a continuous servo, which can rotate 360 degrees, but a normal servo, which has a limited path. This difference is due to the change of the circuit we use, and thus, its function is changed.The servo here  can only be used for reference in this block program. 

How to use this block program?
Step 1: Download this program to your computer.
Step 2: Connect the Control Hub to your computer.
Step 3: Navigate to http://192.168.43.1:8080/ on your web browser.
Step 4: You can see the button Upload OpMode; click it and choose this file on your computer. 

Blockly

LỜI CHÀO! CHÚNG TÔI LÀ TEAM VIETNAM

Đây là chương trình khối mà chúng tôi đã dịch từ chương trình Java được sử dụng trong FIRST Global Challenge 2022.

Hầu hết các hàm và tên biến được giữ nguyên như chương trình gốc. Tuy nhiên, do chúng tôi lập trình lại nó trên một mạch điện mới nên một số tên đã bị thay đổi.

Dưới đây là một số thay đổi mà chúng tôi đã thực hiện đối với chương trình của mình:

– leftBack: động cơ ở phía sau bên trái của drivebase

– leftFront: động cơ ở phía trước bên trái của drivebase

– rightBack: động cơ ở phía sau bên phải của drivebase

– rightFront: động cơ ở phía trước bên phải của drivebase

– LiftMotor: động cơ điều khiển cơ chế bắn

– extendMotor: động cơ hút bóng

– cameraServo: động cơ điều khiển cơ chế loader

– leftArmMotor và rightArmMotor: động cơ điều khiển cơ chế leo

– Quan trọng!: bạn cũng có thể nhận ra rằng không giống như trong chương trình Java của chúng tôi, cameraServo không phải là một servo liên tục, có thể xoay 360 độ mà là một servo bình thường, có đường đi giới hạn. Sự khác biệt này là do sự thay đổi của mạch chúng ta sử dụng và do đó, chức năng của nó bị thay đổi. servo ở đây chỉ có thể được sử dụng để tham khảo trong chương trình khối này.

Làm thế nào để sử dụng chương trình khối này?

Bước 1: Tải chương trình này về máy tính của bạn.

Bước 2: Kết nối Control Hub với máy tính của bạn.

Bước 3: Điều hướng đến http://192.168.43.1:8080/ trên trình duyệt web của bạn.

Bước 4: Bạn có thể thấy nút Tải lên OpMode; nhấp vào nó và chọn tập tin này trên máy tính của bạn.

Original CAD File

https://drive.google.com/drive/folders/1_ihjc0a-bw95B-2fQAbXIweuTw_0BYMT?usp=sharing

Software design:

https://docs.google.com/presentation/d/19hKL-YMMieE9-yAHhovmLKhHG4NdT-NcrkgcLjwVeLY/edit?fbclid=IwAR13prTZtCf1dvl4sJpq41UoO1lg13pZSdb-1p0nRaIHLwbco96SdLJOYBw#slide=id.g2bad9667bc2_0_16

Github:

https://github.com/TeamVietnam/FGC-2022?tab=readme-ov-file

Electronic design:

https://drive.google.com/drive/folders/1eI36jPRCIvL_Nplxooym3o66ZWTBajB-?usp=sharing