most functionality to splashdwon, find neutral and start mission. short timeouts still in code for testing, will adjust to go directly to sit_idle after splashdown

Dependencies:   mbed MODSERIAL FATFileSystem

Committer:
danstrider
Date:
Mon Oct 23 12:50:53 2017 +0000
Revision:
10:085ab7328054
Parent:
9:d5fcdcb3c89d
Child:
51:c5c40272ecc3
checked out on the hardware

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mkelly10 9:d5fcdcb3c89d 1 #ifndef MBED_LTC1298_H
mkelly10 9:d5fcdcb3c89d 2 #define MBED_LTC1298_H
mkelly10 9:d5fcdcb3c89d 3 #include "mbed.h"
mkelly10 9:d5fcdcb3c89d 4
danstrider 10:085ab7328054 5 #define CH0OVERSAMPLE 8
mkelly10 9:d5fcdcb3c89d 6 #define CH1OVERSAMPLE 8
mkelly10 9:d5fcdcb3c89d 7
mkelly10 9:d5fcdcb3c89d 8 class SpiADC{
mkelly10 9:d5fcdcb3c89d 9 public:
danstrider 10:085ab7328054 10 SpiADC(PinName mosi, PinName miso, PinName sclk, PinName csel, PinName led);
mkelly10 9:d5fcdcb3c89d 11 void initialize();
mkelly10 9:d5fcdcb3c89d 12 void update();
mkelly10 9:d5fcdcb3c89d 13 void start();
mkelly10 9:d5fcdcb3c89d 14 void stop();
mkelly10 9:d5fcdcb3c89d 15
mkelly10 9:d5fcdcb3c89d 16 int readCh0();
mkelly10 9:d5fcdcb3c89d 17 int readCh1();
mkelly10 9:d5fcdcb3c89d 18
mkelly10 9:d5fcdcb3c89d 19 protected:
mkelly10 9:d5fcdcb3c89d 20 SPI _spi;
mkelly10 9:d5fcdcb3c89d 21 Ticker interval;
mkelly10 9:d5fcdcb3c89d 22 DigitalOut adcLed;
mkelly10 9:d5fcdcb3c89d 23 DigitalOut cs;
danstrider 10:085ab7328054 24
mkelly10 9:d5fcdcb3c89d 25 int ch0_raw;
mkelly10 9:d5fcdcb3c89d 26 int ch1_raw;
mkelly10 9:d5fcdcb3c89d 27
mkelly10 9:d5fcdcb3c89d 28 int ch0_filt;
mkelly10 9:d5fcdcb3c89d 29 int ch1_filt;
mkelly10 9:d5fcdcb3c89d 30 };
mkelly10 9:d5fcdcb3c89d 31
mkelly10 9:d5fcdcb3c89d 32
mkelly10 9:d5fcdcb3c89d 33
mkelly10 9:d5fcdcb3c89d 34 #endif