Hi guys is there any method for sending messages through mavlink console while pixhawk startup or when pixhawk armed.
谋 have a sensor called usharp patch from aerotenna like ulanding radar distance sensor 谋 am reading data when 谋 write "usharp_patch start" to the mavlink console and watch the data with analyze section. So 谋 am wondering can 谋 send that "usharp_start" message to mavlink console when 谋 power the pixhawk?
Well, maybe changing flight mode features will do that but 谋 dont know how to change flight mode features either.
btw sensor's driver is uploaded to the pixhawk but 谋 dont know who did that 谋'll publish the driver as soon as find the driver file
Do I understand correctly that you just want to do a nsh command on startup to start a sensor?
If you're already compiling your own code, you can add the command to the startup here:
https://github.com/PX4/Firmware/blob/master/ROMFS/px4fmu_common/init.d/rcS
Yes just try to add a new command. Normally I write "usharp_patch start" command manually via mavlink console in qground control.What I want is actually this starting process of the sensor triggered with startup like the compass or gyro (sensor dont need calibration btw)
Thank a lot for your help 谋 will examine your link

I'm closing this as a solution has been posted, please use discuss.px4.io if you need further help.