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
    # Robot Characterization ###### tags: `程式組教程` # Purpose 藉由數學公式計算出馬達的輸出量 > The process of determining a mathematical model for the behavior of a system through statistical analysis of its inputs and outputs. # Basic Math ![](https://i.imgur.com/gOFbXrC.png) $V$ 應輸出電壓 $d$ 上面一個點 -> 速度 $d$ 上面兩個點 -> 加速度 > 上面一個點是表示對時間的微分 $kS$ 需要克服地面摩擦力的最低電壓 > the voltage needed to overcome the motor’s static friction $kV$ 是在給定速度下需要多少電壓來保持 > how much voltage is needed to hold at a given constant velocity $kA$ 加速時所需電壓 > the voltage needed to induce a given acceleration in the motor shaft :::success 可憐的冠穎剛看完了八九成卻被改版 gank ::: # Configure A Project ## Analysis Type General mechanism -> non-drivetrain mechanisms (e.g. Simple Motor, Arm, Elevator) Drivetrain -> Drivetrain mechanisms Romi -> Romi robots ## Motor Controller Selection +- : add motor * **Motor port:** ``` Where you add the port number for a specific controller. ``` * **Inverted:** ``` Should be checked if the motorcontroller should be inverted. ``` * **Motor controller:** ``` The type of motor controller that will be used. ``` ## Encoder Selection **Encoder selection:** The types of encoder you can use will vary with the first motor controller type specified | Motor Controller Types | Encoder Types | | -------- | -------- | | General Types | **RoboRIO:** Corresponds to any encoders that are plugged into the roboRIO| | General Types | **CANcoder:** Corresponds to the CTRE CANCoder. | | TalonSRX | **Built-in:** Corresponds to any quadrature encoder plugged into the encoder port | | TalonSRX | **Tachometer:** Corresponds to the CTRE Tachometer plugged into the encoder port | | TalonFX | **Built-in:** Corresponds to the integrated encoder on the TalonFX motor | | SparkMAX | **Encoder Port:** Refers to an encoder plugged into the encoder port | | SparkMAX | **Encoder Port:** Data Port refers to an encoder plugged into the data port. | | Venom | Built-in refers to an encoder plugged into the Venom’s encoder port ## Encoder Setting the following settings that can be configured(although the settings that are visible will vary by the previously selected encoder type) * **Encoder Inverted:** Should be checked if a positive motor power doesn’t correspond to a positive increase in encoder values * **Sample Per Averages:** How many samples will be averaged per velocity measurement. A value greater than one can help reduce encoder noise and 5-10 is recommended for encoders with high CPR. Only mess with this setting if a previous run of SysId resulted in extremely noisy data. * **Reduce Encoding:** Should be checked if using high resolution encoders(e.g. CTRE Mag Encoders or REV Through Bore Encoder)that are plugged into the roboRIO. Do note, that if this is checked, you will have to update your team’s robot code to also reduce encoding. * **Time Measurement Window:** Yhe period of time in milliseconds that the velocity measurement will be taken across. This setting can reduce measurement lag at the cost of possibly introducing more noise. Only modify this if data lag is impeding accurate control and data collection. ## Encoder Parameter Counts Per Revolution: the encoder counts per revolution for your encoder which is generally specified on a datasheet. Common values include: | encoder | counts per revolution | | -------- | -------- | | CTRE Magnetic Encoder | 4096 | | Falcon 500 Integrated | 2048 | | REV Throughbore | 8192 | | NEO | 1 | ## Gearing The gearing between the encoder and output shaft ## Gyro Parameter(Drivetrain Only) * **Gyro:** ``` The type of supported gyro. ``` * **Gyro Parameter:** ``` Lets you configure additional settings needed to configure the previously specified gyro ``` ## Save loading and saving configuration ## Load Config load an existing config file ## Delploy # Dunning the Characterization Routine Mode:clinet Team/IP:7130(simulated robot program:localhost) ## Pply Success -> NT connected Unsuccess -> NT Disconnected(reboot the robot) ## Project Parameters Mechanism:controls what data is sampled and how gravity is expected to affect the analysis. Unit Type:the units you are using and the units that SysID will export the gains in. Unites per rotation ## Voltage Parameters Quasistatic Ramp Rate(摩擦力):controls how quickly the voltage will ramp up during the quasistatic tests. The goal here is to get the voltage ramped up enough that a trend emerges. If the amount of space you have to run the robot is small you might need to slightly increase this ramp rate. Dynamic Step Voltage(啟動電壓):he voltage that will be applied immediately on start to determine how your robot accelerates. If your robot is short on space you should slightly reduce the voltage. ## Running Test Quasistatic:In this test, the mechanism is gradually sped-up such that the voltage corresponding to acceleration is negligible (hence, “as if static”). Dynamic:In this test, a constant ‘step voltage’ is given to the mechanism, so that the behavior while accelerating can be determined. ## Track Width select Drivetrain(Aungular)test will provide angular Kv and Ka parameters will spin the robot ## Save after four tests are finished and click save as JSON file a timestamp will be appended the name of the file saved will be shown in the Program Log # Analyzing Data WPILib standarizes on SI units, so its recommended that the Units option is set to Meters. ## Loading Data File select JSON file ## Running Feedforward Analysis Override Units:change units # References Material [Robot Characterization](https://docs.wpilib.org/en/stable/docs/software/pathplanning/robot-characterization/index.html?highlight=Robot%20characterization)

    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