Project

General

Profile

Revision b00761a0

IDb00761a0e88f934a309a939b653d9f441b127ae8

Added by Alex Zirbel over 12 years ago

Updated ButtonControl and SonarControl.

Finally, the behavior compiles. Had to fix a lot of problems involving misunderstandings with Publisher/Client/ServiceServer/ServiceClient confusion.

We can now run priya_behavior as an executable, though the process for generating behavior executables still needs some work.

View differences:

scout/sonar/src/sonar.h
37 37
#ifndef _SONAR_H_
38 38
#define _SONAR_H_
39 39

  
40
/** @brief Initialize the sonar in the library module **/
40
/** Initialize the sonar module and drivers **/
41 41
void sonar_init(void);
42 42

  
43
/** @brief Initialize the sonar module and drivers **/
44
void sonar_module_init(void);
43
/** Responds to sonar on/off requests. */
44
bool handle_sonar_toggle(sonar::sonar_toggle::Request  &req,
45
                         sonar::sonar_toggle::Response &res)
45 46

  
46
/** @brief Read raw sonar data from the sonar module. Takes stepper
47
 * position and sensor to read **/
48
int sonar_read_raw(int direction, int sensor);
49

  
50
/** @brief Wrapper for reading sonar data (angle in degrees and distance in
51
 * cm) **/
52
int sonar_read(int direction);
53

  
54
/** @brief Subscribe function to sonar topic **/
55
void sonar_subscribe(int *function());
47
/** Responds to requests which set the scan range. */
48
bool handle_sonar_set_scan(sonar::sonar_set_scan::Request  &req,
49
                           sonar::sonar_set_scan::Response &res)
56 50

  
57 51
#endif

Also available in: Unified diff