|
Re: Changing parameters on the fly?
The shell provided for the operating system is really a C interpreter. So you can define a global in your code then simply change its value from the command line.
in your C++ code:
extern "C" { float iMyPidGain; }
then from the VxWorks shell:
% iMyPidGain = 0.001
__________________
Fast, cheap or working - pick any two!
Last edited by wireties : 20-02-2012 at 01:44.
|