Changeset 22 for trunk/extremum_seeking


Ignore:
Timestamp:
01/03/13 16:26:16 (12 years ago)
Author:
wcaarls
Message:

Updated extremum_seeking to revision 1178

Location:
trunk/extremum_seeking/esc_perturb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/extremum_seeking/esc_perturb/include/esc_perturb/perturb_esc_nd.h

    r5 r22  
    3737        std::vector<double> monitor();
    3838        std::vector<std::string> monitorNames();
     39        void reset();
    3940};
    4041
  • trunk/extremum_seeking/esc_perturb/src/perturb_esc_nd.cpp

    r5 r22  
    4747        opt_dim_ = 0;
    4848        state_initialized_ = false;
     49        old_vals_initialized_ = false;
    4950        initialized_ = true;
    50         old_vals_initialized_ = false;
    5151}
    5252
     
    142142        return monitor_names;
    143143}
     144
     145void PerturbESCND::reset(){
     146        obj_val_old_ = 0;
     147        cycle_count_ = 0;
     148        hpf_out_old_ = 0;
     149        opt_dim_ = 0;
     150        state_initialized_ = false;
     151        old_vals_initialized_ = false;
     152}
Note: See TracChangeset for help on using the changeset viewer.