Sunday, March 29, 2009

Sensor IPC

I've got a basic sensor IPC going now. Similar to Chrome's process model whereby every tab runs in its own distinct process, MarcoPolo 3 now has each sensor running in its own distinct process. This means that an unreliable sensor, whether by memory leaks, buggy Apple APIs or my own mistakes will not bring down MarcoPolo itself. Nifty!

So far it only does the START and STOP messages, but it's a good start. Here's to more reliable software! If you are tracking the git repo, update it and then you should be able to run the SensorTester app.

You could even run the sensors directly:

$ xcodebuild -target SensorTester -configuration Debug
$ build/Debug/SensorRunner build/Debug/PowerSensor.sensor

Type in "START" or "STOP" and you'll be interacting with the sensor in the same way that MarcoPolo will be.

2 comments:

cjkarr said...

This is a great idea. Mind if I borrow it for Pennyworth?

Dave said...

Hah, go for it. Let me know what you come up with.