forked from upstream-mirrors/OpenTracks
s/SensorDataProcessor/SensorEventCounter/
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ public class CadenceSensor extends AntSensorBase {
|
|||||||
public static final byte CADENCE_DEVICE_TYPE = 122;
|
public static final byte CADENCE_DEVICE_TYPE = 122;
|
||||||
public static final short CADENCE_CHANNEL_PERIOD = 8102;
|
public static final short CADENCE_CHANNEL_PERIOD = 8102;
|
||||||
|
|
||||||
SensorDataProcessor dataProcessor = new SensorDataProcessor();
|
SensorEventCounter dataProcessor = new SensorEventCounter();
|
||||||
|
|
||||||
CadenceSensor(short devNum) {
|
CadenceSensor(short devNum) {
|
||||||
super(devNum, CADENCE_DEVICE_TYPE, "cadence sensor", CADENCE_CHANNEL_PERIOD);
|
super(devNum, CADENCE_DEVICE_TYPE, "cadence sensor", CADENCE_CHANNEL_PERIOD);
|
||||||
|
|||||||
+1
-1
@@ -29,7 +29,7 @@ public class CadenceSpeedSensor extends AntSensorBase {
|
|||||||
public static final byte CADENCE_SPEED_DEVICE_TYPE = 121;
|
public static final byte CADENCE_SPEED_DEVICE_TYPE = 121;
|
||||||
public static final short CADENCE_SPEED_CHANNEL_PERIOD = 8086;
|
public static final short CADENCE_SPEED_CHANNEL_PERIOD = 8086;
|
||||||
|
|
||||||
SensorDataProcessor dataProcessor = new SensorDataProcessor();
|
SensorEventCounter dataProcessor = new SensorEventCounter();
|
||||||
|
|
||||||
CadenceSpeedSensor(short devNum) {
|
CadenceSpeedSensor(short devNum) {
|
||||||
super(devNum, CADENCE_SPEED_DEVICE_TYPE, "speed&cadence sensor", CADENCE_SPEED_CHANNEL_PERIOD);
|
super(devNum, CADENCE_SPEED_DEVICE_TYPE, "speed&cadence sensor", CADENCE_SPEED_CHANNEL_PERIOD);
|
||||||
|
|||||||
+2
-2
@@ -27,7 +27,7 @@ import java.util.LinkedList;
|
|||||||
*
|
*
|
||||||
* @author Laszlo Molnar
|
* @author Laszlo Molnar
|
||||||
*/
|
*/
|
||||||
public class SensorDataProcessor {
|
public class SensorEventCounter {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HistoryElement stores a time stamped sensor counter
|
* HistoryElement stores a time stamped sensor counter
|
||||||
@@ -67,7 +67,7 @@ public class SensorDataProcessor {
|
|||||||
*/
|
*/
|
||||||
private LinkedList<HistoryElement> history;
|
private LinkedList<HistoryElement> history;
|
||||||
|
|
||||||
SensorDataProcessor() {
|
SensorEventCounter() {
|
||||||
counter = -1;
|
counter = -1;
|
||||||
eventsPerMinute = 0;
|
eventsPerMinute = 0;
|
||||||
history = new LinkedList<HistoryElement>();
|
history = new LinkedList<HistoryElement>();
|
||||||
Reference in New Issue
Block a user