重置问题
This commit is contained in:
1 parent
c7afcbb01f
commit
c333086e30
8 files changed
+3238
-1429
No files matched your search
@@ -25,24 +25,24 @@ namespace Assets.Scripts.Devices.Ble.Characteristic
|
||||
/// </summary>
|
||||
public int AverageStrokeRate { get; set; } = 0;
|
||||
|
||||
private UInt32 _totalDistance = 1;
|
||||
public UInt32 TotalDistance
|
||||
{
|
||||
get => _totalDistance;
|
||||
set
|
||||
{
|
||||
if (_totalDistance == 0 && value != 0 && StartEvent != null)
|
||||
{
|
||||
StartEvent.Invoke(null, new EventArgs());
|
||||
}
|
||||
_totalDistance = value;
|
||||
}
|
||||
}
|
||||
//private UInt16 _instantaneousPace = 0;
|
||||
//private UInt32 _totalDistance = 1;
|
||||
public UInt32 TotalDistance { get; set; } = 1;
|
||||
private UInt16 _instantaneousPace = 1;
|
||||
/// <summary>
|
||||
/// 即时配速
|
||||
/// </summary>
|
||||
public UInt16 InstantaneousPace { get; set; } = 0;
|
||||
public UInt16 InstantaneousPace
|
||||
{
|
||||
get => _instantaneousPace;
|
||||
set
|
||||
{
|
||||
if (_instantaneousPace == 0 && value != 0 && StartEvent != null)
|
||||
{
|
||||
StartEvent.Invoke(null, new EventArgs());
|
||||
}
|
||||
_instantaneousPace = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 平均配速
|
||||
/// </summary>
|
||||
@@ -264,7 +264,6 @@ namespace Assets.Scripts.Devices.Ble.Characteristic
|
||||
}
|
||||
//Debug.Log("拉力:" + string.Join(",",list));
|
||||
}
|
||||
//Debug.Log(output);
|
||||
}
|
||||
List<ushort> pullList;
|
||||
public void Reset()
|
||||
|
||||
@@ -53,7 +53,8 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
Debug.Log("中控台获取");
|
||||
this.controlPointCharacteristic = character;
|
||||
C2RowerData.IsEnabled = false;
|
||||
Reset();
|
||||
//Thread.Sleep(100);
|
||||
//Reset();
|
||||
}
|
||||
else if (character.MatchGuid(ServiceUuids.Characteristics.RowerData))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user