Change team colors for this year competition.
static inline double __trans_ang(double phi)
{
- if (robot.team_color == RED) {
+ if (robot.team_color == VIOLET) {
return phi;
} else {
double a;
static inline struct move_target_heading __trans_heading(struct move_target_heading h)
{
- if (robot.team_color == RED) {
+ if (robot.team_color == VIOLET) {
return h;
} else {
if (h.operation != TOP_DONT_TURN) {
static inline double __trans_x(double x)
{
- if (robot.team_color == RED)
+ if (robot.team_color == VIOLET)
return x;
else
return PLAYGROUND_WIDTH_M - x;
robot.fsm.act.transition_callback = trans_callback;
robot.fsm.motion.transition_callback = trans_callback;
- robot.team_color = RED;
+ robot.team_color = VIOLET;
- if (robot.team_color == RED) {
- ul_loginf("We are RED!\n");
+ if (robot.team_color == VIOLET) {
+ ul_loginf("We are VIOLET!\n");
} else {
- ul_loginf("We are BLUE!\n");
+ ul_loginf("We are RED!\n");
}
robot_set_est_pos_trans(ROBOT_START_X_M, ROBOT_START_Y_M, DEG2RAD(ROBOT_START_ANGLE_DEG));
* Competition parameters
*/
enum team_color {
- RED = 0, /* Coordinate transformation does not apply */
- BLUE /* Coordinate transformation applies (in *_trans() functions) */
+ VIOLET = 0, /* Coordinate transformation does not apply */
+ RED /* Coordinate transformation applies (in *_trans() functions) */
};
enum robot_start_state {