小编Joe*_*Joe的帖子

iPhone的捕捉动作的滚动,俯仰和偏转的最大值和最小值

该程序用于检测陀螺仪的值(Roll,Pitch和Yaw).

请问我想知道Roll,Pitch和Yaw的最大值和最小值是多少.(陀螺仪的价值)


初始化:

[[UIAccelerometer sharedAccelerometer] setUpdateInterval:0.2f];

[[UIAccelerometer sharedAccelerometer] setDelegate:self];

motionManager = [[CMMotionManager alloc] init];

motionManager.accelerometerUpdateInterval = 0.01; // 100Hz

motionManager.deviceMotionUpdateInterval = 0.01; // 100Hz

[motionManager startDeviceMotionUpdates];


motionManager.deviceMotion.attitude.roll //最大值和最小值?

motionManager.deviceMotion.attitude.yaw //最大值和最小值?

motionManager.deviceMotion.attitude.Pitch //最大值和最小值?

以及如何传递给价值观 - >度?

谢谢

iphone xcode motion

3
推荐指数
1
解决办法
5321
查看次数

语音自动识别所有英语单词

我有一个Windows窗体应用程序.我想做一个Voice Recognition.问题是Grammar我使用的仅限于我的选择列表(参见下面的程序).我希望我的程序能够识别所有单词.

Choices sList = new Choices();
sList.Add(new string[] { "hello", "test", "it works", "how", "are", "you", "today", "i", "am", "fine", "exit", "close", "quit", "so" });
    Grammar gr = new Grammar(new GrammarBuilder(sList));
Run Code Online (Sandbox Code Playgroud)

你知道我怎么能让我的程序识别所有单词?

源代码 :

宣言 :

using System.Speech;
using System.Speech.Recognition;
using System.Speech.Synthesis;
Run Code Online (Sandbox Code Playgroud)

计划:

private void button2_Click(object sender, EventArgs e)
{
    button2.Enabled = false; // Start record
    button3.Enabled = true;  // Stop record
    Choices sList = new Choices();
    sList.Add(new string[] { "hello", "test", "it works", "how", …
Run Code Online (Sandbox Code Playgroud)

c# speech-recognition winforms

3
推荐指数
1
解决办法
6197
查看次数

标签 统计

c# ×1

iphone ×1

motion ×1

speech-recognition ×1

winforms ×1

xcode ×1