📄 jastintime.h
字号:
#ifndef _JASTINTIME_H
#define _JASTINTIME_H
// Date, Time & Version defines
#define JASTINTIME_DATE 20080709
#define JASTINTIME_TIME 163931
#define JASTINTIME_VERSION 31
#define S_JASTINTIME_DATE "20080709"
#define S_JASTINTIME_TIME "163931"
#define S_JASTINTIME_VERSION "31"
#define S_CB_LOG1_JASTINTIME "ClassBuilder Version 2.9 (PR523)"
#define S_CB_LOG2_JASTINTIME "Macro's have not been expanded"
// Context define declarations
// Forward extern class declarations
namespace JASTInTime
{
// Defines needed for relations between templated classes
// Type declarations
typedef unsigned char byte;
enum Color
{
White,
WhiteGray,
Gray,
BlackGray,
Black
};
enum TrackType
{
FollowLeftEdge,
FollowRightEdge,
TrackLeftEdge,
TrackRightEdge
};
#include <mem.h>
#include <rom/lcd.h>
#include <dmotor.h>
#include <dsensor.h>
#include <dbutton.h>
#include <sys/usertask.h>
#include <tm.h>
#include <conio.h>
#include <time.h>
#include <unistd.h>
typedef unsigned short u2;
enum SteeringMode
{
TargetAngle,
AbsTargetAngle,
Swing
};
enum LaneType
{
Straight = 0,
Curve = 1,
Shortcut = 2,
Chainloop = 3,
Slope = 4,
Goal = 5
};
// Forward class declarations
class SteeringMotor;
class DriveMotor;
class Calibration;
class SteeringController;
class ColorDetector;
class LightSensor;
class Strategy;
class LaneTracker;
class TouchSensor;
class Command;
class ShortcutStrategy;
class ChainloopStrategy;
class SlopeStrategy;
class GoalStrategy;
class CurveStrategy;
// Needed ClassBuilder include files
#undef CB_MULTI_THREADED
#define S_CB_LOG3_JASTINTIME "CB_MULTI_THREADED has *NOT* been defined"
// Make sure the inline implementations are skipped
#ifdef CB_INLINES
#undef CB_INLINES
#endif
// Include classes, for declarations
#include "SteeringMotor.h"
#include "DriveMotor.h"
#include "Calibration.h"
#include "TouchSensor.h"
#include "Command.h"
#include "SteeringController.h"
#include "ColorDetector.h"
#include "LightSensor.h"
#include "Strategy.h"
#include "LaneTracker.h"
#include "ShortcutStrategy.h"
#include "ChainloopStrategy.h"
#include "SlopeStrategy.h"
#include "GoalStrategy.h"
#include "CurveStrategy.h"
// Include classes again, for inline implementation
//lint -save -e537 // Suppress warning: Repeated include file
#define CB_INLINES
#include "SteeringMotor.h"
#include "DriveMotor.h"
#include "Calibration.h"
#include "SteeringController.h"
#include "Strategy.h"
#include "LaneTracker.h"
#include "Command.h"
//lint -restore
} // end of namespace JASTInTime
#endif // ndef _JASTINTIME_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -