Skip to main content

Pathing library for FTC robotics.

Project description

InputDriverFTC

A pathing library to help you visualize Coyote Beta's x/y piecewise position functions over time.

Example of How to Use:

import math

import time



from InputDriverFTC.FieldDisplay import FieldDisplay



# Everything is in meters

robot = FieldDisplay(ROBOT_INIT_X=3.35, ROBOT_INIT_Y=0.88, ROBOT_INIT_HEADING=180, ROBOT_SIZE=0.406)





def get_x(t):

   return -t*0.5

def get_y(t):

    return 0.25*math.sin(t)



def get_heading(t):

    if t < 3.4:

        return 180

    elif t < 4.4:

        return 50*math.cos(math.pi*t-4.4)+130

    return 80





if __name__ == "__main__":

    timing = 0

    while robot.running:

        robot.set_motion(x=get_x(timing), y=get_y(timing), heading=get_heading(timing))

        time.sleep(0.01)

        timing += 0.01



        robot()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

InputDriverFTC-0.3.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file InputDriverFTC-0.3.tar.gz.

File metadata

  • Download URL: InputDriverFTC-0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.5

File hashes

Hashes for InputDriverFTC-0.3.tar.gz
Algorithm Hash digest
SHA256 ef5c9c8fd90406af24daff6ad5400dff1d9b9633148db55e3a7b2ec5cbc8d9df
MD5 5a70f4bb259060b08944093f682ce468
BLAKE2b-256 ddf7d88dd0bb48bffb9698f14e5b9c4df6dd383865a890456222f448fe60d911

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page