Caddy
A 2005 Roborodentia entry with vision and path planning capability
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros | Functions | Variables
robot_control.h File Reference

High-level logic controlling Caddy's actions. More...

#include <stdint.h>
#include <stdbool.h>
Include dependency graph for robot_control.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BALL_DIST   0
#define BALL_NODE_NUM   1

Functions

void runRoborodentiaCourse (void)
 Run the Roborodentia course from start to finish.
void moveToJunction (uint8_t numJunctions, bool justTurned)
 Move to next junction in pathList.
void nestSequence (void)
 Sequence of actions to peform once the nest is reached.
void junctionCode (void)
void bonusBallPickUpManeuver (int8_t bbHeading, int8_t nextHeading)
 Orients Caddy to grab a bonus ball, grabs the ball, and reorients for the next node.

Variables

uint8_t botNode
int8_t botHeading
uint8_t numUnreachedGoals

Detailed Description

High-level logic controlling Caddy's actions.

See Also
Problem Summary

Definition in file robot_control.h.

Function Documentation

void bonusBallPickUpManeuver ( int8_t  bbHeading,
int8_t  nextHeading 
)
inline

Orients Caddy to grab a bonus ball, grabs the ball, and reorients for the next node.

Parameters
[in]bbHeadingHeading Caddy must have for bonus ball pickup
[in]nextHeadingHeading Caddy must have after bonus ball pickup

Definition at line 266 of file robot_control.c.

void nestSequence ( void  )

Sequence of actions to peform once the nest is reached.

Main purpose is to release the balls from the hopper.

Definition at line 496 of file robot_control.c.

void runRoborodentiaCourse ( void  )
inline

Run the Roborodentia course from start to finish.

Returns once all balls have been collected and placed in the nest.

Definition at line 79 of file robot_control.c.