Otpvondoiats opened a new pull request, #4072:
URL: https://github.com/apache/nuttx-apps/pull/4072
## Summary
* Add `orb_subscribe_wakeup()` / `orb_subscribe_multi_wakeup()`.
* **Breaking**: remove `orb_subscribe_nonwakeup()` /
`orb_subscribe_multi_nonwakeup()`, issue `SNIOC_SET_WAKEUP` for wakeup
subscriptions, and replace `uorb_listener -u` with `-w`.
* Define `sensor_accel_uncal`, `sensor_linear_accel_uncal`,
`sensor_gyro_uncal` and `sensor_mag_uncal` with the uncalibrated structs
and format strings.
* uorb_listener: report a flush that times out as failure; fix nxstyle
errors in listener.c.
* uorb_unit_test: shorten test topic names that overflow the path, fix an
fd leak in test_multi_reversed(), run the latency test only on request
and at a higher priority.
* Raise the default `UORB_PRIORITY` from 100 to 250.
Depends on apache/nuttx#<N1>, which introduces `SNIOC_SET_WAKEUP`.
## Impact
* API: `orb_subscribe_nonwakeup()` and `orb_subscribe_multi_nonwakeup()`
are removed. Fix: call `orb_subscribe()` / `orb_subscribe_multi()`, the
behavior is identical.
* uorb_listener: `-u` is removed; non-wakeup is the default, use `-w` for
wakeup.
* Build: system/uorb no longer builds against nuttx master until
apache/nuttx#<N1> is merged. The two PRs must be merged together.
## Testing
Host and toolchains as in apache/nuttx#<N1>.
`./tools/checkpatch.sh -c -m -g master..HEAD`: all checks pass.
All 14 `CONFIG_UORB=y` defconfigs built with apache/nuttx#<N1>; results
and logs are in apache/nuttx#<N1> (13 PASS, `nrf9160-dk:modem_ns` fails on
master as well).
```
uorb_listener -n 20 -r 50 sensor_accel
Mointor objects num:1
object_name:sensor_accel, object_instance:0
[11/16 21:26:11] [ 6] [sensor] [LSM6DSV320X]set interval: type:1, idx:0
freq:50.000000
[11/16 21:26:11] [ 6] [sensor] [LSM6DSV320X]batch: type:1 idx:0 latency_us:0
sensor_accel(now:6657543457):timestamp:6640248786,x:-0.046879,y:-0.908715,z:9.632439,temperature:31.902344
sensor_accel(now:6657543823):timestamp:6640288786,x:-0.111396,y:-0.893638,z:9.643742,temperature:31.902344
sensor_accel(now:6657545166):timestamp:6640328786,x:-0.070272,y:-0.901098,z:9.688078,temperature:31.902344
sensor_accel(now:6657546508):timestamp:6640368786,x:-0.096947,y:-0.884935,z:9.751039,temperature:31.902344
sensor_accel(now:6657547851):timestamp:6640408786,x:-0.068141,y:-0.919874,z:9.756991,temperature:31.902344
sensor_accel(now:6657549194):timestamp:6640448786,x:-0.105465,y:-0.887059,z:9.801072,temperature:31.902344
sensor_accel(now:6657550537):timestamp:6640488786,x:-0.090229,y:-0.918022,z:9.813033,temperature:31.902344
sensor_accel(now:6657551879):timestamp:6640528786,x:-0.119109,y:-0.869900,z:9.755885,temperature:31.902344
sensor_accel(now:6657553222):timestamp:6640568786,x:-0.067943,y:-0.887034,z:9.704210,temperature:31.902344
sensor_accel(now:6657554565):timestamp:6640608786,x:-0.093753,y:-0.909026,z:9.652696,temperature:31.902344
sensor_accel(now:6657646057):timestamp:6640673540,x:-0.067008,y:-0.924334,z:9.631335,temperature:31.906250
sensor_accel(now:6657646362):timestamp:6640693540,x:-0.061998,y:-0.880371,z:9.647477,temperature:31.906250
sensor_accel(now:6657647705):timestamp:6640713540,x:-0.106085,y:-0.955647,z:9.597157,temperature:31.906250
sensor_accel(now:6657747680):timestamp:6640733540,x:-0.067463,y:-0.912328,z:9.635991,temperature:31.906250
sensor_accel(now:6657747985):timestamp:6640753540,x:-0.086893,y:-0.960273,z:9.608434,temperature:31.906250
sensor_accel(now:6657749328):timestamp:6640773540,x:-0.091072,y:-0.934686,z:9.622836,temperature:31.906250
sensor_accel(now:6657750671):timestamp:6640793540,x:-0.122780,y:-0.907280,z:9.638090,temperature:31.906250
sensor_accel(now:6657752014):timestamp:6640813540,x:-0.099580,y:-0.928335,z:9.643742,temperature:31.906250
sensor_accel(now:6657849304):timestamp:6640833540,x:-0.081136,y:-0.946805,z:9.683880,temperature:31.900732
sensor_accel(now:6657849548):timestamp:6640853540,x:-0.105052,y:-0.934694,z:9.713944,temperature:31.867188
Object name:sensor_accel0, recieved:20
Total number of received Message:20/20
```
## build log
[sim-baromonitor.log](https://github.com/user-attachments/files/34964319/sim-baromonitor.log)
[raspberrypi-4b-baromonitor.log](https://github.com/user-attachments/files/34964321/raspberrypi-4b-baromonitor.log)
[sim-rpserver_uart.log](https://github.com/user-attachments/files/34964323/sim-rpserver_uart.log)
[sim-rpserver.log](https://github.com/user-attachments/files/34964324/sim-rpserver.log)
[sim-rpproxy_uart.log](https://github.com/user-attachments/files/34964325/sim-rpproxy_uart.log)
[sim-rpproxy.log](https://github.com/user-attachments/files/34964326/sim-rpproxy.log)
[lckfb-szpi-esp32s3-qmi8658.log](https://github.com/user-attachments/files/34964327/lckfb-szpi-esp32s3-qmi8658.log)
[esp32s3-ws-lcd128-imu-qmi8658.log](https://github.com/user-attachments/files/34964328/esp32s3-ws-lcd128-imu-qmi8658.log)
[thingy91-thingy91_rtt.log](https://github.com/user-attachments/files/34964332/thingy91-thingy91_rtt.log)
[stm32f4discovery-scl3300.log](https://github.com/user-attachments/files/34964334/stm32f4discovery-scl3300.log)
[raspberrypi-4b-bmp280.log](https://github.com/user-attachments/files/34964335/raspberrypi-4b-bmp280.log)
[raspberrypi-4b-i2c1.log](https://github.com/user-attachments/files/34964336/raspberrypi-4b-i2c1.log)
[nucleo-h563zi-dts.log](https://github.com/user-attachments/files/34964338/nucleo-h563zi-dts.log)
[nrf9160-dk-modem_ns.log](https://github.com/user-attachments/files/34964340/nrf9160-dk-modem_ns.log)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]