📄 targetdrive.h
字号:
#ifndef TARGETDRIVE_H#define TARGETDRIVE_H#include "RobotAction.h"#include "VFHState.h"class TargetDrive { public: TargetDrive(int tX, int tZ); void driveFrom(int x, int z, int theta); protected: double driveTheta(double dTh); double driveVel(double distSq); double getSafeTheta(double targetTh, double th); void freePieces(int freeSpaces [], int numSectors, int targetSect, int pieceSize, int** pieces, int piecesSize); int firstFreeSectorsRight(double targetTh, int threshold, double theta); int firstFreeSectorsLeft(double targetTh, int threshold, double theta); private: RobotAction* robotAction; VFHState* vfhState; int targetX, targetZ; int freeSectorsThreshold; // wie gro
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -