mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
Egg_drop has a 0..100 range
This commit is contained in:
parent
6d059b8eba
commit
329df04157
@ -32,10 +32,10 @@ void egg_waypoint()
|
|||||||
|
|
||||||
if(g.waypoint_index == 3){
|
if(g.waypoint_index == 3){
|
||||||
if(wp_distance < egg_dist){
|
if(wp_distance < egg_dist){
|
||||||
g_rc_function[RC_Channel_aux::k_egg_drop]->servo_out = 1500 + (-45*10.31);
|
g_rc_function[RC_Channel_aux::k_egg_drop]->servo_out = 100;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
g_rc_function[RC_Channel_aux::k_egg_drop]->servo_out = 1500 + (45*10.31);
|
g_rc_function[RC_Channel_aux::k_egg_drop]->servo_out = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user