Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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 Florian Roth

Type: defectenhancement

comment:2 Changed 16 years ago by Florian Roth

Status: newaccepted

comment:3 Changed 16 years ago by Florian Roth

Resolution: fixed
Status: acceptedclosed

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

comment:4 Changed 16 years ago by SVN

New commit by froth (revision [354]):
[Related to ticket #66] now lib42 carIDs are prevCarID+1

I figgured out that the lib42 feedback for carID=0 gives me feedback with carID=1 so i tried to program car with carID=1 and now I got feedback for carID=1. Now the first lib42 carID is 1 not 0

Note: See TracTickets for help on using tickets.