VladimirP1 / esp-gyrologger

GNU Lesser General Public License v2.1
63 stars 10 forks source link

orientation issue? #4

Closed gretel closed 1 year ago

gretel commented 1 year ago

not sure if i get the code right, but is the right orientation written to the log file?

this is the header of the logfile, right?

https://github.com/VladimirP1/esp-gyrologger/blob/5f984de0906d5947b01854407623eb07cacc70f9/main/wifi/http.cpp#L87

here it gets initialized to xyz for the webinterface?

https://github.com/VladimirP1/esp-gyrologger/blob/53596aa058caa5491977f8bf8b3c6ecb3fec6268/main/storage/settings.hpp#L57

what's happening here?

https://github.com/VladimirP1/esp-gyrologger/blob/4415ae175a72ad01c2af83479042a277aed7e55f/main/wifi/http_strings.hpp#L984

VladimirP1 commented 1 year ago

respond_with_file is not actually used anymore, it is the code which does log decompression on the logger.

The log decompression code has been moved to the client-side (this long base64 encoded string in http_strings.hpp is the WASM code for decompression)

VladimirP1 commented 1 year ago

Here https://github.com/VladimirP1/esp-gyrologger/blob/4415ae175a72ad01c2af83479042a277aed7e55f/main/wifi/http_strings.hpp#L984 the IMU orientation which has been set in settings gets inserted into the client-side JS code

VladimirP1 commented 1 year ago

The IMU orientation which is correct for your setup can be specified here image

VladimirP1 commented 1 year ago

xyz is just the default value

VladimirP1 commented 1 year ago

As the orientation is inserted directly in JS code, be sure to reload the page with the controls after changing the orientation in settings

gretel commented 1 year ago

@VladimirP1 thanks for all the info!

still, having issues getting the orientation right in gyroflow. i can't mount the imu in flush with the diagram printed on the pcb, it's actually tape tucked to the side of the camera.

i've tried changing the orientation in gyroflow to what i assume is correct but i don't get it to sync any.

VladimirP1 commented 1 year ago

Have you tried 'guess IMU orientation' in the timeline context menu?

Anyway, you can upload your files somewhere and I will have a look.

You can DM me on discord (you can find me as @vpinch4 in GyroFlow discord) or telegram @vpinch