Skip to main content

Library used to control the Orbita actuator

Project description

Orbita python module

Actuator description

To control this actuator, a vector must be used to represent the orientation of the platform. An angle must also be identified to know the rotation of the platform on its own Z axis.

The orbita library allows the user to chose the orientation of the platform by typing a vector and an angle and to get the angles of the disks needed to do this rotation of the platform.

It also allows the user to use a quaternion (which can be provided by another system) to represent the rotation of the platform and get the angles of the disks.

Installation

Use the package manager pip to install the orbita library.

pip install orbita

Usage

from orbita import *
a = Actuator([0,0,85],[0,0,65],35) #Creates the actuator object
a.from_vector_get_new_frame(vector,angle) #returns new X,Y,Z vectors coordinates
a.from_vector_get_angles(vector,angle) #returns q11,q12 and q13 angles values
a.from_quaternion_get_new_frame(quaternion) #returns new X,Y,Z vectors coordinates
a.from_quaternion_get_angles(quaternion) #returns q11,q12 and q13 angles values

The last method needs the last angular position of the disks. These values need to be reset everytime the user reset the position of the disks.

a.reset_last_angles()

Project details


Download files

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

Files for orbita, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size orbita-0.1.1-py3-none-any.whl (9.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size orbita-0.1.1.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page