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 01-01SolucionFuncionXY by
Diff: main.cpp
- Revision:
- 1:370d6730c1cf
- Parent:
- 0:7ba873404776
- Child:
- 2:878cb2697ab1
--- a/main.cpp Tue Feb 20 00:25:00 2018 +0000
+++ b/main.cpp Tue Feb 20 00:39:23 2018 +0000
@@ -9,7 +9,14 @@
void vertex2d(float x, float y){
- // UBICAR EL CODIGO QUE HACE FALTA
+ int pulseX ;
+ int pulseY ;
+
+ // UBICAR EL CODIGO QUE HACE FALTA
+ // la funciòn como parametros tiene las coordenadas x y y en milimetros y
+ // debe calcular las variables pulseX y pulseY para dar paso a la actualizaciòn
+ // de la posiciòn de los dos servomotores
+
myServoX.pulsewidth_us(pulseX);
myServoY.pulsewidth_us(pulseY);
