What's the algorithm for snake movement?

Status
Not open for further replies.

vijindran

Junior Member level 2
Joined
Feb 13, 2007
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,427
any link to learn algorithm for snake movement?
 

need alogorithm?

Please explain more detail.
 

need alogorithm?

i'm using PIC16f877A microcontroller.. so i want to learnt how to get or do sinus wave motion to make the snake to move as snake in sinus wave.. i'm using servo motors to control each segment..so, now i have to write the source code to make the servo to move? how?
 

need alogorithm?

Dear use buffer with n places=== full sine wave u need(each cell is o/p of each servo motor) then for each scan rotate the buffer by one ==>next motion
 

need alogorithm?

use array(1..n) n:no of servo motors o/p's then put your initial sine wave for each segment.
then rotate right or left(direction) with your time rate .
use low pass filter for rotate between each two array points as required.
 

Re: need alogorithm?

vijindran said:
any link to learn algorithm for snake movement?
it can help you
**broken link removed**
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…