From d8165d30d5e42c829ce80daea054cc79c2b6ad18 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Thu, 30 Sep 2010 23:09:25 +0000 Subject: [PATCH] Fix: ETX 1.0 is 8, not 16, in the new collect code --- .../sky-shell/src/se/sics/contiki/collect/SensorData.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/sky-shell/src/se/sics/contiki/collect/SensorData.java b/examples/sky-shell/src/se/sics/contiki/collect/SensorData.java index f5c5e25be..a0527382c 100644 --- a/examples/sky-shell/src/se/sics/contiki/collect/SensorData.java +++ b/examples/sky-shell/src/se/sics/contiki/collect/SensorData.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: SensorData.java,v 1.9 2010/09/06 22:19:09 nifi Exp $ + * $Id: SensorData.java,v 1.10 2010/09/30 23:09:25 adamdunkels Exp $ * * ----------------------------------------------------------------- * @@ -34,8 +34,8 @@ * * Authors : Joakim Eriksson, Niclas Finne * Created : 3 jul 2008 - * Updated : $Date: 2010/09/06 22:19:09 $ - * $Revision: 1.9 $ + * Updated : $Date: 2010/09/30 23:09:25 $ + * $Revision: 1.10 $ */ package se.sics.contiki.collect; @@ -225,7 +225,7 @@ public class SensorData implements SensorInfo { } public double getBestNeighborETX() { - return values[BEST_NEIGHBOR_ETX] / 16.0; + return values[BEST_NEIGHBOR_ETX] / 8.0; } }