Fix 'maybe-uninitialized' warnings
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
This commit is contained in:
parent
68ee257f1d
commit
98660f6c21
2 changed files with 12 additions and 6 deletions
|
@ -60,9 +60,9 @@ int main(int argc, char** argv) {
|
|||
// Switch to Full mode
|
||||
robot.setMode(create::MODE_FULL);
|
||||
|
||||
uint16_t light_signals[6];
|
||||
bool light_bumpers[6];
|
||||
bool contact_bumpers[2];
|
||||
uint16_t light_signals[6] = {0, 0, 0, 0, 0, 0};
|
||||
bool light_bumpers[6] = {false, false, false, false, false, false};
|
||||
bool contact_bumpers[2] = {false, false};
|
||||
|
||||
while (true) {
|
||||
// Get light sensor data (only available for Create 2 or later robots)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue