//
//  Motion.h
//  X-BASIC'
//
//  Created by AIG-Soft(iMac) on 2012/09/19.
//  Copyright (c) 2012-15年 AIG-Soft. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RotationControl.h"

@interface Motion : NSObject
<RotationControlStoreData>
{
	RotationControl	*rotationControl;
	// datasをリングバッファーにする
	int	wp;
	int	rp;
	int max_datas;
}

-(BOOL)start:(NSInteger)dataSecond dno:(NSInteger)dno_;
-(int)calcSamples;
-(void)clear;
-(void)getRotation:(CMRotationRate *)xyz;
-(int)count;
-(void)pause:(BOOL)fpause;
-(void)selectData:(NSUInteger)dno_;
-(void)end;

@end
