Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Greifer by
Greifer.cpp
00001 #include "Greifer.h" 00002 00003 00004 Servo ServoGreifer(PC_7); 00005 00006 00007 00008 00009 Greifer::Greifer() 00010 { 00011 //init(); 00012 } 00013 00014 void Greifer::init() 00015 { 00016 ServoGreifer.calibrate(0.0017f, 180.0f); 00017 ServoGreifer.position(60.0f); 00018 } 00019 00020 int Greifer::leave() 00021 { 00022 ServoGreifer.position(60.0f); 00023 t=0; 00024 l=1; 00025 return l; 00026 } 00027 00028 int Greifer::take() 00029 { 00030 ServoGreifer.position(-150.0f); 00031 t=1; 00032 l=0; 00033 return t; 00034 }
Generated on Mon Aug 8 2022 05:40:25 by
