I'm developing a program without a simulator/robot at the moment (still waiting for some people to get their act together and get me the robot!), and one of the functions I need to use is the alter() function. I'm a bit unsure about the structure of it as there's limited information in the documentation, could someone tell me if I'm doing things in the right places?
In an async. function, I have:
Code
taskCreateSync "controller", dt, b_overrun, controller()
// Start the alter() process.
wait(alterBegin(t_flayer, m_sequence))
alterMovel(appro(here(t_flayer, world), tr_sequence), t_flayer, m_sequence)
// End the alter process.
wait (alterEnd() == 1)
And in controller():
Code
// Some code to process an analogue signal.
// Some code to compute the transformation required.
alter(tr_offset)
// More tidy up
Does that look about right? The part I'm not sure about are the alterBegin() and alterEnd() functions.
Many thanks in advance.