This repository has been archived by the owner on Dec 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brian Smith
committed
Apr 27, 2012
1 parent
7b0efda
commit 38ce022
Showing
1,105 changed files
with
39,772 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
22 changes: 22 additions & 0 deletions
22
frameworks/RobotKit.framework/Headers/RKAbortMacroCommand.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// RKAbortMacroCommand.h | ||
// RobotKit | ||
// | ||
// Created by Brian Smith on 8/30/11. | ||
// Copyright 2011 Orbotix Inc. All rights reserved. | ||
// | ||
|
||
/*! @file */ | ||
|
||
#import <RobotKit/RKDeviceCommand.h> | ||
|
||
/*! | ||
* @brief Class to encapsulate a save macro command. | ||
* | ||
* This class is used to send a macro to abort the current running command. | ||
* | ||
* @sa RKAbortMacroResponse | ||
*/ | ||
@interface RKAbortMacroCommand : RKDeviceCommand | ||
|
||
@end |
40 changes: 40 additions & 0 deletions
40
frameworks/RobotKit.framework/Headers/RKAbortMacroResponse.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// RKAbortMacroResponse.h | ||
// RobotKit | ||
// | ||
// Created by Brian Smith on 8/30/11. | ||
// Copyright 2011 Orbotix Inc. All rights reserved. | ||
// | ||
|
||
/*! @file */ | ||
#import "RKDeviceResponse.h" | ||
|
||
/*! | ||
* Codes sent back in the response to an abort macro command. | ||
*/ | ||
enum RKAbortMacroCode { | ||
RKAbortMacroCodeMacroNotRunning = 0 /*!< No macro was running */ | ||
}; | ||
|
||
/*! | ||
* Defines a RKAbortMacroCode type for macro abort codes. | ||
*/ | ||
typedef enum RKAbortMacroCode RKAbortMacroCode; | ||
|
||
/*! | ||
* @brief Class that encapsulates the response from a abort macro command. | ||
* | ||
* This is a response that can be used to check for abort codes or see if an error was returned | ||
* from an abort macro command. | ||
* | ||
* @sa RKAbortMacroCommand | ||
*/ | ||
|
||
@interface RKAbortMacroResponse : RKDeviceResponse { | ||
RKAbortMacroCode abortCode; | ||
} | ||
|
||
/*! Read only property for the abort code returned in the response. */ | ||
@property (nonatomic, readonly) RKAbortMacroCode abortCode; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
frameworks/RobotKit.framework/Headers/RKCollisionDetectedAsyncData.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// RKCollisionDetectedAsyncData.h | ||
// RobotKit | ||
// | ||
// Created by Brian Smith on 2/23/12. | ||
// Copyright (c) 2012 Orbotix Inc. All rights reserved. | ||
// | ||
|
||
#import "RKDeviceAsyncData.h" | ||
|
||
struct RKCollisionAcceleration { | ||
float x; | ||
float y; | ||
float z; | ||
}; | ||
typedef struct RKCollisionAcceleration RKCollisionAcceleration; | ||
|
||
struct RKCollisionAxis { | ||
bool x : 1; | ||
bool y : 1; | ||
}; | ||
typedef struct RKCollisionAxis RKCollisionAxis; | ||
|
||
struct RKCollisionPower { | ||
int x; | ||
int y; | ||
}; | ||
typedef struct RKCollisionPower RKCollisionPower; | ||
|
||
|
||
@interface RKCollisionDetectedAsyncData : RKDeviceAsyncData { | ||
@private | ||
RKCollisionAcceleration impactAcceleration; | ||
RKCollisionAxis impactAxis; | ||
RKCollisionPower impactPower; | ||
float impactSpeed; | ||
NSTimeInterval impactTimeStamp; | ||
} | ||
|
||
@property (nonatomic, readonly) RKCollisionAcceleration impactAcceleration; | ||
@property (nonatomic, readonly) RKCollisionAxis impactAxis; | ||
@property (nonatomic, readonly) RKCollisionPower impactPower; | ||
@property (nonatomic, readonly) float impactSpeed; | ||
@property (nonatomic, readonly) NSTimeInterval impactTimeStamp; | ||
|
||
@end |
50 changes: 50 additions & 0 deletions
50
frameworks/RobotKit.framework/Headers/RKConfigureCollisionDetectionCommand.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// | ||
// RKConfigureCollisionDetectionCommand.h | ||
// RobotKit | ||
// | ||
// Created by Brian Smith on 2/23/12. | ||
// Copyright (c) 2012 Orbotix Inc. All rights reserved. | ||
// | ||
|
||
#import "RKDeviceCommand.h" | ||
|
||
enum RKCollisionDetectionMethod { | ||
RKCollisionDetectionMethodDetectionOff = 0, | ||
RKCollisionDetectionMethod1 = 1 | ||
}; | ||
typedef enum RKCollisionDetectionMethod RKCollisionDetectionMethod; | ||
|
||
|
||
@interface RKConfigureCollisionDetectionCommand : RKDeviceCommand { | ||
RKCollisionDetectionMethod method; | ||
uint8_t xThreshold; | ||
uint8_t yThreshold; | ||
uint8_t xSpeedThreshold; | ||
uint8_t ySpeedThreshold; | ||
NSTimeInterval postTimeDeadZone; | ||
} | ||
|
||
@property (nonatomic, readonly) RKCollisionDetectionMethod method; | ||
@property (nonatomic, readonly) uint8_t xThreshold; | ||
@property (nonatomic, readonly) uint8_t yThreshold; | ||
@property (nonatomic, readonly) uint8_t xSpeedThreshold; | ||
@property (nonatomic, readonly) uint8_t ySpeedThreshold; | ||
@property (nonatomic, readonly) NSTimeInterval postTimeDeadZone; | ||
|
||
+ (void)sendCommandForMethod:(RKCollisionDetectionMethod)method | ||
xThreshold:(uint8_t)theXThreshold | ||
yThreshold:(uint8_t)theYThreshold | ||
xSpeedThreshold:(uint8_t)theXSpeedThreshold | ||
ySpeedThreshold:(uint8_t)theYSpeedThreshold | ||
postTimeDeadZone:(NSTimeInterval)deadZone; | ||
|
||
+ (void)sendCommandToStopDetection; | ||
|
||
- (id)initForMethod:(RKCollisionDetectionMethod)method | ||
xThreshold:(uint8_t)theXThreshold | ||
yThreshold:(uint8_t)theYThreshold | ||
xSpeedThreshold:(uint8_t)theXSpeedThreshold | ||
ySpeedThreshold:(uint8_t)theYSpeedThreshold | ||
postTimeDeadZone:(NSTimeInterval)deadZone; | ||
|
||
@end |
13 changes: 13 additions & 0 deletions
13
frameworks/RobotKit.framework/Headers/RKConfigureCollisionDetectionResponse.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// RKConfigureCollisionDetectionResponse.h | ||
// RobotKit | ||
// | ||
// Created by Brian Smith on 2/23/12. | ||
// Copyright (c) 2012 Orbotix Inc. All rights reserved. | ||
// | ||
|
||
#import "RKDeviceResponse.h" | ||
|
||
@interface RKConfigureCollisionDetectionResponse : RKDeviceResponse | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
frameworks/RobotKit.framework/Headers/RKInitMacroExecutiveCommand.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// RKInitMacroExecutive.h | ||
// RobotKit | ||
// | ||
// Created by Jon Carroll on 3/2/12. | ||
// Copyright (c) 2012 Orbotix Inc. All rights reserved. | ||
// | ||
|
||
/*! @file */ | ||
|
||
#import <RobotKit/RKDeviceCommand.h> | ||
|
||
/*! | ||
* @brief Terminates running macros and re-initializes the system | ||
* | ||
* This terminates any running macro and reinitializes the macro system. | ||
* The table of any persistent users macros is erased and the storage space is freed. | ||
* | ||
*/ | ||
|
||
@interface RKInitMacroExecutiveCommand : RKDeviceCommand | ||
|
||
@end |
23 changes: 23 additions & 0 deletions
23
frameworks/RobotKit.framework/Headers/RKInitMacroExecutiveResponse.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// RKInitMacroExecutiveResponse.h | ||
// RobotKit | ||
// | ||
// Created by Jon Carroll on 3/2/12. | ||
// Copyright (c) 2012 Orbotix Inc. All rights reserved. | ||
// | ||
|
||
/*! @file */ | ||
|
||
#import <RobotKit/RKDeviceResponse.h> | ||
|
||
/*! | ||
* @brief Class that represents a response from the RKInitMacroExecutiveCommand | ||
* | ||
* This is a simple response. | ||
* | ||
* @sa RKInitMacroExecutiveCommand | ||
*/ | ||
|
||
@interface RKInitMacroExecutiveResponse : RKDeviceResponse | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// MCCalibrate.h | ||
// MacroLab | ||
// | ||
// Created by Jon Carroll on 9/12/11. | ||
// Copyright (c) 2011 Orbotix, Inc. All rights reserved. | ||
// | ||
|
||
#import "RKMacroCommand.h" | ||
|
||
/*! | ||
* @brief Macro Command to calibrate the robot | ||
* | ||
* When this command is sent the current heading of the robot will become | ||
* the heading that is passed in as a parameter. | ||
* Allowed values: | ||
* heading 0-359 | ||
* delay 0-255 | ||
*/ | ||
|
||
@interface RKMCCalibrate : RKMacroCommand { | ||
int heading; | ||
int delay; | ||
} | ||
|
||
/*! The current heading of the robot will become this value after the command is executed. 0-359 allowed. */ | ||
@property int heading; | ||
|
||
/*! The delay in ms after this command is executed before the next command is. 0-255 allowed.*/ | ||
@property int delay; | ||
|
||
/*! Convenience method for creating a command and setting the parameters in one line. | ||
* @param heading The heading the command will be initialized with. | ||
* @param delay The delay the command will be initialized with | ||
* @return An instance of the command with the given parameters. | ||
*/ | ||
+(RKMCCalibrate*)commandWithHeading:(int)heading delay:(int)delay; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// MCDelay.h | ||
// MacroLab | ||
// | ||
// Created by Jon Carroll on 9/12/11. | ||
// Copyright (c) 2011 Orbotix, Inc. All rights reserved. | ||
// | ||
|
||
#import "RKMacroCommand.h" | ||
|
||
|
||
/*! | ||
* @brief A command for adding a delay between commands | ||
* | ||
* This command will allow you to add a delay between commands greater than the 255 ms | ||
* delay limit on most commands. | ||
* Allowed values: | ||
* delay 0-65,535 | ||
*/ | ||
@interface RKMCDelay : RKMacroCommand { | ||
int delay; | ||
} | ||
|
||
/*! Delay in ms associated with this command. 0-65,535 allowed. */ | ||
@property int delay; | ||
|
||
/*! Convenience method for creating a command and setting the parameters in one line. | ||
* @param delay The delay the command will be initialized with. | ||
* @return An instance of the command with the given parameters. | ||
*/ | ||
+(RKMCDelay*)commandWithDelay:(int)delay; | ||
|
||
@end |
Oops, something went wrong.