Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef Distance_H
- #define Distance_H
- class Distance {
- public:
- // OVDJE SU ČETIRI ISTA ERRORA
- volatile uint32_t distance;
- volatile uint32_t tripA;
- volatile uint32_t tripB;
- volatile uint32_t tripC;
- float getDistance(uint8_t type) const;
- };
- #endif
- // CPP FAJL
- #include "Header\Distance.h"
- float Distance::getDistance(uint8_t type) const // OVO JA TA LINIJA
- {
- return (type * 1.5); // NAPISANO DA FUNKCIJA NE BUDE PRAZNA
- }
Advertisement
Add Comment
Please, Sign In to add comment