N K
/
GaNtroller
a fork of priustroller
Fork of priustroller_current by
Diff: sensors/positionsensors.cpp
- Revision:
- 28:af9d43bcb371
- Parent:
- 11:dccbaa9274c5
- Child:
- 29:cb03760ba9ea
--- a/sensors/positionsensors.cpp Sat Mar 14 18:51:36 2015 +0000 +++ b/sensors/positionsensors.cpp Sat Mar 14 19:18:34 2015 +0000 @@ -4,8 +4,8 @@ AnalogHallPositionSensor::AnalogHallPositionSensor(PinName pin_a, PinName pin_b, float cal1_a, float cal2_a, float cal1_b, float cal2_b, float offset) { - _in_a = new AnalogIn(pin_a); - _in_b = new AnalogIn(pin_b); + _in_a = new NativeAnalogIn(pin_a); + _in_b = new NativeAnalogIn(pin_b); _cal1_a = cal1_a; _cal2_a = cal2_a; _cal1_b = cal1_b;