AP_HAL_Linux: AnalogIn_Raspilot: remove unused debug

This commit is contained in:
Lucas De Marchi 2016-01-11 15:57:20 -02:00
parent 60636c1653
commit 0cff40ed7b
1 changed files with 0 additions and 13 deletions

View File

@ -5,16 +5,6 @@
#include "AnalogIn_Raspilot.h" #include "AnalogIn_Raspilot.h"
#include "px4io_protocol.h" #include "px4io_protocol.h"
#define RASPILOT_ANALOGIN_DEBUG 0
#if RASPILOT_ANALOGIN_DEBUG
#include <cstdio>
#define debug(fmt, args ...) do {hal.console->printf("%s:%d: " fmt "\n", __FUNCTION__, __LINE__, ## args); } while(0)
#define error(fmt, args ...) do {fprintf(stderr,"%s:%d: " fmt "\n", __FUNCTION__, __LINE__, ## args); } while(0)
#else
#define debug(fmt, args ...)
#define error(fmt, args ...)
#endif
AnalogSource_Raspilot::AnalogSource_Raspilot(int16_t pin): AnalogSource_Raspilot::AnalogSource_Raspilot(int16_t pin):
_pin(pin), _pin(pin),
_value(0.0f) _value(0.0f)
@ -141,9 +131,6 @@ void RaspilotAnalogIn::_update()
source->_value = _dma_packet_rx.regs[i] * 3.3 / 4096.0; source->_value = _dma_packet_rx.regs[i] * 3.3 / 4096.0;
} }
} }
//printf("ADC_%d: %0.3f\n",i,_dma_packet_rx.regs[i] * 3.3 / 4096.0);
} }
_last_update_timestamp = AP_HAL::micros(); _last_update_timestamp = AP_HAL::micros();