#4 closed task (fixed)
Research how to access the low-level car control drivers
Reported by: | Henrik Heimbuerger | Owned by: | Florian Roth |
---|---|---|---|
Priority: | critical | Milestone: | MS1: First release (1.0.0) |
Component: | project | Version: | pre-1.0 |
Keywords: | driver | Cc: |
Description
It has to be researched how JaCaVi is going to control the cars on the Carrera track.
This is not so much a technical problem as the Java-to-C aspect is mostly understood and well documented.
But communication with the other teams is necessary to get more detailed information on their interfaces.
In particular, we need to figure out how to integrate and use Marco's simulation project.
Change History (26)
comment:1 Changed 17 years ago by
Status: | new → assigned |
---|
comment:2 Changed 17 years ago by
comment:3 follow-up: 5 Changed 17 years ago by
Replying to hheimbuerger:
It has to be researched how JaCaVi is going to control the cars on the Carrera track.
This is not so much a technical problem as the Java-to-C aspect is mostly understood and well documented.
But communication with the other teams is necessary to get more detailed information on their interfaces.
In particular, we need to figure out how to integrate and use Marco's simulation project.
I checked out how JNI works by doing a HelloWorld?.
I thought we could use an existing (compiled) dynamic library (dll or so), take this and access it from Java by JNI to call their functions. THIS IS NOT.
But no problem.
We have to write an Java Class for each C-header(specifies the interfaces we need in JaCaVi). Then we can generate an JNI C-header. Then we have to implement the JNI C-header by including the original c-header and redirect JNI functions to the original C functions. Little C wrapper.
So if we've done that we must compile the given c-source to a dynamic library.
Thats about technics.
Just to let you know my sources and to contribute to a complete documentation. :-)
*How to compile JNI on Windows with cygwin
*How to configure eclipse cdt for JNI automation (really nice)
*Useful thread on JNI compile and linker problems
I think compiling JNI dynamic link library on Linux systems will be mutch easier... :-)
So now im in contact with Benjamin to figgure out the interface.
See you soon Sailamoon
comment:5 Changed 17 years ago by
It has to be researched how JaCaVi is going to control the cars on the Carrera track.
This is not so much a technical problem as the Java-to-C aspect is mostly understood and well documented.
But communication with the other teams is necessary to get more detailed information on their interfaces.
In particular, we need to figure out how to integrate and use Marco's simulation project.
comment:6 Changed 17 years ago by
I checked out how JNI works by doing a HelloWorld?.
I thought we could use an existing (compiled) dynamic library (dll or so), take this and access it from Java by JNI to call their functions. THIS IS NOT.
But no problem.
We have to write an Java Class for each C-header(specifies the interfaces we need in JaCaVi). Then we can generate an JNI C-header. Then we have to implement the JNI C-header by including the original c-header and redirect JNI functions to the original C functions. Little C wrapper.
So if we've done that we must compile the given c-source to a dynamic library.
Thats about technics.
Just to let you know my sources and to contribute to a complete documentation. :-)
*How to compile JNI on Windows with cygwin *How to configure eclipse cdt for JNI automation (really nice)
*Useful thread on JNI compile and linker problems
I think compiling JNI dynamic link library on Linux systems will be mutch easier... :-)
So now im in contact with Benjamin to figgure out the interface.
See you soon Sailamoon
comment:7 Changed 17 years ago by
comment:8 Changed 17 years ago by
comment:9 Changed 17 years ago by
comment:10 Changed 17 years ago by
comment:11 Changed 17 years ago by
comment:12 Changed 17 years ago by
comment:13 Changed 17 years ago by
comment:14 Changed 17 years ago by
comment:15 Changed 17 years ago by
comment:16 Changed 17 years ago by
New commit by froth (revision [59]):
[Related to ticket #4] changed Final CarreraControler?
comment:17 Changed 17 years ago by
New commit by froth (revision [60]):
[Related to ticket #4] updated the NativeLibraryFactory? and its implementation
comment:18 Changed 17 years ago by
comment:19 Changed 17 years ago by
comment:20 Changed 17 years ago by
comment:21 Changed 17 years ago by
comment:22 Changed 17 years ago by
comment:23 Changed 17 years ago by
comment:24 Changed 17 years ago by
Milestone: | → MS1: First usable version |
---|
comment:25 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I think the research part on this is complete. Please file development notes on the integration of the project 42 library on ticket #16.
New commit by hheimbuerger (revision [47]):
[Related to ticket #4] Added Marco Fahr's (preliminary?) diploma thesis to the repository.
Added Marco Fahr's diploma thesis to the repository. Herr Maechtel mentioned that Marco's application might be useful in JaCaVi for doing the simulation.