Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove log table in detection module #370

Open
Peque opened this issue Jan 21, 2019 · 0 comments
Open

Remove log table in detection module #370

Peque opened this issue Jan 21, 2019 · 0 comments

Comments

@Peque
Copy link
Member

Peque commented Jan 21, 2019

Analyze the time it takes to perform the calculation and the size of the generated binary (it will probably be smaller).

If it is not too slow even without a FPU, remove the table and use math's log().

Log time with:

 void sys_tick_handler(void)
 {
+	float tcompute;
+
 	clock_tick();
+	stopwatch_start();
 	update_distance_readings();
+	tcompute = stopwatch_stop();
 	update_gyro_readings();
 	update_encoder_readings();
 	motor_control();
-	log_data();
+	LOG_DATA("[%f]", tcompute);
 }
@Peque Peque added this to the Portugal 2019 milestone Jan 21, 2019
@Peque Peque self-assigned this Jan 21, 2019
@Peque Peque modified the milestones: Portugal 2019, OSHWDem 2019 May 16, 2019
@Peque Peque modified the milestones: OSHWDem 2019, Portugal 2020 Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant