Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/projects/product/laser/lib/Galvo/galvo.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void Galvo_Init(void)

revision_t revision = {.major = 1, .minor = 0, .build = 0};
Luos_CreateService(Galvo_MsgHandler, POINT_2D, "galvo", revision);
stream = Streaming_CreateChannel(stream_buf, sizeof(stream_buf), 2 * sizeof(uint16_t));
stream = Streaming_CreateChannel(stream_buf, sizeof(stream_buf) / sizeof(stream_buf[0]), sizeof(stream_buf[0]));
period = TimeOD_TimeFrom_s(1.0 / DEFAULT_SAMPLE_FREQUENCY); // Configure the trajectory samplerate at 100Hz
control.flux = STOP;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/projects/product/laser/lib/laser/laser.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void Laser_Init(void)
// Init the Luos service
revision_t revision = {.major = 1, .minor = 0, .build = 0};
Luos_CreateService(Laser_MsgHandler, POWER_TYPE, "laser", revision);
stream = Streaming_CreateChannel(stream_buf, sizeof(stream_buf), sizeof(ratio_t));
stream = Streaming_CreateChannel(stream_buf, sizeof(stream_buf) / sizeof(stream_buf[0]), sizeof(stream_buf[0]));
period = TimeOD_TimeFrom_s(1.0 / DEFAULT_SAMPLE_FREQUENCY); // Configure the trajectory samplerate at 100Hz
laser_control.flux = STOP;
}
Expand Down
Loading