我需要对PX4FLOW模块进行编码才能生成所有这些代码:
typedef struct i2c_frame
{
uint16_t frame_count;// counts created I2C frames [#frames]
int16_t pixel_flow_x_sum;// latest x flow measurement in pixels*10 [pixels]
int16_t pixel_flow_y_sum;// latest y flow measurement in pixels*10 [pixels]
int16_t flow_comp_m_x;// x velocity*1000 [meters/sec]
int16_t flow_comp_m_y;// y velocity*1000 [meters/sec]
int16_t qual;// Optical flow quality / confidence [0: bad, 255: maximum quality]
int16_t gyro_x_rate; // latest gyro x rate [rad/sec]
int16_t gyro_y_rate; // latest gyro y rate [rad/sec]
int16_t gyro_z_rate; // latest gyro z rate [rad/sec]
uint8_t gyro_range; // gyro range [0 .. 7] equals [50 deg/sec .. 2000 deg/sec]
uint8_t sonar_timestamp;// time since last sonar update [milliseconds]
int16_t ground_distance;// Ground distance in meters*1000 [meters]. Positive value: distance known. Negative value: Unknown distance
} i2c_frame;
但是问题是我找不到任何数据表来进行编码。谢谢