paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Using u-blox with I2C


From: Gautier Hattenberger
Subject: Re: [Paparazzi-devel] Using u-blox with I2C
Date: Tue, 22 May 2012 11:05:22 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15

The last time it compiles dates back to the SVN days, but I think it was not working correctly because the old i2c drivers was not very nice for that.
Making it to work with the new i2c interface would be probably easier and more useful.

Gautier

On 21/05/2012 22:51, David Conger wrote:
How far back do you remember it working? paparazzi3 from SVN days? I have that code. I use it for testing Booz things.

Sorry to see the loss of useful things like that. 

-- David

On May 21, 2012, at 11:44 AM, Christophe De Wagter <address@hidden> wrote:

What I know is that i2c GPS does not work since the transaction driver on i2c but worked on the byte by byte version before. Probably a minor fix. And the configuration module still has all the i2c config stuff.

On May 21, 2012 6:59 PM, "David Conger" <address@hidden> wrote:
Hello Christophe, 

I had a feeling Martin was flying with an IR/GPS combo that used GPS on I2C. I had even thought it was common for those using Paparazzi in Germany to be doing it this way. 

I see it is not common then (GPS I2C). I will modify and use Serial/UART then in the meantime as I was reminded the spektrum LPC code had challenges also. 

Thank you for your response,

-- David

On May 21, 2012, at 3:12 AM, Christophe De Wagter <address@hidden> wrote:

Dear David,

The airframe you refer to is one I made to develop CHIMU-SERIAL-LPC. In order to compile it needed a GPS and I needed the extra serial for the IMU. However, except for compiling correctly back then it did not work. I2C-GPS has worked some years ago when Pascal made it. 

I also moved most config stuff to gps_ucenter.xml module. 

Sincerely,

Christophe

On May 21, 2012 1:14 AM, "David Conger" <address@hidden> wrote:
Hello,

I have both:
    <define name="USE_I2C0"/>
    <define name="USE_I2C1"/>

More here:
<airframe name="Funjet">

  <modules>
    <load name="gps_i2c.xml" />
  </modules>

  <firmware name="fixedwing">
    <define name="USE_I2C0"/>
    <define name="USE_I2C1"/>
    <define name="ALT_KALMAN"/>

    <target name="sim" board="pc"/>
      <target name="ap" board="umarim_1.0">
      <configure name="FLASH_MODE" value="IAP"/>
    </target>

    <subsystem name="radio_control" type="ppm"/>
    <subsystem name="gps" type="ublox" >
      <configure name="GPS_PORT" value="gps_i2c" />
    </subsystem>

    <!-- Communication -->
    <subsystem name="telemetry" type="transparent"/>

    <!-- Actuators are automatically chosen according to board-->
    <subsystem name="imu"     type="umarim"/>
    <subsystem name="ahrs"    type="float_dcm">
      <define name="USE_HIGH_ACCEL_FLAG"/>
    </subsystem>
    <subsystem name="control" type="new"/>
    <subsystem name="navigation"/>
    <!-- Sensors -->
    <subsystem name="navigation"/>
  </firmware>

I have removed some things and have similar error:
gps_i2c.c:(.text.gps_i2c_init+0x3c): undefined reference to `gps_configure_uart'
collect2: ld returned 1 exit status
make[1]: *** [/Users/bmw330i/paparazzi-software/var/UMARIML01/ap/ap.elf] Error 1
make: *** [ap.compile] Error 2

"undefined reference to 'gps_configure_uart' seems to stand out as interesting. 

Regards,



On May 20, 2012, at 3:37 PM, Eduardo lavratti wrote:

Have you put     <define name="USE_I2C0"/> in firmware section ?

> From: address@hidden
> Date: Sun, 20 May 2012 12:55:58 -0700
> To: address@hidden
> Subject: [Paparazzi-devel] Using u-blox with I2C
> 
> Hello everyone,
> 
> I am testing MAX6 GPS module and wish to connect it via I2C to Umarim. (I2C0). 
> 
> I found CDW airframe ChimuTinyFw.xml with the following:
> 
> In Modules: 
> <load name="gps_i2c.xml" />
> 
> In Subsystem:
> <subsystem name="gps" type="ublox" >
> <configure name="GPS_PORT" value="gps_i2c" />
> </subsystem>
> 
> Seems simple enough. I modified my working airframe file to include the above and get errors compiling:
> CC /Users/bmw330i/paparazzi-software/var/UMARIML01/ap/subsystems/gps/gps_ubx.o
> subsystems/gps/gps_ubx.c: In function 'ubxsend_cfg_rst':
> subsystems/gps/gps_ubx.c:277:3: warning: implicit declaration of function 'gps_i2cTransmit' [-Wimplicit-function-declaration]
> subsystems/gps/gps_ubx.c:277:3: warning: nested extern declaration of 'gps_i2cTransmit' [-Wnested-externs]
> subsystems/gps/gps_ubx.c:277:3: warning: implicit declaration of function 'gps_i2cSendMessage' [-Wimplicit-function-declaration]
> subsystems/gps/gps_ubx.c:277:3: warning: nested extern declaration of 'gps_i2cSendMessage' [-Wnested-externs]
> CC /Users/bmw330i/paparazzi-software/var/UMARIML01/ap/subsystems/gps.o
> CC /Users/bmw330i/paparazzi-software/var/UMARIML01/ap/boards/umarim/baro_board.o
> CC /Users/bmw330i/paparazzi-software/var/UMARIML01/ap/peripherals/ads1114.o
> CC /Users/bmw330i/paparazzi-software/var/UMARIML01/ap/modules/sensors/airspeed_ads1114.o
> LD /Users/bmw330i/paparazzi-software/var/UMARIML01/ap/ap.elf
> /Users/bmw330i/paparazzi-software/var/UMARIML01/ap/firmwares/fixedwing/main_ap.o: In function `event_task_ap':
> main_ap.c:(.text.event_task_ap+0x208): undefined reference to `gps_i2cChAvailable'
> main_ap.c:(.text.event_task_ap+0x21c): undefined reference to `gps_i2cGetch'
> main_ap.c:(.text.event_task_ap+0x228): undefined reference to `gps_i2cChAvailable'
> collect2: ld returned 1 exit status
> make[1]: *** [/Users/bmw330i/paparazzi-software/var/UMARIML01/ap/ap.elf] Error 1
> make: *** [ap.compile] Error 2
> 
> I do not understand what the error is telling me. Can someone explain? Or tell me what I did wrong in the airframe? 
> 
> The rest of the files are:
> Flight Plan: basic.xml
> Settings: basic_ins.xml
> Radio: cockpitSX.xml
> Telemetry: default_fixedwing_imu_9k6.xml
> 
> Regards,
> David Conger
> 
> 
> 
> 
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________ Paparazzi-devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]