commander: home publication fixed

This commit is contained in:
Anton Babushkin 2014-04-05 16:59:01 +04:00
parent 8064b44dad
commit 97cde3311e
1 changed files with 2 additions and 2 deletions

View File

@ -613,10 +613,10 @@ bool handle_command(struct vehicle_status_s *status, const struct safety_s *safe
/* announce new home position */ /* announce new home position */
if (*home_pub > 0) { if (*home_pub > 0) {
orb_publish(ORB_ID(home_position), *home_pub, &home); orb_publish(ORB_ID(home_position), *home_pub, home);
} else { } else {
*home_pub = orb_advertise(ORB_ID(home_position), &home); *home_pub = orb_advertise(ORB_ID(home_position), home);
} }
/* mark home position as set */ /* mark home position as set */