Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

behavior control programmable

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
3 postsPage 1 of 1
3 postsPage 1 of 1

behavior control programmable

Post by has » Thu Nov 16, 2006 10:44 am

Post by has
Thu Nov 16, 2006 10:44 am

hai guys can some one give me a sample on timer?cause i try to use it but cant get it to time.... thanks....
hai guys can some one give me a sample on timer?cause i try to use it but cant get it to time.... thanks....
has
Robot Builder
Robot Builder
User avatar
Posts: 13
Joined: Thu Nov 02, 2006 1:00 am

Post by inaki » Thu Nov 16, 2006 12:45 pm

Post by inaki
Thu Nov 16, 2006 12:45 pm

Load the timer with some time and then wait until the timer is zero.

Note that the timer starts counting down immediately after you set it to any value.

This is a pseudo-code that explain the technique:

LOAD CM5.TIMER, 20
Loop:
Do something here if you want
IF CM5.TIMER > 0 THEN JUMP Loop
Load the timer with some time and then wait until the timer is zero.

Note that the timer starts counting down immediately after you set it to any value.

This is a pseudo-code that explain the technique:

LOAD CM5.TIMER, 20
Loop:
Do something here if you want
IF CM5.TIMER > 0 THEN JUMP Loop
inaki
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 233
Joined: Sun Mar 06, 2005 1:00 am
Location: EH

thanks... for the info....

Post by has » Fri Nov 17, 2006 10:52 am

Post by has
Fri Nov 17, 2006 10:52 am

thank u....i try n got it.....
thank u....i try n got it.....
has
Robot Builder
Robot Builder
User avatar
Posts: 13
Joined: Thu Nov 02, 2006 1:00 am


3 postsPage 1 of 1
3 postsPage 1 of 1