Penn Electric Racing / Mbed 2 deprecated REVO_Updated_Steering

Dependencies:   CANBuffer KS0108_fork mbed-rtos mbed CAN Addresses

Fork of REVO_Updated_Steering by Penn Electric

Committer:
palimar
Date:
Sat Nov 22 22:24:53 2014 +0000
Revision:
35:b42afc973902
Added linked list, also graphics updates only when variables change.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
palimar 35:b42afc973902 1 class node{
palimar 35:b42afc973902 2
palimar 35:b42afc973902 3 public:
palimar 35:b42afc973902 4
palimar 35:b42afc973902 5 node();
palimar 35:b42afc973902 6 node(int id, int screen);
palimar 35:b42afc973902 7 void set_val(char v);
palimar 35:b42afc973902 8 ~node();
palimar 35:b42afc973902 9
palimar 35:b42afc973902 10 int screen;
palimar 35:b42afc973902 11 int id;
palimar 35:b42afc973902 12 char value;
palimar 35:b42afc973902 13 node * next;
palimar 35:b42afc973902 14
palimar 35:b42afc973902 15 };
palimar 35:b42afc973902 16
palimar 35:b42afc973902 17 node::node(){
palimar 35:b42afc973902 18 screen = 0;
palimar 35:b42afc973902 19 id = 0;
palimar 35:b42afc973902 20 next = NULL;
palimar 35:b42afc973902 21 }
palimar 35:b42afc973902 22
palimar 35:b42afc973902 23 node::node(int i, int s){
palimar 35:b42afc973902 24 id = i;
palimar 35:b42afc973902 25 screen = s;
palimar 35:b42afc973902 26 next = NULL;
palimar 35:b42afc973902 27 }
palimar 35:b42afc973902 28
palimar 35:b42afc973902 29 void node::set_val(char v){
palimar 35:b42afc973902 30 value = v;
palimar 35:b42afc973902 31 }
palimar 35:b42afc973902 32
palimar 35:b42afc973902 33 node::~node(){
palimar 35:b42afc973902 34 }
palimar 35:b42afc973902 35