Px4-autopilot: Auto sensor reading after pixhawk startup

Created on 24 Jul 2019  路  4Comments  路  Source: PX4/PX4-Autopilot

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

more_info_needed question

All 4 comments

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

123

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

prothen picture prothen  路  5Comments

ghost picture ghost  路  4Comments

lgh5054 picture lgh5054  路  4Comments

felix-west picture felix-west  路  4Comments

CarlOlsson picture CarlOlsson  路  5Comments