sics-sse / moped

Mobile Open Platform for Experimental Development
http://mopedforum.prophpbb.com
GNU General Public License v2.0
161 stars 116 forks source link

Standard Java I/O on physical vehicle #53

Open arndtjonasson opened 9 years ago

arndtjonasson commented 9 years ago

Try to make System.out.println in apps do something on the actual car. Now it is ignored, and output must be made some other way (does that work in the simulator?)

arndtjonasson commented 9 years ago

I think the answer to the question above is that the proper way to do it is by VM.print, and that this works by virtue of methods in simulator/squawk which do System.out.println in the case of simulator, while the car implementation is in squawk/.../VM.java.

One plugin which uses VM.print is SemiAutomaticReverseParking.

arndtjonasson commented 9 years ago

As long as System.out is ignored in autosar, the proper thing to do is to use VM.print everywhere, but it would also be nice to be able to use plugin code outside the moped framework without changing the I/O functions.