mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 04:43:34 +08:00
IR lock: Fixed code style
This commit is contained in:
@@ -388,8 +388,8 @@ int IRLOCK::read_device_block(struct irlock_s *block)
|
|||||||
|
|
||||||
/** convert to angles **/
|
/** convert to angles **/
|
||||||
block->target_num = target_num;
|
block->target_num = target_num;
|
||||||
block->angle_x = (((float)(pixel_x-IRLOCK_CENTER_X))/IRLOCK_PIXELS_PER_RADIAN_X);
|
block->angle_x = (((float)(pixel_x - IRLOCK_CENTER_X)) / IRLOCK_PIXELS_PER_RADIAN_X);
|
||||||
block->angle_y = (((float)(pixel_y-IRLOCK_CENTER_Y))/IRLOCK_PIXELS_PER_RADIAN_Y);
|
block->angle_y = (((float)(pixel_y - IRLOCK_CENTER_Y)) / IRLOCK_PIXELS_PER_RADIAN_Y);
|
||||||
block->size_x = pixel_size_x / IRLOCK_PIXELS_PER_RADIAN_X;
|
block->size_x = pixel_size_x / IRLOCK_PIXELS_PER_RADIAN_X;
|
||||||
block->size_y = pixel_size_y / IRLOCK_PIXELS_PER_RADIAN_Y;
|
block->size_y = pixel_size_y / IRLOCK_PIXELS_PER_RADIAN_Y;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user