Top Banner
Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev
14

Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

Dec 16, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

Ondrej Stastny

Microsoft Premier Field Engineer

Windows 8.1 Äpipäev

Page 2: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

• Speech Synthesis • AR Parrot Drone UI• 3D printing

Agenda

Page 3: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

Speech Synthesis

Page 4: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

• XML based language• W3 standard for speech synthesis

Speech Synthesis Markup Language (SSML)

Page 5: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

• Mark• Notify app that certain point has been reached

• Phoneme• Phonetic pronounciation

• Say-as• Aid the synthesis processor

• P, Break, …

Page 6: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

// create the data streamSpeechSynthesisStream synthesisStream; synthesisStream = await this.synthesizer.SynthesizeSsmlToStreamAsync(text);

// start this audio stream playingthis.media.AutoPlay = true;this.media.SetSource(synthesisStream, synthesisStream.ContentType);this.media.Play();

Page 7: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

AR Drone 2.0

Page 8: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

Initialize connection to the dronepublic static async Task ConnectToDrone(){                // Set up the UDP connection         string remotePort = "5556";         HostName droneIP = new HostName("192.168.1.1");                udpSocket = new DatagramSocket();         await udpSocket.BindServiceNameAsync(remotePort);         await udpSocket.ConnectAsync(droneIP, remotePort);         udpWriter = new DataWriter(udpSocket.OutputStream);             }

Page 9: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

Send a commandpublic static async Task SendDroneCommand(string command){         udpWriter.WriteString(command);         await udpWriter.StoreAsync();}

AT*REF – takeoff/landing,resetAT*PCMD -airborn manipulation[sequence, flag,  roll, pitch, vertical speed, angular speed]

Page 10: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

// Strafe drone forward or backward at velocity in range [-1,1]public static string GetDroneStrafeForwardBackward(uint sequenceNumber, double velocity){     // Convert the ratio into a value the drone understands     int value = FloatConversion(velocity);     return CreateATPCMDCommand(sequenceNumber, "0," + value + ",0,0"); }   // Return a full ATPCMD commandprivate static string CreateATPCMDCommand(uint sequenceNumber, string command){     return "AT*PCMD=" + sequenceNumber + ",1," + command + Environment.NewLine;}

Page 11: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

3D printing

Page 12: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

• 3D printing will go mainstream• Similar to printing 2D content• Print Preview• Print Ticket XML

Intro

Page 13: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

3D Builder

Page 14: Ondrej Stastny Microsoft Premier Field Engineer Windows 8.1 Äpipäev.

1. Register for Print contractprotected virtual void RegisterForPrinting() {

// Create the PrintDocument. printDocument = new PrintDocument(); // Save the DocumentSource. printDocumentSource = printDocument.DocumentSource; // Add an event handler which creates preview pages. printDocument.Paginate += CreatePrintPreviewPages; // Add an event handler which provides a specified preview page. printDocument.GetPreviewPage += GetPrintPreviewPage; // Add an event handler which provides all final print pages. printDocument.AddPages += AddPrintPages; // Create a PrintManager and add a handler for printing initialization. PrintManager printMan = PrintManager.GetForCurrentView(); printMan.PrintTaskRequested += PrintTaskRequested; // Initialize print content for this scenario PreparePrintContent(); }