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
    • Invite by email
      Invitee

      This note has no invitees

    • 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
    • Note Insights
    • 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 Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
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
  • Invite by email
    Invitee

    This note has no invitees

  • 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
    # 20210614~20210620 程式組 暑期計畫 ###### tags: `工作筆記 程式組` ## 陳伯豪 這禮拜我看完了暑期計畫裡這個禮拜應該要看完的進度,雖然裡面的程式看的很混亂(看不懂他在寫啥= =),但是影片中的理論都看得懂,他是想要利用Output = kP * Error這個公式來控制機器人的移動。程式的部分我原本打算自己照著影片寫看看,但是不知道為什麼筆電內的軟體突然消失,雖然想要重載,但是不知道出了什麼問題,一直無法下載,所以這禮拜就沒辦法截程式的圖片了QQ ## 林俊彥 看完了本周的進度內容,礙於英文能力,導致在觀看影片時無法做到100%的了解與吸收,所以只能歸納出一部分的點。一開始讓我們了解到自動化和PID的優點以及一部分的缺點接著談到motor outspeed = KP(可更改) * 距離(剩餘)感覺會需要具備一部分的運算能力,讓我有些擔憂。 ## 謝亞諺 看完了這次的進度,因為語言的隔閡,導致看影片時他講話我都聽成a ba a ba,所以有一些聽不太懂。大概看圖說故事後,我大致了解他是學長之前所說的自動模式,我也簡單的統整了我的理解。"這影片裡的人,想讓機器人自動跑準確的10公尺,而不是數據上的計算,需要包含重量,環境的因素,不管在哪都要是10M,所以他用了偵測器,然後將他要跑的距離射程一個值,越接近越小,然後用這個值乘固定值,決定馬達轉速,進而使機器人。 ## 林怡瑄 這個禮拜看完了本周進度的影片,沒怎麼看懂,可能是因為之前學的程式語言不是java。然後,找了一本AI世代的程式書,目前是看了1~3章,中間有跟著操作了幾題,想把有關寫程式一些更基礎的東西弄明白了。去youtube找了hackmd用法的相關影片。 ## 魏仁祥 這個禮拜看了第一支影片,內容主要是在講之前我們講過的東西,從告訴我們機器人的訊號傳遞流程,再接著帶領我們撰寫機器人程式。跟我們不同的是,影片中的教學是用 spark 宣告馬達,而我們是用 WPI_Talon FX 宣告馬達,是因為我們的馬達跟他們不一樣,裡面也講到之前說的 port 要看 driver station 那邊。 :::spoiler my arcade drive code ```java= package frc.robot; import com.ctre.phoenix.motorcontrol.can.WPI_TalonFX; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.TimedRobot; import edu.wpi.first.wpilibj.smartdashboard.SendableChooser; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class Robot extends TimedRobot { private WPI_TalonFX leftMotor1 = new WPI_TalonFX(1); private WPI_TalonFX leftMotor2 = new WPI_TalonFX(2); private WPI_TalonFX rightMotor1 = new WPI_TalonFX(3); private WPI_TalonFX rightMotor2 = new WPI_TalonFX(4); private Joystick js1 = new Joystick(0); @Override public void robotInit() { } @Override public void robotPeriodic() { } @Override public void autonomousInit() { } @Override public void autonomousPeriodic() { } @Override public void teleopInit() { } @Override public void teleopPeriodic() { double speed = -js1.getRawAxis(1) * 0.6; double turn = js1.getRawAxis(1) * 0.3; double left = speed + turn; double right = speed - turn; leftMotor1.set(left); leftMotor2.set(left); rightMotor1.set(right); rightMotor2.set(right); } @Override public void disabledInit() { } @Override public void disabledPeriodic() { } @Override public void testInit() { } @Override public void testPeriodic() { } } ``` ::: ![](https://i.imgur.com/HnqiNwg.png) ## 黃冠穎 今天才看完這第一個禮拜的東西,都在準備段考或是就是懶啦!總之,影片講的是之前就有提到的Arcade Drive的部分。還有提到在自動時間的程式碼該怎麼寫。只是稍微不懂 "double left = speed + turn; double right = speed - turn;" 這段是為什麼,可能要親自用搖桿操作過後才知道的吧,希望趕快理解,感覺自己跟其他人能力差了一大截。 ## 吳玠廷 這個影片主要在講如何讓機器人移動到指定位置時停下,但會有動太快導致到達指定位置時無法馬上停下的問題。針對這個問題的解決方案,他讓機器人邊往目標點移動一邊偵測離目標點還有多少距離去控制最後輸出的動力。簡單來講就是當機器人越接近目標點阿跑的速度就越慢,最後停在目標點上。接下來進到程式碼,一開始的宣告都跟學長講得差不多,但後面看不太懂,總之kp影響了能否在正確的點停下來,kp太高或太低都不行。

    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