Data Storage Tool Display Human Input Protocol Math Motor Control Sensor Signal Generation & Processing Speech & Sound Fun View all Objects


Quick Links
Contact Us
Forums
Support

Register
Login

This object is provided under license. By downloading this object, you are agreeing to the terms of the MIT License.

Fixed-point math with trig functions in SPIN

This PST application shows the first Fixed-point arithmetic library object on OBEX. The "SPIN_TrigPack" object is a complete Fixed-point package with the basic trigonometric functions for robot and navigation projects. You can do ATAN2 without enlisting extra COGs to run a full Floating-point library for that function. This small object has string conversion utilities to make Fixed-point math easy in your SPIN language based applications. As a bonus, this object contains the first True Random Generator with the Propeller microcontroller using only SPIN code. This TRNG will repeat its sequence only after the end of Times.

Version:
  1.2

Attributes:


Author:
  I.Kövesdi
  ikovesdi@t-email.hu

Categories:
  Math

Downloads:
  173

Last Updated:
  2009-09-04



User Reviews:

  • ramboman commented:
    I am building an hexapod driven by propeller. I wrote Inverse Kinematics for one leg using this package; it takes 68486 µsec. Using Floating Point, it takes 3043 µsec. I did expect Fixed Point math to be faster that Floating Point...
    October 26, 2009 3:09 a.m.




  • Copyright 2007 by Parallax, Inc.
    Please contact obex.support@parallax.com with comments or questions.