Opened 16 years ago

Closed 16 years ago

#152 closed defect (fixed)

Don't send any the connector any signals when a car is off the track

Reported by: Henrik Heimbuerger Owned by: Florian Roth
Priority: critical Milestone: MS1: First release (1.0.0)
Component: hal Version: pre-1.0
Keywords: Cc:

Description

Right now, you can control the cars even when the TDA thinks the car has left the track. In this case, no communication with the connectors should take place.

Change History (6)

comment:1 Changed 16 years ago by Henrik Heimbuerger

Owner: changed from Florian Roth to Henrik Heimbuerger
Status: newassigned

comment:2 Changed 16 years ago by Henrik Heimbuerger

Owner: changed from Henrik Heimbuerger to Florian Roth

comment:3 Changed 16 years ago by SVN

New commit by froth (revision [453]):
[Related to ticket #152] Fixed this problem by adding a line in the RaceEngine?.

Now SlotCarSystemConnectors? will get no more data during car is out of race (track).

comment:4 Changed 16 years ago by Florian Roth

Test this. Checkoput wether to:

comment:5 Changed 16 years ago by SVN

New commit by froth (revision [456]):
[Fix for ticket #152,#157,#149] fixed starting point problem on reset, generalized functionality on CarController?.reset().

Now reset functionality etc. is back in the RaceEngine? so we have a better workflow and TDA's have a bit less functionality. This was reached to give the TDA an reset function to reset saved speed and acceleration if car crashes. I think its good and fine if all race workflow logic is generalized in the RaceEngine? so the TDA only has to approximate position by physics etc. Maybe we can outsource functionality currently in TrackDataApproximator? like calculation of steps between checkpoints later some where in a TrackDataInformationManager? initialized by RaceEngine? before raceStart so TDA can get its information about track etc concentrated from TrackDataInformationManager? because currently intelligence informations about the track are not easy to get.

We need a reset on CarController? because the deactivate function disables the Controller listeners for example keyboard lsiteners so a reset push button could not be detected further the RaceEngine? couldnt trigger the ControlerSignal?.isReset()and the car is out of race for ever. Added javadoc to CarController? reset().

comment:6 Changed 16 years ago by Florian Roth

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.