the fish that looks like a jet
Dependencies: ADXL345 ADXL345_I2C IMUfilter ITG3200 mbed Servo
Diff: guardian.cpp
- Revision:
- 5:090ef6275773
- Parent:
- 2:430c068cf570
- Child:
- 7:e005cfaff8d1
--- a/guardian.cpp Fri Jan 24 22:04:41 2014 +0000 +++ b/guardian.cpp Tue Jan 28 23:59:21 2014 +0000 @@ -9,7 +9,7 @@ aux=new Servo(auxpin); */ gain=new Servo(gainpin); - mod->write(0.5); + mod->write(0.5); //set autopilot to off ail->write(0.5); elv->write(0.5); /*rud->write(0.5); @@ -23,13 +23,13 @@ delete ail, mod, elv, rud, aux, gain; } -void Guardian::set3D() +void Guardian::set3D() //set autopilot to 3D { mod->write(1.00); return; } -void Guardian::set2D() +void Guardian::set2D() //set autopilot 2D { mod->write(0.00); return; @@ -44,11 +44,11 @@ void Guardian::calibrate() //must be done within 15 sec of power on { set2D(); - wait(500); + Thread::wait(500); set3D(); - wait(500); + Thread::wait(500); set2D(); - wait(2000); + Thread::wait(2000); //now look for the twitch return; }