|
/* **************************************************************** */
// Panel : panHomeAlt
// Needs : X, Y locations
// Output : Alt symbol and home altitude value in meters from MAVLink
// Size : 1 x 7Hea (rows x chars)
// Staus : done
static void panHomeAlt(point p){
float v=osd_alt_to_home;
if(is_alt(p) || (*(long *)&v)==0) v = osd_alt_mav;
//printDistCnv(v);
printFullDist(v);
}
为什么在显示高度前要做一个if(is_alt(p) || (*(long *)&v)==0)的判断? (*(long *)&v) 是什么运算看不懂 C语言都忘记了
|
|