Project

General

Profile

Revision 3ec16d35

ID3ec16d3529c3e4c1c67dd4d237dab32831006676

Added by Ben Wasserman about 5 years ago

Fixed bugs I saw in headlights code. Fixed object parameter missing error. Added no-set capability to headlights. Changed attribution in motors. Fixed CMakeLists.txt due to error I put in there on my last commit (extra comma). Should compile now. I'm sorry if it doesn't.

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