Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   oneShotFlags in Sensor? (http://www.chiefdelphi.com/forums/showthread.php?t=61158)

SomeoneKnows 09-01-2008 03:33

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


All times are GMT -5. The time now is 23:12.

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