px4io: print actuator control registers as int16 instead of uint16

This commit is contained in:
Anton Babushkin 2014-03-05 20:00:13 +04:00
parent 149bf4582c
commit a8ff126dfe
1 changed files with 1 additions and 1 deletions

View File

@ -1925,7 +1925,7 @@ PX4IO::print_status()
printf("controls %u:", group);
for (unsigned i = 0; i < _max_controls; i++)
printf(" %u", io_reg_get(PX4IO_PAGE_CONTROLS, group * PX4IO_PROTOCOL_MAX_CONTROL_COUNT + i));
printf(" %d", (int16_t) io_reg_get(PX4IO_PAGE_CONTROLS, group * PX4IO_PROTOCOL_MAX_CONTROL_COUNT + i));
printf("\n");
}