赛艇程序文档说明之一:全局变量定义

四大结构体:

1、type_HandSampling:以采样点为单位,包换了桨栓传感器采样的原始值、真实值。

 

2、type_FootSampling:以采样点为单位,包换了脚蹬力传感器采样的原始值、真实值。

 

3、type_Hand:以桨为单位,包含了每桨手上各项参数指标(推出值)。

 

4、type_Foot:以桨为单位,包含了每桨脚上各项参数指标(推出值)。

 

 

四大结构体的全局变量定义如下:

Public g_udtHandSampling() As type_HandSampling Public g_udtFootSampling() As type_FootSampling Public g_udtHand() As type_Hand Public g_udtFoot() As type_Foot

 

type_HandSampling结构体定义如下:

'<桨栓传感器采样值> Public Type type_HandSampling ForceAd() As Single '桨栓传感器力量AD值 输出范围为0-4096 AngleAd() As Single '桨栓传感器角度AD值 输出范围为0-4096 Force() As Single '桨栓传感器力量值 单位为牛顿 Angle() As Single '桨栓传感器角度值 单位为度 End Type '</桨栓传感器采样值>

 

 

 type_FootSampling结构体定义如下:

'<脚蹬传感器采样值> Public Type type_FootSampling FxAd() As Single '脚蹬力传感器X方向AD输出值 FyAd() As Single '脚蹬力传感器Y方向AD输出值 FzAd() As Single '脚蹬力传感器Z方向AD输出值 MxAd() As Single '脚蹬力传感器Mx方向AD输出值 MyAd() As Single '脚蹬力传感器My方向AD输出值 FxVolt() As Single '脚蹬力传感器X方向电压输出值 FyVolt() As Single '脚蹬力传感器Y方向电压输出值 FzVolt() As Single '脚蹬力传感器Z方向电压输出值 MxVolt() As Single '脚蹬力传感器Mx方向电压输出值 MyVolt() As Single '脚蹬力传感器My方向电压输出值 Fx() As Single '脚蹬力传感器X方向力量输出值 Fy() As Single '脚蹬力传感器Y方向力量输出值 Fz() As Single '脚蹬力传感器Z方向力量输出值 Mx() As Single '脚蹬力传感器Mx方向扭矩 My() As Single '脚蹬力传感器My方向扭矩 ComForce() As Single '脚蹬力合力 ComFxFy() As Single '脚蹬力X方向和Y方向合力 ComFxFz() As Single '脚蹬力X方向和Z方向合力 ComFyFz() As Single '脚蹬力Z方向和Y方向合力 End Type '</脚蹬力传感器采样值>

 

 

type_Hand结构体定义如下:

'<手上每一桨的各项指标 结构体成员中数组的单位为每一桨> Public Type type_Hand MaxForce() As Single '每桨最大力量 MaxForcePoint() As Long '每桨最大力量出现时刻 MaxAngle() As Single '每桨最大角度 MaxAnglePoint() As Long '每桨最大角度出现时刻 MinAngle() As Single '每桨最小角度 MinAnglePoint() As Long '每桨最小角度出现时刻 StrokeRate() As Single '每桨桨频 DragAverForce() As Single '每桨拉桨平均力量值 DragAverImpulse() As Single '每桨拉桨平均冲量 DragAverPower() As Single '每桨拉桨平均功率(平均力量*平均船速) NormalForce() As Single '每桨法线方向桨力值 Work() As Single '每桨手柄做功 ThrustWork() As Single ForceEnd() As Long '每桨发力结束位置 End Type '</手上每一桨的各项指标 结构体成员中数组的单位为每一桨>

 

type_Foot结构体定义如下:

'<脚上每一桨的各项指标 结构体成员中数组的单位为每一桨> Public Type type_Foot MaxForce() As Single '每桨脚蹬最大力量 MaxForcePoint() As Single '每桨脚蹬最大力量出现时刻 NormalForce() As Single '每桨法线方向桨力值 End Type '</脚上每一桨的各项指标 结构体成员中数组的单位为每一桨>

你可能感兴趣的:(文档)