我试图在主/从模式(两个遥控器(RC)同时连接到无人机)从遥控器2(作为奴隶角色)获得硬件状态(滚动,俯仰,偏航)来控制飞行器的万向节(相机) .
Master / Slave无法测试我的Spark,只需使用Inspire 1,2 M100,M600 ..
如果只有一个RC连接DJI飞机,我无法在下面的代码中获得硬件状态
+(DJIRemoteController*) fetchRemoteController {
if(![DJISDKManager product]) {
return nil;
}
if ([[DJISDKManager product] isKindOfClass:[DJIAircraft class]]) {
return ((DJIAircraft*)[DJISDKManager product]).remoteController;
}
return nil;
}
// Fetch remote controller
DJIRemoteController* rc = [DemoComponentHelper fetchRemoteController];
// Set delegate
rc.delegate = self;
//Get Hardware State from Delegate
-(void)remoteController:(DJIRemoteController *)rc didUpdateHardwareState:(DJIRCHardwareState)state
在两个rc的情况下,我想我不能用fetchRemoteController func获取所有实例,只返回一个RC,它是Master RC . 我如何从Slave Controller获得硬件状态?