Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_adc_car_lights
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
ADC
ADC_2021
iri_adc_car_lights
Commits
eca01ad4
Commit
eca01ad4
authored
3 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Updated the left and right intermitent lights animation image.
Updated the LED regions.
parent
141a3b39
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/intermitent_left.ppm
+0
-0
0 additions, 0 deletions
config/intermitent_left.ppm
config/intermitent_right.ppm
+0
-0
0 additions, 0 deletions
config/intermitent_right.ppm
src/adc_car_lights_driver.cpp
+19
-19
19 additions, 19 deletions
src/adc_car_lights_driver.cpp
with
19 additions
and
19 deletions
config/intermitent_left.ppm
+
0
−
0
View file @
eca01ad4
No preview for this file type
This diff is collapsed.
Click to expand it.
config/intermitent_right.ppm
+
0
−
0
View file @
eca01ad4
No preview for this file type
This diff is collapsed.
Click to expand it.
src/adc_car_lights_driver.cpp
+
19
−
19
View file @
eca01ad4
...
...
@@ -16,7 +16,7 @@ bool AdcCarLightsDriver::openDriver(void)
this
->
leds
=
new
CRGBLedsDriver
(
"leds_cont"
,
this
->
config_
.
serial_port
,
this
->
config_
.
baudrate
,
this
->
config_
.
device_id
);
// configure the array
this
->
frame_buffer
->
set_num_rows
(
1
);
this
->
frame_buffer
->
set_num_pixels_per_row
(
2
4
);
this
->
frame_buffer
->
set_num_pixels_per_row
(
2
5
);
if
((
signed
int
)
this
->
frame_buffer
->
get_free_memory
()
<
0
)
throw
CException
(
_HERE_
,
"Not enough memory, reduce number of rows and/or columns"
);
this
->
frame_buffer
->
clear_all_patterns
();
...
...
@@ -26,48 +26,48 @@ bool AdcCarLightsDriver::openDriver(void)
// whole front area
this
->
whole_front_area
.
min_row
=
0
;
this
->
whole_front_area
.
max_row
=
0
;
this
->
whole_front_area
.
min_col
=
1
6
;
this
->
whole_front_area
.
max_col
=
2
3
;
this
->
whole_front_area
.
min_col
=
1
7
;
this
->
whole_front_area
.
max_col
=
2
4
;
// front right area
this
->
front_right_area
.
min_row
=
0
;
this
->
front_right_area
.
max_row
=
0
;
this
->
front_right_area
.
min_col
=
1
6
;
this
->
front_right_area
.
max_col
=
19
;
this
->
front_right_area
.
min_col
=
1
7
;
this
->
front_right_area
.
max_col
=
20
;
// front left area
this
->
front_left_area
.
min_row
=
0
;
this
->
front_left_area
.
max_row
=
0
;
this
->
front_left_area
.
min_col
=
2
0
;
this
->
front_left_area
.
max_col
=
2
3
;
this
->
front_left_area
.
min_col
=
2
1
;
this
->
front_left_area
.
max_col
=
2
4
;
// rear left area
this
->
rear_left_area
.
min_row
=
0
;
this
->
rear_left_area
.
max_row
=
0
;
this
->
rear_left_area
.
min_col
=
0
;
this
->
rear_left_area
.
max_col
=
3
;
this
->
rear_left_area
.
min_col
=
1
;
this
->
rear_left_area
.
max_col
=
4
;
// rear center area
this
->
rear_center_area
.
min_row
=
0
;
this
->
rear_center_area
.
max_row
=
0
;
this
->
rear_center_area
.
min_col
=
4
;
this
->
rear_center_area
.
max_col
=
1
1
;
this
->
rear_center_area
.
min_col
=
5
;
this
->
rear_center_area
.
max_col
=
1
2
;
// rear middle left area
this
->
rear_middle_left_area
.
min_row
=
0
;
this
->
rear_middle_left_area
.
max_row
=
0
;
this
->
rear_middle_left_area
.
min_col
=
4
;
this
->
rear_middle_left_area
.
max_col
=
7
;
this
->
rear_middle_left_area
.
min_col
=
5
;
this
->
rear_middle_left_area
.
max_col
=
8
;
// rear middle right area
this
->
rear_middle_right_area
.
min_row
=
0
;
this
->
rear_middle_right_area
.
max_row
=
0
;
this
->
rear_middle_right_area
.
min_col
=
8
;
this
->
rear_middle_right_area
.
max_col
=
1
1
;
this
->
rear_middle_right_area
.
min_col
=
9
;
this
->
rear_middle_right_area
.
max_col
=
1
2
;
// rear right area
this
->
rear_right_area
.
min_row
=
0
;
this
->
rear_right_area
.
max_row
=
0
;
this
->
rear_right_area
.
min_col
=
1
2
;
this
->
rear_right_area
.
max_col
=
1
5
;
this
->
rear_right_area
.
min_col
=
1
3
;
this
->
rear_right_area
.
max_col
=
1
6
;
// whole rear area
this
->
whole_rear_area
.
min_row
=
0
;
this
->
whole_rear_area
.
max_row
=
0
;
this
->
whole_rear_area
.
min_col
=
0
;
this
->
whole_rear_area
.
max_col
=
1
5
;
this
->
whole_rear_area
.
min_col
=
1
;
this
->
whole_rear_area
.
max_col
=
1
6
;
return
true
;
}
catch
(
CException
&
e
){
ROS_WARN_STREAM
(
e
.
what
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment