fix(prototype): send component exchange without callback
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f9bc0e79fc
commit
b53ed477f3
1 file changed
+2
-3
@@ -43,9 +43,8 @@ local function tryIgnore(follower : Car, leader : Car)
|
||||
mp.dyn.timeToIgnore = IGNORE_SECONDS
|
||||
p(string.format("IGNORE_TEST send veh=%d leader=%d gap=%.1f v=%.2f leaderV=%.2f", follower.v, leader.v, math.abs(leader.pos - follower.pos), follower.speed, leader.speed))
|
||||
local cmd = api.cmd.debug.makeComponentExchangeCmd(follower.v, mp as Engine.Component)
|
||||
api.cmd.sendCommand(cmd, function(_data : any, success : boolean)
|
||||
p(string.format("IGNORE_TEST result veh=%d success=%s", follower.v, tostring(success)))
|
||||
end)
|
||||
-- engine-state scripts can't pass a callback ("Error decoding argument #3"); the next dump shows the effect
|
||||
api.cmd.sendCommand(cmd)
|
||||
end
|
||||
|
||||
local function dump(dt : number)
|
||||
|
||||
Reference in new issue
Block a user