11use color_eyre:: Result ;
22use context_attribute:: context;
3- use framework:: { AdditionalOutput , MainOutput } ;
3+ use framework:: MainOutput ;
44use serde:: { Deserialize , Serialize } ;
55use types:: {
66 fall_state:: { Kind , StandUpSpeed } ,
@@ -23,7 +23,6 @@ pub struct CycleContext {
2323 has_ground_contact : Input < bool , "has_ground_contact" > ,
2424
2525 motion_safe_exits : CyclerState < MotionSafeExits , "motion_safe_exits" > ,
26- current_stand_up_count : AdditionalOutput < u32 , "current_stand_up_count" > ,
2726 stand_up_count : CyclerState < u32 , "stand_up_count" > ,
2827}
2928
@@ -41,7 +40,7 @@ impl MotionSelector {
4140 } )
4241 }
4342
44- pub fn cycle ( & mut self , mut context : CycleContext ) -> Result < MainOutputs > {
43+ pub fn cycle ( & mut self , context : CycleContext ) -> Result < MainOutputs > {
4544 let motion_safe_to_exit = context. motion_safe_exits [ self . last_motion ] ;
4645 let requested_motion = motion_type_from_command ( context. motion_command ) ;
4746
@@ -55,10 +54,6 @@ impl MotionSelector {
5554 self . stand_up_count =
5655 stand_up_counting ( self . last_motion , current_motion, self . stand_up_count ) ;
5756
58- context
59- . current_stand_up_count
60- . fill_if_subscribed ( || self . stand_up_count ) ;
61-
6257 let dispatching_motion = if current_motion == MotionType :: Dispatching {
6358 if requested_motion == MotionType :: Unstiff {
6459 Some ( MotionType :: SitDown )
0 commit comments