Code for our FYDP -only one IMU works right now -RTOS is working
Embed:
(wiki syntax)
Show/hide line numbers
HC05.cpp
00001 #include "HC05.h" 00002 00003 HC05::HC05(PinName tx_pin, PinName rx_pin, PinName en_pin): 00004 MODSERIAL(tx_pin, rx_pin), 00005 on_switch(en_pin) 00006 { 00007 //wait_ms(5000); //mark 00008 on_switch = 0; 00009 } 00010 void HC05::start(){ 00011 on_switch = 1; 00012 } 00013 //void HCO5::stop(){ 00014 // on_switch = 0; 00015 //}
Generated on Wed Jul 13 2022 10:32:23 by 1.7.2