linguini1 opened a new pull request, #2988: URL: https://github.com/apache/nuttx-apps/pull/2988
## Summary This PR introduces a new application which streams UORB accelerometer data to the console in tab delimited format. This allows a user to record the console input on their host machine and feed it into host-based programs like [Magneto](https://sites.google.com/view/sailboatinstruments1/a-download-magneto-v1-2?authuser=0) and [FreeIMU](https://varesano.net/freeimu-magnetometer-and-accelerometer-calibration-gui-alpha-version-out/) or visualization programs like [this one](https://github.com/michaelwro/accelerometer-calibration). ## Impact Allows for calibration of any uORB-based accelerometer through the serial console. This is more within the realm of what Adafruit users are used to with the Arduino serial console, and thus allows NuttX supported boards to leverage existing tools designed for those use cases. This has an impact of adding a new application, as well as a new `sensors` directory as suggested in the mailing list discussion about sensor fusion applications. ## Testing Testing performed using the LSM6DSO32 accelerometer on a custom flight computer board. Driver is still a WIP but will be contributed to upstream soon. Here is some sample output produced for tab delimited data: ```console NuttShell (NSH) NuttX-12.8.0 nsh> accel_calib sensor_accel0 Sampling frequency is 50Hz 0.003589 -0.227319 8.654883 0.013160 -0.253640 9.955389 0.015553 -0.245266 9.961371 0.027517 -0.253640 9.984103 0.025124 -0.265605 9.962567 0.032303 -0.272783 9.986496 0.025124 -0.289533 9.986496 0.017946 -0.288337 9.981710 0.009571 -0.277569 9.990085 -0.005982 -0.248855 9.962567 ``` And with the delimiter as a comma: ```console ``` When an invalid sensor topic is provided: ```console nsh> accel_calib something Failed to get metadata for something ``` When no sensor topic is provided: ```console nsh> accel_calib Please provide the name of the accelerometer uORB topic as an argument Usage: accel_calib [topic] Example: accel_calib sensor_accel0 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org