-
Notifications
You must be signed in to change notification settings - Fork 2
SceneManager
4rzael edited this page Sep 1, 2017
·
4 revisions
This script's role is to organize the whole scene. It can be considered as the "Maestro", the Orchestra master.
(It is pretty boring, though)
Its interface is really simple :
-
Start all
: This button allows to start the SceneManager routine. It should be useless as it is done on script startup -
Stop all
: This button allows to stop the SceneManager routine. Useless too -
Connect to drone server
: If the drones react to the Unity server but the server doesn't get any informations from them, try pushing this button. It will subscribe this Unity client as an OSC client for thedrones
osc server. -
should initialize ?
: Should always be true, except for debugging purposes.
This code has one important function (Coroutine, in fact) : IEnumerator StartingCoroutine()
.
It does the following things:
- connects to the OSC servers
- restarts the drones OSC server
- subscribes to the drones OSC server
- sends LPS informations
- resets drones kalman filters