Skip to main content

motorlib

Pypi Version Python Versions Build Status Coverage Status

A simple motor motion/trajectory simulation python library.

Installation

pip install it on your favorite python environment:

$ pip install motorlib

That's it!

Usage

>>> import motorlib
>>> motion = motorlib.Motion(10, 1000, 10, 5, (-float('inf'), float('inf')))

>>> motion.position()
38.040199

>>> motion.duration
101.0

>>> motion.accel_time
2.0

>>> motion.pb
990.0

>>> motion.dp
990

>>> motion.reaches_top_vel
True

>>> motion.top_vel_dp
970.0

>>> motion.top_vel_time
97.0

Download files

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

Source Distribution

motorlib-0.2.0.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file motorlib-0.2.0.tar.gz.

File metadata

  • Download URL: motorlib-0.2.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for motorlib-0.2.0.tar.gz
Algorithm Hash digest
SHA256 238974db9810161196902c9da5757273137cfaf5a7decd1405833343e4971398
MD5 0c3626666b9c9c8ab1455d87d3244ee0
BLAKE2b-256 5375b2930a3158f7df30aab46fe9db2c1cf21167fec69ca8088e95cf4a1dfac2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page