258,8 → 258,8 |
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
void Menu_POINT_SV2(uint8_t key) |
{ //0123456789ABCDEF |
static unsigned char load_waypoint_tmp = 1, changed, hyterese = 1; |
|
static unsigned char load_waypoint_tmp = 0, changed, hyterese = 1; |
static int delay; |
// if(WPL_Name[0] == 0) JetiBox_printfxy(0,0,"Relative WPs ") |
// else JetiBox_printfxy(0,0,"Rel:%s",WPL_Name); |
JetiBox_printfxy(0,0,"Save Point:"); |
269,7 → 269,8 |
if(GPSInfo.SatFix != SATFIX_3D) JetiBox_printfxy(0,1,"no GPS-Fix") |
else |
{ |
JetiBox_printfxy(11,0,"%2d",load_waypoint_tmp); |
if(load_waypoint_tmp) JetiBox_printfxy(11,0,"%2d",load_waypoint_tmp) |
else JetiBox_printfxy(11,0,"--"); |
|
// if(NaviData_WaypointNumber) JetiBox_printfxy(8,1,"%2d/%d ",NaviData_WaypointIndex,NaviData_WaypointNumber) |
// else JetiBox_printfxy(8,1,"--/--") |
286,22 → 287,25 |
ToNC_Store_SingePoint = load_waypoint_tmp; |
changed = 0; |
} |
|
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Bedienung per Taster am Sender |
if(Parameter_UserParam5 > 120 && !hyterese) // |
if(Parameter_UserParam5 > 120) // |
{ |
hyterese = 1; |
if(load_waypoint_tmp < NaviData_MaxWpListIndex) |
hyterese = 2; |
if(CheckDelay(delay)) { load_waypoint_tmp = 0; hyterese = 1;} |
} |
else |
if(Parameter_UserParam5 < 100) |
{ |
delay = SetDelay(2500); |
if(hyterese == 2 && (load_waypoint_tmp < NaviData_MaxWpListIndex)) |
{ |
load_waypoint_tmp++; |
ToNC_Store_SingePoint = load_waypoint_tmp; |
// SpeakHoTT = SPEAK_MIKROKOPTER; |
changed = 0; |
// JetiBeep = 'A'; // "MikroKopter" |
} |
} |
else |
if(Parameter_UserParam5 < 100) |
{ |
hyterese = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
312,8 → 316,8 |
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
void Menu_POINT_LD2(uint8_t key) |
{ //0123456789ABCDEF |
static unsigned char load_waypoint_tmp = 1, changed, hyterese = 1; |
|
static unsigned char load_waypoint_tmp = 0, changed, hyterese = 1; |
static int delay; |
// if(WPL_Name[0] == 0) JetiBox_printfxy(0,0,"FIX Waypoints") |
// else JetiBox_printfxy(0,0,"FIX:%s",WPL_Name); |
JetiBox_printfxy(0,0,"Load Point") |
321,7 → 325,8 |
if(NaviData_MaxWpListIndex == 0) JetiBox_printfxy(0,1,"no SD-Card") |
else |
{ |
JetiBox_printfxy(11,0,"%2d",load_waypoint_tmp); |
if(load_waypoint_tmp) JetiBox_printfxy(11,0,"%2d",load_waypoint_tmp) |
else JetiBox_printfxy(11,0,"--"); |
|
if(NaviData_WaypointNumber) JetiBox_printfxy(0,1,"Dist:%3d Alt:%3d ",NaviData_TargetDistance,(int16_t)(FromNC_AltitudeSetpoint/100)) |
else JetiBox_printfxy(8,1," "); |
339,19 → 344,22 |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
// Bedienung per Taster am Sender |
if(Parameter_UserParam5 > 120 && !hyterese) // |
if(Parameter_UserParam5 > 120) // |
{ |
hyterese = 1; |
if(load_waypoint_tmp < NaviData_MaxWpListIndex) |
hyterese = 2; |
if(CheckDelay(delay)) { load_waypoint_tmp = 0; hyterese = 1;} |
} |
else |
if(Parameter_UserParam5 < 100) |
{ |
delay = SetDelay(2500); |
if(hyterese == 2 && (load_waypoint_tmp < NaviData_MaxWpListIndex)) |
{ |
load_waypoint_tmp++; |
ToNC_Load_SingePoint = load_waypoint_tmp; |
changed = 0; |
// JetiBeep = 'A'; // "MikroKopter" |
} |
} |
else |
if(Parameter_UserParam5 < 100) |
{ |
hyterese = 0; |
} |
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |