本文整理汇总了Java中com.MAVLink.Messages.MAVLinkPayload类的典型用法代码示例。如果您正苦于以下问题:Java MAVLinkPayload类的具体用法?Java MAVLinkPayload怎么用?Java MAVLinkPayload使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MAVLinkPayload类属于com.MAVLink.Messages包,在下文中一共展示了MAVLinkPayload类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a debug_vect message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.time_usec = payload.getUnsignedLong();
this.x = payload.getFloat();
this.y = payload.getFloat();
this.z = payload.getFloat();
for (int i = 0; i < this.name.length; i++) {
this.name[i] = payload.getByte();
}
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:24,代码来源:msg_debug_vect.java
示例2: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a serial_control message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.baudrate = payload.getUnsignedInt();
this.timeout = payload.getUnsignedShort();
this.device = payload.getUnsignedByte();
this.flags = payload.getUnsignedByte();
this.count = payload.getUnsignedByte();
for (int i = 0; i < this.data.length; i++) {
this.data[i] = payload.getUnsignedByte();
}
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:26,代码来源:msg_serial_control.java
示例3: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a memory_vect message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.address = payload.getUnsignedShort();
this.ver = payload.getUnsignedByte();
this.type = payload.getUnsignedByte();
for (int i = 0; i < this.value.length; i++) {
this.value[i] = payload.getByte();
}
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:22,代码来源:msg_memory_vect.java
示例4: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a vicon_position_estimate message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.usec = payload.getUnsignedLong();
this.x = payload.getFloat();
this.y = payload.getFloat();
this.z = payload.getFloat();
this.roll = payload.getFloat();
this.pitch = payload.getFloat();
this.yaw = payload.getFloat();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:24,代码来源:msg_vicon_position_estimate.java
示例5: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a global_position_int message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.time_boot_ms = payload.getUnsignedInt();
this.lat = payload.getInt();
this.lon = payload.getInt();
this.alt = payload.getInt();
this.relative_alt = payload.getInt();
this.vx = payload.getShort();
this.vy = payload.getShort();
this.vz = payload.getShort();
this.hdg = payload.getUnsignedShort();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:28,代码来源:msg_global_position_int.java
示例6: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a local_position_ned_system_global_offset message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.time_boot_ms = payload.getUnsignedInt();
this.x = payload.getFloat();
this.y = payload.getFloat();
this.z = payload.getFloat();
this.roll = payload.getFloat();
this.pitch = payload.getFloat();
this.yaw = payload.getFloat();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:24,代码来源:msg_local_position_ned_system_global_offset.java
示例7: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a optical_flow message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.time_usec = payload.getUnsignedLong();
this.flow_comp_m_x = payload.getFloat();
this.flow_comp_m_y = payload.getFloat();
this.ground_distance = payload.getFloat();
this.flow_x = payload.getShort();
this.flow_y = payload.getShort();
this.sensor_id = payload.getUnsignedByte();
this.quality = payload.getUnsignedByte();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:26,代码来源:msg_optical_flow.java
示例8: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a safety_allowed_area message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.p1x = payload.getFloat();
this.p1y = payload.getFloat();
this.p1z = payload.getFloat();
this.p2x = payload.getFloat();
this.p2y = payload.getFloat();
this.p2z = payload.getFloat();
this.frame = payload.getUnsignedByte();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:24,代码来源:msg_safety_allowed_area.java
示例9: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a hil_actuator_controls message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.time_usec = payload.getUnsignedLong();
this.flags = payload.getUnsignedLong();
for (int i = 0; i < this.controls.length; i++) {
this.controls[i] = payload.getFloat();
}
this.mode = payload.getUnsignedByte();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:22,代码来源:msg_hil_actuator_controls.java
示例10: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a nav_controller_output message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.nav_roll = payload.getFloat();
this.nav_pitch = payload.getFloat();
this.alt_error = payload.getFloat();
this.aspd_error = payload.getFloat();
this.xtrack_error = payload.getFloat();
this.nav_bearing = payload.getShort();
this.target_bearing = payload.getShort();
this.wp_dist = payload.getUnsignedShort();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:26,代码来源:msg_nav_controller_output.java
示例11: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a rc_channels_override message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.chan1_raw = payload.getUnsignedShort();
this.chan2_raw = payload.getUnsignedShort();
this.chan3_raw = payload.getUnsignedShort();
this.chan4_raw = payload.getUnsignedShort();
this.chan5_raw = payload.getUnsignedShort();
this.chan6_raw = payload.getUnsignedShort();
this.chan7_raw = payload.getUnsignedShort();
this.chan8_raw = payload.getUnsignedShort();
this.target_system = payload.getUnsignedByte();
this.target_component = payload.getUnsignedByte();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:30,代码来源:msg_rc_channels_override.java
示例12: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a gps_raw_int message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.time_usec = payload.getUnsignedLong();
this.lat = payload.getInt();
this.lon = payload.getInt();
this.alt = payload.getInt();
this.eph = payload.getUnsignedShort();
this.epv = payload.getUnsignedShort();
this.vel = payload.getUnsignedShort();
this.cog = payload.getUnsignedShort();
this.fix_type = payload.getUnsignedByte();
this.satellites_visible = payload.getUnsignedByte();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:30,代码来源:msg_gps_raw_int.java
示例13: MAVLinkPacket
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
public MAVLinkPacket(int payloadLength){
len = payloadLength;
payload = new MAVLinkPayload(payloadLength);
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:5,代码来源:MAVLinkPacket.java
示例14: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a collision message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.id = payload.getUnsignedInt();
this.time_to_minimum_delta = payload.getFloat();
this.altitude_minimum_delta = payload.getFloat();
this.horizontal_minimum_delta = payload.getFloat();
this.src = payload.getUnsignedByte();
this.action = payload.getUnsignedByte();
this.threat_level = payload.getUnsignedByte();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:24,代码来源:msg_collision.java
示例15: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a data_transmission_handshake message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.size = payload.getUnsignedInt();
this.width = payload.getUnsignedShort();
this.height = payload.getUnsignedShort();
this.packets = payload.getUnsignedShort();
this.type = payload.getUnsignedByte();
this.payload = payload.getUnsignedByte();
this.jpg_quality = payload.getUnsignedByte();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:24,代码来源:msg_data_transmission_handshake.java
示例16: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a resource_request message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.request_id = payload.getUnsignedByte();
this.uri_type = payload.getUnsignedByte();
for (int i = 0; i < this.uri.length; i++) {
this.uri[i] = payload.getUnsignedByte();
}
this.transfer_type = payload.getUnsignedByte();
for (int i = 0; i < this.storage.length; i++) {
this.storage[i] = payload.getUnsignedByte();
}
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:28,代码来源:msg_resource_request.java
示例17: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a safety_set_allowed_area message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.p1x = payload.getFloat();
this.p1y = payload.getFloat();
this.p1z = payload.getFloat();
this.p2x = payload.getFloat();
this.p2y = payload.getFloat();
this.p2z = payload.getFloat();
this.target_system = payload.getUnsignedByte();
this.target_component = payload.getUnsignedByte();
this.frame = payload.getUnsignedByte();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:28,代码来源:msg_safety_set_allowed_area.java
示例18: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a log_data message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.ofs = payload.getUnsignedInt();
this.id = payload.getUnsignedShort();
this.count = payload.getUnsignedByte();
for (int i = 0; i < this.data.length; i++) {
this.data[i] = payload.getUnsignedByte();
}
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:22,代码来源:msg_log_data.java
示例19: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a attitude message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.time_boot_ms = payload.getUnsignedInt();
this.roll = payload.getFloat();
this.pitch = payload.getFloat();
this.yaw = payload.getFloat();
this.rollspeed = payload.getFloat();
this.pitchspeed = payload.getFloat();
this.yawspeed = payload.getFloat();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:24,代码来源:msg_attitude.java
示例20: unpack
import com.MAVLink.Messages.MAVLinkPayload; //导入依赖的package包/类
/**
* Decode a altitude message into this class fields
*
* @param payload The message to decode
*/
public void unpack(MAVLinkPayload payload) {
payload.resetIndex();
this.time_usec = payload.getUnsignedLong();
this.altitude_monotonic = payload.getFloat();
this.altitude_amsl = payload.getFloat();
this.altitude_local = payload.getFloat();
this.altitude_relative = payload.getFloat();
this.altitude_terrain = payload.getFloat();
this.bottom_clearance = payload.getFloat();
}
开发者ID:envirover,项目名称:SPLGroundControl,代码行数:24,代码来源:msg_altitude.java
注:本文中的com.MAVLink.Messages.MAVLinkPayload类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论