If (UCSRA & 0x80 ) { switch(ch) case ‘u’: while ( aileronleft > 1) { lcd_clrscr(); lcd_gotoxy(1,0); lcd_puts("SW1 depressed"); x = x - 4; if ( x < 1000)

Slides:



Advertisements
Similar presentations
Chapter 6 - VB 2005 by Schneider1 Do Loop Syntax Do While condition statement(s) Loop Condition is tested, If it is True, the loop is run. If it is False,
Advertisements

Click on the “Apply” button. If you don’t see the “Apply” button, it could be that you have already registered for >2 overseas trips and one of them is.
Arfansyah, M.Kom. Listview : digunakan untuk menampilkan data yang bentuknya jamak.
Midterm 26 March 2015 (4:30-5:30 pm) – Rm5620 Closed book exam MC Questions only x25 Up to L(7) Methods Scope: video lectures (+Lab), forum discussions,
Practical Programming COMP153-08S Lecture: Repetition Continued.
Making a cartoon or slideshow. Aside VB comments An apostrophe starts a comment to end of line Some of the following slides have code with comments in.
Compunet Corporation Programming with Visual Studio.NET GUI Week 13 Tariq Aziz and Kevin Jones.
Visual Studio 2005 Using the DataGridView Control V. Matos Cleveland State University.
Arrays & Strings part 2 More sophisticated algorithms, including sorting.
Events. Events Single Event Handlers Click Event Mouse Events Key Board Events Create and handle controls in runtime Outline.
Mouse draw Using the mouse and a palette to make a picture.
More on lists, exceptions, loops and validation. You can use the exception to indicate the error that occurred Private Sub btnCheck_Click(ByVal sender.
Additional loop presentation
Instructor: Adil Ibrahim Office: 212 Ullrich Phone: ibrahima 1.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
CS0004: Introduction to Programming Variables – Numbers.
Christopher M. Pascucci.NET Programming: Forms & Controls.
COMPUTER PROGRAMMING I Objective 7.04 Apply Built-in String Functions (3%)
1 Visual Basic for Applications (VBA) for Excel Prof. Yitzchak Rosenthal.
Break Processing Please use speaker notes for additional information!
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
Chapter 3 – Fundamentals of Programming in VB.NET VB.NET Controls VB.NET Events Numbers Strings Input and Output.
Lecture 8 Visual Basic (2).
COMPUTER PROGRAMMING I Objective 7.03 Apply Built-in Math Class Functions.
1 CC111 Lec9 : Visual Basic Visual Basic (3) Lecture 9.
VB Procedures. Procedures. Sub procedure: Private/Public Sub SubName(Arguments) … End Sub Private: Can only be accessed by procedures in the same form.
Timer, Animation Responding to Mouse & Keyboard Lab 7 7 McGraw-Hill© 2006 The McGraw-Hill Companies, Inc. All rights reserved.
CS0004: Introduction to Programming Project 1 – Lessons Learned.
ADO.NET Objects – Data Providers Dr. Ron Eaglin. Requirements Visual Studio 2005 Microsoft SQL Server 2000 or 2005 –Adventure Works Database Installed.
6c – Function Procedures Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
3.2 VB.NET Events An Event Procedure Properties and Event Procedures of the Form Tab Order of Controls Exercises.
Overview of VBA Programming & Syntax. Programming With Objects u Objects –Properties: attributes or characteristics of an object (e.g., font size, color,
1 Advanced Computer Programming Lab Calculator Project.
Chapter 3 - VB.NET by Schneider1 Chapter 3 – Fundamentals of Programming in VB.NET Part I VB.NET Controls VB.NET Events.
PSU CS 106 Computing Fundamentals II VB Declarations HM 5/4/2008.
VAT Calculator program Controls Properties Code Results.
Created by Alia Al-Abdulkarim 2008 Visual Basic Vs. Java.
Week Procedures And Functions 7 A procedure is a collection of statements that performs a task.
6b – Sub Procedure With Parameters Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Slide 1 Controls v Control naming convention –Label: lblName –Command Button: cmdName –Text Box: txtName.
Practical Programming COMP153-08S Lecture: Repetition.
ADO.NET Objects Data Adapters Dr. Ron Eaglin. Agenda Builds on Information in Part I Should have working knowledge of creating a database connection Continuation.
Visual Basic Review LBS 126. VB programming Project Form 1Form 2Form 3 Text boxButton Picture box Objects Text box Button Objects.
Introduction to VB programming Dr. John P. Abraham UTPA Chapters 2 & 3.
Using a Database Access97 Please use speaker notes for additional information!
 ASP.NET provides an event based programming model that simplifies web programming  All GUI applications are incomplete without enabling actions  These.
Chapter 31 Fundamentals of Programming in Visual Basic (VB) Visual Basic Events Simple Statement.
MIC305 Week 6 Beyond controls Review of properties Differences with VB6: using classes and instances Programming constructs.
Visual Basic Declaring Variables Dim x as Integer = 0 In the statement above, x is being declared as an Integer (whole number) and is initialised.
By Bala M. Dhareneni.  A pitch motion is an up or down movement of the nose of the aircraft  The pitch axis is perpendicular to the aircraft centerline.
Visual Basic - Break Processing
Visual Basic Fundamental Concepts
Apply Procedures to Develop Message, Input, and Dialog Boxes
Introduction to VB programming
Canon Customer Support First you need to turn on your Printer. Press & hold the “Reset button” on the printer. While pressing the “Reset.
للمزيد زورونا على موقعنا الإلكتروني:
Visual Basic..
افسردگی شناخت، ارزیابی، و پیشگیری در جمعیت دانشجویی
افسردگی شناخت، ارزیابی، و پیشگیری در جمعیت دانشجویی
1.الدوال Function 2.الاجراءاتSub Procedure 3.وحده نمطيه Add Module
Fundamentals of Programming in VB.Net
STARTING OUT WITH Visual Basic 2008
Visual Basic and File Streaming
CIS 338: Images on Forms Dr. Ralph D. Westfall May, 2009.
Click Summary Value Button to Show Source of Integral or Time
GUI Programming in Visual Studio .NET
Web Service.
Sub 範例 Sub F ( X ) MsgBox(X ^ 2 ) End Function
CPT 450 Computer Graphics 3rd Lecture.
Presentation transcript:

if (UCSRA & 0x80 ) { switch(ch) case ‘u’: while ( aileronleft > 1) { lcd_clrscr(); lcd_gotoxy(1,0); lcd_puts("SW1 depressed"); x = x - 4; if ( x < 1000) {x=1000;} ServoPos[2]= x; _delay_ms(100); break; } AVR Program Side Register that holds the received data Aileronleft = 2; in the earlier part of the program. Continued case ‘o’: aileronleft =0; break; }

VB Side Private Sub btnaileronleft_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles btnaileronleft.MouseDown Dim answertext As String answertext = "u" mscomm.Open() mscomm.Write(answertext) mscomm.Close() End Sub Private Sub btnaileronleft_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles btnaileronleft.MouseUp Dim answertext2 As String answertext2 = "o" mscomm.Open() mscomm.Write(answertext2) mscomm.Close() End Sub When button is depressed

PC MCT Board When button is depressed, char ‘u’ is sent over. Char ‘u’ Char ‘o’ When button is being released of its depressed state, char ‘o’ is sent over. The char ‘u’ did get received. But after that, it became non responsive to other characters being sent over. After one click of the button, it was stuck in the loop and continued to move the aileron till its limit. I had to reset the board if I were to test the other buttons. This case happens for the other buttons, for example aileronright, elevator, etc.

Data is transmitted over from PC

Data Transmitted - Characters Used Control surfacesMouse downMouse up Aileron leftuo Aileron rightvp Elevator upwq Elevator downxr Rudder leftys Rudder rightzt