Motor control for robots. More compact, less object-oriented revision.
Dependencies: FastPWM3 mbed-dev-f303
Fork of Hobbyking_Cheetah_V1 by
PreferenceWriter.h
00001 #ifndef __PREFERENCE_WRITER_H 00002 #define __PREFERENCE_WRITER_H 00003 00004 #include "mbed.h" 00005 #include "FlashWriter.h" 00006 00007 class PreferenceWriter { 00008 public: 00009 PreferenceWriter(uint32_t sector); 00010 void open(); 00011 bool ready(); 00012 void write(int x, int index); 00013 void write(float x, int index); 00014 void flush(); 00015 void load(); 00016 void close(); 00017 private: 00018 FlashWriter *writer; 00019 uint32_t __sector; 00020 bool __ready; 00021 }; 00022 00023 #endif
Generated on Tue Jul 12 2022 13:17:46 by 1.7.2