-
Notifications
You must be signed in to change notification settings - Fork 683
testing/sensortest: update sensortest according enhance sensor driver #1228
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
Conversation
|
uorb_listener |
|
@Donny9 why not keep both? sensortest seems smaller and simple to use. The uorb is have more features to use and share data, but sometimes we don't need or want to use it. Please consider keeping it! |
Since core uorb functionality will be part of new sensor driver framework, all orb functions will become a simple ioctl wrapper. Basically, sensortest and uorb_listener is same(direct ioctl v.s. uorb wrapper), that's why we remove sensortest, but integrate uorb_listener in the next PR. |
Thank you @xiaoxiang781216, but I suppose uorb could use more flash and RAM memory right? That is the impact in this case? What are the uorb dependence features from NuttX side? |
The major change is to enable sensor driver supporting multiple readers. Many nuttx drivers support multiple users, but the old sensor driver just support one, because we utilize PX4 uorb framework to support the multiple users. We found many problem with the pure userspace solution in the recent one year use, and then decide to integrate the core functionality into drivers side:
The code increase is around 500~ line, but the benefit is:
|
|
@acassis how about we merge this pr and focus on orb interface? |
|
Thank you @xiaoxiang781216! I understood the previous issues. Maybe a new testsensor using uorb should be created to make it clear to users that that all is used to test sensors. |
|
Ok, let's keep it. |
…iver 1.update prefix of sensor event structure to sensor_xxx. 2.remove activate cmd because of open will auto activate sensor. Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Okay. Update done according apache/nuttx#6653. |
Summary
update sensortest tool:
1.update prefix of sensor event structure to sensor_xxx.
2.remove activate cmd because of open will auto activate sensor.
Signed-off-by: Jiuzhu Dong dongjiuzhu1@xiaomi.com
Impact
N/A
Testing
Vela CI