Large disclaimer - I know *nothing* about FTC APIs but, according to this JavaDoc:
http://ftckey.com/apis/ftc/com/qualc...rdwareMap.html
You should be able to initialize an empty Hardware Map like this:
Code:
private HardwareMap rd_hardwareMap = new HardwareMap();
What I *don't* know is if the hardware map is supposed to be created a different way to be pre-populated or something.
I found this GitHub repo that looks promising (
https://github.com/ftctechnh/ftc_app), however the example code never creates the HardwareMap class variable. It looks inherited from OpMode....
Sorry I can't help more.....