from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator


class Drone(models.Model):
    name = models.CharField(max_length=32, default="")
    connect = models.BooleanField()
    bat = models.FloatField()
    fix = models.IntegerField()
    num_sat = models.IntegerField()
    lat = models.FloatField()
    lng = models.FloatField()
    alt = models.FloatField()
    zspeed = models.FloatField()
    gspeed = models.FloatField()
    heading = models.IntegerField()
    pitch = models.FloatField()
    roll = models.FloatField()
    arm = models.BooleanField()
    armable = models.BooleanField()
    ekf = models.BooleanField()
    mode = models.CharField(max_length=32)
    mission = models.CharField(max_length=32)


class Command(models.Model):
    name = models.CharField(max_length=20, default="")
    Command = models.CharField(max_length=20, default="")
    alt = models.FloatField(default=0, validators=[
            MaxValueValidator(100),
            MinValueValidator(0)
        ])



da13731de1dcca453a1eba7637788d8ef1037cbc
<mask token>


class Command(models.Model):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Drone(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class Command(models.Model):
    name = models.CharField(max_length=20, default='')
    Command = models.CharField(max_length=20, default='')
    alt = models.FloatField(default=0, validators=[MaxValueValidator(100),
        MinValueValidator(0)])

<mask token>


class Drone(models.Model):
    name = models.CharField(max_length=32, default='')
    connect = models.BooleanField()
    bat = models.FloatField()
    fix = models.IntegerField()
    num_sat = models.IntegerField()
    lat = models.FloatField()
    lng = models.FloatField()
    alt = models.FloatField()
    zspeed = models.FloatField()
    gspeed = models.FloatField()
    heading = models.IntegerField()
    pitch = models.FloatField()
    roll = models.FloatField()
    arm = models.BooleanField()
    armable = models.BooleanField()
    ekf = models.BooleanField()
    mode = models.CharField(max_length=32)
    mission = models.CharField(max_length=32)


class Command(models.Model):
    name = models.CharField(max_length=20, default='')
    Command = models.CharField(max_length=20, default='')
    alt = models.FloatField(default=0, validators=[MaxValueValidator(100),
        MinValueValidator(0)])

from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator


class Drone(models.Model):
    name = models.CharField(max_length=32, default='')
    connect = models.BooleanField()
    bat = models.FloatField()
    fix = models.IntegerField()
    num_sat = models.IntegerField()
    lat = models.FloatField()
    lng = models.FloatField()
    alt = models.FloatField()
    zspeed = models.FloatField()
    gspeed = models.FloatField()
    heading = models.IntegerField()
    pitch = models.FloatField()
    roll = models.FloatField()
    arm = models.BooleanField()
    armable = models.BooleanField()
    ekf = models.BooleanField()
    mode = models.CharField(max_length=32)
    mission = models.CharField(max_length=32)


class Command(models.Model):
    name = models.CharField(max_length=20, default='')
    Command = models.CharField(max_length=20, default='')
    alt = models.FloatField(default=0, validators=[MaxValueValidator(100),
        MinValueValidator(0)])

from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator


class Drone(models.Model):
    name = models.CharField(max_length=32, default="")
    connect = models.BooleanField()
    bat = models.FloatField()
    fix = models.IntegerField()
    num_sat = models.IntegerField()
    lat = models.FloatField()
    lng = models.FloatField()
    alt = models.FloatField()
    zspeed = models.FloatField()
    gspeed = models.FloatField()
    heading = models.IntegerField()
    pitch = models.FloatField()
    roll = models.FloatField()
    arm = models.BooleanField()
    armable = models.BooleanField()
    ekf = models.BooleanField()
    mode = models.CharField(max_length=32)
    mission = models.CharField(max_length=32)


class Command(models.Model):
    name = models.CharField(max_length=20, default="")
    Command = models.CharField(max_length=20, default="")
    alt = models.FloatField(default=0, validators=[
            MaxValueValidator(100),
            MinValueValidator(0)
        ])


