|
From: | Stephen L Hulme |
Subject: | [Paparazzi-devel] I2c driver |
Date: | Tue, 15 Mar 2011 23:27:40 +1300 |
Hi Gautier
Thanks for info - Nonetheless, I still have no
output on my Lisa/L_v1.1 !2C port driving mkk actuators - this has been the case
since around 20 February .
I am using the most up to date repository and a
slightly modified Booz2_A7 airframe file - changes include B2_v1.2 imu, mkk
actuators and lisa/l_v1.1 board.
My actuators worked perfectly on an old Lisa
/l_v1.0 board.prior to the date mentioned - I have since had a new board
supplied by Joby to enable the IMU mags to work.
Regards
Stephen
On Mon, 14 Mar 2011 19:01:20 +0100 Gautier Hattenbergerwrote:
Hello all (especially developers), Here are some modifications to the i2c driver for lpc21 : - I removed the flag stop_after_transmit that was created for a bad reason, that wasn't used anymore and was a source of errors (the flag was not set correctly in the asctec driver and it was sending crap). The default and only behavior is now to send a stop after the transmit. - When the slave is not responding (master get NACK on receive or transmit request), the transaction is set to fail (I2CTransFailed). If you check the state of your transaction for success (I2CTransSuccess), don't forget to also check for failure and take the appropriate action (skip or retry). FYI, the previous behavior was to retry the transaction until the slave respond, thus monopolizing the i2c line. This "feature" actually made the asctec driver works by some black magic... Gautier |
[Prev in Thread] | Current Thread | [Next in Thread] |