Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

CANController/CANController.cpp

Committer:
martydd3
Date:
2014-11-07
Revision:
24:f58a3c0071c3

File content as of revision 24:f58a3c0071c3:

#include "CANController.h"

CANController::CANController(){
    
};

bool CANController::dc_on(){
    return dc.is_on();
};

void CANController::set_dc(bool status){
    dc.set(status); 
};

bool CANController::write_contrl(ContrlPinName name, float duty){
    if(dc.is_on()){
        
        return true;
    } 
    return false;
};

void CANController::direct_off(ContrlPinName name, float duty){
    
};
    
float *CANController::read_control(){
    return NULL;
}