Class: Sphero::Request::ConfigureCollisionDetection
- Inherits:
-
Sphero
- Object
- Sphero::Request
- Sphero
- Sphero::Request::ConfigureCollisionDetection
- Defined in:
- lib/sphero/request.rb
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, meth, x_t, y_t, x_spd, y_spd, dead) ⇒ ConfigureCollisionDetection
constructor
A new instance of ConfigureCollisionDetection.
Methods inherited from Sphero::Request
#bytes, #checksum, #dlen, #header, make_command, #packet_body, #packet_header, #response, #to_str
Constructor Details
#initialize(seq, meth, x_t, y_t, x_spd, y_spd, dead) ⇒ ConfigureCollisionDetection
Returns a new instance of ConfigureCollisionDetection.
204 205 206 207 |
# File 'lib/sphero/request.rb', line 204 def initialize seq, meth, x_t, y_t, x_spd, y_spd, dead super(seq, [meth, x_t, y_t, x_spd, y_spd, dead]) @cid = 0x12 end |