Module: Rumba::Constants
- Included in:
- Rumba
- Defined in:
- lib/rumba/constants.rb
Constant Summary collapse
- OPCODES =
These opcodes require no arguments
{ start: 128, control: 130, power: 133, spot: 134, clean: 135, max: 136, dock: 143, play_script: 153, show_script: 154 }
- SAFE_MODE =
131
- FULL_MODE =
132
- DRIVE =
These opcodes require arguments
137
- MOTORS =
138
- LEDS =
139
- SONG =
140
- PLAY_SONG =
141
- SENSORS =
142
- QUERY_LIST =
149
- DRIVE_DIRECT =
145
- NOTES =
Used for making the Roomba sing! Note that nil is simply a rest
{ 'A' => 69, 'A#' => 70, 'B' => 71, 'C' => 72, 'C#' => 73, 'D' => 74, 'D#' => 75, 'E' => 76, 'F' => 77, 'F#' => 78, 'G' => 79, 'G#' => 80, nil => 0 }
- MOTORS_MASK_SIDE_BRUSH =
0x1
- MOTORS_MASK_VACUUM =
0x2
- MOTORS_MASK_MAIN_BRUSH =
0x4