⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 targetdrive.h

📁 一个简单使用的控制器
💻 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 + -