Findings and questions

General discussions on the Gluon-project that don't fit elsewhere. If required, I will create more subforums.

Moderator: lukasz

Re: Findings and questions

Postby magellan » Mon Apr 11, 2011 6:19 pm

Tom wrote:You could use the analog input (pin hole on the bottom left of ic number 16 in this drawing: http://www.gluonpilot.com/wiki/Hardware_v0.1n)

or use a chip like this: http://www.sparkfun.com/products/8636 (I2C would be better than SPI)



Hi Tom,

Thanks for the input. Maybe I will pass on the airspeed sensor for now until I receive the 3.3 v version.

Do you have code to enable the magnetometer on the GLUON I2C port ? I wouldn't mind testing it!

Thanks,

Olivier
magellan
 
Posts: 38
Joined: Fri Jan 29, 2010 12:08 am

Re: Findings and questions

Postby Tom » Mon Apr 11, 2011 6:25 pm

Hi Olivier,

The code for the magnetometer is on the SVN server (development code):
http://code.google.com/p/gluonpilot/sou ... /hmc5843.c

Currently only the quaternion code (see page on quadrocopters) will use the magnetometer.
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Findings and questions

Postby magellan » Mon Apr 11, 2011 6:29 pm

Hi Tom,

Thanks for the quick reply. Pardon the noobie questions:

-How do I load this on the Gluonpilot board? Do I need special equipment other than the FTDI cable like an ICD programmer?
-Can the MAG be calibrated for geographic parameters like declination and all that stuff using Gluonconfig?

Thanks!
Olivier
magellan
 
Posts: 38
Joined: Fri Jan 29, 2010 12:08 am

Re: Findings and questions

Postby Tom » Mon Apr 11, 2011 7:20 pm

Hi Oliver,

You will need the development environment (MpLab + Free C30 compiler). Then you can compile the code. The resulting .hex file can be programmed with the FTDI cable and gluonconfig.

The code repository can be downloaded using a tool such as TortoiseSVN.
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Findings and questions

Postby magellan » Mon Apr 11, 2011 9:22 pm

Tom wrote:Hi Oliver,

You will need the development environment (MpLab + Free C30 compiler). Then you can compile the code. The resulting .hex file can be programmed with the FTDI cable and gluonconfig.

The code repository can be downloaded using a tool such as TortoiseSVN.


Ooops. That's unchartered territory for me! MPlab and C Compiling. I will get to it later on but not right away.
Too scary for me right now! It's spring time so I have to get out and fly. I guess I will put the MAG and Airspeed sensor on the back burner for now. No rush anyways. Thanks for the reply.

Olivier.
magellan
 
Posts: 38
Joined: Fri Jan 29, 2010 12:08 am

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 20 guests

cron