[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

**To**:**tech-kern%netbsd.org@localhost****Subject**:**Re: atan2 and sqrt --> in driver****From**:**christos%astron.com@localhost (Christos Zoulas)**- Date: Wed, 10 Dec 2008 18:16:05 +0000 (UTC)

In article <fb9584ff0812090901p6cd5ccd0o39af3642590f7e33%mail.gmail.com@localhost>, Robert Fritzsche <robert.fritzsche%googlemail.com@localhost> wrote: >The driver is for the wii-remote, so get 1 byte for x-, y- and z-axis. >Based on this values I will calculate the pitch = atan2(y, >sqrt(x^2+z^2)) and yaw = atan2(z, sqrt(x^2+y^2)) > >I know that I can place all these stuff in userspace, but it have >place it into kernelspace, it's for studies. You can use fixed point arithmetic in conjunction with cordic and/or table based algorithms. christos

**References**:**atan2 and sqrt --> in driver***From:*Robert Fritzsche

**Re: atan2 and sqrt --> in driver***From:*Ignatios Souvatzis

**Re: atan2 and sqrt --> in driver***From:*Robert Fritzsche

- Prev by Date:
**Re: Scsipi guru needed...** - Next by Date:
**how can the nfs timer work?** - Previous by Thread:
**Re: atan2 and sqrt --> in driver** - Next by Thread:
**RE: kernel level tcp call to connect** - Indexes: