Skip to content

Commit

Permalink
src: definitions: ping1d: Add OSS messages
Browse files Browse the repository at this point in the history
* Add set_oss_profile_configuration message
* Add oss_profile_configuration message
  • Loading branch information
JoaoMario109 authored and patrickelectric committed Jan 23, 2025
1 parent ef8e5a8 commit ac67fcb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/definitions/ping1d.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,27 @@
"description": "0: Disable, 1: Enable."
}
]
},
"set_oss_profile_configuration": {
"id": 1007,
"description": "Set the profile output configuration. (Open source firmware only)",
"payload": [
{
"name": "number_of_points",
"type": "u16",
"description:": "Total number of points sent from sonar to host computer in the profile message."
},
{
"name": "normalization_enabled",
"type": "u8",
"description": "If enabled, the profile data is scaled so that the maximum value aligns with the upper limit of 255. (0: Disabled, 1: Enabled)"
},
{
"name": "enhance_enabled",
"type": "u8",
"description": "If enabled, the profile data will be unevenly scaled to enhance peak values. (0: Disabled, 1: Enabled)"
}
]
}
},
"get": {
Expand Down Expand Up @@ -409,6 +430,27 @@
"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."
}
]
},
"oss_profile_configuration": {
"id": 1301,
"description": "Get the profile output configuration. (Open source firmware only)",
"payload": [
{
"name": "number_of_points",
"type": "u16",
"description:": "Total number of points sent from sonar to host computer in the profile message."
},
{
"name": "normalization_enabled",
"type": "u8",
"description": "If enabled, the profile data is scaled so that the maximum value aligns with the upper limit of 255. (0: Disabled, 1: Enabled)"
},
{
"name": "enhance_enabled",
"type": "u8",
"description": "If enabled, the profile data will be unevenly scaled to enhance peak values. (0: Disabled, 1: Enabled)"
}
]
}
},
"control": {
Expand Down

0 comments on commit ac67fcb

Please sign in to comment.