Program to control an accelerometer, motors and a rangefinder using the ScmRTOS ported to mbed. (Work in progress and buggy)

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers messages.h Source File

messages.h

00001 //-----------------------------------------------------------------
00002 //file containing the os::message list used in the program
00003 
00004 #pragma once
00005 #ifndef MESSAGES_H
00006 #define MESSAGES_H
00007 
00008 //--------------------------------------------------------------------------------------------
00009 //define the channels that are going to be used in the program
00010        // command channel
00011 
00012 OS::message<byte> PING_MESSAGE; //if message is a zero, then PING once, if a 1 then Ticker ping
00013 OS::message<byte> ACCELEROMETER_MESSAGE; //if message is a zero, then return acceleration once, if a 1 then continually return acceleration data
00014 //OS::message<float> MOTOR_message;
00015 
00016 
00017 #endif