Fixed-point math with trig functions in SPIN

Share this object
<

Overview

  • Object ID : 2082 (2013-04-05)
  • Author : I.Kövesdi | added by Archiver
  • Content :
  • Microcontroller :
  • Language :
  • Category :
  • Licence :

Content

The 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.

The object contains the first True Random Generator with the Propeller microcontroller written in SPIN code only. This TRNG will repeat its sequence only after the end of Times. Nobody knows why does it work. Maybe, you will be the first to find out.


Downloads  
Zip archive download

Leave a Reply