Git Product home page Git Product logo

2024robotpy's Introduction

2024Robotpy

This is the FRC 6695 Robot code for the 2024 competitions season.

Coding Standards

  • Spacing set to tab size 4
  • Single spaces inbetween conditional statments or mathematical operations
    • Yes x > y, x * y
    • No x>y, x*y
  • Functions or if statements with multple parameters: put each parameter on a new line
    • Good Example:
    • Bad Example:
  • Classes, funtions, and variables should have a description (using """ """ under the declaration) which accurately describes their purpose
  • Comments. For. Everthing. You might think your code painfully obvious to understand, but people new to club would have a significantly easier time if it was explained in words
  • Keep nesting if statements to a minimum
  • There is nothing from stopping you, so you have to make sure never to edit constants. There is no const, static, or final in python.
  • Every class, function, and operation should have on function.
    • Good Example:
    • Bad Example:
  • Try not to import __lib__ as a nickname too often. Unless it is like networktables which is absurdly long and nt can't be confused with anything.

Naming Schema:

  • Variables: camelCase
    • m_ prefix for measurements
    • x_ prefix for positions (lik physics)
    • p_ prefix for pressure
    • k prefix for (???)
  • Functions: camelCase
  • Classes: PascalCase

Recources

WPILib API Docs

CommandsV2 API Docs

Robotpy Getting Started

Example Robot (Arm, CommandV2)

UNOFFICIAL Swerve Example

Apriltag Package

Swerve Template JAVA

2024robotpy's People

Contributors

maxadams0 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.