From ffb536db5d2ea60153c0b28b8abbb83016e7d49b Mon Sep 17 00:00:00 2001 From: Marcelo Bezerra <23555060+mmosca@users.noreply.github.com> Date: Fri, 21 Jun 2024 18:03:58 +0200 Subject: [PATCH] Cleanup --- src/main/io/headtracker_msp.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main/io/headtracker_msp.c b/src/main/io/headtracker_msp.c index 6a4b73dbbfb..8a800b3f46e 100644 --- a/src/main/io/headtracker_msp.c +++ b/src/main/io/headtracker_msp.c @@ -30,18 +30,6 @@ #include "io/headtracker_msp.h" -/* -typedef struct headTrackerVTable_s { - void (*process)(headTrackerDevice_t *headTrackerDevice, timeUs_t currentTimeUs); - headTrackerDevType_e (*getDeviceType)(const headTrackerDevice_t *headTrackerDevice); - bool (*isReady)(const headTrackerDevice_t *headTrackerDevice); - bool (*isValid)(const headTrackerDevice_t *headTrackerDevice); - int (*getPanPWM)(const headTrackerDevice_t *headTrackerDevice); - int (*getTiltPWM)(const headTrackerDevice_t *headTrackerDevice); - int (*getRollPWM)(const headTrackerDevice_t *headTrackerDevice); -} headtrackerVTable_t; -*/ - static headTrackerVTable_t headTrackerMspVTable = { .process = NULL, .getDeviceType = heatTrackerMspGetDeviceType, @@ -78,9 +66,6 @@ void mspHeadTrackerReceiverNewData(uint8_t *data, int dataSize) headTrackerMspDevice.roll = constrain(status->roll, HEADTRACKER_RANGE_MIN, HEADTRACKER_RANGE_MAX); headTrackerMspDevice.expires = micros() + MAX_HEADTRACKER_DATA_AGE_US; - SD(fprintf(stderr, "[headTracker]: pan: %d tilt: %d roll: %d\n", status->pan, status->tilt, status->roll)); - SD(fprintf(stderr, "[headTracker]: scaled pan: %d tilt: %d roll: %d\n", headTrackerMspDevice.pan, headTrackerMspDevice.tilt, headTrackerMspDevice.roll)); - UNUSED(status); }