FRC_7130_4th
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Help
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# 20210913~20210919 程式組 ###### tags: `工作筆記 程式組` ## 20210914 ### 黃冠穎 今天魏仁祥和陳彥廷主要還是在修機器人的連線問題(的樣子,而其他學弟在幫忙查可能的原因及解決辦法,今天也沒上什麼課。我今天自己在旁邊看之前暑假其他人傳的Arduino的按壓開關與微動開關。 ### 陳伯豪 這個禮拜因為剛換電腦,因此我就將FRC官方影片上有關PID的東西整理起來 連結:[PID 控制](https://hackmd.io/@yqvHTthmTYehjxz4k9Hqrw/rk1l-b0GF) ### 吳玠廷 今天把HC06藍芽的程式碼上註解,之後和學長測試機器人可不可以連線,但最後失敗了。 ### 陳彥廷 今天還在修連線的問題,雖然上週修過了,不過這週又連不上,所以又在 ### 林俊彥 今天大部分的時間都是在尋找為什麼連不上機器人 網路上大部分的解決方法都是用USB直接連線 也有人說 把roborio重新灌新的韌體 最後再有USB的時候連上了機器人 ## 20210916 ### 吳玠廷 今天用joystick測試機器人可不可以動,後來用Phoenix Tunert查機器人各部位的名稱及id以便寫出能讓機器人射球的程式,但最後射出球的部位轉錯邊以及有些地方動力不夠,於是調整了一下程式碼的數值,還好最後成功了。 ``` java if (js1.getRawButton(Btn_A)) {shooter.set(ControlMode.PercentOutput,-0.5); transporter1.set(ControlMode.PercentOutput,0.8); transporter2.set(ControlMode.PercentOutput,0.5); } else {shooter.set(ControlMode.PercentOutput,0); transporter1.set(ControlMode.PercentOutput,0); transporter2.set(ControlMode.PercentOutput,0); ``` ### 劉柏蔚 今天我們終於發現如何控制neo馬達了,之前我們一直忘記下載spark的library因此每次些程式時都沒辦法deploy。我們在網絡上有找到一個人在github分享如何撰寫spark的程式還有所需要函式庫的[載點](https://docs.revrobotics.com/sparkmax/software-resources/spark-max-api-information#java-api) ``` java package frc.robot; import com.ctre.phoenix.motorcontrol.ControlMode; import com.ctre.phoenix.motorcontrol.can.TalonSRX; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.Spark; import edu.wpi.first.wpilibj.TimedRobot; import edu.wpi.first.wpilibj.drive.RobotDriveBase.MotorType; import edu.wpi.first.wpilibj.smartdashboard.SendableChooser; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class Robot<CANSparkMax> extends TimedRobot { private static final String kDefaultAuto = "Default"; private static final String kCustomAuto = "My Auto"; private String m_autoSelected; private final SendableChooser<String> m_chooser = new SendableChooser<>(); private static final int deviceID = 8; private CANSparkMax m_motor; @Override public void robotInit() { m_motor = new CANSparkMax(deviceID, MotorType.kBrushless); } @Override public void robotPeriodic() { } @Override public void autonomousInit() { m_autoSelected = m_chooser.getSelected(); // m_autoSelected = SmartDashboard.getString("Auto Selector", kDefaultAuto); System.out.println("Auto selected: " + m_autoSelected); } @Override public void autonomousPeriodic() { } @Override public void teleopInit() { } @Override public void teleopPeriodic() { if(js1.getRawButton(1)){ motor.set(ControlMode.PercentOutput, -0.5); } if(js1.getRawButton(2)){ motor.set(ControlMode.PercentOutput, 0.5); } } @Override public void disabledInit() { } @Override public void disabledPeriodic() { } @Override public void testInit() { } @Override public void testPeriodic() { } } ``` ### 魏仁祥 今天在協助劉柏蔚和 Matt 處理 neo 馬達的部分,他們有找到了 neo 的 libaray 要去下載,因為時間上關係沒有完成。其他人也嘗試了上次比賽機器人的炮台和底盤,基本上都也有完成了,後面因為電池沒電所以沒有在試。 剛剛找到中科一個月前做的教程:https://www.youtube.com/c/FRC7636Robomania/featured ### 陳伯豪 這個禮拜因為剛換電腦,因此我就將FRC官方影片上有關PID的東西整理起來 連結:[PID 控制](https://hackmd.io/@yqvHTthmTYehjxz4k9Hqrw/rk1l-b0GF) ### Matt The primary focus of this week was to fix the connectivity issue with the new motors provided. We were having trouble connecting to RoboRio the previous week and after solving that issue, we moved on to the Neo motor. After scouraging Github for possible references, we came across the official documentation for the neo motor and was able to make it work. 劉柏蔚 was able to use the reference code to make the motor move accordingly. ### 謝亞諺 這2個禮拜因為Phoenix Tuner一直連不上機器人,搞得大家都在查有關於Phoenix Tuner 的Gerneral 問題,最後學長找到一條USB線,直接接上ROBOT RIO,以目前狀況來講是只有這樣才可連接的上,Phoenix Tuner上顯示的資料有馬達的ID,也可以測試哪個馬達及正反轉,學長教我們如何看這些資料,也讓我們複習之前的底盤控制,這禮拜讓我們自己思考該如何寫砲台馬達的程式,目前是只能讓它全部一啟動 ### 林俊彥 今天的課題是用joystick控制機器人的投射還有把球預備到投射區 在多次的努力下有成功(getRawButton) 之後設定馬達的動力 一開始設置0.8甚至到1.0學長說太強可以先降低到0.5最後發現是因為電壓過低 導致他的轉速超級慢 力氣不夠不能把球帶上來 還有有follow a(b)讓原本兩個分開動的馬達能夠同時運作

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully