To actually work on an interface and see it develop makes you feel like a demi-god. The interface between the RPi and android is as simple as one can imagine. If we put it down to the really basic building blocks all we are doing is making two different JVMs talk to each other. The problem arises when one JVM is constantly talking and changes its language from urdu to japanese suddenly and the other JVM doesnt understand it. StreamCorrupted Exception? Maybe or maybe not. The threading also doesnt provide much of a ease to life it just complicates thing. Question arises what to do? Shouldnt the function of Socket handle these things on its own. Lets be really clear there is a single stream not multiple ones because I havnt introduced a second Socket. One socket one pair of stream so whats the problem then? The thread should only work when the Outputstream is ready aint it so? Then why is the OS giving problems. Anyhow changed it to one thread and now it works perfectly. but have to send all the data on that single thread. Its simpler but dumber. Concerned about the implementation of the pitch row and yaw how much should be smooth and how much should be really fast for the quad. the values lie between 1000-2000. Thinking of starting slow ( although I am way behind the schedule). For now only do the throttle and see if the quad flies or not. Also need to add sections. I think the major obstruction at the moment are the levels nothing else I just dont know what to do with that :(
No comments:
Post a Comment