Skip to content

Commit

Permalink
Update to new binmarshal and frc-msgs. Still need to resolve a bug wh…
Browse files Browse the repository at this point in the history
…ere the whole async reactor locks up when receiving something with the ack_flag
  • Loading branch information
JaciBrunning committed Jan 5, 2024
1 parent 85f87a4 commit 1836b49
Show file tree
Hide file tree
Showing 12 changed files with 254 additions and 203 deletions.
102 changes: 57 additions & 45 deletions grapple-hook/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,50 @@
"SpiderLan"
]
},
"LaserCanMeasurement": {
"type": "object",
"required": [
"ambient",
"budget",
"distance_mm",
"mode",
"roi",
"status"
],
"properties": {
"ambient": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"budget": {
"$ref": "#/definitions/LaserCanTimingBudget"
},
"distance_mm": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"mode": {
"$ref": "#/definitions/LaserCanRangingMode"
},
"roi": {
"$ref": "#/definitions/LaserCanRoi"
},
"status": {
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
}
},
"LaserCanRangingMode": {
"type": "string",
"enum": [
"Short",
"Long"
]
},
"LaserCanRequest": {
"oneOf": [
{
Expand Down Expand Up @@ -556,11 +600,11 @@
"data": {
"type": "object",
"required": [
"long"
"mode"
],
"properties": {
"long": {
"type": "boolean"
"mode": {
"$ref": "#/definitions/LaserCanRangingMode"
}
}
},
Expand Down Expand Up @@ -612,9 +656,7 @@
],
"properties": {
"budget": {
"type": "integer",
"format": "uint8",
"minimum": 0.0
"$ref": "#/definitions/LaserCanTimingBudget"
}
}
},
Expand Down Expand Up @@ -821,7 +863,7 @@
"last_update": {
"anyOf": [
{
"$ref": "#/definitions/LaserCanStatusFrame"
"$ref": "#/definitions/LaserCanMeasurement"
},
{
"type": "null"
Expand All @@ -830,44 +872,14 @@
}
}
},
"LaserCanStatusFrame": {
"type": "object",
"required": [
"ambient",
"budget_ms",
"distance_mm",
"long",
"roi",
"status"
],
"properties": {
"ambient": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"budget_ms": {
"type": "integer",
"format": "uint8",
"minimum": 0.0
},
"distance_mm": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"long": {
"type": "boolean"
},
"roi": {
"$ref": "#/definitions/LaserCanRoi"
},
"status": {
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
}
"LaserCanTimingBudget": {
"type": "string",
"enum": [
"TB20ms",
"TB33ms",
"TB50ms",
"TB100ms"
]
},
"OldVersionDeviceRequest": {
"oneOf": [
Expand Down
Loading

0 comments on commit 1836b49

Please sign in to comment.