dev #23

Closed
Atharv wants to merge 0 commits from dev into atharv-dev
Member
No description provided.
Atharv added 80 commits 2025-10-23 00:30:43 +00:00
Parthicc made this originally.
Reviewed-on: #3
Reviewed-on: #2
Mission Run #5
Reviewed-on: #7
Reviewed-on: #5
Reviewed-on: #4
Reviewed-on: #8
Reviewed-on: #9
Reviewed-on: #13
Reviewed-on: #14
well at least yellow works now.
Please add the backward part of the code.
Reviewed-on: #18
Reviewed-on: #17
johannes did it idk
Reviewed-on: #19
Old code was:
from pybricks.hubs import PrimeHub
from pybricks.pupdevices import Motor, ColorSensor, UltrasonicSensor, ForceSensor
from pybricks.parameters import Button, Color, Direction, Port, Side, Stop
from pybricks.robotics import DriveBase
from pybricks.tools import wait, StopWatch
from pybricks.tools import run_task, multitask

hub = PrimeHub()

left_motor = Motor(Port.A, Direction.COUNTERCLOCKWISE)
right_motor = Motor(Port.B)

left_arm = Motor(Port.C, Direction.COUNTERCLOCKWISE)
right_arm = Motor(Port.D)

drive_base = DriveBase(left_motor, right_motor, wheel_diameter=68.8, axle_track=180)

drive_base.settings(600,500,300,200)
drive_base.use_gyro(True)

async def main():

    await drive_base.straight(915)
    await drive_base.turn(-90)
    await drive_base.straight(60)
    await left_arm.run_angle(10000,-15000)
    await drive_base.straight(-60)
    await drive_base.turn(85)
    await drive_base.straight(2000)
    
run_task(main())
Reviewed-on: #20
AAAGGGHHHHHHHHHHHHH COLOR SENSORS CAUSE ME PAIN!!!!!!!!!!!
Rishi, A.K.A me replaced my outdated code with the new one.
Just adjusted my code!!
Reviewed-on: #21
Reviewed-on: #22
Atharv closed this pull request 2025-10-23 00:33:13 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: FLL_65266_LEGO_DYNAMICS/solutions_season_unearthed#23
No description provided.