Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(IBAction)onPrepareButtonClicked:(id)sender {
- [self.flightController setIsVirtualStickAdvancedModeEnabled:true];
- NSLog(@"Virtual Stick available: %s", self.flightController.isVirtualStickControlModeAvailable ? "True" : "False");
- NSLog(@"Virtual Stick advanced enabled: %s", self.flightController.isVirtualStickAdvancedModeEnabled ? "True" : "False");
- if (self.flightController.isVirtualStickControlModeAvailable && self.flightController.isVirtualStickAdvancedModeEnabled)
- {
- [self.flightController setRollPitchControlMode:DJIVirtualStickRollPitchControlModeVelocity];
- [self.flightController setYawControlMode:DJIVirtualStickYawControlModeAngle];
- [self.flightController setVerticalControlMode:DJIVirtualStickVerticalControlModePosition];
- [self.flightController setRollPitchCoordinateSystem:DJIVirtualStickFlightCoordinateSystemBody];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement