ACCELERATION SENSOR

Korean company maker of Robot kits and servos designed for of articulated robots. Re-incarnation of Megarobotics.
2 postsPage 1 of 1
2 postsPage 1 of 1

ACCELERATION SENSOR

Post by pheonix143 » Tue Jan 10, 2012 6:32 am

Post by pheonix143
Tue Jan 10, 2012 6:32 am

hi all,

i understand there is a hex file that the acceleration sensor is already working. the robot will thus recover to its standing position once its face down or face up.

however i have my own hex file. how do i get the acceleration sensor to work in the default hex file(2.30n) is there any sample program for the sensor? or do i have to create and set the axis all on my own?

thanks.

with regards,
zheng kai
hi all,

i understand there is a hex file that the acceleration sensor is already working. the robot will thus recover to its standing position once its face down or face up.

however i have my own hex file. how do i get the acceleration sensor to work in the default hex file(2.30n) is there any sample program for the sensor? or do i have to create and set the axis all on my own?

thanks.

with regards,
zheng kai
pheonix143 offline
Robot Builder
Robot Builder
Posts: 12
Joined: Tue Nov 01, 2011 7:50 am

Post by l3v3rz » Tue Jan 10, 2012 5:53 pm

Post by l3v3rz
Tue Jan 10, 2012 5:53 pm

Have a look at my source for DCMP

http://code.google.com/p/robobuilderlib ... erometer.c

key function are:

void Acc_init(void) to set up

void Acc_GetData(void) to get values

which return x_val, y_val, z_val; as globals
Have a look at my source for DCMP

http://code.google.com/p/robobuilderlib ... erometer.c

key function are:

void Acc_init(void) to set up

void Acc_GetData(void) to get values

which return x_val, y_val, z_val; as globals
l3v3rz offline
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm


2 postsPage 1 of 1
2 postsPage 1 of 1
cron