Program to control an accelerometer, motors and a rangefinder using the ScmRTOS ported to mbed. (Work in progress and buggy)
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
Generated on Wed Jul 13 2022 05:20:16 by 1.7.2