-
Notifications
You must be signed in to change notification settings - Fork 0
/
IFinch.idl
executable file
·32 lines (30 loc) · 965 Bytes
/
IFinch.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "nsISupports.idl"
[scriptable, uuid(c901edf0-ddb9-11e0-9572-0800200c9a66)]
interface IFinch : nsISupports
{
long setLED(in long red, in long green, in long blue);
long setMotors(in long leftWheelSpeed, in long rightWheelSpeed);
long setMotorsd(in long leftWheelSpeed, in long rightWheelSpeed, in long duration);
long noteOn(in long frequency);
long noteOnd(in long frequency, in long duration);
long noteOff();
double getAccelerations();
long getLightSensors();
long getObstacleSensors();
boolean wasTapped();
boolean wasShaken();
boolean isObstacleLeftSide();
boolean isObstacleRightSide();
long getLeftLightSensor();
long getRightLightSensor();
double getXAcceleration();
double getYAcceleration();
double getZAcceleration();
boolean isBeakUp();
boolean isBeakDown();
boolean isFinchLevel();
boolean isFinchUpsideDown();
boolean isRightWingDown();
boolean isLeftWingDown();
double getTemperature();
};