• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ endCommand函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中endCommand函数的典型用法代码示例。如果您正苦于以下问题:C++ endCommand函数的具体用法?C++ endCommand怎么用?C++ endCommand使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了endCommand函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: beginCommand

	void I2CFlexel::loadLcdCustomCharacters(byte addr, byte *bitmap)
	{
		beginCommand(I2C_FLEXEL_COMMAND_LOAD_LCD_CUSTOM_CHARACTERS);
		sendCommandParameter(addr);
		sendCommandParameters(bitmap, I2C_FLEXEL_LCD_CHAR_ROWS_COUNT);
		endCommand();
	}
开发者ID:czukowski,项目名称:I2C-Flexel.h,代码行数:7,代码来源:I2CFlexel.cpp


示例2: cm_send_ir

/**
 * Sends the provided byte out over IR.
 */
void cm_send_ir(const uint8_t &data)
{
	sendByte(CmdIRChar);
	padCommand();
	sendByte(data);
	endCommand();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:10,代码来源:main.cpp


示例3: cm_play_song

/**
 * Plays the song stored under the given number.
 */
void cm_play_song(const uint8_t &song_number)
{
	sendByte(CmdPlay);
	padCommand();
	sendByte(song_number);
	endCommand();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:10,代码来源:main.cpp


示例4: cm_play_demo

/**
 * Tells the robot to play the specified demo.
 *   See the DEMO_* constants for more information.
 */
void cm_play_demo(const uint8_t &demo)
{
	sendByte(CmdDemo);
	padCommand();
	sendByte(demo);
	endCommand();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:11,代码来源:main.cpp


示例5: endCommand

Module::~Module()
{
    endCommand();
    qDeleteAll( d->modules );
    delete d->project;
    delete d;
}
开发者ID:KDE,项目名称:calligra,代码行数:7,代码来源:Module.cpp


示例6: cm_read_wall_signal

/**
 * Reads the strength of the wall sensor's signal.
 * The range is 0 to 4095.
 */
uint16_t cm_read_wall_signal(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_WALL_SIGNAL);
	endCommand();
	
	return readWord();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:13,代码来源:main.cpp


示例7: cm_read_front_left_cliff_signal

/**
 * Reads the strength of the front left cliff sensor's signal.
 * The range is 0 to 4095.
 */
uint16_t cm_read_front_left_cliff_signal(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_FRONT_LEFT_CLIFF_SIGNAL);
	endCommand();
	
	return readWord();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:13,代码来源:main.cpp


示例8: cm_read_right_cliff_signal

/**
 * Reads the strength of the far right cliff sensor's signal.
 * The range is 0 to 4095.
 */
uint16_t cm_read_right_cliff_signal(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_FAR_RIGHT_CLIFF_SIGNAL);
	endCommand();
	
	return readWord();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:13,代码来源:main.cpp


示例9: cm_read_oi_mode

/**
 * Reads the current Open Interface mode.
 * See the OI_MODE_* codes in the cm.h header.
 */
uint8_t cm_read_oi_mode(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_OI_MODE);
	endCommand();
	
	return readByte();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:13,代码来源:main.cpp


示例10: cm_read_battery_capacity

/**
 * Reads the battery's estimated charge capacity in milliamp-hours.
 * Note: This value is not accurate if the robot is running off Alkaline batteries.
 */
uint16_t cm_read_battery_capacity(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_CAPACITY);
	endCommand();
	
	return readWord();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:13,代码来源:main.cpp


示例11: cm_read_current_song_number

/**
 * Reads the number of the currently-playing song.
 * Range is 0-15.
 */
uint8_t cm_read_current_song_number(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_SONG_NUMBER);
	endCommand();
	
	return readByte();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:13,代码来源:main.cpp


示例12: cm_read_requested_radius

/**
 * Returns the last-requested radius.
 * Range is -32768 to 32767, units are in millimeters.
 */
uint16_t cm_read_requested_radius(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_RADIUS);
	endCommand();
	
	return readWord();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:13,代码来源:main.cpp


示例13: cm_read_is_song_playing

/**
 * Returns 1 if there is a song currently playing.
 */
uint8_t cm_read_is_song_playing(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_SONG_PLAYING);
	endCommand();
	
	return readByte();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:12,代码来源:main.cpp


示例14: cm_read_battery_temperature

/**
 * Reads the battery's current temperature in degrees Celsius.
 */
int8_t cm_read_battery_temperature(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_TEMPERATURE);
	endCommand();
	
	return readWord();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:12,代码来源:main.cpp


示例15: cm_read_battery_charge

/**
 * Reads the battery's current charge in milliamp-hours.
 * Note: This value is not accurate if the robot is running off Alkaline batteries.
 */
uint16_t cm_read_battery_charge(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_CHARGE);
	endCommand();
	
	return readWord();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:13,代码来源:main.cpp


示例16: cm_read_battery_voltage

/**
 * Reads the battery's current voltage in millivolts.
 */
uint16_t cm_read_battery_voltage(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_VOLTAGE);
	endCommand();
	
	return readWord();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:12,代码来源:main.cpp


示例17: cm_read_battery_current

/**
 * Reads the amount of current running into (positive values) or out of (negative values)
 *   the robot's battery.
 */
int16_t cm_read_battery_current(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_CURRENT);
	endCommand();
	
	return readWord();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:13,代码来源:main.cpp


示例18: cm_read_requested_left_speed

/**
 * Returns the last-requested speed for the left wheel.
 * Range is -500 to 500, in millimeters per second.
 */
uint16_t cm_read_requested_left_speed(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_LEFT_WHEEL_SPEED);
	endCommand();
	
	return readWord();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:13,代码来源:main.cpp


示例19: cm_read_charging_state

/**
 * Reads the battery's current charging state.
 * See the BATTERY_* codes in the cm.h header.
 */
uint8_t cm_read_charging_state(void)
{
	sendByte(CmdSensors);
	padCommand();
	sendByte(SEN_CHARGE_STATE);
	endCommand();
	
	return readByte();
}
开发者ID:raceimaztion,项目名称:createSimulator,代码行数:13,代码来源:main.cpp



注:本文中的endCommand函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ endEdit函数代码示例发布时间:2022-05-30
下一篇:
C++ end函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap