Welcome, Guest
Messages posted to this category need to be reviewed by the moderator before it gets posted.

TOPIC: Put the SmartMotor to dance

Put the SmartMotor to dance 6 years 10 months ago #386

  • davcast
  • davcast's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Hi, do you know if there is a library with mathematics functions such as: sin(x), cos(x), tan(x), ln(x) and all that good functions. I want to program a function of velocity with sin(x). If there is no a library like the one i say, what is the way to make what i want?

I'll wait for your answers.
The administrator has disabled public write access.

Re: Put the SmartMotor to dance 6 years 10 months ago #388

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
The following Math functions are available with the Class5 Smartmotor.

FSQRT(x) Floating Point Square Root(x=float where x >= 0)
FABS(x) Floating Point Absolute Value (x = float)
SIN(x) Floating Point Sine (x = float in degrees)
COS(x) Floating Point Cosine (x = float in degrees)
TAN(x) Floating Point Tangent (x = float in degrees)
ASIN(x) Floating Point Arc Sine in degrees on [-90,90],(x = float on the interval [-1,1])
ACOS(x) Floating Point Arc Cosine in degrees on [0,180],(x = float on the interval [-1,1])
ATAN(x) Floating Point Arc Tangent in degrees on [-90,90] ,(x = float)
PI Floating Point representation of PI = 3.14159265359…
The administrator has disabled public write access.
Time to create page: 0.224 seconds
Powered by Kunena Forum