Titanium + AR.Drone = BIG FUN • Kickstarter was: Blackberry JAM Asia 2012 Contest • I tried the Alpha Version of the BB SDK • ask Ketan for more serious apps with this
• get Appcelerator Titanium (hCp://www.appcelerator.com/) • get the UDP plugin (hCps://github.com/appcelerator/ 5tanium_modules.git) • clone the starter project (hCps://github.com/zahlenhelfer/ CrossPla)ormCopter.git) • have FUN!
(like to old 5mes) • calc bit-‐arrays to integers (arrrghhh!) • use a counter (to be repe55ve) Example: AT*REF=<seq>,<command><CR> in more detail-‐> next page
(ex: the arguments of AT*CONFIG, or AT*REF) • a signed integer -‐ the sequence number • a single-‐precision IEEE-‐754 floa5ng-‐point value (aka. float). Instead, the 32-‐bit word containing the float will be considered as a 32-‐bit signed integer and printed in the AT command (an example is given below) AT*REF=1,290718208<CR>
b = new ByteBuffer(2, ByteBuffer.BIG_ENDIAN, true) alert(b.length); var floatValue = -0.8; b.writeFloat(floatValue); b.seek(-4); alert('int:'+b.readInt()); </script>
Protocol • RFC 768 • based on the transport layer of ISO/OSI • it´s very fast but, • it´s very unreliable • some kind of a sister protocol to TCP more info: hCp://en.wikipedia.org/wiki/User_Datagram_Protocol
Jeff, please! • Save the flight-‐data in ACS (Ketan looking forward to your session!) • make the camera-‐stream work (Extend Titanium.Media.VideoPlayer for PVE) • built a TitanCopter community • Keep it free – so all can have fun!
• Thank you audience! • Thank you Appclereator for this cool tool! • for further ques5ons: – eMail: [email protected] – twiCer: @zahlenhelfer – ReaLife: meet me outside for a drink