|Tekkotsu Homepage||Demos||Overview||Downloads||Dev. Resources||Reference||Credits|
IPCMotionHook Class Reference
Inheritance diagram for IPCMotionHook:
description of IPCMotionHook
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
Should return true if the MotionHook is successfully connected to physical hardware.
If relevant, this will only be called after motionStarting() has been called in order to initialize a connection.
This is used mainly to cancel out of the WaitForSensors if all MotionHooks return false. If you are still in the process of connecting or unsure of status, be optimistic and return true. This function will be polled at a coarse rate while blocked on sensors in case of timeouts on the part of the MotionHook render it moot.
Called each time the motion process has polled active motion commands.
This default implementation checks to see which outputs have changed value since the last call and passes the summary on to motionUpdated(). lastOutputs will be updated with the new values after the call to motionUpdated().
If you need to process all the outputs on every frame, you only need to override this function. Your subclass doesn't need to call the MotionHook implementation unless you want to have lastOutputs updated for you.
If you only need to process the changed outputs for each frame, override motionUpdated() instead. motionUpdated() is always called for each update, even if there aren't any changes, so you can still use that if there are some outputs which need to be updated every cycle.
Reimplemented from MotionHook.
Member Data Documentation
The documentation for this class was generated from the following files:
Tekkotsu Hardware Abstraction Layer 5.1CVS
||Generated Sat May 4 06:37:24 2013 by Doxygen 1.6.3|