Skip to content

Commit

Permalink
irarray: Comments translation
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Aug 5, 2016
1 parent ec3dc4c commit 444064c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Firmware/ControladorRobo/irarray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void IRArray::saveCalibrationToEEPROM()
}
}

// le os valores do branco da eeprom
// read values from eeprom
void IRArray::loadCalibrationFromEEPROM()
{
for (uint16_t i = CALLIB_ADDRESS; i<CALLIB_ADDRESS + NUMBER_OF_SENSORS; i++)
Expand Down
6 changes: 3 additions & 3 deletions Firmware/ControladorRobo/irarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <Arduino.h>

// Passar parte da eeprom para um outra classe
// TODO: create eeprom class
// eeprom address for the sensors
#define CALLIB_ADDRESS 0

Expand All @@ -21,15 +21,15 @@ class IRArray
void saveCalibrationToEEPROM();
void loadCalibrationFromEEPROM();

// pinos para leitura analógica
// pins for analog read
static uint16_t m_sensorPin[NUMBER_OF_SENSORS];
uint8_t m_sensorLow[NUMBER_OF_SENSORS];
uint8_t m_sensorHigh[NUMBER_OF_SENSORS];
byte m_enablePin;
uint16_t m_sensorRaw[NUMBER_OF_SENSORS];
uint16_t m_sensor[NUMBER_OF_SENSORS];

// le os sensores e salva o valor lido de cada um no byte[9]
// run calibration routine
bool m_calibrating;

public:
Expand Down

0 comments on commit 444064c

Please sign in to comment.