Hi,
I want to do some simulation using stm32f4 discovery board. But I’m not sure why I can’t advertise a new topic there.
Even with unchanged stable version when I try to run “px4_simple_app” I am getting following message:
nsh> [1B][Ksercon: Registering CDC/ACM serial driver
sercon: Successfully registered the CDC/ACM serial driver
nsh: mount: mount failed: No such file or directory
nsh: tone_alarm: command not found
NuttShell (NSH)
nsh> [1B][Kpx4_simple_app
px4_simple_app
INFO [px4_simple_app] Hello Sky!
WARN [uorb] node_open as advertiser failed.
ERROR [px4_simple_app] Got no data within a second
ERROR [px4_simple_app] Got no data within a second
ERROR [px4_simple_app] Got no data within a second
ERROR [px4_simple_app] Got no data within a second
ERROR [px4_simple_app] Got no data within a second
INFO [px4_simple_app] exiting
nsh> [1B][Kÿ
Does anybody know how can I solve this to simply do advertise on discovery board? Or am I doing something wrong?
It’s sensors start, but you’ll also need relevant drivers running to actually get data. The sensors module reads from the drivers (accel_report, gyro_report, etc) and publishes sensor_combined.
I’m not that familiar with the discovery board, but it’s not really that well supported. We don’t have drivers specifically for the accel and gyro, but the ones we do have might be able to work with little to no modification.
We might be getting sidetracked here. Do you actually want to read from sensors and publish attitude (like px4_simple_app) or are you just interested in the mechanics of using uorb and writing a new app?
Actually I am working on a tracking sensor and I want to write an I2C driver for it and add it to the code.
I have discovery board connected to my sensor with I2C and wrote a driver like what code has for lidar lite. I was able to read from sensor but when I want to advertise with following code: