Searched refs:xy_acc (Results 1 – 1 of 1) sorted by relevance
212 int xy_acc[ATP_XSENSORS + ATP_YSENSORS]; member342 int *xy_sensors = dev->xy_acc + offset; in atp_calculate_abs()585 dev->xy_acc[i] -= change; in atp_complete_geyser_1_2()588 if (dev->xy_acc[i] < 0) in atp_complete_geyser_1_2()589 dev->xy_acc[i] = 0; in atp_complete_geyser_1_2()594 dbg_dump("accumulator", dev->xy_acc); in atp_complete_geyser_1_2()635 memset(dev->xy_acc, 0, sizeof(dev->xy_acc)); in atp_complete_geyser_1_2()699 dev->xy_acc[i] = dev->xy_cur[i] - dev->xy_old[i]; in atp_complete_geyser_3_4()702 if (dev->xy_acc[i] > 127) in atp_complete_geyser_3_4()703 dev->xy_acc[i] -= 256; in atp_complete_geyser_3_4()[all …]