mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 11:30:53 +00:00
descriptions
This commit is contained in:
@@ -67,15 +67,16 @@ The *struct* for storing motors PWM values.
|
||||
The function for updating motors' PWM values.
|
||||
|
||||
.. code-block:: c
|
||||
|
||||
// Function to send data to the receiver
|
||||
void sendData (void) {
|
||||
void sendData (void) {
|
||||
sensors_data_t buffer; // Declare data struct
|
||||
|
||||
buffer.crc = 0;
|
||||
buffer.x_axis = 240;
|
||||
buffer.y_axis = 256;
|
||||
buffer.x_axis = 0;
|
||||
buffer.y_axis = 0;
|
||||
buffer.nav_bttn = 0;
|
||||
buffer.motor1_rpm_pwm = 10;
|
||||
buffer.motor1_rpm_pwm = 0;
|
||||
buffer.motor2_rpm_pwm = 0;
|
||||
buffer.motor3_rpm_pwm = 0;
|
||||
buffer.motor4_rpm_pwm = 0;
|
||||
|
Reference in New Issue
Block a user