Go to Post This just goes to prove there was life before FIRST (but it wasn't as much fun!) - Ken Loyd [more]
Home
Go Back   Chief Delphi > CD-Media > White Papers
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

photos

papers

everything



Code and Walkthrough for Global Positioning System using IR Sensors

By: Grommit
New: 16-05-2004 14:22
Updated: 16-05-2004 14:22
Total downloads: 400 times


This document contains the entire code for team #115's Global Positioning System, which uses four IR sensors mounted on servos in order to determine the robot's exact position and orientation, along with an error function which gives an estimate of the confidence in the given values. The walkthro...

This document contains the entire code for team #115's Global Positioning System, which uses four IR sensors mounted on servos in order to determine the robot's exact position and orientation, along with an error function which gives an estimate of the confidence in the given values. The walkthrough explains clearly every step of the code and all the math used in order to accomplish the task. The code is extremely well commented and includes all math functions used in the program.

Any questions should be directed to Shrenik Shah, at shrenik86@comcast.net.

Attached Files

  • pdf Code and Walkthrough for Global Positioning System using IR Sensors

    1084731752ircodewalkthrough.pdf

    downloaddownload file

    uploaded: 16-05-2004 14:22
    filetype: pdf
    filesize: 174.61kb
    downloads: 398



Recent Downloaders

Discussion

view entire thread

Reply

20-05-2004 20:54

Max Lobovsky


Unread Re: White Paper Discuss: Code and Walkthrough for Global Positioning System using IR Sensors

Just a couple of questions and comments:

1. Satellite GPS does not use the angle the signal is traveling at, it uses the distance from the satellite to the device

2. I believe that you do not need to use your "firstrun" variable and loop to initialize the static variables, i believe you can just define statics when you declare them

Code:
static int myVar = 5;
and the definition will only happen the first time the function is called, so the variable won't be changed by the definition/declaration statement in successive function calls.

3. Have you run this code on a FRC? It seems like it, along with the neccesary parts of the default code, could start to cause "default_routine" to start missing cycles as some people have mentioned has happened, if this code is running in every cycle in "default_rountine".

I like the use of a 4th sensor for error correction, pretty cool. If you have used this system, how did it work, if not, post about it when you do.



20-05-2004 21:22

Astronouth7303


Unread Re: White Paper Discuss: Code and Walkthrough for Global Positioning System using IR Sensors

Very cool. My only concern is speed with floats. As maxlobovsky said, it can cause it to miss cycles. My thought is to do this either in parts (state machine), or do getdata and putdata in the middle of it.



view entire thread

Reply

Tags

loading ...



All times are GMT -5. The time now is 01:09.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi