Open alphaville opened 8 months ago
Should we try and fix this issue before #109 #118 and #159 or at the same time? I've added some documentation to start to address #118 and made a PR #180 If we are going to refactor the python code it might be worth merging what is done so far in PR #180
@jamie-54 I suspect this issue may have to be addressed via multiple PRs. We can discuss at our meeting at 16:15 today.
Describe the solution you'd like
I think our Python code needs some refactoring. Here are some observations from my side:
In
get_radio_data_parse_and_send_to_ESP
1.we need to get rid of
fake_data
andforce_send_fake_data
return_channel_data
should be removedIn
main.py
enable_printing_cache_to_screen
andprint_debug
; instead we should be using a loggerrad2deg
andeuler_angles
should be moved to a different file; if we need operations with quaternions and/or angles, we should create a class, or a file with functions.DataLogger
.See also