Defines | Functions | Variables
main.c File Reference
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <time.h>
#include <math.h>
#include <sys/time.h>
#include <arpa/inet.h>
#include "mavlink_types.h"
#include "mavlink.h"
#include "waypoints.h"
#include "mavlink_missionlib_data.h"
#include "mavlink_parameters.h"
Include dependency graph for main.c:

Go to the source code of this file.

Defines

#define BUFFER_LENGTH   2041

Functions

int main (int argc, char *argv[])
uint64_t mavlink_missionlib_get_system_timestamp ()
void mavlink_missionlib_send_gcs_string (const char *string)
void mavlink_missionlib_send_message (mavlink_message_t *msg)
void mavlink_pm_reset_params (mavlink_pm_storage *pm)
 reset all parameters to default
uint64_t mavlink_wpm_get_system_timestamp ()
void mavlink_wpm_send_gcs_string (const char *string)
void mavlink_wpm_send_message (mavlink_message_t *msg)
uint64_t microsSinceEpoch ()

Variables

uint32_t altitude
uint8_t buf [BUFFER_LENGTH]
int bytes_sent
socklen_t fromlen
struct sockaddr_in gcAddr
char help [] = "--help"
bool hilEnabled = false
int i = 0
uint32_t latitude
uint16_t len
struct sockaddr_in locAddr
uint32_t longitude
mavlink_system_t mavlink_system
mavlink_message_t msg
float pitch
float pitchspeed
mavlink_pm_storage pm
float position [6] = {}
ssize_t recsize
float roll
float rollspeed
int sock
uint16_t speedx
uint16_t speedy
uint16_t speedz
char target_ip [100]
unsigned int temp = 0
mavlink_wpm_storage wpm
float yaw
float yawspeed

Define Documentation

#define BUFFER_LENGTH   2041

Definition at line 104 of file main.c.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 176 of file main.c.

Definition at line 163 of file main.c.

void mavlink_missionlib_send_gcs_string ( const char *  string)

Definition at line 144 of file main.c.

Definition at line 135 of file main.c.

reset all parameters to default

Warning:
DO NOT USE THIS IN FLIGHT!

Definition at line 92 of file main.c.

void mavlink_wpm_send_gcs_string ( const char *  string)
uint64_t microsSinceEpoch ( )

Variable Documentation

uint32_t altitude

Definition at line 171 of file main.c.

uint8_t buf[BUFFER_LENGTH]

Definition at line 115 of file main.c.

Definition at line 118 of file main.c.

socklen_t fromlen

Definition at line 117 of file main.c.

struct sockaddr_in gcAddr

Definition at line 113 of file main.c.

char help[] = "--help"

Definition at line 106 of file main.c.

bool hilEnabled = false

Definition at line 174 of file main.c.

int i = 0

Definition at line 121 of file main.c.

uint32_t latitude

Definition at line 171 of file main.c.

uint16_t len

Definition at line 120 of file main.c.

struct sockaddr_in locAddr

Definition at line 114 of file main.c.

uint32_t longitude

Definition at line 171 of file main.c.

Definition at line 65 of file main.c.

Definition at line 119 of file main.c.

float pitch

Definition at line 170 of file main.c.

float pitchspeed

Definition at line 173 of file main.c.

Definition at line 86 of file main.c.

float position[6] = {}

Definition at line 111 of file main.c.

ssize_t recsize

Definition at line 116 of file main.c.

float roll

Definition at line 170 of file main.c.

float rollspeed

Definition at line 173 of file main.c.

int sock

Definition at line 112 of file main.c.

uint16_t speedx

Definition at line 172 of file main.c.

uint16_t speedy

Definition at line 172 of file main.c.

uint16_t speedz

Definition at line 172 of file main.c.

char target_ip[100]

Definition at line 109 of file main.c.

unsigned int temp = 0

Definition at line 122 of file main.c.

Definition at line 80 of file main.c.

float yaw

Definition at line 170 of file main.c.

float yawspeed

Definition at line 173 of file main.c.



mavlink
Author(s): Lorenz Meier
autogenerated on Thu Jun 6 2019 19:01:57