dennisss / tansa

Dancing Robotics Platform
MIT License
39 stars 16 forks source link

Don't take off if can't find mocap or server #48

Closed tessmichi closed 7 years ago

tessmichi commented 8 years ago

Do not allow drone to takeoff unless all necessary components are found

tessmichi commented 7 years ago

new server changes fix this - don't let user run "play" command until drones are ready

dennisss commented 7 years ago

@tessmichi shouldn't they never be allowed to get off the ground if the mocap isn't connected and tracking the drones?

tessmichi commented 7 years ago

You're very right - reopening

tessmichi commented 7 years ago

Unsure how to check for success of "connect" method in gcs.cpp (code excerpt pasted below) if (useMocap) { mocap = new Mocap(); mocap->connect(config.clientAddress, config.serverAddress); }

dennisss commented 7 years ago

See https://github.com/dennisss/tansa/blob/master/src/gcs.cpp#L55 for how it gets to the gui

tessmichi commented 7 years ago

Kyle will work on this on Friday and I will help if needed

abramowitzK commented 7 years ago

Fixed this in #108