mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Egg_drop has a 0..100 range
This commit is contained in:
parent
0a793a1327
commit
7e0bff9cbe
@ -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