Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
MKS2345 committed Oct 24, 2024
2 parents 046a41c + 5c96c8f commit 3209573
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#GITIGNORE
.program.py
.idea/*
.vscode/settings.json
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
![Pull Requests](https://img.shields.io/endpoint?url=https://monarchlowg-private-repo-badges-23423423.vercel.app/api/fetchRepoData?type=pull-requests&cacheSeconds=10)
[![CI Workflow](https://github.com/Monarch-Robotics-1245/BEST-LowG/actions/workflows/ci.yml/badge.svg)](https://github.com/Monarch-Robotics-1245/BEST-LowG/actions/workflows/ci.yml)

[![Static Badge](https://img.shields.io/badge/PyDoc_Documentation-Online?color=green&link=https%3A%2F%2Fbest-low-g-docs.vercel.app%2F)](https://best-low-g-docs.vercel.app/)

# BEST LowG
## **Description**
Monarch Robotics code for the 2024 BEST LowG Season
Expand Down
2 changes: 2 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

def robot(leftMotor, rightMotor, motorOne, motorTwo, servoOne, servoTwo, servoThree, servoFour, digitalOne, digitalTwo, digitalThree, digitalFour, digitalFive, digitalSix, digitalSeven, digitalEight, digitalNine, driveFwd, driveSide, dbgUp, dbgDown, previousDbgDown, previousDbgUp, grip, release, previousGrip, previousRelease, towerAxis, lastPosition, lastPositionSet, turretAxis, analogOne, wristDown, wristUp, previousWristDown, previousWristUp, turretUp, previousTurretUp, previousTurretDown, turretDown, modeToggle, previousModeToggle, state, targetPosition, autoAButton, previousAutoAButton, autoBButton, previousAutoBButton, autoID, reverseButton, previousReverseButton, speedButton, previousSpeedButton, speedMultiplier, direction, autoStage):

Check notice on line 14 in src/main.py

View workflow job for this annotation

GitHub Actions / Qodana for Python

Missing or empty docstring

Missing docstring
# 0 (not pressed) and 1(pressed) - not True and False for buttons

#if ok
if digitalEight == 1:
allowedStates = 1
else:
Expand Down
8 changes: 8 additions & 0 deletions src/subsystems/drivetrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,16 @@


def setLeftMotor(value):
"""
set left motor to the value provided
value (int): the value that the left motor is set to
"""
leftMotor = value


def setRightMotor(value):
"""
set right motor to the value provided
value (int): the value that the right motor is set to
"""
rightMotor = value
3 changes: 3 additions & 0 deletions src/subsystems/gripper.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@


def openGripper():
"""
sets gripper to be open
"""
servoOne = src.constants.gripper.GRIPPER_OPEN


Expand Down

0 comments on commit 3209573

Please sign in to comment.