Added temp tests
This commit is contained in:
parent
8257e9ab51
commit
83c0bb5283
@ -58,9 +58,6 @@ void TempSensor::setup() {
|
||||
#endif
|
||||
}
|
||||
|
||||
//
|
||||
// Retrieving value from sensor, value is in Celcius
|
||||
//
|
||||
float TempSensor::getValue(bool useGyro) {
|
||||
if (useGyro) {
|
||||
// When using the gyro temperature only the first read value will be
|
||||
|
@ -21,12 +21,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
#include <Arduino.h>
|
||||
#include <main.hpp>
|
||||
#include <tempsensor.hpp>
|
||||
#include <AUnit.h>
|
||||
|
||||
test(temp_readSensor) {
|
||||
Serial.println("Not implemented yet (temp_readSensor)");
|
||||
myTempSensor.setup();
|
||||
myTempSensor.getTempC();
|
||||
assertEqual( myTempSensor.isSensorAttached(), true );
|
||||
}
|
||||
|
||||
// EOF
|
Loading…
Reference in New Issue
Block a user