JanWielgus / STM_FlightController

0 stars 0 forks source link

Events (like new sensor value) and Observer design pattern #64

Open JanWielgus opened 4 years ago

JanWielgus commented 4 years ago

Think about implementation of Observer design pattern in code, is it worth it etc.

Could be helpful in for example sensor readings (sensor is a Subject)

JanWielgus commented 4 years ago

On the other side, this will not be good because approach with global readings variables updated by sensor libraries is faster (but again on the other side it is less cohesive)