https://github.com/tiagocoutinho/motorlib
A simple motor motion/trajectory simulation python library.
https://github.com/tiagocoutinho/motorlib
Last synced: 20 days ago
JSON representation
A simple motor motion/trajectory simulation python library.
- Host: GitHub
- URL: https://github.com/tiagocoutinho/motorlib
- Owner: tiagocoutinho
- License: gpl-3.0
- Created: 2021-03-17T10:56:59.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T10:58:39.000Z (about 4 years ago)
- Last Synced: 2025-02-13T16:54:07.666Z (2 months ago)
- Language: Python
- Size: 18.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# motorlib
[](https://pypi.python.org/pypi/motorlib)
[](https://pypi.python.org/pypi/motorlib)A simple motor motion/trajectory simulation python library.
## Installation
pip install it on your favorite python environment:
`$ pip install motorlib`
That's it!
## Usage
```python
>>> 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
```