[Butia-devel-list] Butia get_volt

Jorge xxopxe en gmail.com
Dom Jun 16 23:04:34 UYT 2013


Eso se discutio hace un tiempo, y se descarto en ese momento porque 
llevar potencia hasta el micro era una complicacion y un riesgo.
El pic queda entre el usb del usuario y la bata. Me parece una 
exageracion para la ventaja que se obtiene.

J.


On 16/06/13 22:23, Federico Andrade - InCo wrote:
> y no se puede leer el voltaje con un puerto analógico, o dos 
> combinados de alguna manera?
>
>
> Federico Andrade - InCo
>
>
> 2013/6/13 Jorge <xxopxe en gmail.com <mailto:xxopxe en gmail.com>>
>
>     La placa no debería colgarse por hacer una llamada documentada, y la
>     interfaz no debería permitir hacer llamadas que no andan.
>
>     j.
>
>
>     On 06/13/2013 05:45 PM, Alan Jhonn Aguiar Schwyn wrote:
>     > Ustedes se refieren a ocultar el bloque, no?
>     > Eso es fácil, pero el voltaje se usa para colorear los bloques..
>     >
>     > Además: no está bueno que se cuelgue la placa por una función
>     > que en ciertos casos no anda (porque es lo que está pasando
>     > ahora)
>     >
>     >
>     >
>     ------------------------------------------------------------------------
>     > Date: Thu, 13 Jun 2013 17:09:16 -0300
>     > From: aricca8 en gmail.com <mailto:aricca8 en gmail.com>
>     > To: greisch en fing.edu.uy <mailto:greisch en fing.edu.uy>
>     > CC: butia-devel-l en fing.edu.uy
>     <mailto:butia-devel-l en fing.edu.uy>; alanjas en hotmail.com
>     <mailto:alanjas en hotmail.com>
>     > Subject: Re: [Butia-devel-list] Butia get_volt
>     >
>     > +1
>     >
>     >
>     > El 13 de junio de 2013 17:07, Guillermo Reisch - Fing
>     > <greisch en fing.edu.uy <mailto:greisch en fing.edu.uy>
>     <mailto:greisch en fing.edu.uy <mailto:greisch en fing.edu.uy>>> escribió:
>     >
>     >     __
>     >
>     >     IF (! AX12 ) => voltaje.ocultar()
>     >
>     >     Saluds
>     >
>     >     On Thu 13 Jun 2013 16:27:34 Alan Jhonn Aguiar Schwyn escribió:
>     >
>     >      > Algo así?
>     >
>     >      > void getVoltage(int *data_received) { if ((PORTC &
>     MASK_SHIELD) ==
>     >
>     >      > SHIELD_CC) { *data_received = 255; } else { byte data
>     >
>     >      > [2]; int err = 0; byte id; data[0] = PRESENT_VOLTAGE;
>     >
>     >      > data[1] = 0x01; /*length of data to read*/
>     >
>     >      > ax12SendPacket(wheels.left.id <http://wheels.left.id>
>     <http://wheels.left.id>, 0x02,
>     >     READ_DATA, data);
>     >
>     >      > ax12ReadPacket(&id, &err, data_received); }} aunque creo
>     que la
>     >
>     >      > condición de que hay shield podría hacersesolo una vez? o
>     no vale
>     >     la pena?
>     >
>     >      > From: alanjas en hotmail.com <mailto:alanjas en hotmail.com>
>     <mailto:alanjas en hotmail.com <mailto:alanjas en hotmail.com>>
>     >
>     >      > To: butia en fing.edu.uy <mailto:butia en fing.edu.uy>
>     <mailto:butia en fing.edu.uy <mailto:butia en fing.edu.uy>>;
>     > butia-devel-l en fing.edu.uy <mailto:butia-devel-l en fing.edu.uy>
>     <mailto:butia-devel-l en fing.edu.uy <mailto:butia-devel-l en fing.edu.uy>>
>     >
>     >      > Subject: Butia get_volt
>     >
>     >      > Date: Thu, 13 Jun 2013 15:31:29 -0300
>     >
>     >      >
>     >
>     >      >
>     >
>     >      >
>     >
>     >      >
>     >
>     >      > Hola!
>     >
>     >      > Con el reciente cambio del firmware, de tener compatibilidad
>     >     conambos tipos
>     >
>     >      > de motores (ax-12 y continua) se ha roto la
>     funcióngetVolt del módulo
>     >
>     >      > butiá. Esa función llama directamente a losax-12 y les
>     pide el
>     >     voltaje. En
>     >
>     >      > el caso de los motores de continua(por ahora) no tenemos nada
>     >     para medir
>     >
>     >      > el voltaje y al no haberseinicializado los ax, la función
>     getVolt
>     >     está
>     >
>     >      > dando problemas (enpybot la comunicación usb sale por
>     timeout).Cómo
>     >
>     >      > podemos arreglar para que la función continúe funcionando
>     incluso
>     >     haya
>     >
>     >      > motores de continua??Agregar la condición de que si hay
>     shield
>     >     devuelva
>     >
>     >      > 255 ? Saludos!
>     >
>     >      > Alan
>     >
>     >
>     >     _______________________________________________
>     >     Butia-devel-l site list
>     > Butia-devel-l en fing.edu.uy <mailto:Butia-devel-l en fing.edu.uy>
>     <mailto:Butia-devel-l en fing.edu.uy <mailto:Butia-devel-l en fing.edu.uy>>
>     > https://www.fing.edu.uy/mailman/listinfo/butia-devel-l
>     >
>     >
>     >
>     > _______________________________________________ Butia-devel-l
>     site list
>     > Butia-devel-l en fing.edu.uy <mailto:Butia-devel-l en fing.edu.uy>
>     > https://www.fing.edu.uy/mailman/listinfo/butia-devel-l
>     >
>     >
>     > _______________________________________________
>     > Butia-devel-l site list
>     > Butia-devel-l en fing.edu.uy <mailto:Butia-devel-l en fing.edu.uy>
>     > https://www.fing.edu.uy/mailman/listinfo/butia-devel-l
>     >
>
>     _______________________________________________
>     Butia-devel-l site list
>     Butia-devel-l en fing.edu.uy <mailto:Butia-devel-l en fing.edu.uy>
>     https://www.fing.edu.uy/mailman/listinfo/butia-devel-l
>
>

------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: https://{'listname': 'butia-devel-l', 'hostname': 'www.fing.edu.uy'}/pipermail/butia-devel-l/attachments/20130616/a642cf50/attachment.html 


Más información sobre la lista de distribución Butia-devel-l