Revision 3ec16d35 scout/libscout/src/libheadlights.cpp

View differences:

scout/libscout/src/libheadlights.cpp
96 96
 
97 97
	if(which & HL_LEFT)
98 98
	{
99
		left_red = red;
100
		left_green = green;
101
		left_blue = blue;
99
		msg.left_red = red;
100
		msg.left_green = green;
101
		msg.left_blue = blue;
102
	}
103
	else
104
	{
105
		msg.left_red = NO_SET;
106
		msg.left_green = NO_SET;
107
		msg.left_blue = NO_SET;
102 108
	}
103 109
	if(which & HL_RIGHT)
104 110
	{
105
		right_red = red;
106
		right_green = green;
107
		right_blue = blue;
111
		msg.right_red = red;
112
		msg.right_green = green;
113
		msg.right_blue = blue;
114
	}
115
	else
116
	{
117
		msg.right_red = NO_SET;
118
		msg.right_green = NO_SET;
119
		msg.right_blue = NO_SET;
108 120
	}
109 121
	
110 122
  /* Publishes message to set_motors topic */

Also available in: Unified diff