Functions | Variables
GroveBuzzer.cpp File Reference
#include "mbed.h"
#include <ros.h>
#include <std_msgs/Float32MultiArray.h>
Include dependency graph for GroveBuzzer.cpp:

Go to the source code of this file.

Functions

void beep (float freq, float time)
 
DigitalOut led (LED1)
 
int main ()
 
void messageCb (const std_msgs::Float32MultiArray &msg)
 
void nobeep ()
 

Variables

ros::NodeHandle nh
 
bool playing = false
 
ros::Subscriber< std_msgs::Float32MultiArray > sub ("buzzer",&messageCb)
 
Timeout toff
 

Function Documentation

void beep ( float  freq,
float  time 
)

Definition at line 36 of file GroveBuzzer.cpp.

DigitalOut led ( LED1  )
int main ( void  )

Definition at line 57 of file GroveBuzzer.cpp.

void messageCb ( const std_msgs::Float32MultiArray &  msg)

Definition at line 44 of file GroveBuzzer.cpp.

void nobeep ( )

Definition at line 30 of file GroveBuzzer.cpp.

Variable Documentation

Definition at line 16 of file GroveBuzzer.cpp.

bool playing = false

Definition at line 27 of file GroveBuzzer.cpp.

ros::Subscriber<std_msgs::Float32MultiArray> sub("buzzer",&messageCb)
Timeout toff

Definition at line 26 of file GroveBuzzer.cpp.



rosserial_mbed
Author(s): Gary Servin
autogenerated on Fri Jun 7 2019 22:02:48