调整动画和chart图标细节,重置命令
This commit is contained in:
1 parent
8d8fd59a80
commit
561ad993b8
15 files changed
+5543
-5278
No files matched your search
@@ -10,5 +10,6 @@ namespace Assets.Scripts.Devices.Ant.Interfaces
|
||||
interface IRowerDevice
|
||||
{
|
||||
FtmsRowerData rowerData { get; }
|
||||
void Reset();
|
||||
}
|
||||
}
|
||||
@@ -194,7 +194,7 @@ namespace Assets.Scripts.Devices.Ble.Characteristic
|
||||
PullValue = val;
|
||||
}
|
||||
}
|
||||
//Debug.Log("原始数据:" + string.Join(",", data));
|
||||
Debug.Log("原始数据:" + string.Join(",", data));
|
||||
}
|
||||
public void Reset()
|
||||
{
|
||||
|
||||
@@ -39,7 +39,12 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
{
|
||||
foreach (var character in response.Data)
|
||||
{
|
||||
if (character.MatchGuid(ServiceUuids.Characteristics.RowerData))
|
||||
if (character.MatchGuid(ServiceUuids.Characteristics.FitnessMachineControlPoint))
|
||||
{
|
||||
Debug.Log("中控台获取");
|
||||
this.controlPointCharacteristic = character;
|
||||
}
|
||||
else if (character.MatchGuid(ServiceUuids.Characteristics.RowerData))
|
||||
{
|
||||
Debug.Log("划船机");
|
||||
this.hwInterface.SubscribeCharacteristic(character, (hw, cha, res) =>
|
||||
@@ -66,5 +71,11 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
Debug.Log("发送重置命令");
|
||||
hwInterface.WriteCharacteristic(this.controlPointCharacteristic, new byte[] { 0x01 });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user