Memsic 2125 code?


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: Memsic 2125 code?

    To make it easier, you could use a lookup table. Here is an example of one for the memsic for a basic stamp. http://www.parallax.com/Portals/0/Do...3/col/nv92.pdf .The table lookups only calculate on one axis, so they will not be as accurate as a 3 axis solution, but might be perfectly fine for your application.
    http://www.scalerobotics.com

  2. #2
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322


    Did you find this post helpful? Yes | No

    Default Re: Memsic 2125 code?

    Thanks!
    I guess where my confusion is that SubTech makes an automatic pitch controller (APC-3 and APC-4) that drives a servo to correct the pitch angle with the rear planes. You use the bow planes to change the pitch for up and down. Since the output is basically PWM and with pulsin you are measuring the pulse width then the code is very simple. Trueangle=((10*pulsewidth)+1500)/10. An up angle would be Displayangle = (TrueAngle -900)*2 while a down angle would be Displayangle = (900- Trueangle)*2. So it looks as if you could use a simple calculation to obtain the angle?

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts