mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 08:51:36 +08:00
px4io: print actuator control registers as int16 instead of uint16
This commit is contained in:
@@ -1925,7 +1925,7 @@ PX4IO::print_status()
|
|||||||
printf("controls %u:", group);
|
printf("controls %u:", group);
|
||||||
|
|
||||||
for (unsigned i = 0; i < _max_controls; i++)
|
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");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user