###### tags: `程式組工筆`
# 20220612 ~ 20220618
# 20220614
## 倪睿宏
Review Arcade Drive.
When the robot is in high speed, the turning result may not be as well as expected.
Introduce Phoenix Tuner
Introduce roboRIO
Tryharding…
To gain a greater understand of drive modes, I read a few articles these days. During researching this, I was confused about a function called setinverted(), I didn’t know why I should invert a motor. But then I asked my dad (I also asked this quection in our group. Thanks for your help, @Chenry and @AaronWang!) and he told me a basic knowledge of drivetrain: the left motors and the right motors of a robot are inverted because in a 4-wheel drive, the whole wheels are usually face out. If I don’t invert it and just make it spin in different ways, it’ll just move like an idiot :thinking_face:
## 彭柏鈞
In the last class, we’ve reviewed the drives and learnt a important lesson:the robot may not turn as the direct angle as expected. Also, we learned about setInverted T/F. It is said that it will be easier to write the code after setting it true to specific motors, which can reduce a lot of time.
## 粘家榆
This week, we reviewed some things that we learnt in the past few weeks. There are some skills we can use during writing programs. When we write motor inverted, we can set it as “False” or add a minus sign in front. The former is better because when someone is reading the program, he may notice it easily. Also, we do not use the motor at maximum speed. The motor will soon be broken.
## 陳宇浩
This class first the Gating tell us to review the tank drive and initialization and we learned stuff from previous weeks.And we learned about the roboRIO and Phoenix Tuner.And let we practice to write the arcade drive.The Pohenix Tuner and Deiver station and roboRIO is in same place to download and just one doucument instell it and it done.
The time let we practice I went to watch last time video and check about all of thing I an understand,because I am nervous on the test.
## 魏旭霆
We reviewed the program that we just learn.And there will be a test in7/1 to let us know where we are still not good at.I watch the video about our class before,and still learn several details.
## 黃湲宸
During the class, we have reviewed the program that learnt in the past few weeks. we have also introduced the Pohenix Tuner and roboRIO. And we had practice writing the program, it is very hard… :cry: also, there will be a test on July 1st, hope I can do it well.
## 江宥伶
We reviewed the program we’ve learnt. We have to go to school and have a test on July first. Actually I’m nervous now because I’m afraid that I can’t do them well.
## Aslan
### Work Progress
Announce the detail s of the test on 07.01
Ask gayting to review all of the drivetrain that we’ve taught
## Sum
Nothinng :)
I even don’t know what did I do this week. @-@
OMG I’m so useless.
## 施暄庭
For the class today we mostly went through the stuff we learnt in the past few weeks. Then, we also learnt a bit about Phoenix Tuner and RoboRio. Lastly, we were told to have a test on July the first, wish me luck T_T
# 20220616
## 彭柏鈞
In today’s class, we were free to do things we want, so I searched for the coding competition that we’re going to have on July 1st.
## 倪睿宏
Like Brian said, we were free to do things we want this class, so I do some small researches for the test on July first. I also tried to write a arcade drive program myself, but I didn’t know if it’s correct. Can you help me check the code?
:::spoiler My arcade drive code (btw I also did tank drive)
### Gayting's

### Mine
```java=
@Override
public void teleopPeriodic() {
//Tank drive
double left = js1.getRawAxis(leftStick_Y) * 0.7;
double right = js1.getRawAxis(rightStick_Y) * 0.7;
Drives.tankDrive(left, right);
//Arcade drive
double throttle = js1.getRawAxis(leftStick_Y) * 0.7;
double rotation = js1.getRawAxis(leftStick_X) * 0.1;
double leftspeed = throttle + rotation;
double rightspeed = throttle - rotation;
LF.set(ControlMode.PercentOutput, leftspeed);
LR.set(ControlMode.PercentOutput, leftspeed);
RF.set(ControlMode.PercentOutput, rightspeed);
RR.set(ControlMode.PercentOutput, rightspeed);
Drives.arcadeDrive(throttle, rotation);
```
:::
## 粘家榆
This time, we had a lot of free time. I wacthed all the REC again and prepare for the test on July 1st, and I was anxious about it. I also searched some videos and essays about Java. Hope that I can successfully complete the test :cry: :slightly_smiling_face:
## 陳宇浩
This class the senior tell us the 7/1 test examination content roughly how like and he tell us the competition program will in the test because let we better understanding the program so I need to work harder on my competition program because the certificate questions in MDCPP I have some can’t not finish.
## 魏旭霆
Because the test will also test the logic of programming language,so I start to learn c++this Thursday.Until now,I haven’t face any problem, maybe is because I am still on the basic level.Hope I can learn it perfect soon.
## 黃湲宸
In this class, we had a lot of free time that we can do anything we want, so I had watch some FRC race, it is really fun, and I also watched the REC so that I can understand better. The things we had learn in the past few weeks it is hard, especially write the program by myself, but I hope I can complete the test on July 1st.
## Aslan
### Work Progress
Review code?
Give a report
## 江宥伶
We had a free time to research program or prepare our test on July first. I haven't learnt programming before so it's a bit difficult for me. I wull do my best.
## 王敬銜
:::spoiler worknote
[20220612~20220618](https://hackmd.io/AFYSXBobSDmJxHalVux4Cg)
:::
## 施暄庭
Due to the final exam, I spent the free time in class studying for it. Hope there's still time for me to save my dying grade T_T