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 moteTime; /* Microseconds */
|
||||||
private long timeDrift; /* Microseconds */
|
private long timeDrift; /* Microseconds */
|
||||||
private double deviation;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mote Mote
|
* @param mote Mote
|
||||||
@ -90,7 +89,6 @@ public class ContikiClock extends Clock implements ContikiMoteInterface, PolledB
|
|||||||
this.moteMem = new VarMemory(mote.getMemory());
|
this.moteMem = new VarMemory(mote.getMemory());
|
||||||
timeDrift = 0;
|
timeDrift = 0;
|
||||||
moteTime = 0;
|
moteTime = 0;
|
||||||
deviation = 1.0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String[] getCoreInterfaceDependencies() {
|
public static String[] getCoreInterfaceDependencies() {
|
||||||
@ -118,12 +116,11 @@ public class ContikiClock extends Clock implements ContikiMoteInterface, PolledB
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setDeviation(double deviation) {
|
public void setDeviation(double deviation) {
|
||||||
assert deviation>0.0;
|
logger.fatal("Can't change deviation");;
|
||||||
this.deviation = deviation;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getDeviation() {
|
public double getDeviation() {
|
||||||
return deviation;
|
return 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void doActionsBeforeTick() {
|
public void doActionsBeforeTick() {
|
||||||
|
Loading…
Reference in New Issue
Block a user