Skip to content

Classes and Computation#1

Open
CasoMateo wants to merge 4 commits intomainfrom
Python-Code
Open

Classes and Computation#1
CasoMateo wants to merge 4 commits intomainfrom
Python-Code

Conversation

@CasoMateo
Copy link
Copy Markdown
Owner

We compute the data we acquired from Arduino to decide on what path the robot should take.

We compute the data we acquired from Arduino to decide on what path the  robot should take.
@CasoMateo CasoMateo requested a review from EduardoSantos7 March 1, 2021 01:33
Copy link
Copy Markdown
Collaborator

@EduardoSantos7 EduardoSantos7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muy limpio el código! Solo el detalle de que está mal nombrado el archivo y posibles mejoras.

Comment thread Classes and Computation Outdated

else:
ser.write('b'.encode())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puedes borrar todas las lineas demás

Comment thread Classes and Computation Outdated
@@ -0,0 +1,80 @@
from abc import ABC, abstractmethod
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por qué usaste la clase ABC en lugar de lanzar un error por falta de implementación?

Comment thread Classes and Computation Outdated
@@ -0,0 +1,80 @@
from abc import ABC, abstractmethod
import serial
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

el orden de los imports no es el adecuados según PEP8

Comment thread Classes and Computation Outdated
from abc import ABC, abstractmethod
import serial

ser = serial.Serial('COM3', 9600)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sería útil implementar un especie de driver para manejar comunicaciones seriales?

Comment thread Classes and Computation Outdated
self.VCC = VCC

@abstractmethod
def send_parameter(parameter):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Podrías agregar tipado como def send_parameter(parameter: str) -> None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants