2026.6.17小更新修改json内容错误
This commit is contained in:
@@ -169,7 +169,6 @@ class RouterProxy:
|
|||||||
msg = {
|
msg = {
|
||||||
"type": "SETPOINT",
|
"type": "SETPOINT",
|
||||||
"id": msg_id,
|
"id": msg_id,
|
||||||
"seq":self._seq,
|
|
||||||
"timestamp_us": int(time.time() * 1_000_000),
|
"timestamp_us": int(time.time() * 1_000_000),
|
||||||
"setpoint": {"control_mode": control_mode, **kwargs}
|
"setpoint": {"control_mode": control_mode, **kwargs}
|
||||||
}
|
}
|
||||||
@@ -223,6 +222,7 @@ class RouterProxy:
|
|||||||
msg = {
|
msg = {
|
||||||
"type": "WAYPOINT",
|
"type": "WAYPOINT",
|
||||||
"id": msg_id,
|
"id": msg_id,
|
||||||
|
"seq": self._seq,
|
||||||
"timestamp_us": int(time.time() * 1_000_000),
|
"timestamp_us": int(time.time() * 1_000_000),
|
||||||
"waypoint": wp_kwargs
|
"waypoint": wp_kwargs
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user