Subversion Repositories FlightCtrl

Rev

Rev 746 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 746 Rev 747
Line 32... Line 32...
32
GPS_Pos_t HomePosition  = {0,0, INVALID};
32
GPS_Pos_t HomePosition  = {0,0, INVALID};
Line 33... Line 33...
33
 
33
 
Line 34... Line 34...
34
 
34
 
35
// ---------------------------------------------------------------------------------
35
// ---------------------------------------------------------------------------------
36
 
36
 
37
// set current hold position a home positon
37
// set home position to current hold positon
38
void GPS_SetHomePosition(void)
38
void GPS_SetHomePosition(void)
39
{
39
{
40
                HomePosition.Northing = HoldPosition.Northing;
40
                HomePosition.Northing = HoldPosition.Northing;
41
                HomePosition.Easting = HoldPosition.Easting;
41
                HomePosition.Easting = HoldPosition.Easting;
Line 42... Line 42...
42
                HomePosition.Status = HoldPosition.Status;
42
                HomePosition.Status = HoldPosition.Status;
43
                if(HomePosition.Status == VALID) BeepTime = 1000; // signal if new home position was set
43
                if(HomePosition.Status == VALID) BeepTime = 1000; // signal if new home position was set
44
}
44
}
45
 
45
 
46
 
46
 
47
// disable GPS contrl sticks
47
// disable GPS control sticks
Line 48... Line 48...
48
void GPS_Neutral(void)
48
void GPS_Neutral(void)
49
{
49
{
50
        GPS_Pitch = 0;
50
        GPS_Pitch = 0;
51
        GPS_Roll = 0;
51
        GPS_Roll = 0;
52
}
52
}
53
 
53