aboutsummaryrefslogtreecommitdiff
path: root/apps/ardrone_interface/ardrone_motor_control.h
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-09-03 21:34:54 +0200
committerLorenz Meier <lm@inf.ethz.ch>2012-09-03 21:34:54 +0200
commit8a615a9741ad1dd7406a804349329345573da5b5 (patch)
treefc7828bba5a2148801a445091ec3897f49398eae /apps/ardrone_interface/ardrone_motor_control.h
parent79801b15789217f15ad3fbd15938c3f6b09425a5 (diff)
downloadpx4-firmware-8a615a9741ad1dd7406a804349329345573da5b5.tar.gz
px4-firmware-8a615a9741ad1dd7406a804349329345573da5b5.tar.bz2
px4-firmware-8a615a9741ad1dd7406a804349329345573da5b5.zip
WIP on ardrone control interface
Diffstat (limited to 'apps/ardrone_interface/ardrone_motor_control.h')
-rw-r--r--apps/ardrone_interface/ardrone_motor_control.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/ardrone_interface/ardrone_motor_control.h b/apps/ardrone_interface/ardrone_motor_control.h
index 8af143742..664419707 100644
--- a/apps/ardrone_interface/ardrone_motor_control.h
+++ b/apps/ardrone_interface/ardrone_motor_control.h
@@ -49,9 +49,20 @@ void ar_get_motor_packet(uint8_t *motor_buf, uint16_t motor1, uint16_t motor2, u
/**
* Select a motor in the multiplexing.
+ *
+ * @param fd GPIO file descriptor
+ * @param motor Motor number, from 1 to 4, 0 selects all
*/
int ar_select_motor(int fd, uint8_t motor);
+/**
+ * Deselect a motor in the multiplexing.
+ *
+ * @param fd GPIO file descriptor
+ * @param motor Motor number, from 1 to 4, 0 deselects all
+ */
+int ar_deselect_motor(int fd, uint8_t motor);
+
void ar_enable_broadcast(int fd);
int ar_multiplexing_init(void);
@@ -69,7 +80,7 @@ int ardrone_write_motor_commands(int ardrone_fd, uint16_t motor1, uint16_t motor
/**
* Initialize the motors.
*/
-int ar_init_motors(int ardrone_uart, int *gpios_pin);
+int ar_init_motors(int ardrone_uart, int gpio);
/**
* Set LED pattern.