Will Salisbury / CANProtocol Featured
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CANProtocol.h Source File

CANProtocol.h

00001 /*
00002  * File: CANProtocol/CANProtocol.h
00003  * Author: William Jessup Salisbury
00004  * Company: Tufts Hybrid Racing Team
00005  * Copyright: CC BY-NC-SA 3.0
00006  * Date: 1/12/2012
00007  */
00008 
00009 #ifndef CANPROTOCOL_H
00010 #define CANPROTOCOL_H
00011 
00012 const int CAN_FREQUENCY = 500000; /* CANbus Speed ( 1000000 == 1Mbit/s ) */
00013 
00014 const int CAN_RESET  = 0x100; /* Command Message: Reset */
00015 const int CAN_SYNC   = 0x101; /* Command Message: Sync */
00016 const int CAN_BRAKE  = 0x200; /* Critical Response: Brake Pedal */
00017 const int CAN_ACCEL  = 0x201; /* Critical Response: Accelerator Pedal */
00018 const int CAN_FLWS   = 0x300; /* Normal Response: Front Left Wheel Speed */
00019 const int CAN_FRWS   = 0x301; /* Normal Response: Front Right Wheel Speed */
00020 const int CAN_RLWS   = 0x302; /* Normal Response: Rear Left Wheel Speed */
00021 const int CAN_RRWS   = 0x303; /* Normal Response: Rear Right Wheel Speed */
00022 const int CAN_STATUS = 0x400; /* Relaxed Response: Status */
00023 
00024 /* BMS CAN */
00025 const int ID0 = 0x620;
00026 const int ID1 = 0x621;
00027 const int ID2 = 0x622;
00028 const int ID3 = 0x623;
00029 const int ID4 = 0x624;
00030 const int ID5 = 0x625;
00031 const int ID6 = 0x626;
00032 const int ID7 = 0x627;
00033 const int ID8 = 0x628;
00034 
00035 #endif