|
From: | Chris |
Subject: | Re: [Paparazzi-devel] Eagletree airspeed sensor problems |
Date: | Sat, 19 Jan 2013 13:03:53 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 |
I found this on the airspeed manual" Here is the pseudo code for accessing the Airspeed and Altimeter sensors: byte data[2]; signed short reading = 0xFFFF; i2c_start(); // select sensor in write mode if (!(i2c_write(SENSOR_ADDRESS | I2C_WRITE_BIT))) { // send "read data" command to sensor if (!i2c_write(0x07)) {From what i understand in the paparazzi code we are only receiving not transceiving.
if (airspeed_ets_i2c_trans.status == I2CTransDone)I2CReceive(AIRSPEED_ETS_I2C_DEV, airspeed_ets_i2c_trans, AIRSPEED_ETS_ADDR, 2);
Is this correct? Chris
[Prev in Thread] | Current Thread | [Next in Thread] |