#66 closed enhancement (fixed)
Integrate the lib42 in JaCaVi
Reported by: | Florian Roth | Owned by: | Florian Roth |
---|---|---|---|
Priority: | major | Milestone: | MS1: First release (1.0.0) |
Component: | hal | Version: | pre-1.0 |
Keywords: | hal, lib42 | Cc: |
Description
Change History (4)
comment:1 Changed 16 years ago by
Type: | defect → enhancement |
---|
comment:2 Changed 16 years ago by
Status: | new → accepted |
---|
comment:3 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:4 Changed 16 years ago by
Note: See
TracTickets for help on using
tickets.
Lib42 is completly integrated in Jacavi.
On creating a new lib42Connector over the SlotCarSystemConnectorFactory? you will get a new SlotCarSystemConnector? witch includes a Lib42DriveConnectorAdapter and a Lib42FeedbackConnectorAdapter. Both need a carID, here given by GUI.
NativeLib42 is and must be Singelton, because we could open the device for writing only once. So the creation of an Lib42DriveConnectorAdapter needs the carID to give the NativeLibrary? all the control information with the specified cardID.
Infact that the NativeCsdLib? would gives back the feedback of all configured cars to all cars (feedback from carid 0: would also get received from carid:1 and all the others), I integrated the Lib42FeedbackManager. A Lib42FeedbackConnectorAdapter holds an Lib42FeedbackManager and subscribes to it with its carID. So the Lib42FeedbackManager gets all the feedback from NativeCsdLib? and distributes the right feedback to subscribed Lib42FeedbackConnectorAdapters.
This is not tested right now