Skip to content

Commit ac67fcb

Browse files
joaomariolagopatrickelectric
authored andcommitted
src: definitions: ping1d: Add OSS messages
* Add set_oss_profile_configuration message * Add oss_profile_configuration message
1 parent ef8e5a8 commit ac67fcb

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

src/definitions/ping1d.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,27 @@
8686
"description": "0: Disable, 1: Enable."
8787
}
8888
]
89+
},
90+
"set_oss_profile_configuration": {
91+
"id": 1007,
92+
"description": "Set the profile output configuration. (Open source firmware only)",
93+
"payload": [
94+
{
95+
"name": "number_of_points",
96+
"type": "u16",
97+
"description:": "Total number of points sent from sonar to host computer in the profile message."
98+
},
99+
{
100+
"name": "normalization_enabled",
101+
"type": "u8",
102+
"description": "If enabled, the profile data is scaled so that the maximum value aligns with the upper limit of 255. (0: Disabled, 1: Enabled)"
103+
},
104+
{
105+
"name": "enhance_enabled",
106+
"type": "u8",
107+
"description": "If enabled, the profile data will be unevenly scaled to enhance peak values. (0: Disabled, 1: Enabled)"
108+
}
109+
]
89110
}
90111
},
91112
"get": {
@@ -409,6 +430,27 @@
409430
"description": "An array of return strength measurements taken at regular intervals across the scan region. The first element is the closest measurement to the sensor, and the last element is the farthest measurement in the scanned range."
410431
}
411432
]
433+
},
434+
"oss_profile_configuration": {
435+
"id": 1301,
436+
"description": "Get the profile output configuration. (Open source firmware only)",
437+
"payload": [
438+
{
439+
"name": "number_of_points",
440+
"type": "u16",
441+
"description:": "Total number of points sent from sonar to host computer in the profile message."
442+
},
443+
{
444+
"name": "normalization_enabled",
445+
"type": "u8",
446+
"description": "If enabled, the profile data is scaled so that the maximum value aligns with the upper limit of 255. (0: Disabled, 1: Enabled)"
447+
},
448+
{
449+
"name": "enhance_enabled",
450+
"type": "u8",
451+
"description": "If enabled, the profile data will be unevenly scaled to enhance peak values. (0: Disabled, 1: Enabled)"
452+
}
453+
]
412454
}
413455
},
414456
"control": {

0 commit comments

Comments
 (0)