Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
75f2602d
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
75f2602d
编写于
2月 17, 2023
作者:
O
openharmony_ci
提交者:
Gitee
2月 17, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7604 【Openharmony4.0.3.2】【master分支】【sensor子系统】【ToC】【RK3568】【必现】修改
Merge pull request !7604 from ldy/master
上级
683302ad
28e8a99c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
12 deletion
+12
-12
sensors/sensor_standard/src/main/js/test/SensorGeneralalgorithm.test.js
..._standard/src/main/js/test/SensorGeneralalgorithm.test.js
+6
-6
sensors/sensor_standard/src/main/js/test/SensorOnOffTest.test_newSensorGeomagnetic.js
...main/js/test/SensorOnOffTest.test_newSensorGeomagnetic.js
+6
-6
未找到文件。
sensors/sensor_standard/src/main/js/test/SensorGeneralalgorithm.test.js
浏览文件 @
75f2602d
...
...
@@ -1009,8 +1009,8 @@ describe("SensorJsTest_sensor_1", function () {
it
(
'
SensorJsTest_107
'
,
TestType
.
FUNCTION
|
Size
.
MEDIUMTEST
|
Level
.
LEVEL3
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------SensorJsTest_107----------------------------------
"
);
sensor
.
transformCoordinateSystem
([
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
],
{
'
axisX
'
:
1
,
'
axisY
'
:
2
'
x
'
:
1
,
'
y
'
:
2
},
(
error
,
data
)
=>
{
if
(
error
)
{
console
.
info
(
'
SensorJsTest_107 failed
'
);
...
...
@@ -1031,7 +1031,7 @@ describe("SensorJsTest_sensor_1", function () {
it
(
'
SensorJsTest_108
'
,
TestType
.
FUNCTION
|
Size
.
MEDIUMTEST
|
Level
.
LEVEL3
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------SensorJsTest_108----------------------------------
"
);
sensor
.
transformCoordinateSystem
([
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
],
{
'
axisX
'
:
1
,
'
axisY
'
:
2
},
(
error
,
data
)
=>
{
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
],
{
'
x
'
:
1
,
'
y
'
:
2
},
(
error
,
data
)
=>
{
if
(
error
)
{
console
.
info
(
'
SensorJsTest_108 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -1051,8 +1051,8 @@ describe("SensorJsTest_sensor_1", function () {
it
(
"
SensorJsTest_109
"
,
TestType
.
FUNCTION
|
Size
.
MEDIUMTEST
|
Level
.
LEVEL3
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------SensorJsTest_109----------------------------------
"
);
sensor
.
transformCoordinateSystem
([
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
],
{
'
axisX
'
:
1
,
'
axisY
'
:
2
'
x
'
:
1
,
'
y
'
:
2
}).
then
((
data
)
=>
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
console
.
info
(
"
SensorJsTest_109 data[
"
+
i
+
"
] =
"
+
data
[
i
]);
...
...
@@ -1074,7 +1074,7 @@ describe("SensorJsTest_sensor_1", function () {
it
(
"
SensorJsTest_110
"
,
TestType
.
FUNCTION
|
Size
.
MEDIUMTEST
|
Level
.
LEVEL3
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------SensorJsTest_110----------------------------------
"
);
sensor
.
transformCoordinateSystem
([
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
],
{
'
axisX
'
:
1
,
'
axisY
'
:
3
}).
then
((
data
)
=>
{
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
],
{
'
x
'
:
1
,
'
y
'
:
3
}).
then
((
data
)
=>
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
console
.
info
(
"
SensorJsTest_110 data[
"
+
i
+
"
] =
"
+
data
[
i
]);
expect
(
data
[
i
]).
assertEqual
(
transformCoordinateSystemResult
[
2
][
i
]);
...
...
sensors/sensor_standard/src/main/js/test/SensorOnOffTest.test_newSensorGeomagnetic.js
浏览文件 @
75f2602d
...
...
@@ -2916,7 +2916,7 @@ describe("SensorJsTest_sensor_60", function () {
*/
it
(
'
Sensor_TransformCoordinateSystem_001
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------Sensor_TransformCoordinateSystem_001----------------------------------
"
);
sensor
.
transformRotationMatrix
([
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
],
{
'
axisX
'
:
1
,
'
axisY
'
:
2
},
(
error
,
data
)
=>
{
sensor
.
transformRotationMatrix
([
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
],
{
'
x
'
:
1
,
'
y
'
:
2
},
(
error
,
data
)
=>
{
if
(
error
)
{
console
.
info
(
'
Sensor_TransformCoordinateSystem_001 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -2936,7 +2936,7 @@ describe("SensorJsTest_sensor_60", function () {
it
(
'
Sensor_TransformCoordinateSystem_002
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------Sensor_TransformCoordinateSystem_002----------------------------------
"
);
sensor
.
transformRotationMatrix
([
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
],
{
'
axisX
'
:
1
,
'
axisY
'
:
2
},
(
error
,
data
)
=>
{
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
,
3.40282
e
+
38
],
{
'
x
'
:
1
,
'
y
'
:
2
},
(
error
,
data
)
=>
{
if
(
error
)
{
console
.
info
(
'
Sensor_TransformCoordinateSystem_002 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -2955,7 +2955,7 @@ describe("SensorJsTest_sensor_60", function () {
*/
it
(
"
Sensor_TransformCoordinateSystem_003
"
,
0
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------Sensor_TransformCoordinateSystem_003----------------------------------
"
);
sensor
.
transformRotationMatrix
([
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
],
{
'
axisX
'
:
1
,
'
axisY
'
:
2
}).
then
((
data
)
=>
{
sensor
.
transformRotationMatrix
([
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
,
1.5
],
{
'
x
'
:
1
,
'
y
'
:
2
}).
then
((
data
)
=>
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
console
.
info
(
"
Sensor_TransformCoordinateSystem_003 data[
"
+
i
+
"
] =
"
+
data
[
i
]);
expect
(
data
[
i
]).
assertEqual
(
transformCoordinateSystemResult
[
0
][
i
]);
...
...
@@ -2976,7 +2976,7 @@ describe("SensorJsTest_sensor_60", function () {
it
(
"
Sensor_TransformCoordinateSystem_004
"
,
0
,
async
function
(
done
)
{
console
.
info
(
"
---------------------------Sensor_TransformCoordinateSystem_004----------------------------------
"
);
sensor
.
transformRotationMatrix
([
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
],{
'
axisX
'
:
1
,
'
axisY
'
:
3
}).
then
((
data
)
=>
{
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
,
3.40282
e
+
39
],{
'
x
'
:
1
,
'
y
'
:
3
}).
then
((
data
)
=>
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
console
.
info
(
"
Sensor_TransformCoordinateSystem_004 data[
"
+
i
+
"
] =
"
+
data
[
i
]);
expect
(
data
[
i
]).
assertEqual
(
transformCoordinateSystemResult
[
2
][
i
]);
...
...
@@ -3093,7 +3093,7 @@ describe("SensorJsTest_sensor_60", function () {
console
.
info
(
'
Sensor_TransformCoordinateSystem_008 start
'
)
try
{
sensor
.
transformRotationMatrix
([
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
],
{
'
axisX
'
:
1
,
'
axisY
'
:
1
}).
then
((
data
)
=>
{
{
'
x
'
:
1
,
'
y
'
:
1
}).
then
((
data
)
=>
{
console
.
info
(
"
Sensor_TransformCoordinateSystem_009
"
+
data
)
expect
(
true
).
assertfalse
()
done
()
...
...
@@ -3119,7 +3119,7 @@ describe("SensorJsTest_sensor_60", function () {
console
.
info
(
'
Sensor_TransformCoordinateSystem_010 start
'
)
try
{
sensor
.
transformRotationMatrix
([
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
],
{
'
axisX
'
:
1
,
'
axisY
'
:
1
},
(
error
,
data
)
=>
{
{
'
x
'
:
1
,
'
y
'
:
1
},
(
error
,
data
)
=>
{
if
(
error
)
{
console
.
info
(
'
Sensor_TransformCoordinateSystem_010 failed
'
);
expect
(
false
).
assertTrue
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录