added udgm signal strength support
This commit is contained in:
parent
ca5c47da3d
commit
0c0d313506
1 changed files with 7 additions and 7 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: TR1001Radio.java,v 1.5 2008/03/18 16:36:48 fros4943 Exp $
|
* $Id: TR1001Radio.java,v 1.6 2008/03/18 16:47:17 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.mspmote.interfaces;
|
package se.sics.cooja.mspmote.interfaces;
|
||||||
|
@ -105,6 +105,8 @@ public class TR1001Radio extends Radio implements USARTListener, CustomDataRadio
|
||||||
|
|
||||||
private TR1001RadioPacketConverter tr1001PacketConverter = null;
|
private TR1001RadioPacketConverter tr1001PacketConverter = null;
|
||||||
|
|
||||||
|
private double signalStrength = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an interface to the TR1001 radio at mote.
|
* Creates an interface to the TR1001 radio at mote.
|
||||||
*
|
*
|
||||||
|
@ -347,7 +349,7 @@ public class TR1001Radio extends Radio implements USARTListener, CustomDataRadio
|
||||||
|
|
||||||
public double getCurrentOutputPower() {
|
public double getCurrentOutputPower() {
|
||||||
// TODO Implement method
|
// TODO Implement method
|
||||||
return 1.5;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getOutputPowerIndicatorMax() {
|
public int getOutputPowerIndicatorMax() {
|
||||||
|
@ -360,13 +362,11 @@ public class TR1001Radio extends Radio implements USARTListener, CustomDataRadio
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getCurrentSignalStrength() {
|
public double getCurrentSignalStrength() {
|
||||||
// TODO Implement signal strength
|
return signalStrength;
|
||||||
return 100;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCurrentSignalStrength(double signalStrength) {
|
public void setCurrentSignalStrength(double signalStrength) {
|
||||||
// TODO Implement signal strength
|
this.signalStrength = signalStrength;
|
||||||
// logger.warn("Not implemented");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Position getPosition() {
|
public Position getPosition() {
|
||||||
|
|
Loading…
Reference in a new issue