From: Jakob E. <nam...@go...> - 2012-07-27 06:13:01
|
Dear 吳俊諺, the traci command you used is supposed to work like that. You need to send a new state, switch to another program or load a new program if you want the state to change again. regards, Jakob 2012/7/27 吳俊諺 <xx...@gm...>: > Hi, sumo users > > I successfully changed a traffic light into preemption phase, > > but i couldn't change it back. > > btw, the traffic light seems to have only one phase left... > > here are some snapshots about the traffic light > http://www.freeimagehosting.net/ge1wk (before) > http://www.freeimagehosting.net/fkjbi (after) > > > the way i change current phase state > >> Storage out; > > out.writeUnsignedByte( 1 + 1 + 1 + 4 + tlID.length() + 1 + 4 + >> state.length() ); // Length of command >> out.writeUnsignedByte(0xc2); >> out.writeUnsignedByte(0x20); >> out.writeString(tlID); >> out.writeUnsignedByte(0x0c); >> out.writeString(state); > > > Does any one have the some problem? > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > sumo-user mailing list > sum...@li... > https://lists.sourceforge.net/lists/listinfo/sumo-user |