Skip to content

primo4586/Robot-code-2025-primo

Repository files navigation

Robot-code-2025-primo

hello dear members. for some of you this is going to be you're first code in first. to save me and you some time here is a part docs about...

how to write a good and orgenize code docs.

remember that you can always check the codes before, and the the PowerPoint presentation. (TakeFeedSubsystem is just an example, this need to be adjusted to you're code.)

Structure

  1. class variable fields image

  2. singelton image

  3. constructor - this func needs to be private!!! image

  4. runnable commands - do not forget java docs and comments. command docs - https://docs.wpilib.org/he/stable/docs/software/commandbased/commands.html i will add for each subsystem wich control system and profile (motion magic) you'll need to use. image

  5. configs - now think what you need and what you dont need. image

  6. constance - this need to be written in constance.java and creat a class in there for you're subsystem. image

Conventions

statistically this is the number one reason for commits. https://docs.google.com/presentation/d/1MV573jy07D3SsIuoDuUabkCaEArD_9D1/edit#slide=id.p1

SOLID

this part is a suggestion, i do think for you to understand why the code is like it is you must understand this. https://www.digitalocean.com/community/conceptual-articles/s-o-l-i-d-the-first-five-principles-of-object-oriented-design

Canon - uri

The canon is base on one TalonFX and one Digital switch.

control System - a normal set func

The command are as following.

-collectUntilCoralCommand- straightforward

-collectWhilePressdCommand- straightforward

-adjustCoralCommand- go slowly till the digital switch shows false.

-lossenCoralCommand- straightforward

Gripper - noga

there is one TalonFX

control system - a normal set() func

the command are as following.

-collectWhilePressCommand- straightforward

-lossenGripCommand- straightforward

-tossCommand- straightforward

Elevator - shay

there is two TalonFX, one needs to follow the other there is a func for that, and a digital switch

control system - figure it out https://v6.docs.ctr-electronics.com/en/2024/docs/api-reference/device-specific/talonfx/basic-pid-control.html + the next page

the command are as following.

-resetPosition- reset the incoders

-homeCommand- use a switch and activate resetPostion()

-relocatePositionCommand- takes a given position and moves to that position

Gripper Arm - Ziv

one TalonFx and one digital switch.

control system - you need to control the position. figure it out https://v6.docs.ctr-electronics.com/en/2024/docs/api-reference/device-specific/talonfx/basic-pid-control.html + the next page

the command are as following.

-resetPosition- reset the incoders

-homeCommand- use a switch and activate resetPostion()

-relocateAngelCommand- takes a given position and moves to that position

maybe i'll add more in the near future

Climb -

to be continued

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages