Arxterra Telemetry Code Example is the Temperature Sensor from ATechTop Here is the setup subroutine of the original code from Sparkfun: #define TRUE 1.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

EMS1EP Lecture 4 Intro to Programming Dr. Robert Ross.
How SAS implements structured programming constructs
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
Lab7: Introduction to Arduino
Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Micro Logix 1100 RSLogix 500 LAB#2 Timing, Counting & Comparing.
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Using Surfcam to Produce a Numeric Control (NC) Program An Introduction to the CAD/CAM Process Instructions for 3 Axis Programming Using the D&M CNC Milling.
Functions Most useful programs are much larger than the programs that we have considered so far. To make large programs manageable, programmers modularize.
CSULB EE400D TECHNICAL DOCUMENTATION ARDUINO/ARXTERRA PROGRAMMING PART II - TELEMETRY.
ALL TERRAIN ROBOT 1 Wilmer Arellano © The Client’s Need Lecture is licensed under a Creative Commons Attribution 2.0 License.
Navigating to the Matter Click on the Matter Number and Title link to be brought directly to the matter.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Macro & Function. Function consumes more time When a function is called, the copy of the arguments are passed to the parameters in the function. After.
Chapter 6: Functions.
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Arduino Part 2 Topics: Serial Communication Programming Constructs: functions, loops and conditionals Digital Input.
Java: Chapter 1 Computer Systems Computer Programming II Aug
Working with Numbers in Alice - Converting to integers and to strings - Rounding numbers. - Truncating Numbers Samantha Huerta under the direction of Professor.
CSULB EE400D TECHNICAL DOCUMENTATION ARDUINO/ARXTERRA PROGRAMMING PART I - COMMANDS.
1 Variables, Constants, and Data Types Primitive Data Types Variables, Initialization, and Assignment Constants Characters Strings Reading for this class:
by Chris Brown under Prof. Susan Rodger Duke University June 2012
Reusable Code For Your Appx Processes Presented By: Gary Rogers.
Open the Goodyear Homepage Click on Teacher Tools.
Each slide is ready for you to edit by adding your own pictures and text. The instructions in red will help guide you. Once you follow them, click on them,
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
CS 320 Assignment 1 Rewriting the MISC Osystem class to support loading machine language programs at addresses other than 0 1.
Creating and running a Java program. Eclipse Interactive Development Environment (IDE)  Eclipse is an Interactive Development Environment (IDE) for Java.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
ALL TERRAIN ROBOT 1 Wilmer Arellano. The Client’s Need  Verbally presented at class time.  Modify the All Terrain Manual Robot into an autonomous Gripper.
Introduction to Computer Programming
 In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  PHP Loops :  In.
ROBOTIC ARM 2 Wilmer Arellano © Hardware  Next slide shows sensor connection to analog pin 0 and Motor 1 connection. Lecture is licensed under.
Subtractive Manufacturing Exercise #1 Step #2 Key Fob Project Using Velocity CNC Software for the CNC Milling Machine Note: In order to use this set of.
1 Project 3 String Methods. Project 3: String Methods Write a program to do the following string manipulations: Prompt the user to enter a phrase and.
Chapter 1 Java Programming Review. Introduction Java is platform-independent, meaning that you can write a program once and run it anywhere. Java programs.
1 Project 4: Computing Distance. 222 Computing Distance Write a program to compute the distance between two points. Recall that the distance between the.
Announcements Assignment 2 Out Today Quiz today - so I need to shut up at 4:25 1.
ME 120: Arduino Programming Arduino Programming Part II ME 120 Mechanical and Materials Engineering Portland State University
Programming and Debugging with the Dragon and JTAG Many thanks to Dr. James Hawthorne for evaluating the Dragon system and providing the core content for.
3DoT Technical Documentation
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
MS-EXCEL PART 2.
Getting started with the Arxterra software and 3DoT Firmware
Programming and Debugging with the Dragon and JTAG
User-Written Functions
3DoT Technical Documentation
What to do when a test fails
Eclipse Navigation & Usage.
Microsoft Office Illustrated
Stack Lesson xx   This module shows you the basic elements of a type of linked list called a stack.
Some Tips for Using Eclipse
When I want to execute the subroutine I just give the command Write()
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
How to Run a Java Program
Vinod Kulathumani West Virginia University
How to Run a Java Program
CSC235 - Visual Studio Tutorial
State Name Interact with
Software Setup & Validation
Microsoft Visual Basic 2005 BASICS
Game Over Module 4 Lesson 2.
Scripts In Matlab.
Java Programming with BlueJ Objectives
CSCE 206 Lab Structured Programming in C
Introduction to Arduino IDE and Software
Presentation transcript:

Arxterra Telemetry Code Example is the Temperature Sensor from ATechTop Here is the setup subroutine of the original code from Sparkfun: #define TRUE 1 #define FALSE #define debug TRUE #define aTechTop TRUE Temporarily add these four compiler directives at the top of your code. You will comment them out once your code is moved into the Arxterra framework. The delay(100) instruction suspends all processing for 1 second. Within the Arxterra framework which must receive commands, read and transmit sensor values, and control actuators, this delay is unacceptable. In the next slide we will replace the delay(100) instruction

Here the compiler directives have been added and the delay(100) instruction replaced by code which is functionally equivalent without delaying any other processes. Verify that your code still runs correctly. Your program is now ready to port to Arxterra Framework

Copy the modified.ino file into the arxrobot_firmware folder. The.ino file, in this case is called Temperature, will appear as a new tab. For testing purposes you may want to initially set the debug flag to TRUE. This sends output to the serial monitor. Set back to FALSE once your code is working. Next, open the arxrobot_firmware tab and add in your project’s name In this case the name is aTechTop Next, open the arxrobot_firmware tab and add in your project’s name In this case the name is aTechTop

In the Temperature tab, add the sendWordPacket subroutine This Arxterra subroutine can be found under the telemetry tab.

Referring to the previous slide and the picture shown here. In the blue box we see that the sendWordPacket subroutine contains two arguments: TEMP_SENSOR_ID temp (explanation is on the next slide) TEMP_SENSOR_ID is one of the telemetry IDs defined under the pinouts_robot.h tab.

The Temperature variable was defined in the original SparkFun code as having a data type of float The sendWordPacket subroutine’s second parameter is defined as a signed 2-byte integer. The line of code outlined in red defines temp as an integer and assigns its initial value to temperature cast as an integer. As introduced in the last slide (blue box), the sendWordPacket subroutine contains two arguments. On this slide we look at the second argument ( temp )

It is now time to remove the code initially added to make the Sparkfun code emulate the Arxterra framework (slide 1). In the Temperature tab comment out all the code shown in the Blue box. Next, comment out your setup(void) subroutine (brown box)

In the Temperature tab, move the code in the loop subroutine (green box) into the last part of the sendData() function, which is under the telemetry tab. As shown on the next slide.

Comment out the entire void loop(void) subroutine in the Temperature tab. At this point, the code should compile without any error.