11 #define LOG_DEBUG __FILE__, __FUNCTION__, __LINE__, DEBUG_TYPE
12 #define LOG_INFO __FILE__, __FUNCTION__, __LINE__, INFO_TYPE
13 #define LOG_ERROR __FILE__, __FUNCTION__, __LINE__, ERROR_TYPE
14 #define LOG_CRITICAL __FILE__, __FUNCTION__, __LINE__, CRITICAL_TYPE
15 #define LOG_FATAL __FILE__, __FUNCTION__, __LINE__, FATAL_TYPE
16 #define LOG_DEBUG __FILE__, __FUNCTION__, __LINE__, DEBUG_TYPE
30 typedef enum DebugOutputType_enum {
44 void dprintf(
const char *tempString, ...);
49 float NormalizeToRange(
float normalizedValue,
float minRange,
float maxRange);
58 double SinPosition(
double *period,
double sinStart);
65 int processFile(
char *inputFile,
char *outputString,
int lineNumber);
void dprintf(const char *tempString,...)
Debug print to a file and/or a terminal window.
Definition: BaeUtilities.cpp:46
int emptyString(char *string)
Ignore empty string.
Definition: BaeUtilities.cpp:338
double RangeToNormalized(double position, int range)
Normalizes a value in a range, used for drive input.
Definition: BaeUtilities.cpp:165
int processFile(char *inputFile, char *outputString, int lineNumber)
Read a file and return non-comment output string.
Definition: BaeUtilities.cpp:293
float NormalizeToRange(float normalizedValue, float minRange, float maxRange)
Convert a normalized value to the corresponding value in a range.
Definition: BaeUtilities.cpp:177
double ElapsedTime(double startTime)
Find the elapsed time since a specified time.
Definition: BaeUtilities.cpp:248
void stripString(char *string)
Remove special characters from string.
Definition: BaeUtilities.cpp:357
void ShowActivity(char *fmt,...)
Displays an activity indicator to console.
Definition: BaeUtilities.cpp:191
void panInit()
Initialize pan parameters.
Definition: BaeUtilities.cpp:257
double SinPosition(double *period, double sinStart)
Calculate sine wave increments (-1.0 to 1.0).
Definition: BaeUtilities.cpp:221
void panForTarget(Servo *panServo)
Move the horizontal servo back and forth.
Definition: BaeUtilities.cpp:272
void SetDebugFlag(DebugOutputType flag)
Set the debug flag to print to screen, file on cRIO, both or neither.
Definition: BaeUtilities.cpp:36
Standard hobby style servo.
Definition: Servo.h:22