|
From: | Felix Ruess |
Subject: | Re: [Paparazzi-devel] Eagletree airspeed sensor problems |
Date: | Sun, 20 Jan 2013 11:06:42 +0100 |
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
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |