View unanswered posts | View active topics It is currently Sat Dec 16, 2017 4:47 pm






Reply to topic  [ 3 posts ] 
Mindsensors AbsoluteIMU-ACG driver on Robotc v4.52 
Author Message
Rookie

Joined: Mon Jun 13, 2016 11:25 pm
Posts: 3
Location: Tokyo,Japan
Post Mindsensors AbsoluteIMU-ACG driver on Robotc v4.52
I am challenging to develop an underactuated 2 legs robot using Minstorms EV3 elements like cpu Brick, Large Motor, Gyro Sensor, and etc. Lego Gyro is single axis, but movement of my Robot is three dimensions so I want to use a three axis gyro sensor to watch and learn the movement of the robot.

And in Robotc v4.52 sample program directory I found the driver library for Mindsesors AbsoluteIMU-ACG.

I purchased Mindsesors AbsoluteIMU-ACG that had worked well with the EV3 software. Then I tested the Xander driver lib's sample program in Robotc v4.52 sample program directory. The sample runs but say "error".

Is there any successes working of Mindsesors AbsoluteIMU-ACG with Robotc v4.52?
If it's successes that's wonder.

Best regards,

Tkmori


Last edited by Tkmori on Wed Jun 22, 2016 12:46 am, edited 1 time in total.



Tue Jun 14, 2016 5:55 am
Profile
Rookie

Joined: Mon Jun 13, 2016 11:25 pm
Posts: 3
Location: Tokyo,Japan
Post Re: Mindsensors AbsoluteIMU-ACG driver on Robotc v4.52
I made my Mindsensors AbsoluteIMU-ACG successively work with Robotc v4.52.

I wait, and wait but there is no reply. Then I read mindsensors-acceleromeater.h file and mindsensors-acceleromeater-rest1.c file of sample program in the sample directory of v4.52. Then I found assignment of the I2C address in the .h file is ox02 that is unfamiliar. Because EV3 software assigns 34(ox22) to the I2C address and works well. My question is why ox02?

In I2C tutorial Xander writes:
Quote:
0x02 is the address chosen by LEGO as the default address for digital sensors.
(http://botbench.com/blog/2010/05/20/usi ... t-utility/)



If that's the rule for NXT and not for EV3, what will be happen by changing the I2C address assignment from ox02 to ox22?

Code:
#define MSAC_I2C_ADDR   Ox02   /* MSAC I2C device address. */


I have tried the change, and then the sample program works well. Wonderful!

Xander Please confirm my try. And if you agree with the try, please update drivers release for many your users. :roll: :roll:


Fri Jun 17, 2016 8:15 am
Profile
Rookie

Joined: Mon Jun 13, 2016 11:25 pm
Posts: 3
Location: Tokyo,Japan
Post Re: Mindsensors AbsoluteIMU-ACG driver on Robotc v4.52
I2C custom and Multitasking
Question to Xander

You write about deference between built-in driver and driver suite driver:
Quote:
The built-in ones poll at faster intervals in the background, the ones from the driver suite only poll when you tell them to


There is I2C Generic that configurable from the motor and sensor configure pan, that is as a built-in driver and polled at faster intervals in the background. From view of underactuated robot polling accelerometer background is essential. Because the control depend on variance of accelerating, not on sequential logic.

So for my robot MSA should be a built-in one that is Generic.

Can the .h and ...test1.c work with I2C Generic?

Best regards


Fri Jun 17, 2016 10:24 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.