Class: Sphero::Request::Sphero
- Inherits:
-
Sphero::Request
- Object
- Sphero::Request
- Sphero::Request::Sphero
- Defined in:
- lib/sphero/request.rb
Direct Known Subclasses
ConfigureCollisionDetection, Heading, Roll, SetDataStreaming, Stabilization
Constant Summary
Constants inherited from Sphero::Request
ACCELEROMETER_AXIS_X_FILTERED, ACCELEROMETER_AXIS_X_RAW, ACCELEROMETER_AXIS_Y_FILTERED, ACCELEROMETER_AXIS_Y_RAW, ACCELEROMETER_AXIS_Z_FILTERED, ACCELEROMETER_AXIS_Z_RAW, ACCELONE, GYRO_AXIS_H_FILTERED, GYRO_AXIS_L_FILTERED, GYRO_AXIS_M_FILTERED, GYRO_AXIS_X_FILTERED, GYRO_AXIS_X_RAW, GYRO_AXIS_Y_FILTERED, GYRO_AXIS_Y_RAW, GYRO_AXIS_Z_FILTERED, GYRO_AXIS_Z_RAW, GetAutoReconnect, GetBluetoothInfo, GetPowerState, GetRGB, GetVersioning, IMU_PITCH_ANGLE_FILTERED, IMU_ROLL_ANGLE_FILTERED, IMU_YAW_ANGLE_FILTERED, LEFT_MOTOR_BACK_EMF_FILTERED, LEFT_MOTOR_BACK_EMF_RAW, MAGNETOMETER_AXIS_X_FILTERED, MAGNETOMETER_AXIS_X_RAW, MAGNETOMETER_AXIS_Y_FILTERED, MAGNETOMETER_AXIS_Y_RAW, MAGNETOMETER_AXIS_Z_FILTERED, MAGNETOMETER_AXIS_Z_RAW, ODOMETER_X, ODOMETER_Y, Ping, QUATERNION_Q0, QUATERNION_Q1, QUATERNION_Q2, QUATERNION_Q3, RIGHT_MOTOR_BACK_EMF_FILTERED, RIGHT_MOTOR_BACK_EMF_RAW, SOP1, SOP2, SetAutoReconnect, SetBackLEDOutput, SetRGB, SetRotationRate, VELOCITY_X, VELOCITY_Y
Instance Attribute Summary
Attributes inherited from Sphero::Request
Instance Method Summary collapse
-
#initialize(seq, data = []) ⇒ Sphero
constructor
A new instance of Sphero.
Methods inherited from Sphero::Request
#bytes, #checksum, #dlen, #header, make_command, #packet_body, #packet_header, #response, #to_str
Constructor Details
#initialize(seq, data = []) ⇒ Sphero
Returns a new instance of Sphero.
53 54 55 56 |
# File 'lib/sphero/request.rb', line 53 def initialize seq, data = [] super @did = 0x02 end |