Subversion Repositories NaviCtrl

Rev

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

Rev 187 Rev 190
Line 138... Line 138...
138
 
138
 
139
//-------------------------------------------------------------
139
//-------------------------------------------------------------
140
// This function defines a good GPS signal condition
140
// This function defines a good GPS signal condition
141
u8 GPS_IsSignalOK(void)
141
u8 GPS_IsSignalOK(void)
-
 
142
{
142
{
143
        return 0;
Line 143... Line 144...
143
}
144
}
144
 
145
 
145
//------------------------------------------------------------
146
//------------------------------------------------------------
146
// Checks for manual control action
147
// Checks for manual control action
-
 
148
u8 GPS_IsManuallyControlled(void)
147
u8 GPS_IsManuallyControlled(void)
149
{
Line 148... Line 150...
148
{
150
        return 0;
149
}
151
}
150
 
152
 
151
//------------------------------------------------------------
153
//------------------------------------------------------------
-
 
154
// copy GPS position from source position to target position
152
// copy GPS position from source position to target position
155
u8 GPS_CopyPosition(GPS_Pos_t * pGPSPosSrc, GPS_Pos_t* pGPSPosTgt)
Line 153... Line 156...
153
u8 GPS_CopyPosition(GPS_Pos_t * pGPSPosSrc, GPS_Pos_t* pGPSPosTgt)
156
{
154
{
157
        return 0;
155
}
158
}
156
 
159
 
-
 
160
//------------------------------------------------------------
157
//------------------------------------------------------------
161
// clear position data
Line 158... Line 162...
158
// clear position data
162
u8 GPS_ClearPosition(GPS_Pos_t * pGPSPos)
159
u8 GPS_ClearPosition(GPS_Pos_t * pGPSPos)
163
{
Line 173... Line 177...
173
 
177
 
174
//------------------------------------------------------------
178
//------------------------------------------------------------
175
// calculate the bearing to target position from its deviation
179
// calculate the bearing to target position from its deviation
176
s32 DirectionToTarget_N_E(float northdev, float eastdev)
180
s32 DirectionToTarget_N_E(float northdev, float eastdev)
-
 
181
{
177
{
182
        return 0;
Line 178... Line 183...
178
}
183
}
179
 
184
 
180
 
185
 
181
//------------------------------------------------------------
186
//------------------------------------------------------------
182
// Rescale xy-vector length if length limit is violated
187
// Rescale xy-vector length if length limit is violated
-
 
188
// returns vector len after scaling
183
// returns vector len after scaling
189
s32 GPS_LimitXY(s32 *x, s32 *y, s32 limit)
Line 184... Line 190...
184
s32 GPS_LimitXY(s32 *x, s32 *y, s32 limit)
190
{
185
{
191
        return 0;
186
}
192
}
187
 
193
 
-
 
194
//------------------------------------------------------------
188
//------------------------------------------------------------
195
// transform the integer deg into float radians
Line 189... Line 196...
189
// transform the integer deg into float radians
196
inline double RadiansFromGPS(s32 deg)
190
inline double RadiansFromGPS(s32 deg)
197
{
191
{
198
        return 0.0;
192
}
199
}
-
 
200
 
193
 
201
//------------------------------------------------------------
Line 194... Line 202...
194
//------------------------------------------------------------
202
// transform the integer deg into float deg
195
// transform the integer deg into float deg
203
inline double DegFromGPS(s32 deg)
196
inline double DegFromGPS(s32 deg)
204
{
197
{
205
        return 0.0;
198
}
206
}
199
 
207
 
Line -... Line 208...
-
 
208
//------------------------------------------------------------
-
 
209
// calculate the deviation from the current position to the target position
-
 
210
u8 GPS_CalculateDeviation(GPS_Pos_t * pCurrentPos, GPS_Pos_t * pTargetPos, GPS_Deviation_t* pDeviationFromTarget)
-
 
211
{