This makes the device suspend itself and send the current value of the multiplying factor to the controller over a second channel.
这使设备中止自身,并把乘数的当前值通过第二个通道发送给控制器。
Timer is an instance of CSTimer, which is set to trigger every five seconds, at which time the device will double the current value of the multiplying factor.
timer是CSTimer的实例,它被设置成每5秒触发一次,每次触发时,设备会把乘数的当前值加倍。
Inject is an instance of One2OneChannelInt that will be used by the controller process to send a new multiplying factor (which also serves as a wake-up signal) to the device.
inject是One2OneChannelInt的实例,由控制器进程使用,用来向设备发送新的乘数(也充当唤醒信号)。
So multiplying a vector by a number means stretch it by that factor.
所以用数字乘以矢量,就相当于将它伸长了相应的倍数
应用推荐