Go to Post The GDC needs to write the rules once and let the game be what the game is going to be. There's little that's fun about being told exactly how to play with your toys. - Madison [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-01-2008, 03:33
SomeoneKnows SomeoneKnows is offline
SomeoneKnows
AKA: Vince Thompson
FRC #1752 (Team Tonka)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: KC Missouri
Posts: 19
SomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of light
oneShotFlags in Sensor?

Since I don't have an ifi robot controller at home so I'm experimenting with sensors on my Vex. I've downloaded the sensor test source code from the VexLabs web site. The code seems compatible with the FRC MPLAB code.

My question is, what are the oneShotFlags used for?

They are assigned values in the user_routines_sensor_test.c source code file. I was assuming they are output for use by the Dynamic Debug Tool.

The variable is defined as: bitid oneShotFlags

I found that bitid is a structure defined in ifi_default.h.

I searched for the text string "oneShotFlags" in all of the .c and .h files in my directory and only found the same user_routines_sensor_test.c file where the variable was defined.

I don't see where the variable oneShotFlags gets used other than in the Handle_Sensors function where it gets assigned values. I don't see how these values get assigned to txdata to even get sent back for display.

I'm not seeing any useful purpose for using the variables so maybe I'm missing something. Is this just sloppy code from the VexLabs site or what?


Vince
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sensor Molten Programming 3 17-02-2007 17:43
Placement of IR Sensor ngreen Programming 1 23-01-2004 23:56
Sensor or no Sensor For Autonomous mode Kyle1010 Programming 14 22-01-2003 13:10
Sensor Q Brew Technical Discussion 2 10-02-2002 12:48
Sensor Oakridege_665 Technical Discussion 5 10-01-2002 16:53


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

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