paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] ETS Airspeed Sensor with YAPA2 on I2C


From: Jorge Pantoja
Subject: Re: [Paparazzi-devel] ETS Airspeed Sensor with YAPA2 on I2C
Date: Thu, 20 Jun 2013 18:04:24 -0500

Hello Helge,


Thank you very much! I ran the Airframe file you sent me and I got my Airspeed Sensor working!! However, everything is not rainbow colours just yet.

When I uncommented the CHIMU lines I went back to the same problem of the autopilot freezing. It seems like there is a conflict between the Airspeed Sensor being connected to the I2C port and the CHIMU on the SPI (my hypothesis). Then, I changed the code from I2C0 to I2C1 and the board did not freeze but I got nothing from the Airspeed sensor again.


I am thinking of switching the I2C port to the secondary I2C one shown here (http://paparazzi.enac.fr/wiki/File:Yapa_i2c2.png) what do you think? Anyways, shouldn't the ETS Airspeed sensor work on the regular I2C port? Or should I think of changing the port where my CHIMU is?


Best Regards,
Jorge


On Thu, Jun 20, 2013 at 4:11 PM, Helge Walle <address@hidden> wrote:
Hi Jorge

I tested your airframe file as received on my TWOG, and the GCS was not populated.

Then I commented out a few lines:
<define name="MEASURE_AIRSPEED"/> not needed,
plus the lines for the chimu.

The GCS was now populated and I could see the message AIRSPEED_ETS with values when I blew into the tube.

I attach the modified airframe file, the build log, and two screenshots.

Could you check this?

I use branch v4.2.

Helge.




2013/6/20 Jorge Pantoja <address@hidden>
Hello Helge and Eduardo,



Thank you so much for your reply. Please, find attached the airframe file I am using. I tried what Eduardo suggested and this is what I am getting: The autopilot board turns on and after a second it freezes as seen in the picture I attached. As you can see, the airspeed sensor and the board are turned on and only the autopilot board is frozen.


Also, I tried switching the I2C0 port to I2C1 on the code by adding under the airspeed_ets.xml module:

<define name="AIRSPEED_ETS_I2C_DEV" value="i2c1"/>

And under the firmware:

<define name="USE_I2C1"/>


This change made that the autopilot and the sensor to appear to be working fine. I mean, once I used the I2C1 instead of the I2C0 port the autopilot didn't freeze but I still didn't get the AIRSPEED_ETS message on my log file. Also, changing to the I2C1 port didn't require the pull-up resistors. This makes me wonder if I am using the correct I2C port again.


Please let me know your thoughts.



Best Regards,
--
Jorge Pantoja
Program Manager/Liaison
 



_______________________________________________
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




--
Jorge Pantoja
Program Manager/Liaison
Phone: +593-989458127
e-mail: address@hidden
 

reply via email to

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