Starting a new program foo.rxe in NXC
Posted: 07 Feb 2013, 09:54
Hi guys,
Is there any way to start a new program "foo.rxe" from a running "bar.rxe" in NXC ?
The problem I have is that the code I am using is rather big, due to the usage of Wifiblock and a few other libs.
I would like to create a small dispatcher, which can start programs, delete programs, requests programs to be downloaded on the brick, etc.
I've looked through the excellent NXC documentation, but I haven't found anything... (or maybe I'm too dumb to identify the right pieces)
I know about tasks, and in theory this should be enough for almost everything, but it would fit my needs much better if I could more or less reprogramm the robot "on the fly".
The reprogramming (or getting the new *.rxe compiled code) would not happen over Bluetooth but from a webservice through the wifiblock.
Thanks,
Micha
Is there any way to start a new program "foo.rxe" from a running "bar.rxe" in NXC ?
The problem I have is that the code I am using is rather big, due to the usage of Wifiblock and a few other libs.
I would like to create a small dispatcher, which can start programs, delete programs, requests programs to be downloaded on the brick, etc.
I've looked through the excellent NXC documentation, but I haven't found anything... (or maybe I'm too dumb to identify the right pieces)
I know about tasks, and in theory this should be enough for almost everything, but it would fit my needs much better if I could more or less reprogramm the robot "on the fly".
The reprogramming (or getting the new *.rxe compiled code) would not happen over Bluetooth but from a webservice through the wifiblock.
Thanks,
Micha