No deviation support for Contiki motes
This commit is contained in:
parent
d2ddafb1d2
commit
1c4a6f701e
|
@ -76,7 +76,6 @@ public class ContikiClock extends Clock implements ContikiMoteInterface, PolledB
|
|||
|
||||
private long moteTime; /* Microseconds */
|
||||
private long timeDrift; /* Microseconds */
|
||||
private double deviation;
|
||||
|
||||
/**
|
||||
* @param mote Mote
|
||||
|
@ -90,7 +89,6 @@ public class ContikiClock extends Clock implements ContikiMoteInterface, PolledB
|
|||
this.moteMem = new VarMemory(mote.getMemory());
|
||||
timeDrift = 0;
|
||||
moteTime = 0;
|
||||
deviation = 1.0;
|
||||
}
|
||||
|
||||
public static String[] getCoreInterfaceDependencies() {
|
||||
|
@ -118,12 +116,11 @@ public class ContikiClock extends Clock implements ContikiMoteInterface, PolledB
|
|||
}
|
||||
|
||||
public void setDeviation(double deviation) {
|
||||
assert deviation>0.0;
|
||||
this.deviation = deviation;
|
||||
logger.fatal("Can't change deviation");;
|
||||
}
|
||||
|
||||
public double getDeviation() {
|
||||
return deviation;
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
public void doActionsBeforeTick() {
|
||||
|
|
Loading…
Reference in a new issue