@@ -351,7 +351,7 @@ void collect_eggs_after_sandwich(
351351 // Recall your ride to reduce obstacles.
352352 pbf_press_button (context, BUTTON_PLUS, 20 , 105 );
353353
354- #if 1
354+ #if 0
355355 // this sequence will purposefully fail if Camera support is off.
356356 // If we fail to reach the egg basket, we can then check that Camera support is on.
357357
@@ -375,26 +375,38 @@ void collect_eggs_after_sandwich(
375375 pbf_move_left_joystick(context, 128, 255, 10, 40);
376376#endif
377377
378- #if 0
378+ #if 1
379+ // this sequence will work with both Camera Support being Off and On
380+
381+ // Move forward to table
382+ pbf_move_left_joystick (context, 128 , 0 , 320ms, 480ms);
383+
379384 // Move left
380385 pbf_move_left_joystick (context, 0 , 128 , 80ms, 480ms);
381- pbf_press_button(context, BUTTON_L, 120ms, 120ms );
386+ pbf_press_button (context, BUTTON_L, 120ms, 480ms );
382387 pbf_move_left_joystick (context, 128 , 0 , 320ms, 480ms);
383388
384389 // Move forward to pass table
385390 pbf_move_left_joystick (context, 255 , 128 , 80ms, 480ms);
386- pbf_press_button(context, BUTTON_L, 120ms, 120ms );
387- pbf_move_left_joystick(context, 128, 0, 640ms, 320ms );
391+ pbf_press_button (context, BUTTON_L, 120ms, 480ms );
392+ pbf_move_left_joystick (context, 128 , 0 , 640ms, 480ms );
388393
389394 // Move right
390395 pbf_move_left_joystick (context, 255 , 128 , 80ms, 480ms);
391- pbf_press_button(context, BUTTON_L, 120ms, 120ms );
392- pbf_move_left_joystick(context, 128, 0, 320ms, 320ms );
396+ pbf_press_button (context, BUTTON_L, 120ms, 480ms );
397+ pbf_move_left_joystick (context, 128 , 0 , 320ms, 480ms );
393398
394- // Move back to face basket
395- pbf_move_left_joystick(context, 255, 128, 80ms, 320ms);
396- pbf_press_button(context, BUTTON_L, 120ms, 120ms);
397- pbf_move_left_joystick(context, 128, 0, 160ms, 320ms);
399+ // Turn right to face basket
400+ pbf_move_left_joystick (context, 255 , 128 , 80ms, 480ms);
401+ pbf_press_button (context, BUTTON_L, 120ms, 480ms);
402+
403+ // Move closer to the basket, up to the table
404+ pbf_move_left_joystick (context, 128 , 0 , 800ms, 480ms);
405+
406+ // back away from the table, then face forwards towards the basket again
407+ pbf_move_left_joystick (context, 128 , 255 , 200ms, 480ms);
408+ pbf_move_left_joystick (context, 128 , 0 , 80ms, 480ms);
409+ pbf_press_button (context, BUTTON_L, 120ms, 480ms);
398410#endif
399411
400412#if 0
0 commit comments