[Avrora] monitor and set power

aurelien francillon aurel at naurel.org
Tue Jan 13 01:54:12 PST 2009


salvador jauregui a écrit :
> I try to do a simple monitor like your example of 
> http://compilers.cs.ucla.edu/avrora/monitoring.html, just copy-paste, 
> compile and all is OK, unpack the avrora.jar  and add my 2 classes 
> MemoryMonitor.class and MemoryMonitor$Monitor.class in avrora/monitors 
> and after that I do again the avrora.jar when I run the next instruction
>  
>  avrora -platform=micaz -seconds=2 -monitors=MyMonitor blink.od
>
> I get the next error
>
> Avrora [Beta 1.7.106] - (c) 2003-2007 UCLA Compilers Group
> Monitor class not found: "MyMonitor"
>
> I don't know what happen.
Hi,
you need to add your monitor to the monitorMap :
look at the class avrora.Default in the function addMonitors,  you need 
to register your new monitor there.
Without this avrora don't know how to call your monitor code. 
Best,
Aurélien



More information about the Avrora mailing list